GNU bug report logs - #46258
openat, chownat, ... in Guile?

Previous Next

Package: guile;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Tue, 2 Feb 2021 14:47:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guile <at> gnu.org
Subject: openat, chownat, ... in Guile?
Date: Tue, 02 Feb 2021 15:45:31 +0100
[Message part 1 (text/plain, inline)]
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 ‘file in a directory’
  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 <at> gnu.org, please CC me.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.