Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/osf1 const poisoning for strings, and minor cleanup



details:   https://anonhg.NetBSD.org/src/rev/fe7eb2af989b
branches:  trunk
changeset: 472156:fe7eb2af989b
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 23 06:19:51 1999 +0000

description:
const poisoning for strings, and minor cleanup

diffstat:

 sys/compat/osf1/syscalls.master |  88 ++++++++++++++++++++++------------------
 1 files changed, 49 insertions(+), 39 deletions(-)

diffs (208 lines):

diff -r 88f30023a331 -r fe7eb2af989b sys/compat/osf1/syscalls.master
--- a/sys/compat/osf1/syscalls.master   Fri Apr 23 06:15:35 1999 +0000
+++ b/sys/compat/osf1/syscalls.master   Fri Apr 23 06:19:51 1999 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.13 1999/02/09 20:34:17 christos Exp $
+       $NetBSD: syscalls.master,v 1.14 1999/04/23 06:19:51 cgd Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -46,29 +46,32 @@
 1      NOARGS          { int sys_exit(int rval); }
 2      NOARGS          { int sys_fork(void); }
 3      NOARGS          { int sys_read(int fd, char *buf, u_int nbyte); }
-4      NOARGS          { int sys_write(int fd, char *buf, u_int nbyte); }
+4      NOARGS          { int sys_write(int fd, const char *buf, \
+                           u_int nbyte); }
 5      UNIMPL          old open
 6      NOARGS          { int sys_close(int fd); }
 7      NOARGS          { int sys_wait4(int pid, int *status, int options, \
                            struct rusage *rusage); }
 8      UNIMPL          old creat
-9      NOARGS          { int sys_link(char *path, char *link); }
-10     NOARGS          { int sys_unlink(char *path); }
+9      NOARGS          { int sys_link(const char *path, const char *link); }
+10     NOARGS          { int sys_unlink(const char *path); }
 11     UNIMPL          execv
-12     NOARGS          { int sys_chdir(char *path); }
+12     NOARGS          { int sys_chdir(const char *path); }
 13     NOARGS          { int sys_fchdir(int fd); }
-14     STD             { int osf1_sys_mknod(char *path, int mode, int dev); }
-15     NOARGS          { int sys_chmod(char *path, int mode); }
-16     NOARGS          { int sys___posix_chown(char *path, int uid, int gid); }
+14     STD             { int osf1_sys_mknod(const char *path, int mode, \
+                           int dev); }
+15     NOARGS          { int sys_chmod(const char *path, int mode); }
+16     NOARGS          { int sys___posix_chown(const char *path, int uid, \
+                           int gid); }
 17     NOARGS          { int sys_obreak(char *nsize); }
 18     STD             { int osf1_sys_getfsstat(struct osf1_statfs *buf, \
                            long bufsize, int flags); }
 19     STD             { off_t osf1_sys_lseek(int fd, off_t offset, \
                            int whence); }
 20     NOARGS          { pid_t sys_getpid(void); }
-21     STD             { int osf1_sys_mount(int type, char *path, int flags, \
-                           caddr_t data); }
-22     STD             { int osf1_sys_unmount(char *path, int flags); }
+21     STD             { int osf1_sys_mount(int type, const char *path, \
+                           int flags, caddr_t data); }
+22     STD             { int osf1_sys_unmount(const char *path, int flags); }
 23     STD             { int osf1_sys_setuid(uid_t uid); }
 24     NOARGS          { uid_t sys_getuid(void); }
 25     UNIMPL          exec_with_loader
@@ -79,7 +82,7 @@
 30     UNIMPL          accept
 31     UNIMPL          getpeername
 32     UNIMPL          getsockname
-33     NOARGS          { int sys_access(char *path, int flags); }
+33     NOARGS          { int sys_access(const char *path, int flags); }
 34     UNIMPL          chflags
 35     UNIMPL          fchflags
 36     NOARGS          { int sys_sync(void); }
@@ -91,32 +94,36 @@
 42     NOARGS          { int sys_pipe(void); }
 43     UNIMPL          set_program_attributes
 44     UNIMPL          profil
-45     STD             { int osf1_sys_open(char *path, int flags, int mode); }
+45     STD             { int osf1_sys_open(const char *path, int flags, \
+                           int mode); }
 46     OBSOL           sigaction
 47     NOARGS          { gid_t sys_getgid(void); }
 48     NOARGS          { int compat_13_sys_sigprocmask(int how, \
                            sigset13_t mask); }
 49     NOARGS          { int sys___getlogin(char *namebuf, u_int namelen); }
-50     NOARGS          { int sys_setlogin(char *namebuf); }
-51     NOARGS          { int sys_acct(char *path); }
+50     NOARGS          { int sys_setlogin(const char *namebuf); }
+51     NOARGS          { int sys_acct(const char *path); }
 52     UNIMPL          sigpending
 53     UNIMPL          classcntl
 54     STD             { int osf1_sys_ioctl(int fd, int com, caddr_t data); }
 55     STD             { int osf1_sys_reboot(int opt); }
-56     NOARGS          { int sys_revoke(char *path); }
-57     NOARGS          { int sys_symlink(char *path, char *link); }
-58     NOARGS          { int sys_readlink(char *path, char *buf, int count); }
-59     STD             { int osf1_sys_execve(const char *path, char **argp, \
-                           char **envp); }
+56     NOARGS          { int sys_revoke(const char *path); }
+57     NOARGS          { int sys_symlink(const char *path, \
+                           const char *link); }
+58     NOARGS          { int sys_readlink(const char *path, char *buf, \
+                           int count); }
+59     STD             { int osf1_sys_execve(const char *path, \
+                           char * const *argp, char * const *envp); }
 60     NOARGS          { int sys_umask(int newmask); }
-61     NOARGS          { int sys_chroot(char *path); }
+61     NOARGS          { int sys_chroot(const char *path); }
 62     UNIMPL          old fstat
 63     NOARGS          { int sys_getpgrp(void); }
 64     NOARGS          { int compat_43_sys_getpagesize(void); }
 65     UNIMPL          mremap
 66     NOARGS          { int sys_vfork(void); }
-67     STD             { int osf1_sys_stat(char *path, struct osf1_stat *ub); }
-68     STD             { int osf1_sys_lstat(char *path, \
+67     STD             { int osf1_sys_stat(const char *path, \
+                           struct osf1_stat *ub); }
+68     STD             { int osf1_sys_lstat(const char *path, \
                            struct osf1_stat *ub); }
 69     UNIMPL          sbrk
 70     UNIMPL          sstk
@@ -142,14 +149,14 @@
 86     UNIMPL          getitimer
 87     NOARGS          { int compat_43_sys_gethostname(char *hostname, \
                            u_int len); }
-88     NOARGS          { int compat_43_sys_sethostname(char *hostname, \
+88     NOARGS          { int compat_43_sys_sethostname(const char *hostname, \
                            u_int len); }
 89     NOARGS          { int compat_43_sys_getdtablesize(void); }
 90     NOARGS          { int sys_dup2(u_int from, u_int to); }
 91     STD             { int osf1_sys_fstat(int fd, void *sb); }
 92     STD             { int osf1_sys_fcntl(int fd, int cmd, void *arg); }
 93     NOARGS          { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
-                            fd_set *ex, struct timeval *tv); }
+                           fd_set *ex, struct timeval *tv); }
 94     NOARGS          { int sys_poll(struct pollfd *fds, u_int nfds, \
                            int timeout); }
 95     NOARGS          { int sys_fsync(int fd); }
@@ -167,7 +174,7 @@
                            struct sigcontext *sigcntxp); }
 104    NOARGS          { int sys_bind(int s, caddr_t name, int namelen); }
 105    NOARGS          { int sys_setsockopt(int s, int level, int name, \
-                            caddr_t val, int valsize); }
+                           caddr_t val, int valsize); }
 106    UNIMPL          listen
 107    UNIMPL          plock
 108    UNIMPL          old sigvec
@@ -184,12 +191,12 @@
 ; XXX
 117    STD             { int osf1_sys_getrusage(void); }
 118    NOARGS          { int sys_getsockopt(int s, int level, int name, \
-                            caddr_t val, int *avalsize); }
+                           caddr_t val, int *avalsize); }
 119    UNIMPL
-120    STD             { int osf1_sys_readv(int fd, struct osf1_iovec *iovp, \
-                           u_int iovcnt); }
-121    STD             { int osf1_sys_writev(int fd, struct osf1_iovec *iovp, \
-                           u_int iovcnt); }
+120    STD             { int osf1_sys_readv(int fd, \
+                           struct osf1_iovec *iovp, u_int iovcnt); }
+121    STD             { int osf1_sys_writev(int fd, \
+                           struct osf1_iovec *iovp, u_int iovcnt); }
 122    NOARGS          { int sys_settimeofday(struct timeval *tv, \
                            struct timezone *tzp); }
 123    NOARGS          { int sys___posix_fchown(int fd, int uid, int gid); }
@@ -201,7 +208,8 @@
 127    UNIMPL          setregid
 128    NOARGS          { int sys___posix_rename(const char *from, \
                            const char *to); }
-129    STD             { int osf1_sys_truncate(char *path, off_t length); }
+129    STD             { int osf1_sys_truncate(const char *path, \
+                           off_t length); }
 130    STD             { int osf1_sys_ftruncate(int fd, off_t length); }
 131    UNIMPL          flock
 132    STD             { int osf1_sys_setgid(gid_t gid); }
@@ -209,9 +217,10 @@
                            int flags, struct sockaddr *to, int tolen); }
 134    NOARGS          { int sys_shutdown(int s, int how); }
 135    UNIMPL          socketpair
-136    NOARGS          { int sys_mkdir(char *path, int mode); }
-137    NOARGS          { int sys_rmdir(char *path); }
-138    NOARGS          { int sys_utimes(char *path, struct timeval *tptr); }
+136    NOARGS          { int sys_mkdir(const char *path, int mode); }
+137    NOARGS          { int sys_rmdir(const char *path); }
+138    NOARGS          { int sys_utimes(const char *path, \
+                           struct timeval *tptr); }
 139    OBSOL           4.2 sigreturn
 140    UNIMPL          adjtime
 141    UNIMPL          old getpeername
@@ -238,9 +247,9 @@
 158    UNIMPL          nfssvc
 159    NOARGS          { int compat_43_sys_getdirentries(int fd, char *buf, \
                            u_int count, long *basep); }
-160     STD             { int osf1_sys_statfs(char *path, \
+160    STD             { int osf1_sys_statfs(const char *path, \
                            struct osf1_statfs *buf, int len); }
-161     STD             { int osf1_sys_fstatfs(int fd, \
+161    STD             { int osf1_sys_fstatfs(int fd, \
                            struct osf1_statfs *buf, int len); }
 162    UNIMPL
 163    UNIMPL          async_daemon
@@ -288,7 +297,7 @@
 205    UNIMPL          semget
 206    UNIMPL          semop
 207    UNIMPL          uname
-208    NOARGS          { int sys___posix_lchown(char *path, int uid, \
+208    NOARGS          { int sys___posix_lchown(const char *path, int uid, \
                            int gid); }
 209    UNIMPL          shmat
 210    UNIMPL          shmctl
@@ -316,7 +325,8 @@
 232    UNIMPL
 233    UNIMPL          getpgid
 234    NOARGS          { pid_t sys_getsid(pid_t pid); }
-235    STD             { int osf1_sys_sigaltstack(struct osf1_sigaltstack *nss, \
+235    STD             { int osf1_sys_sigaltstack( \
+                           struct osf1_sigaltstack *nss, \
                            struct osf1_sigaltstack *oss); }
 236    UNIMPL          waitid
 237    UNIMPL          priocntlset



Home | Main Index | Thread Index | Old Index