(chibi filesystem): add chown

This commit is contained in:
Kris Katterjohn 2020-07-08 15:12:14 -04:00
parent e31e5ffbf3
commit 8ae99cff92
2 changed files with 5 additions and 1 deletions

View file

@ -33,7 +33,7 @@
open/append open/non-block
file-lock file-truncate
file-is-readable? file-is-writable? file-is-executable?
chmod is-a-tty?)
chmod chown is-a-tty?)
(cond-expand
(chibi
(export lock/shared lock/exclusive lock/non-blocking lock/unlock)

View file

@ -267,6 +267,10 @@
(define-c int chmod (string int))
;;> Sets the file owner and group as in chown.
(define-c int chown (string uid_t gid_t))
;;> Returns \scheme{#t} if the given port of file descriptor
;;> if backed by a TTY object, and \scheme{#f} otherwise.