From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.bugs Subject: bug#46258: openat, chownat, ... in Guile? Date: Tue, 02 Feb 2021 15:45:31 +0100 Message-ID: <6c9d1a78a198d4b5111fe42af67eaeb241e507ae.camel@telenet.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-a+2XXKO/xI0T8oFag4eT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 To: 46258@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Feb 02 16:15:13 2021 Return-path: Envelope-to: guile-bugs@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 1l6xOZ-0001ds-8V for guile-bugs@m.gmane-mx.org; Tue, 02 Feb 2021 16:15:11 +0100 Original-Received: from localhost ([::1]:58600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6xOY-000269-7p for guile-bugs@m.gmane-mx.org; Tue, 02 Feb 2021 10:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6wxK-00086Y-2J for bug-guile@gnu.org; Tue, 02 Feb 2021 09:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6wxJ-0003Sa-P6 for bug-guile@gnu.org; Tue, 02 Feb 2021 09:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6wxJ-00022T-M9 for bug-guile@gnu.org; Tue, 02 Feb 2021 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 02 Feb 2021 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46258 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16122771655177 (code B ref -1); Tue, 02 Feb 2021 14:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Feb 2021 14:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:34424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6wwO-0001KS-4Q for submit@debbugs.gnu.org; Tue, 02 Feb 2021 09:46:05 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6wwK-0001Gm-Or for submit@debbugs.gnu.org; Tue, 02 Feb 2021 09:46:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6wwK-0007Af-Ee for bug-guile@gnu.org; Tue, 02 Feb 2021 09:46:00 -0500 Original-Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]:52574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6wwA-0002ur-Sl for bug-guile@gnu.org; Tue, 02 Feb 2021 09:46:00 -0500 Original-Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by xavier.telenet-ops.be with bizsmtp id QEll2400N0mfAB401EllVy; Tue, 02 Feb 2021 15:45:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1612277145; bh=ZJpk23JxLEUJaxYb2uIWWfQAMP+uV0q3birWMhGIbpk=; h=Subject:From:To:Date; b=oie2lDw1xBz72RUuHR4rqDt5/BAGkvua/9CrSL2OH7g8p1U4YWH8b4JsS/udqZK+m l/K2uf7Z8vqJCKQXb7OBf+p6804lHdd06v7Fag+EAne//Zb5Rv+D5XAw6pRYvdtBFu swy8o/YEh6XaU0E9djBeP7IXOt16T4rHW4IsSmh7Fpuvk5CTHGKwu4yqsrSKvMksnl /M0lN+FG4c6v6XfHhb9A2QPvE2ZV3AVcPnObYmL6nNg0cXGdkKYk3CCtXB2TBtMNGT cxtmOlOFsugJhP+OlyZtVgFrycgjULJYZvCiYbKSLDwD4Xn0DQcwdw4WWkeYde3/+Y mdTiys2n94+Mw== Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9976 Archived-At: --=-a+2XXKO/xI0T8oFag4eT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi guilers, I would like to see fchownat, openat, fchmodat and any *at variants I forgot to appear in future versions of Guile in some form. I have two proposals, which I will illustrate with the procedure 'chmod': * chmod can currently modify permissions of a file. This OBJECT argument identifying the file can currently be a filename or a port. Allow a =E2=80=98file in a directory=E2=80=99 object as well. This could be created with a procedure (make-path-at DIRECTORY-PORT FILENAME) This procedure does not perform any I/O, but rather constructs what is effectively is a pair (DIRECTORY-PORT . FILENAME) but with its own type. * Follow the C API, but with Scheme types. (chmodat DIRECTORY-PORT FILENAME MODE FLAGS) where FLAGS can include AT_SYMLINK_NOFOLLOW (from chmod(2) Linux man page) Any thoughts? Greetings, Maxime P.S. I'm not subscribed to bug-guile@gnu.org, please CC me. --=-a+2XXKO/xI0T8oFag4eT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYBllixccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7r2sAQDriygPto4bXe/ZxgEACkMFAttd 35gJUUlnJCVkbW0ARwEAqWTg0KBtxyiEcB34kf5J8zRTHGOUw4SmvkV/CP68DQA= =G0JL -----END PGP SIGNATURE----- --=-a+2XXKO/xI0T8oFag4eT--