under Contract DABT63-95-C-0127 and ARPA order no. D346. The current support for this work comes from a variety of sources, all of to which we are indebted.
Interface:Semantics:READ:Syscode:Interface:Semantics:WRITE:Syscode:Interface:Semantics:OPEN:Syscode:Interface:Semantics:CLOSE:Syscode:Interface:Semantics:CREAT:Syscode:Interface:Semantics:UNLINK:Syscode:Interface:Semantics:CHDIR:Syscode:Interface:Semantics:CHMOD:Syscode:Interface:Semantics:CHOWN:Syscode:Interface:Semantics:BRK:
Syscode:Interface:Semantics:LSEEK:Syscode:Interface:Semantics:GETPID:Syscode:Interface:
void exit(int status);Seeexit(2).
GETUID:Read from le to buffer.Syscode:Interface:0x03
Semantics:int read(int fd, char *buf, int nbyte);Seeread(2).
ACCESS:Write from a buffer to a le.Syscode:Interface:0x04
Semantics:int write(int fd, char *buf, int nbyte);Seewrite(2).
STAT:
Open a le.Syscode:Interface:
0x05
int open(char *fname, int ags, int mode);Seeopen(2).Close a le.0x06
int close(int fd);Seeclose(2).
Create a le.0x08
int creat(char *fname, int mode);Seecreat(2).Delete a le.0x0a
int unlink(char *fname);Seeunlink(2).Change process directory.0x0c
int chdir(char *path);Semantics:Seechdir(2).
LSTAT:Change le permissions.Syscode:0x0f
Interface:int chmod(int *fname, int mode);Semantics:Seechmod(2).
DUP:
Change le owner and group.Syscode:0x10
Interface:int chown(char *fname, int owner, int group);Semantics:Seechown(2).
PIPE:
Change process break address.Syscode:0x11
Interface:int brk(long addr);Semantics:Seebrk(2).
GETGID:Move le pointer.Syscode:0x13
Interface:long lseek(int fd, long offset, int whence);Semantics:Seelseek(2).IOCTL:Get process identi er.Syscode:0x14
Interface:int getpid(void);
Semantics:
Get user identi er.0x18
int getuid(void);Seegetuid(2).
Determine accessibility of a le.0x21
int access(char *fname, int mode);Seeaccess(2).
Get le status.0x26struct stat{
shortst_dev;longst_ino;unsigned shortst_mode;shortst_nlink;shortst_uid;shortst_gid;shortst_rdev;intst_size;intst_atime;intst_spare1;intst_mtime;intst_spare2;intst_ctime;intst_spare3;longst_blksize;longst_blocks;longst_gennum;longst_spare4;};
int stat(char *fname, struct stat *buf);Seestat(2).
Get le status (and don’t dereference links).0x28
int lstat(char *fname, struct stat *buf);Seelstat(2).Duplicate a le descriptor.0x29
int dup(int fd);Seedup(2).
Create an interprocess comm. channel.0x2a
int pipe(int fd[2]);Seepipe(2).Get group identi er.0x2f
int getgid(void);Seegetgid(2).
Device control interface.0x36
int ioctl(int fd, int request, char *arg);Seeioctl(2).
…… 此处隐藏:532字,全部文档内容请下载后查看。喜欢就下载吧 ……