Re: two questions on file modes hga@xxxxxx 26 Jul 2020 20:18 UTC

The argument of Pareto 80/20 principle lowering the effort
to implement SRFI 170 remains strong for adding port/fdes
to these procedures.  Can you make a case that this is
really useful, when every extra bit of effort adds up?

The same is a strong argument for combining setting file
and group ownership in one procedure, but I remain
uncomfortable with keeping the name set-file-*owner*,
although not by a great deal, seeing as how chown(1) works
that way.  Or at least I frequently use that feature....

#f for no change strikes me as excellent.

- Harold

----- Original message -----
From: Lassi Kortela <>
Date: Sunday, July 26, 2020 2:39 PM

Since POSIX is the main inspiration for this SRFI, how about:

(set-file-mode fname/port/fdes mode-bits)

* fname - chmod()
* port/fdes - fchmod()

(set-file-owner fname/port/fdes uid gid)

* fname - chown()
* port-fdes - fchown()

uid and/or gid can be #f for no change