Added fchmod() and fchown()

This commit is contained in:
Ben Gras
2006-04-18 11:26:04 +00:00
parent b1e5779b1c
commit 461a4fafb1
14 changed files with 83 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
#define NCALLS 95 /* number of system calls allowed */
#define NCALLS 97 /* number of system calls allowed */
#define EXIT 1
#define FORK 2
@@ -86,3 +86,5 @@
#define SETEGID 92 /* to PM */
#define TRUNCATE 93 /* to FS */
#define FTRUNCATE 94 /* to FS */
#define FCHMOD 95 /* to FS */
#define FCHOWN 96 /* to FS */

View File

@@ -68,6 +68,7 @@ struct stat {
/* Function Prototypes. */
_PROTOTYPE( int chmod, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int fchmod, (int fd, _mnx_Mode_t _mode) );
_PROTOTYPE( int fstat, (int _fildes, struct stat *_buf) );
_PROTOTYPE( int mkdir, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int mkfifo, (const char *_path, _mnx_Mode_t _mode) );

View File

@@ -96,6 +96,7 @@ _PROTOTYPE( unsigned int alarm, (unsigned int _seconds) );
_PROTOTYPE( int chdir, (const char *_path) );
_PROTOTYPE( int fchdir, (int fd) );
_PROTOTYPE( int chown, (const char *_path, _mnx_Uid_t _owner, _mnx_Gid_t _group) );
_PROTOTYPE( int fchown, (int fd, _mnx_Uid_t _owner, _mnx_Gid_t _group) );
_PROTOTYPE( int close, (int _fd) );
_PROTOTYPE( char *ctermid, (char *_s) );
_PROTOTYPE( char *cuserid, (char *_s) );