Introduction
Introduction Statistics Contact Development Disclaimer Help
tautolib, p9rand, p9execl - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 3b5a5a66acd79151e11fafec3cbecde2f6924dcd
parent 4d0927f5969c6f68cf13703cd9bb9d2ce5ea770e
Author: rsc <devnull@localhost>
Date: Tue, 4 Jan 2005 21:17:33 +0000
autolib, p9rand, p9execl
Diffstat:
M include/libc.h | 33 ++++++++++++++++++-----------…
1 file changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/include/libc.h b/include/libc.h
t@@ -7,7 +7,7 @@
#define _LIBC_H_ 1
#if defined(__cplusplus)
extern "C" {
-#endif …
+#endif
/*
* Begin usual libc.h
t@@ -234,23 +234,27 @@ extern int quoterunestrfmt(Fmt*);
extern int needsrcquote(int);
/*
- * random number (also in <stdlib.h>)
+ * random number
*/
-#ifndef NOPLAN9DEFINES
-#define rand p9rand
-#define srand p9srand
-#define lrand p9lrand
-#endif
+extern void p9srand(long);
+extern int p9rand(void);
-extern void srand(long);
-extern int rand(void);
-extern int nrand(int);
-extern long lrand(void);
-extern long lnrand(long);
-extern double frand(void);
+extern int p9nrand(int);
+extern long p9lrand(void);
+extern long p9lnrand(long);
+extern double p9frand(void);
extern ulong truerand(void); /* uses /dev…
extern ulong ntruerand(ulong); /* uses /dev/rando…
+#ifndef NOPLAN9DEFINES
+#define srand p9srand
+#define rand p9rand
+#define nrand p9nrand
+#define lrand p9lrand
+#define lnrand p9lnrand
+#define frand p9frand
+#endif
+
/*
* math
*/
t@@ -708,7 +712,7 @@ extern int p9create(char*, int, ulong);
extern int p9dup(int, int);
extern int errstr(char*, uint);
extern int p9exec(char*, char*[]);
-/* extern int execl(char*, ...); <unistd.h> */
+extern int p9execl(char*, ...);
/* extern int p9fork(void); */
extern int p9rfork(int);
/* not implemented
t@@ -766,6 +770,7 @@ extern ulong rendezvous(ulong, ulong);
#define alarm p9alarm
#define dup p9dup
#define exec p9exec
+#define execl p9execl
#define seek p9seek
#define sleep p9sleep
#define wait p9wait
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.