diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-25 07:14:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-25 07:14:54 +0000 |
commit | 17888e45497ed318a8dbaf864146325bcc6410c4 (patch) | |
tree | 1418416d1bbdd80da772745a4a9c20b0716312e4 | |
parent | 505d28c0be6d4278013b38a7753b7cdf3587c727 (diff) |
readlink() 3rd param is size_t; XPG
-rw-r--r-- | include/unistd.h | 4 | ||||
-rw-r--r-- | lib/libc/sys/readlink.2 | 2 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 4 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/unistd.h b/include/unistd.h index d904fe8c68f..49a9d55193e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.19 1998/02/16 09:46:03 deraadt Exp $ */ +/* $OpenBSD: unistd.h,v 1.20 1998/04/25 07:14:50 deraadt Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -145,7 +145,7 @@ int rcmdsh __P((char **, int, const char *, const char *, const char *, char *)); char *re_comp __P((const char *)); int re_exec __P((const char *)); -int readlink __P((const char *, char *, int)); +int readlink __P((const char *, char *, size_t)); int reboot __P((int)); int revoke __P((const char *)); int rfork __P((int opts)); diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2 index b4e2c4d7504..f7b7f8009d1 100644 --- a/lib/libc/sys/readlink.2 +++ b/lib/libc/sys/readlink.2 @@ -42,7 +42,7 @@ .Sh SYNOPSIS .Fd #include <unistd.h> .Ft int -.Fn readlink "const char *path" "char *buf" "int bufsiz" +.Fn readlink "const char *path" "char *buf" "size_t bufsiz" .Sh DESCRIPTION .Fn Readlink places the contents of the symbolic link diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 3814da550af..604f4d650f7 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.23 1998/02/16 21:56:28 millert Exp $ +; $OpenBSD: syscalls.master,v 1.24 1998/04/25 07:14:45 deraadt Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -135,7 +135,7 @@ 57 STD { int sys_symlink(const char *path, \ const char *link); } 58 STD { int sys_readlink(const char *path, char *buf, \ - int count); } + size_t count); } 59 STD { int sys_execve(const char *path, \ char * const *argp, char * const *envp); } 60 STD { int sys_umask(int newmask); } diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 86b52f11e6a..d3d8027e462 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.40 1998/04/06 09:00:58 niklas Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.41 1998/04/25 07:14:47 deraadt Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -1444,7 +1444,7 @@ sys_readlink(p, v, retval) register struct sys_readlink_args /* { syscallarg(char *) path; syscallarg(char *) buf; - syscallarg(int) count; + syscallarg(size_t) count; } */ *uap = v; register struct vnode *vp; struct iovec aiov; |