search for: __getpageshift

Displaying 7 results from an estimated 7 matches for "__getpageshift".

2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...nistd.h @@ -144,13 +144,13 @@ __extern int optind, opterr, optopt; __extern int isatty(int); __extern unsigned int __page_size; -static __inline__ int getpagesize(void) +__must_inline int getpagesize(void) { return __page_size; } __extern unsigned int __page_shift; -static __inline__ int __getpageshift(void) +__must_inline int __getpageshift(void) { return __page_shift; } @@ -162,4 +162,7 @@ __extern int daemon(int, int); #define STDOUT_FILENO 1 #define STDERR_FILENO 2 +/* This #include must be at the end */ +#include <sys/sysconf.h> + #endif /* _UNISTD_H */ diff --git a/usr/kli...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...bare initramfs-tools without busybox itself. :) while compiling with -Wnested i get those usr/klibc/../include/unistd.h: In function 'getpagesize': usr/klibc/../include/unistd.h:145: warning: nested extern declaration of '__page_size' usr/klibc/../include/unistd.h: In function '__getpageshift': usr/klibc/../include/unistd.h:150: warning: nested extern declaration of '__page_shift' they also appear when compiling udev against klibc, as udev sets aboves gcc warning. can you enlight me on what's going on, tried to compile with -E to see if any preprocessor trick was going...
2006 Jun 26
0
[klibc 27/43] m68k support for klibc
...* include/arch/m68k/klibc/archconfig.h + * + * See include/klibc/sysconfig.h for the options that can be set in + * this file. + * + */ + +#ifndef _KLIBC_ARCHCONFIG_H +#define _KLIBC_ARCHCONFIG_H + +/* On m68k, sys_mmap2 uses the current page size as the shift factor */ +#define _KLIBC_MMAP2_SHIFT __getpageshift() + +#endif /* _KLIBC_ARCHCONFIG_H */ diff --git a/usr/include/arch/m68k/klibc/archsetjmp.h b/usr/include/arch/m68k/klibc/archsetjmp.h new file mode 100644 index 0000000..e85c810 --- /dev/null +++ b/usr/include/arch/m68k/klibc/archsetjmp.h @@ -0,0 +1,26 @@ +/* + * usr/include/arch/m68k/klibc/arc...
2012 May 05
3
[PATCH] fix non-RT sigsuspend()
.../archconfig.h b/usr/include/arch/m68k/klibc/archconfig.h index 10ef62e..71b5378 100644 --- a/usr/include/arch/m68k/klibc/archconfig.h +++ b/usr/include/arch/m68k/klibc/archconfig.h @@ -12,4 +12,6 @@ /* On m68k, sys_mmap2 uses the current page size as the shift factor */ #define _KLIBC_MMAP2_SHIFT __getpageshift() +#define _KLIBC_SIGSUSPEND_I_II1 + #endif /* _KLIBC_ARCHCONFIG_H */ diff --git a/usr/include/arch/mips/klibc/archconfig.h b/usr/include/arch/mips/klibc/archconfig.h index ff0afb5..194fee1 100644 --- a/usr/include/arch/mips/klibc/archconfig.h +++ b/usr/include/arch/mips/klibc/archconfig.h @@...
2016 Jan 06
5
[PATCH klibc 0/5] klibc architecture fixes
Here's an assortment of build and run-time fixes for various architectures that we've applied in Debian. Ben. Aurelien Jarno (1): ppc64: fix struct stat Ben Hutchings (2): MIPS: Update archfcntl.h syscalls: Override detection of direct socket syscalls on i386, m68k, s390 Helge Deller (1): Add pread and pwrite 32bit syscall wrappers for parisc Mauricio Faria de Oliveira
2012 May 15
5
[PATCH 0/5] resubmitting pending patches
Hi, I?ve gone through the mailing list archives and hereby want to resubmit my pending patches. Most are independent of each other, except the m68k patch which will only be complete if sigsuspend is also fixed. (It can be applied before that, though.) http://www.zytor.com/pipermail/klibc/2012-January/003173.html [PATCH] fix m68k support Resubmitted here as 0005. While there was a question from
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: