From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Peter" Newsgroups: gmane.emacs.devel Subject: Reading from pipes directly with a process-filter Date: Fri, 13 Jan 2023 20:01:37 +0100 Message-ID: <87zgam6yy6.fsf@nexoid.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33104"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 13 20:02:07 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pGPJW-0008He-QJ for ged-emacs-devel@m.gmane-mx.org; Fri, 13 Jan 2023 20:02:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGPJ9-0000yj-Vr; Fri, 13 Jan 2023 14:01:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGPJ8-0000xe-QX for emacs-devel@gnu.org; Fri, 13 Jan 2023 14:01:42 -0500 Original-Received: from www.nexoid.at ([178.79.130.240] helo=nexoid.at) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGPJ5-0001tY-UX for emacs-devel@gnu.org; Fri, 13 Jan 2023 14:01:42 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 nexoid.at EB64425EF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexoid.at; s=mail; t=1673636498; bh=sozquBXB1UZgbm520kWNPfYjufpyri5qwqkJxrDgnuI=; h=From:To:Subject:Date:From; b=tIDfabkmtDYa+zfCbIyxiBWzEAm+D+b+vAKlkC1Qx7huXAlYD3zb/dwJ7v6iM5nAJ x+v31tv/EEP3vqocQK06UAVn5f7Repu+ZNzg65GOXkFl9nZharfGt/su1Muo1yjcz9 8jjaqL1+13P/Xn7Xtk+s2Md3hq86zZLZdOk+dJvxf8p4bp8RBkUzFdjXsIbuhePwmW 1pK8eG4QkGHCZf+Rs4VTkLWd1HiLd5/lVnBYpMzg111ooAxOQ8H7Uzc9/aNZDgKcSq jIQyf/2iG7w+eiVU7Yd40mu+aSxhJNBIAupKNL1/DpGaUZIjSlhibGFvDnoOfmUFEs C7ssBGVF7LViw== Received-SPF: none client-ip=178.79.130.240; envelope-from=emacs@nexoid.at; helo=nexoid.at X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302400 Archived-At: Hello! I've been slowly sliding into using Emacs more and more like a Lisp OS, so one thing that has come up is directly reading data from pipes or special devices (like /dev/input/event...). I can do that fine by running `start-process' with `cat /dev/input/event..', however that seems a bit wasteful. Is there any way to *directly* open such a file and put a process-filter in front of it? Semi-relatedly, is there any support for `fnctl' or `ioctl' in elisp, so that I could even *write* to those special devices? Thanks for any help with this! Greetings, Peter