search for: srand48

Displaying 20 results from an estimated 65 matches for "srand48".

Did you mean: lrand48
2020 Jun 18
1
[PATCH] Kbuild for klibc and nfsmount: fix multiple definitions
...:(.sbss+0x4): first defined here ppc-linux-ld: usr/klibc/mrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/mrand48.c:8: multiple definition of `__rand48_seed'; usr/klibc/lrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/lrand48.c:8: first defined here ppc-linux-ld: usr/klibc/srand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/srand48.c:8: multiple definition of `__rand48_seed'; usr/klibc/lrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/lrand48.c:8: first defined here ppc-linux-ld: usr/klibc/seed48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/seed4...
2004 Oct 19
0
[LLVMdev] How to solve missing srand48/lrand48/drand48?
Please, take a look on the discussion from Reid and Chris: http://mail.cs.uiuc.edu/pipermail/llvmdev/2004-September/002243.html >From: Morten Ofstad <morten at hue.no> >Date: Tue, 19 Oct 2004 14:40:17 +0200 > >These calls are in ExternalCalls.cpp, they are platform dependent calls, so >maybe llvm should consider including it's own implementation of a random >number
2004 Oct 19
0
[LLVMdev] How to solve missing srand48/lrand48/drand48?
Morten, have a look at the http://mail.cs.uiuc.edu/pipermail/llvmdev/2004-September/002235.html thread... On Oct 19, 2004, at 2:40 PM, Morten Ofstad wrote: > These calls are in ExternalCalls.cpp, they are platform dependent > calls, so maybe llvm should consider including it's own implementation > of a random number generator? For the time being I just replaced with > calls
2004 Oct 19
3
[LLVMdev] How to solve missing srand48/lrand48/drand48?
These calls are in ExternalCalls.cpp, they are platform dependent calls, so maybe llvm should consider including it's own implementation of a random number generator? For the time being I just replaced with calls to srand and rand like Paolo also did, but it needs to be fixed... m.
2004 Oct 27
0
[LLVMdev] Re: Patch for missing rand48 on win32
Morten Ofstad wrote: >> Hi, >> >> There's no HAVE_RAND48 symbol provided by autoconf. You'll have to >> add the appropriate check to autoconf/configure.ac before we can take >> this patch. I installed autoconf with cygwin now and I think I've managed to do this right now -- there are some strange problems with running the AutoRegen.sh script, so I
2004 Oct 26
2
[LLVMdev] Re: Patch for missing rand48 on win32
> Hi, > > There's no HAVE_RAND48 symbol provided by autoconf. You'll have to add > the appropriate check to autoconf/configure.ac before we can take this > patch. Sorry I forgot to mention I didn't make any changes to the configure script. The problem is that I can't test these things since I'm not on a Unix platform, and I'm not even using the
2004 Sep 29
2
[LLVMdev] patches and problem...
...Sep 2004, Paolo Invernizzi wrote: > > >>The next major problem is that VC has only >> >>int rand(void) >>void srand( int seed ) >> >>So I donno how to compile the >>ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the >>drand48 srand48 lrand48 etc series... >>For now I hacked them, like >> >>double drand48(void) { return (float) rand() / (float) RAND_MAX > > > For these, just ifdef them out. If the platform doesn't support drand48, > there is no reason for the interpreter to do so either... &g...
2015 Apr 29
2
[LLVMdev] Assertion failure (Bug 21609) in DwarfFile.cpp
...5955 - does ToT work > for you? It seems like r235955 might have fixed it. However I'm having build issues with ToT in my environment. Is this the right place to check ToT build status: http://lab.llvm.org:8011/one_line_per_build > > On Tue, Apr 28, 2015 at 7:07 PM, Sandeep Raju <srand48 at gmail.com> wrote: >> >> Hi Folks, >> >> I ran into this assertion failure while compiling a function with a >> large number of arguments: >> >> https://llvm.org/bugs/show_bug.cgi?id=21609 >> >> I have coded up the fix as per David's su...
2004 Sep 28
3
[LLVMdev] patches and problem...
...td:: namespace missing in sort, find, make_pair. Alkis can you please give them an eye when you have time? The next major problem is that VC has only int rand(void) void srand( int seed ) So I donno how to compile the ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the drand48 srand48 lrand48 etc series... For now I hacked them, like double drand48(void) { return (float) rand() / (float) RAND_MAX and so... Is it -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diffs.txt URL: <http://lists.llvm.org/pipermail/llvm-dev/att...
2011 Jan 28
2
klibc 1.5.21-1 and mksh
...:36.000000000 +0000 +@@ -8,6 +8,7 @@ + #include <klibc/extern.h> + #include <klibc/compiler.h> + #include <stddef.h> ++#include <bitsize/stdint.h> + + #include <malloc.h> + +@@ -61,6 +62,11 @@ + __extern unsigned short *seed48(const unsigned short *); + __extern void srand48(long); + ++/* arc4random API emulation on top of jrand48 algorithm */ ++__extern uint32_t arc4random(void); ++__extern void arc4random_stir(void); ++__extern void arc4random_addrandom(unsigned char *, int); ++ + #define RAND_MAX 0x7fffffff + static __inline__ int rand(void) + { +Index: klibc-1.5.2...
2004 Sep 28
0
[LLVMdev] patches and problem...
On Tue, 28 Sep 2004, Paolo Invernizzi wrote: > The next major problem is that VC has only > > int rand(void) > void srand( int seed ) > > So I donno how to compile the > ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the > drand48 srand48 lrand48 etc series... > For now I hacked them, like > > double drand48(void) { return (float) rand() / (float) RAND_MAX For these, just ifdef them out. If the platform doesn't support drand48, there is no reason for the interpreter to do so either... -Chris -- http://llvm.org/ htt...
2004 Sep 29
0
[LLVMdev] patches and problem...
...rote: > >>The next major problem is that VC has only > >> > >>int rand(void) > >>void srand( int seed ) > >> > >>So I donno how to compile the > >>ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the > >>drand48 srand48 lrand48 etc series... > I guess I need a sys::Math::getRandom() function that uses a "good" random > number generator on the given platform. I'll make a note of this and tuck it > away for future implementation. No, LLVM has no need for random numbers. The methods in Inter...
2006 May 10
1
[patch] kinit cmdline handling change
...' || *i == '\t') && !was_space) { if ( cmdv ) @@ -90,12 +96,6 @@ i++; } - for (a = 1; a < argc && v < vmax; a++) { - if ( cmdv ) - cmdv[v] = argv[a]; - v++; - } - if ( cmdv ) cmdv[v] = NULL; @@ -252,11 +252,6 @@ gettimeofday(&now, NULL); srand48(now.tv_usec ^ (now.tv_sec << 24)); - /* Default parameters for anything init-like we execute */ - init_argc = argc; - init_argv = alloca((argc+1)*sizeof(char *)); - memcpy(init_argv, argv, (argc+1)*sizeof(char *)); - if ((fd = open("/dev/console", O_RDWR)) != -1) { dup2(fd, ST...
2020 Jun 17
1
[PATCH] Kbuild for klibc and nfsmount: add -fcommon
...:(.sbss+0x4): first defined here ppc-linux-ld: usr/klibc/mrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/mrand48.c:8: multiple definition of `__rand48_seed'; usr/klibc/lrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/lrand48.c:8: first defined here ppc-linux-ld: usr/klibc/srand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/srand48.c:8: multiple definition of `__rand48_seed'; usr/klibc/lrand48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/lrand48.c:8: first defined here ppc-linux-ld: usr/klibc/seed48.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/seed4...
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...exists as a prototype today. -- Arne. --- syslinux-3.36/com32/lib/Makefile.orig 2007-02-10 21:47:07.000000000 +0100 +++ syslinux-3.36/com32/lib/Makefile 2007-04-12 12:06:07.000000000 +0200 @@ -11,7 +11,7 @@ perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \ sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \ strchr.o strcmp.o strcpy.o strdup.o strerror.o strlen.o \ - strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \ + strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o strnlen.o \ strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \...
2020 Jul 25
2
[kvm-unit-tests PATCH v3 0/4] Update patch set
...ain.c:446 (usr/kinit/ipconfig/main.c:446) >>> usr/kinit/ipconfig/main.o:(ipconfig_main) >>> referenced by main.c:490 (usr/kinit/ipconfig/main.c:490) >>> usr/kinit/ipconfig/main.o:(ipconfig_main) ld.lld: error: undefined symbol: srand48 >>> referenced by main.c:843 (usr/kinit/ipconfig/main.c:843) >>> usr/kinit/ipconfig/main.o:(ipconfig_main) ld.lld: error: undefined symbol: setjmp >>> referenced by main.c:846 (usr/kinit/ipconfig/main.c:846) >>> us...
2015 Apr 29
2
[LLVMdev] Assertion failure (Bug 21609) in DwarfFile.cpp
Hi Folks, I ran into this assertion failure while compiling a function with a large number of arguments: https://llvm.org/bugs/show_bug.cgi?id=21609 I have coded up the fix as per David's suggestion (added a new header field for DIVariable to separate out ArgNo & LineNo). The proposed diff is attached to the bug. However, there are around 175 testcases across clang & llvm that need
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...or getrlimit - found -- Looking for posix_spawn -- Looking for posix_spawn - found -- Looking for pread -- Looking for pread - found -- Looking for rindex -- Looking for rindex - found -- Looking for strchr -- Looking for strchr - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for srand48 -- Looking for srand48 - found -- Looking for lrand48 -- Looking for lrand48 - found -- Looking for drand48 -- Looking for drand48 - found -- Looking for strtoll -- Looking for strtoll - found -- Looking for strtoq -- Looking for strtoq - found -- Looking for strerror -- Looking for strerror - foun...
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
...files changed, 96 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/mkstemp.c diff --git a/usr/include/stdlib.h b/usr/include/stdlib.h index 406f446..4706f71 100644 --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -79,6 +79,8 @@ static __inline__ void srandom(unsigned int __s) srand48(__s); } +__extern int mkstemp(char *); + /* Basic PTY functions. These only work if devpts is mounted! */ __extern int unlockpt(int); diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index af40367..62a3268 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -18,7 +18,7 @@ klib-y := vsnp...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...t; -- Looking for pread > > -- Looking for pread - found > > -- Looking for rindex > > -- Looking for rindex - found > > -- Looking for strchr > > -- Looking for strchr - found > > -- Looking for sbrk > > -- Looking for sbrk - found > > -- Looking for srand48 > > -- Looking for srand48 - found > > -- Looking for lrand48 > > -- Looking for lrand48 - found > > -- Looking for drand48 > > -- Looking for drand48 - found > > -- Looking for strtoll > > -- Looking for strtoll - found > > -- Looking for strtoq >...