Ticket #2015: getpagesize.patch
File getpagesize.patch, 2.2 KB (added by , 17 years ago) |
---|
-
src/system/libroot/posix/unistd/getpagesize.c
1 /* 2 ** Copyright 2008, James Woodcock. All rights reserved. 3 ** Distributed under the terms of the MIT License. 4 */ 5 6 #include <unistd.h> 7 #include <kernel/OS.h> 8 9 int 10 getpagesize(void) 11 { 12 return B_PAGE_SIZE; 13 } -
src/system/libroot/posix/unistd/Jamfile
16 16 fcntl.c 17 17 fork.c 18 18 getlogin.c 19 getpagesize.c 19 20 hostname.cpp 20 21 ioctl.c 21 22 link.c -
src/bin/gdb/libiberty/Jamfile
58 58 # me, but some of those should be provided by Haiku. 59 59 basename.c 60 60 clock.c 61 getpagesize.c62 61 index.c 63 62 insque.c 64 63 mempcpy.c -
src/bin/diffutils/config.h
36 36 # define DIR_TO_FD(Dir_p) -1 37 37 #endif 38 38 39 #define getpagesize() 409640 41 39 /* Define if there is a member named d_ino in the struct describing directory 42 40 headers. */ 43 41 #define D_INO_IN_DIRENT 1 … … 422 420 /* #undef HAVE_GETMNTINFO */ 423 421 424 422 /* Define to 1 if you have the `getpagesize' function. */ 425 /* #undef HAVE_GETPAGESIZE */ 423 #define HAVE_GETPAGESIZE 1 426 424 427 425 /* Define to 1 if you have the `getpass' function. */ 428 426 /* #undef HAVE_GETPASS */ -
headers/posix/unistd.h
113 113 114 114 extern int mknod(const char *name, mode_t mode, dev_t dev); 115 115 116 extern int getpagesize(void); 116 117 extern int getdtablesize(void); 117 118 extern long sysconf(int name); 118 119 extern long fpathconf(int fd, int name);