Displaying 8 results from an estimated 8 matches for "__page_size".
Did you mean:
_page_size
2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
...bc/libc_init.c
@@ -24,6 +24,7 @@
#include <stdint.h>
#include <klibc/compiler.h>
#include <elf.h>
+#include <sys/auxv.h>
#include "atexit.h"
/* This file is included from __static_init.c or __shared_init.c */
@@ -35,12 +36,14 @@ char **environ;
unsigned int __page_size, __page_shift;
struct auxentry {
- uintptr_t type;
- uintptr_t v;
+ unsigned long type;
+ unsigned long v;
};
extern void __init_stdio(void);
+unsigned long __auxval[_AUXVAL_MAX];
+
__noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void))
{
int argc;
@@ -76,20 +79,16 @@ __nor...
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...x) : sysconf(x))
+
+#endif /* _SYS_SYSCONF_H */
diff --git a/usr/include/unistd.h b/usr/include/unistd.h
index f0e19c2..d425df8 100644
--- a/usr/include/unistd.h
+++ b/usr/include/unistd.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(...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...the mount fixes allow thanks to latest dash merge
to run latest 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,...
2014 Jan 25
0
[klibc:master] i386: use the vdso for system calls on i386
...call the vdso here! */
pushl %edx
cmpl $-4095, %eax
jae 1f
diff --git a/usr/klibc/libc_init.c b/usr/klibc/libc_init.c
index 1087f95..1c6180b 100644
--- a/usr/klibc/libc_init.c
+++ b/usr/klibc/libc_init.c
@@ -90,6 +90,15 @@ __noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void))
__page_size = page_size = __auxval[AT_PAGESZ];
+#ifdef __i386__
+ {
+ extern void (*__syscall_entry)(int, ...);
+ if (__auxval[AT_SYSINFO])
+ __syscall_entry = (void (*)(int, ...))
+ __auxval[AT_SYSINFO];
+ }
+#endif
+
#if __GNUC__ >= 4
/* unsigned int is 32 bits on all our architectures */
pa...
2014 Apr 09
0
[klibc:master] Move architecture-specific initialization to arch/
...@ -40,7 +41,8 @@ struct auxentry {
unsigned long v;
};
-extern void __init_stdio(void);
+extern void __libc_init_stdio(void);
+extern void __libc_archinit(void);
unsigned long __auxval[_AUXVAL_MAX];
@@ -90,20 +92,11 @@ __noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void))
__page_size = page_size = __auxval[AT_PAGESZ];
-#ifdef __i386__
- {
- extern void (*__syscall_entry)(int, ...);
- if (__auxval[AT_SYSINFO])
- __syscall_entry = (void (*)(int, ...))
- __auxval[AT_SYSINFO];
- }
-#endif
-
#if __GNUC__ >= 4
/* unsigned int is 32 bits on all our architectures */
pa...
2020 Jun 18
1
[PATCH] Kbuild for klibc and nfsmount: fix multiple definitions
...lt;stddef.h>
#include <stdlib.h>
#include <stdint.h>
+#include <unistd.h>
#include <klibc/compiler.h>
#include <elf.h>
#include <sys/auxv.h>
@@ -39,7 +40,6 @@
# error "SHARED should be defined to 0 or 1"
#endif
-char **environ;
unsigned int __page_size, __page_shift;
struct auxentry {
diff --git a/usr/klibc/lrand48.c b/usr/klibc/lrand48.c
index 7dfcf9200128..a2fc87ae039f 100644
--- a/usr/klibc/lrand48.c
+++ b/usr/klibc/lrand48.c
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <stdint.h>
-unsigned short __rand48_seed[3]; /* Common...
2012 Jan 29
5
[PATCH 0/2 v3] mkstemp() and m68k support
Hi,
after a year, I decided to hack on klibc again. I?ve reworked
both the patch to add mkstemp(), discussing to use AT_RANDOM
as cheap entropy source on IRC (if there will ever be another
entropy consumer, I can quickly write a minimal arc4random()
seeded from it, as it has only 16 octets), capable of making
a working mksh (static and shared) on amd64/xen, and the m68k
support code, leading to
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier
to use, from an application development point of view.
Overview of patches:
1 Command line argument parsing support, from Xen.
2 Weak console handler function.
3 Build system tweaks for application directories.
4 Trailing whitespace cleanup. (because it is very messy)
Patch 4 is likely to be more controversial than