This commit is contained in:
christos 1997-10-16 23:42:41 +00:00
parent 2975958ca6
commit 86f2672ac2
2 changed files with 80 additions and 47 deletions

View File

@ -2,7 +2,7 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 1997/10/15 17:27:53 mycroft Exp
* created from NetBSD: syscalls.master,v 1.60 1997/10/16 23:41:31 christos Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@ -44,10 +44,10 @@
/* syscall: "fchdir" ret: "int" args: "int" */
#define SYS_fchdir 13
/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
#define SYS_mknod 14
/* syscall: "chmod" ret: "int" args: "const char *" "int" */
/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
#define SYS_chmod 15
/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
@ -115,12 +115,12 @@
/* syscall: "kill" ret: "int" args: "int" "int" */
#define SYS_kill 37
/* 38 is compat_43 ostat */
/* 38 is compat_43 stat43 */
/* syscall: "getppid" ret: "pid_t" args: */
#define SYS_getppid 39
/* 40 is compat_43 olstat */
/* 40 is compat_43 lstat43 */
/* syscall: "dup" ret: "int" args: "int" */
#define SYS_dup 41
@ -184,14 +184,13 @@
/* syscall: "chroot" ret: "int" args: "const char *" */
#define SYS_chroot 61
/* 62 is compat_43 ofstat */
/* 62 is compat_43 fstat43 */
/* 63 is compat_43 ogetkerninfo */
/* 64 is compat_43 ogetpagesize */
/* syscall: "msync" ret: "int" args: "caddr_t" "size_t" */
#define SYS_msync 65
/* 65 is compat_12 msync */
/* syscall: "vfork" ret: "int" args: */
#define SYS_vfork 66
@ -335,7 +334,7 @@
/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
#define SYS_fchown 123
/* syscall: "fchmod" ret: "int" args: "int" "int" */
/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
#define SYS_fchmod 124
/* 125 is compat_43 orecvfrom */
@ -356,7 +355,7 @@
/* syscall: "flock" ret: "int" args: "int" "int" */
#define SYS_flock 131
/* syscall: "mkfifo" ret: "int" args: "const char *" "int" */
/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
#define SYS_mkfifo 132
/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
@ -368,7 +367,7 @@
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
#define SYS_socketpair 135
/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
#define SYS_mkdir 136
/* syscall: "rmdir" ret: "int" args: "const char *" */
@ -459,14 +458,11 @@
/* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */
#define SYS_lfs_segwait 187
/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */
#define SYS_stat 188
/* 188 is compat_12 stat12 */
/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */
#define SYS_fstat 189
/* 189 is compat_12 fstat12 */
/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */
#define SYS_lstat 190
/* 190 is compat_12 lstat12 */
/* syscall: "pathconf" ret: "long" args: "const char *" "int" */
#define SYS_pathconf 191
@ -581,7 +577,7 @@
/* syscall: "minherit" ret: "int" args: "caddr_t" "size_t" "int" */
#define SYS_minherit 273
/* syscall: "lchmod" ret: "int" args: "const char *" "int" */
/* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
#define SYS_lchmod 274
/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
@ -590,4 +586,16 @@
/* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval *" */
#define SYS_lutimes 276
#define SYS_MAXSYSCALL 277
/* syscall: "msync" ret: "int" args: "caddr_t" "size_t" "int" */
#define SYS_msync 277
/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */
#define SYS_stat 278
/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */
#define SYS_fstat 279
/* syscall: "lstat" ret: "int" args: "char *" "struct stat *" */
#define SYS_lstat 280
#define SYS_MAXSYSCALL 281

View File

@ -2,7 +2,7 @@
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 1997/10/15 17:27:53 mycroft Exp
* created from NetBSD: syscalls.master,v 1.60 1997/10/16 23:41:31 christos Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@ -26,7 +26,7 @@ struct sys_write_args {
struct sys_open_args {
syscallarg(const char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct sys_close_args {
@ -41,8 +41,8 @@ struct sys_wait4_args {
};
struct compat_43_sys_creat_args {
syscallarg(char *) path;
syscallarg(int) mode;
syscallarg(const char *) path;
syscallarg(mode_t) mode;
};
struct sys_link_args {
@ -64,13 +64,13 @@ struct sys_fchdir_args {
struct sys_mknod_args {
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
syscallarg(mode_t) mode;
syscallarg(dev_t) dev;
};
struct sys_chmod_args {
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct sys_chown_args {
@ -178,13 +178,13 @@ struct sys_kill_args {
};
struct compat_43_sys_stat_args {
syscallarg(char *) path;
syscallarg(struct ostat *) ub;
syscallarg(const char *) path;
syscallarg(struct stat43 *) ub;
};
struct compat_43_sys_lstat_args {
syscallarg(char *) path;
syscallarg(struct ostat *) ub;
syscallarg(const char *) path;
syscallarg(struct stat43 *) ub;
};
struct sys_dup_args {
@ -275,7 +275,7 @@ struct sys_chroot_args {
struct compat_43_sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct ostat *) sb;
syscallarg(struct stat43 *) sb;
};
struct compat_43_sys_getkerninfo_args {
@ -285,7 +285,7 @@ struct compat_43_sys_getkerninfo_args {
syscallarg(int) arg;
};
struct sys_msync_args {
struct compat_12_sys_msync_args {
syscallarg(caddr_t) addr;
syscallarg(size_t) len;
};
@ -546,7 +546,7 @@ struct sys_fchown_args {
struct sys_fchmod_args {
syscallarg(int) fd;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct compat_43_sys_recvfrom_args {
@ -574,7 +574,7 @@ struct sys_rename_args {
};
struct compat_43_sys_truncate_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(long) length;
};
@ -590,7 +590,7 @@ struct sys_flock_args {
struct sys_mkfifo_args {
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct sys_sendto_args {
@ -616,7 +616,7 @@ struct sys_socketpair_args {
struct sys_mkdir_args {
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct sys_rmdir_args {
@ -783,19 +783,19 @@ struct lfs_segwait_args {
syscallarg(struct timeval *) tv;
};
struct sys_stat_args {
struct compat_12_sys_stat_args {
syscallarg(const char *) path;
syscallarg(struct stat *) ub;
syscallarg(struct stat12 *) ub;
};
struct sys_fstat_args {
struct compat_12_sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct stat *) sb;
syscallarg(struct stat12 *) sb;
};
struct sys_lstat_args {
struct compat_12_sys_lstat_args {
syscallarg(const char *) path;
syscallarg(struct stat *) ub;
syscallarg(struct stat12 *) ub;
};
struct sys_pathconf_args {
@ -1013,7 +1013,7 @@ struct sys_minherit_args {
struct sys_lchmod_args {
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(mode_t) mode;
};
struct sys_lchown_args {
@ -1027,6 +1027,27 @@ struct sys_lutimes_args {
syscallarg(const struct timeval *) tptr;
};
struct sys_msync_args {
syscallarg(caddr_t) addr;
syscallarg(size_t) len;
syscallarg(int) flags;
};
struct sys_stat_args {
syscallarg(const char *) path;
syscallarg(struct stat *) ub;
};
struct sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct stat *) sb;
};
struct sys_lstat_args {
syscallarg(char *) path;
syscallarg(struct stat *) ub;
};
/*
* System call prototypes.
*/
@ -1097,7 +1118,7 @@ int sys_chroot __P((struct proc *, void *, register_t *));
int compat_43_sys_fstat __P((struct proc *, void *, register_t *));
int compat_43_sys_getkerninfo __P((struct proc *, void *, register_t *));
int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *));
int sys_msync __P((struct proc *, void *, register_t *));
int compat_12_sys_msync __P((struct proc *, void *, register_t *));
int sys_vfork __P((struct proc *, void *, register_t *));
int sys_sbrk __P((struct proc *, void *, register_t *));
int sys_sstk __P((struct proc *, void *, register_t *));
@ -1216,9 +1237,9 @@ int lfs_segclean __P((struct proc *, void *, register_t *));
int lfs_segwait __P((struct proc *, void *, register_t *));
#else
#endif
int sys_stat __P((struct proc *, void *, register_t *));
int sys_fstat __P((struct proc *, void *, register_t *));
int sys_lstat __P((struct proc *, void *, register_t *));
int compat_12_sys_stat __P((struct proc *, void *, register_t *));
int compat_12_sys_fstat __P((struct proc *, void *, register_t *));
int compat_12_sys_lstat __P((struct proc *, void *, register_t *));
int sys_pathconf __P((struct proc *, void *, register_t *));
int sys_fpathconf __P((struct proc *, void *, register_t *));
int sys_getrlimit __P((struct proc *, void *, register_t *));
@ -1281,3 +1302,7 @@ int sys_minherit __P((struct proc *, void *, register_t *));
int sys_lchmod __P((struct proc *, void *, register_t *));
int sys_lchown __P((struct proc *, void *, register_t *));
int sys_lutimes __P((struct proc *, void *, register_t *));
int sys_msync __P((struct proc *, void *, register_t *));
int sys_stat __P((struct proc *, void *, register_t *));
int sys_fstat __P((struct proc *, void *, register_t *));
int sys_lstat __P((struct proc *, void *, register_t *));