summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2014-09-01 05:09:52 +0000
committerdoug <doug@openbsd.org>2014-09-01 05:09:52 +0000
commite6ff12da831683ab6d936830516d971cd66f55eb (patch)
treeafcca0e8c0b190cc14457de608850fd577d433e8 /sys
parentAdd implementations of atomic_{inc,dec,add,sub}_{int,long}() and (diff)
downloadwireguard-openbsd-e6ff12da831683ab6d936830516d971cd66f55eb.tar.xz
wireguard-openbsd-e6ff12da831683ab6d936830516d971cd66f55eb.zip
Sync readlink(2) with IEEE Std 1003.1-2008.
discussion, help and ok guenther@
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/syscalls.master6
-rw-r--r--sys/kern/syscalls.master6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/linux/syscalls.master b/sys/compat/linux/syscalls.master
index c46067207f1..a93e2493146 100644
--- a/sys/compat/linux/syscalls.master
+++ b/sys/compat/linux/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.75 2013/11/03 13:52:44 pirofti Exp $
+ $OpenBSD: syscalls.master,v 1.76 2014/09/01 05:09:53 doug Exp $
; $NetBSD: syscalls.master,v 1.15 1995/12/18 14:35:10 fvdl Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -156,8 +156,8 @@
83 STD { int linux_sys_symlink(char *path, char *to); }
84 NOARGS { int linux_sys_lstat(char *path, \
struct linux_stat *up); } olstat
-85 STD { int linux_sys_readlink(char *name, char *buf, \
- int count); }
+85 STD { ssize_t linux_sys_readlink(char *name, \
+ char *buf, int count); }
86 UNIMPL linux_sys_uselib
87 STD { int linux_sys_swapon(char *name); }
88 NOARGS { int sys_reboot(int opt); }
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 512d2032a96..82d49776caa 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
-; $OpenBSD: syscalls.master,v 1.144 2014/08/31 01:42:36 guenther Exp $
+; $OpenBSD: syscalls.master,v 1.145 2014/09/01 05:09:53 doug Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -141,8 +141,8 @@
56 STD { int sys_revoke(const char *path); }
57 STD { int sys_symlink(const char *path, \
const char *link); }
-58 STD { int sys_readlink(const char *path, char *buf, \
- size_t count); }
+58 STD { ssize_t sys_readlink(const char *path, \
+ char *buf, size_t count); }
59 STD { int sys_execve(const char *path, \
char * const *argp, char * const *envp); }
60 STD { mode_t sys_umask(mode_t newmask); }