From b84b2516192bf5e665a764428e428e7700b962bd Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Sat, 31 Oct 1998 17:25:04 +0000 Subject: [PATCH] added test for syslogmt(3), vsyslogmt(3) --- lib/libc/tests/gen/syslogmt.c | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 lib/libc/tests/gen/syslogmt.c diff --git a/lib/libc/tests/gen/syslogmt.c b/lib/libc/tests/gen/syslogmt.c new file mode 100755 index 0000000..3140427 --- /dev/null +++ b/lib/libc/tests/gen/syslogmt.c @@ -0,0 +1,66 @@ +#include +#include +#include +#include +#include +#include + +#define MAX_PROC 10 +#define LOOP_COUNT 5 + +#pragma lint -1 +#pragma optimize 78 +#pragma debug 0 + +int lock; + +void +child_process (void) { + int i; + pid_t pid; + + /* wait for everyone else */ + pid = getpid(); + swait(lock); + for (i=0; i