Displaying 13 results from an estimated 13 matches for "jrand48".
Did you mean:
lrand48
2011 Jan 28
2
klibc 1.5.21-1 and mksh
.../changelog 2011-01-25 22:47:03.000000000 +0000
+++ klibc-1.5.21/debian/changelog 2011-01-28 12:59:52.000000000 +0000
@@ -1,3 +1,12 @@
+klibc (1.5.21-1+tg.1) unstable; urgency=low
+
+ * debian/patches/add-{arc4random,mkstemp}: add a minimalistic
+ implementation of the arc4random() API on top of jrand48(3)
+ to have a self-seeding PRNG; add simple mkstemp(3) implemen-
+ tation using it. (Closes: #516774)
+
+ -- Thorsten Glaser <tg at mirbsd.de> Fri, 28 Jan 2011 12:59:06 +0000
+
klibc (1.5.21-1) unstable; urgency=low
* New upstream release (i386 signal(), make 3.82, cleanups)
dif...
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
...h>
+#include <sys/time.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int
+mkstemp(char *template)
+{
+ int i;
+ char *cp, *sp;
+ union {
+ unsigned short seed[3]; /* for jrand48 */
+ uint64_t stuffing; /* for seeding */
+ } u;
+ struct stat sbuf;
+ struct timeval tv;
+
+ /* time ensures basic distribution */
+ gettimeofday(&tv, NULL);
+ u.stuffing = tv.tv_sec;
+ u.stuffing *= 1000000;
+ /* stack is randomised on all Linux platforms */
+ u.stuffing ^= (uint64_t)(ptrdi...
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
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
...o \
getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \
- syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \
+ syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \
time.o utime.o lseek.o nice.o getpriority.o \
qsort.o bsearch.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
diff --git a/usr/klibc/getpt.c b/usr/klibc/getpt.c
deleted file mode 100644
index 8d2a536..0000000
--- a/usr/klibc/getpt.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * getpt.c
- *
- * GNU extension to the standard Unix98 pty suite
- */
-
-#include <stdio.h>...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...clearenv.o nullenv.o \
getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \
- syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \
+ syslog.o closelog.o pty.o isatty.o reboot.o \
time.o utime.o lseek.o nice.o getpriority.o \
qsort.o bsearch.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
diff --git a/usr/klibc/posix_openpt.c b/usr/klibc/posix_openpt.c
deleted file mode 100644
index 794ca46..0000000
--- a/usr/klibc/posix_openpt.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * posix_openpt.c
- */
-
-#include <stdio.h>
-#include <stdlib.h>...
2016 Jan 06
0
[klibc:master] Add accept4(), handle fallback from accept () to accept4()
...(int, struct sockaddr *, socklen_t *);
__extern int socketpair(int, int, int, int *);
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 5521038..f797166 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -58,7 +58,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \
inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \
- send.o recv.o \
+ accept.o send.o recv.o \
access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \
lchown.o link.o r...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...seteuid.o setegid.o \
- getenv.o setenv.o putenv.o __put_env.o unsetenv.o \
- clearenv.o nullenv.o \
- getopt.o getopt_long.o readdir.o remove.o \
- syslog.o closelog.o pty.o getpt.o isatty.o reboot.o \
- time.o utime.o llseek.o nice.o getpriority.o \
- qsort.o bsearch.o \
- lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
- inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \
- inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \
- send.o recv.o \
- ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \
- ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \
- ctype/i...
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...getopt_long.o readdir.o scandir.o alphasort.o remove.o \
syslog.o closelog.o pty.o isatty.o reboot.o \
- time.o lseek.o nice.o getpriority.o \
+ gettimeofday.o settimeofday.o time.o \
+ lseek.o nice.o getpriority.o \
futimesat.o utime.o utimes.o \
qsort.o bsearch.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index ad8eefa4..d46bb548 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -201,11 +201,12 @@ int setitimer(int, const struct itimerval *, struct itimerval *);
/*
* Time-rela...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...trunk/knl/linux/usr//include -I/root/gen/trunk/knl/linux/usr//arch/powerpc/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/lrand48.o usr/klibc/lrand48.c
ppc-linux-gcc -Wp,-MD,usr/klibc/.jrand48.o.d -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include -I/root/ofs/trunk/...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote:
> >
> Find attached two patches I have in order to build klibc 2.0.2
> against kernel 3.8.13
> We had to introduce those patches when going from kernel 3.6 to kernel 3.7
> Hope it helps.
>
those patches are wrong and again very brittle.
just use the way it is described in `make help':
A) cd ~/src/linux
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
..._attribute__ ((__nonnull__ (1)));
extern long int lrand48 (void) __attribute__ ((__nothrow__));
extern long int nrand48 (unsigned short int __xsubi[3])
__attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern long int mrand48 (void) __attribute__ ((__nothrow__));
extern long int jrand48 (unsigned short int __xsubi[3])
__attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
extern unsigned short int *seed48 (unsigned short int __seed16v[3])
__attribute__ ((__nothrow__)) __attribute__ ((__nonn...
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: