diff options
-rw-r--r-- | lib/libc/gen/sysctl.3 | 4 | ||||
-rw-r--r-- | lib/libc/gen/sysctl.c | 6 | ||||
-rw-r--r-- | libexec/ld.so/alpha/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/amd64/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/arm/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/hppa/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/i386/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/m68k/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/m88k/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/mips64/syscall.h | 6 | ||||
-rw-r--r-- | libexec/ld.so/powerpc/syscall.h | 6 | ||||
-rw-r--r-- | libexec/ld.so/sh/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/sparc/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/sparc64/syscall.h | 4 | ||||
-rw-r--r-- | libexec/ld.so/util.c | 4 | ||||
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 4 | ||||
-rw-r--r-- | sys/sys/sysctl.h | 4 |
18 files changed, 39 insertions, 39 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 0e057697343..c074df9c0f9 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.3,v 1.223 2013/06/09 13:03:47 tedu Exp $ +.\" $OpenBSD: sysctl.3,v 1.224 2013/06/09 13:10:17 miod Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,7 +37,7 @@ .In sys/param.h .In sys/sysctl.h .Ft int -.Fn sysctl "int *name" "u_int namelen" "void *oldp" "size_t *oldlenp" "void *newp" "size_t newlen" +.Fn sysctl "const int *name" "u_int namelen" "void *oldp" "size_t *oldlenp" "void *newp" "size_t newlen" .Sh DESCRIPTION The .Fn sysctl diff --git a/lib/libc/gen/sysctl.c b/lib/libc/gen/sysctl.c index 941ae1aafd5..b0eea554bcb 100644 --- a/lib/libc/gen/sysctl.c +++ b/lib/libc/gen/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.8 2013/04/15 16:47:14 guenther Exp $ */ +/* $OpenBSD: sysctl.c,v 1.9 2013/06/09 13:10:17 miod Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. @@ -31,10 +31,10 @@ #include <sys/param.h> #include <sys/sysctl.h> -int __sysctl(int *, u_int, void *, size_t *, void *, size_t); +int __sysctl(const int *, u_int, void *, size_t *, void *, size_t); int -sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, +sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { return (__sysctl(name, namelen, oldp, oldlenp, newp, newlen)); diff --git a/libexec/ld.so/alpha/syscall.h b/libexec/ld.so/alpha/syscall.h index 5bd7c5c857c..a510899e777 100644 --- a/libexec/ld.so/alpha/syscall.h +++ b/libexec/ld.so/alpha/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.21 2013/06/01 20:50:36 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.22 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); long _dl__syscall(quad_t, ...); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/amd64/syscall.h b/libexec/ld.so/amd64/syscall.h index a112112c24d..b5996124b7f 100644 --- a/libexec/ld.so/amd64/syscall.h +++ b/libexec/ld.so/amd64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.9 2013/06/01 20:50:36 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.10 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/arm/syscall.h b/libexec/ld.so/arm/syscall.h index e2a6c2675c9..b75681a78b1 100644 --- a/libexec/ld.so/arm/syscall.h +++ b/libexec/ld.so/arm/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.9 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.10 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/hppa/syscall.h b/libexec/ld.so/hppa/syscall.h index d8ae16ee755..b5996124b7f 100644 --- a/libexec/ld.so/hppa/syscall.h +++ b/libexec/ld.so/hppa/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.9 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.10 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/i386/syscall.h b/libexec/ld.so/i386/syscall.h index e05d904708c..f6286866e94 100644 --- a/libexec/ld.so/i386/syscall.h +++ b/libexec/ld.so/i386/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.13 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.14 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/m68k/syscall.h b/libexec/ld.so/m68k/syscall.h index c2b601531ee..3bee85e30c4 100644 --- a/libexec/ld.so/m68k/syscall.h +++ b/libexec/ld.so/m68k/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.4 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.5 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/m88k/syscall.h b/libexec/ld.so/m88k/syscall.h index d3621657541..a3e36731a26 100644 --- a/libexec/ld.so/m88k/syscall.h +++ b/libexec/ld.so/m88k/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.5 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.6 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/mips64/syscall.h b/libexec/ld.so/mips64/syscall.h index f8578f2e1da..afd5fa686d2 100644 --- a/libexec/ld.so/mips64/syscall.h +++ b/libexec/ld.so/mips64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.10 2013/06/01 09:57:58 miod Exp $ */ +/* $OpenBSD: syscall.h,v 1.11 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 1998-2002 Opsycon AB, Sweden. @@ -297,8 +297,8 @@ _dl_sigprocmask(int how, const sigset_t *set, sigset_t *oset) } static inline int -_dl_sysctl(int *name, u_int namelen, void *oldp, size_t *oldplen, void *newp, - size_t newlen) +_dl_sysctl(const int *name, u_int namelen, void *oldp, size_t *oldplen, + void *newp, size_t newlen) { register int status __asm__ ("$2"); diff --git a/libexec/ld.so/powerpc/syscall.h b/libexec/ld.so/powerpc/syscall.h index 2b2456c7fa4..57782f12c94 100644 --- a/libexec/ld.so/powerpc/syscall.h +++ b/libexec/ld.so/powerpc/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.26 2013/06/01 09:57:58 miod Exp $ */ +/* $OpenBSD: syscall.h,v 1.27 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -310,8 +310,8 @@ _dl_sigprocmask(int how, const sigset_t *set, sigset_t *oset) } static inline int -_dl_sysctl(int *name, u_int namelen, void *oldp, size_t *oldplen, void *newp, - size_t newlen) +_dl_sysctl(const int *name, u_int namelen, void *oldp, size_t *oldplen, + void *newp, size_t newlen) { register int status; diff --git a/libexec/ld.so/sh/syscall.h b/libexec/ld.so/sh/syscall.h index ef4b9bd79aa..214bd9fb74d 100644 --- a/libexec/ld.so/sh/syscall.h +++ b/libexec/ld.so/sh/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.7 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.8 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/sparc/syscall.h b/libexec/ld.so/sparc/syscall.h index 49c7b93766e..ee1e79b2d6e 100644 --- a/libexec/ld.so/sparc/syscall.h +++ b/libexec/ld.so/sparc/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.14 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.15 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/sparc64/syscall.h b/libexec/ld.so/sparc64/syscall.h index 1e219dba69e..5c8e0462d0b 100644 --- a/libexec/ld.so/sparc64/syscall.h +++ b/libexec/ld.so/sparc64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.21 2013/06/01 20:50:37 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.22 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -51,7 +51,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char *, int, off_t *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); -int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); +int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); int _dl_gettimeofday(struct timeval *, struct timezone *); int _dl_readlink(const char *, char *, size_t); int _dl_lstat(const char *, struct stat *); diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c index 1c74814134c..fb36517407d 100644 --- a/libexec/ld.so/util.c +++ b/libexec/ld.so/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.25 2013/01/23 19:01:44 miod Exp $ */ +/* $OpenBSD: util.c,v 1.26 2013/06/09 13:10:19 miod Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -132,7 +132,7 @@ _dl_free(void *p) void _dl_randombuf(void *buf, size_t buflen) { - int mib[2] = { CTL_KERN, KERN_ARND }; + const int mib[2] = { CTL_KERN, KERN_ARND }; _dl_sysctl(mib, 2, buf, &buflen, NULL, 0); } diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index d7bbfd4a4ba..9f1a51d8dad 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.235 2013/06/03 16:55:22 guenther Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.236 2013/06/09 13:10:19 miod Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -140,7 +140,7 @@ int sys___sysctl(struct proc *p, void *v, register_t *retval) { struct sys___sysctl_args /* { - syscallarg(int *) name; + syscallarg(const int *) name; syscallarg(u_int) namelen; syscallarg(void *) old; syscallarg(size_t *) oldlenp; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 2c5717d0c48..dfe3597803e 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.132 2013/06/01 16:27:37 tedu Exp $ +; $OpenBSD: syscalls.master,v 1.133 2013/06/09 13:10:19 miod Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -333,7 +333,7 @@ 200 STD { int sys_truncate(const char *path, int pad, \ off_t length); } 201 STD { int sys_ftruncate(int fd, int pad, off_t length); } -202 STD { int sys___sysctl(int *name, u_int namelen, \ +202 STD { int sys___sysctl(const int *name, u_int namelen, \ void *old, size_t *oldlenp, void *new, \ size_t newlen); } 203 STD { int sys_mlock(const void *addr, size_t len); } diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index e62a660f604..5c476973e92 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.h,v 1.135 2013/06/03 16:55:22 guenther Exp $ */ +/* $OpenBSD: sysctl.h,v 1.136 2013/06/09 13:10:19 miod Exp $ */ /* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */ /* @@ -925,7 +925,7 @@ int pipex_sysctl(int *, u_int, void *, size_t *, void *, size_t); #else /* !_KERNEL */ __BEGIN_DECLS -int sysctl(int *, u_int, void *, size_t *, void *, size_t); +int sysctl(const int *, u_int, void *, size_t *, void *, size_t); __END_DECLS #endif /* _KERNEL */ #endif /* !_SYS_SYSCTL_H_ */ |