Print this page
remove support for non-ANSI compilation

*** 19,28 **** --- 19,30 ---- * CDDL HEADER END */ /* Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved. */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
*** 219,229 **** /* * Except for old binaries mmap() will return the resultant * address of mapping on success and (caddr_t)-1 on error. */ - #ifdef __STDC__ #if (_POSIX_C_SOURCE > 2) || defined(_XPG4_2) extern void *mmap(void *, size_t, int, int, int, off_t); extern int munmap(void *, size_t); extern int mprotect(void *, size_t, int); extern int msync(void *, size_t, int); --- 221,230 ----
*** 274,311 **** #endif /* mmap failure value */ #define MAP_FAILED ((void *) -1) - #else /* __STDC__ */ - extern caddr_t mmap(); - extern int munmap(); - extern int mmapobj(); - extern int mprotect(); - extern int mincore(); - extern int memcntl(); - extern int msync(); - extern int madvise(); - extern int posix_madvise(); - extern int getpagesizes(); - extern int getpagesizes2(); - extern int mlock(); - extern int mlockall(); - extern int munlock(); - extern int munlockall(); - extern int meminfo(); - extern int shm_open(); - extern int shm_unlink(); - /* transitional large file interface version */ - #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ - !defined(__PRAGMA_REDEFINE_EXTNAME)) - extern caddr_t mmap64(); - #endif /* _LARGEFILE64_SOURCE... */ - #endif /* __STDC__ */ - - #endif /* !_ASM && !_KERNEL */ #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) #if !defined(_ASM) /* --- 275,285 ----
*** 386,396 **** #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) /* definitions for meminfosys syscall */ #define MISYS_MEMINFO 0x0 ! #if !defined(_ASM) && defined(__STDC__) #if defined(_INT64_TYPE) /* private structure for meminfo */ typedef struct meminfo { const uint64_t *mi_inaddr; /* array of input addresses */ --- 360,370 ---- #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) /* definitions for meminfosys syscall */ #define MISYS_MEMINFO 0x0 ! #if !defined(_ASM) #if defined(_INT64_TYPE) /* private structure for meminfo */ typedef struct meminfo { const uint64_t *mi_inaddr; /* array of input addresses */
*** 409,419 **** caddr32_t mi_validity; /* array of bitwise result codes */ int32_t mi_info_count; /* number of pieces of information requested */ } meminfo32_t; #endif /* defined(_SYSCALL32) */ ! #endif /* !defined(_ASM) && defined(__STDC__) */ /* * info_req request type definitions for meminfo * request types starting with MEMINFO_V are used for Virtual addresses * and should not be mixed with MEMINFO_PLGRP which is targeted for Physical --- 383,393 ---- caddr32_t mi_validity; /* array of bitwise result codes */ int32_t mi_info_count; /* number of pieces of information requested */ } meminfo32_t; #endif /* defined(_SYSCALL32) */ ! #endif /* !defined(_ASM) */ /* * info_req request type definitions for meminfo * request types starting with MEMINFO_V are used for Virtual addresses * and should not be mixed with MEMINFO_PLGRP which is targeted for Physical