mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-18 02:17:33 +02:00
Adding a chmod binding.
This commit is contained in:
parent
6a3179ec42
commit
5f97353ff5
2 changed files with 5 additions and 2 deletions
|
@ -33,8 +33,7 @@
|
|||
file-lock file-truncate
|
||||
file-is-readable? file-is-writable? file-is-executable?
|
||||
lock/shared lock/exclusive lock/non-blocking lock/unlock
|
||||
is-a-tty?)
|
||||
chmod is-a-tty?)
|
||||
(import (chibi) (chibi string))
|
||||
(include-shared "filesystem")
|
||||
(include "filesystem.scm"))
|
||||
|
||||
|
|
|
@ -212,6 +212,10 @@
|
|||
;;> Locking operations.
|
||||
;;/
|
||||
|
||||
;;> Sets the file permissions as in chmod.
|
||||
|
||||
(define-c int chmod (string int))
|
||||
|
||||
;;> Returns \scheme{#t} if the given port of file descriptor
|
||||
;;> if backed by a TTY object, and \scheme{#f} otherwise.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue