-int mprotect __P((const void *, size_t, int));
-int msync __P((void *, size_t, int));
-int munlock __P((const void *, size_t));
-int munmap __P((void *, size_t));
-int shm_open __P((const char *, int, ...));
-int shm_unlink __P((const char *));
-int posix_madvise __P((void *, size_t, int));
-#ifndef _POSIX_SOURCE
-#ifdef __APPLE_API_PRIVATE
-int load_shared_file __P((char *, caddr_t, u_long,
- caddr_t *, int, sf_mapping_t *, int *));
-int reset_shared_file __P((caddr_t *, int, sf_mapping_t *));
-int new_system_shared_regions __P((void));
-#endif /* __APPLE_API_PRIVATE */
-int madvise __P((void *, size_t, int));
-int mincore __P((const void *, size_t, char *));
-int minherit __P((void *, size_t, int));
+/* [MPR] */
+int mprotect(void *, size_t, int) __DARWIN_ALIAS(mprotect);
+/* [MF|SIO] */
+int msync(void *, size_t, int) __DARWIN_ALIAS_C(msync);
+/* [MR] */
+int munlock(const void *, size_t);
+/* [MC3]*/
+int munmap(void *, size_t) __DARWIN_ALIAS(munmap);
+/* [SHM] */
+int shm_open(const char *, int, ...);
+int shm_unlink(const char *);
+/* [ADV] */
+int posix_madvise(void *, size_t, int);
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+int madvise(void *, size_t, int);
+int mincore(const void *, size_t, char *);
+int minherit(void *, size_t, int);