diff options
author | 2016-05-18 20:40:20 +0000 | |
---|---|---|
committer | 2016-05-18 20:40:20 +0000 | |
commit | a4b6a3a534274024f52020b9e473832f8ee09c65 (patch) | |
tree | 4e0cc3e7bccb43340589bd3e7298aaf8497ad020 | |
parent | Save and restore 'gbr' register when enter/leaving the kernel, and use (diff) | |
download | wireguard-openbsd-a4b6a3a534274024f52020b9e473832f8ee09c65.tar.xz wireguard-openbsd-a4b6a3a534274024f52020b9e473832f8ee09c65.zip |
fix types for mmap wrappers. A few whitespace cleanups snuck in.
ok guenther
-rw-r--r-- | libexec/ld.so/amd64/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/arm/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/hppa/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/i386/archdep.h | 12 | ||||
-rw-r--r-- | libexec/ld.so/sh/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/sparc/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/sparc64/archdep.h | 7 | ||||
-rw-r--r-- | libexec/ld.so/tib.c | 2 |
8 files changed, 24 insertions, 32 deletions
diff --git a/libexec/ld.so/amd64/archdep.h b/libexec/ld.so/amd64/archdep.h index 96b8e3d8642..d5c4eba610c 100644 --- a/libexec/ld.so/amd64/archdep.h +++ b/libexec/ld.so/amd64/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.7 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.8 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -45,11 +45,10 @@ #include "util.h" static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } diff --git a/libexec/ld.so/arm/archdep.h b/libexec/ld.so/arm/archdep.h index e805dcd19c0..2112b32c7fc 100644 --- a/libexec/ld.so/arm/archdep.h +++ b/libexec/ld.so/arm/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.6 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.7 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -49,11 +49,10 @@ */ static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } static inline void diff --git a/libexec/ld.so/hppa/archdep.h b/libexec/ld.so/hppa/archdep.h index 700d1ce8226..9bcc6e02826 100644 --- a/libexec/ld.so/hppa/archdep.h +++ b/libexec/ld.so/hppa/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.10 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.11 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -47,11 +47,10 @@ #include "util.h" static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } diff --git a/libexec/ld.so/i386/archdep.h b/libexec/ld.so/i386/archdep.h index 5bcea320c22..e2cf5fb8de2 100644 --- a/libexec/ld.so/i386/archdep.h +++ b/libexec/ld.so/i386/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.14 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.15 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -45,19 +45,17 @@ #include "util.h" static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } static inline void * -_dl_mquery(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mquery(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mquery, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } diff --git a/libexec/ld.so/sh/archdep.h b/libexec/ld.so/sh/archdep.h index d6f201f6cbe..b1d61b1c75f 100644 --- a/libexec/ld.so/sh/archdep.h +++ b/libexec/ld.so/sh/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.5 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.6 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -51,11 +51,10 @@ */ static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)(long)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } static inline void diff --git a/libexec/ld.so/sparc/archdep.h b/libexec/ld.so/sparc/archdep.h index 214d6b25b97..c78345d13f3 100644 --- a/libexec/ld.so/sparc/archdep.h +++ b/libexec/ld.so/sparc/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.12 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.13 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -46,11 +46,10 @@ #include "util.h" static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } static inline void diff --git a/libexec/ld.so/sparc64/archdep.h b/libexec/ld.so/sparc64/archdep.h index ce7908625d4..a27bd147a3c 100644 --- a/libexec/ld.so/sparc64/archdep.h +++ b/libexec/ld.so/sparc64/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.20 2015/12/06 23:36:12 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.21 2016/05/18 20:40:20 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -46,11 +46,10 @@ #include "util.h" static inline void * -_dl_mmap(void *addr, unsigned int len, unsigned int prot, - unsigned int flags, int fd, off_t offset) +_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + flags, fd, 0, offset)); } static inline void diff --git a/libexec/ld.so/tib.c b/libexec/ld.so/tib.c index ed190ea90ad..b30882dac31 100644 --- a/libexec/ld.so/tib.c +++ b/libexec/ld.so/tib.c @@ -79,7 +79,7 @@ _dl_allocate_tib(size_t extra) _dl_memset(addr + obj->tls_fsize, 0, obj->tls_msize - obj->tls_fsize); - if (obj->tls_static_data != NULL) + if (obj->tls_static_data != NULL) _dl_bcopy(obj->tls_static_data, addr, obj->tls_fsize); DL_DEB(("\t%s has index %u addr %p msize %u fsize %u\n", |