Displaying 5 results from an estimated 5 matches for "auxentry".
Did you mean:
addentry
2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
...clude <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 @@ __noreturn __libc_init(uintptr_t * elfd...
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
2015 Nov 05
0
[klibc:master] Inline __arch_libcinit()
...xit.h"
+#if _KLIBC_HAS_ARCHINIT
+# include "klibc/archinit.h"
+#else
+# define __libc_archinit() ((void)0)
+#endif
+
/* This file is included from __static_init.c or __shared_init.c */
#ifndef SHARED
# error "SHARED should be defined to 0 or 1"
@@ -42,7 +48,6 @@ struct auxentry {
};
extern void __libc_init_stdio(void);
-extern void __libc_archinit(void);
unsigned long __auxval[_AUXVAL_MAX];
2014 Apr 09
0
[klibc:master] Move architecture-specific initialization to arch/
....c
+++ b/usr/klibc/libc_init.c
@@ -25,6 +25,7 @@
#include <klibc/compiler.h>
#include <elf.h>
#include <sys/auxv.h>
+#include <klibc/sysconfig.h>
#include "atexit.h"
/* This file is included from __static_init.c or __shared_init.c */
@@ -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 = __auxv...
2020 Jun 18
1
[PATCH] Kbuild for klibc and nfsmount: fix multiple definitions
...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 with mrand48.c, srand48.c */
+exte...