Added missing caddr_t --> void * conversions for sys/mman.h functions.
Submitted by: bde
This commit is contained in:
parent
c34b37c88a
commit
de17eb59b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32166
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)stdio.h 8.5 (Berkeley) 4/29/95
|
||||
* $Id: stdio.h,v 1.12 1997/03/11 11:16:27 peter Exp $
|
||||
* $Id: stdio.h,v 1.13 1997/04/13 15:50:07 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _STDIO_H_
|
||||
@ -292,7 +292,7 @@ _BSD_OFF_T_ lseek __P((int, _BSD_OFF_T_, int));
|
||||
#endif
|
||||
#ifndef _MMAP_DECLARED
|
||||
#define _MMAP_DECLARED
|
||||
char *mmap __P((char *, size_t, int, int, int, _BSD_OFF_T_));
|
||||
char *mmap __P((void *, size_t, int, int, int, _BSD_OFF_T_));
|
||||
#endif
|
||||
#ifndef _TRUNCATE_DECLARED
|
||||
#define _TRUNCATE_DECLARED
|
||||
|
@ -1,4 +1,4 @@
|
||||
$Id: syscalls.master,v 1.43 1997/09/14 16:51:14 phk Exp $
|
||||
$Id: syscalls.master,v 1.44 1997/10/26 20:27:51 phk Exp $
|
||||
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||
;
|
||||
; System call name/number master file.
|
||||
@ -118,18 +118,18 @@
|
||||
int arg); } getkerninfo getkerninfo_args int
|
||||
64 COMPAT BSD { int getpagesize(void); } \
|
||||
getpagesize getpagesize_args int
|
||||
65 STD BSD { int msync(caddr_t addr, size_t len, int flags); }
|
||||
65 STD BSD { int msync(void *addr, size_t len, int flags); }
|
||||
66 STD BSD { int vfork(void); }
|
||||
67 OBSOL NOHIDE vread
|
||||
68 OBSOL NOHIDE vwrite
|
||||
69 STD BSD { int sbrk(int incr); }
|
||||
70 STD BSD { int sstk(int incr); }
|
||||
71 COMPAT BSD { int mmap(caddr_t addr, int len, int prot, \
|
||||
71 COMPAT BSD { int mmap(void *addr, int len, int prot, \
|
||||
int flags, int fd, long pos); }
|
||||
72 STD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
|
||||
73 STD BSD { int munmap(caddr_t addr, size_t len); }
|
||||
74 STD BSD { int mprotect(caddr_t addr, size_t len, int prot); }
|
||||
75 STD BSD { int madvise(caddr_t addr, size_t len, int behav); }
|
||||
73 STD BSD { int munmap(void *addr, size_t len); }
|
||||
74 STD BSD { int mprotect(const void *addr, size_t len, int prot); }
|
||||
75 STD BSD { int madvise(void *addr, size_t len, int behav); }
|
||||
76 OBSOL NOHIDE vhangup
|
||||
77 OBSOL NOHIDE vlimit
|
||||
78 STD BSD { int mincore(caddr_t addr, size_t len, char *vec); }
|
||||
@ -319,8 +319,8 @@
|
||||
__sysctl sysctl_args int
|
||||
; properly, __sysctl should be a NOHIDE, but making an exception
|
||||
; here allows to avoid one in libc/sys/Makefile.inc.
|
||||
203 STD BSD { int mlock(caddr_t addr, size_t len); }
|
||||
204 STD BSD { int munlock(caddr_t addr, size_t len); }
|
||||
203 STD BSD { int mlock(const void *addr, size_t len); }
|
||||
204 STD BSD { int munlock(const void *addr, size_t len); }
|
||||
; big problem here. Lite2, NetBSD and OpenBSD have syscall 205 as undelete()
|
||||
; we should move utrace before it's too late.
|
||||
205 STD BSD { int utrace(caddr_t addr, size_t len); }
|
||||
@ -391,7 +391,7 @@
|
||||
248 UNIMPL NOHIDE nosys
|
||||
249 UNIMPL NOHIDE nosys
|
||||
; syscall numbers initially used in OpenBSD
|
||||
250 STD BSD { int minherit(caddr_t addr, size_t len, int inherit); }
|
||||
250 STD BSD { int minherit(void *addr, size_t len, int inherit); }
|
||||
251 STD BSD { int rfork(int flags); }
|
||||
252 STD BSD { int openbsd_poll(struct pollfd *fds, u_int nfds, \
|
||||
int timeout); }
|
||||
|
Loading…
Reference in New Issue
Block a user