summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/windows-NT/waitpid.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-19 09:21:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-19 09:21:45 +0000
commitd2986da510e6c7e4505c75a4b3fbb1940b2ad08d (patch)
treeebc252891ef89551a9d2cde9e164ba9d3c3e64ef /gnu/usr.bin/cvs/windows-NT/waitpid.c
parent2b1f6f285527e332944cd8a2802f26984978c7a9 (diff)
raw import of cvs-1.6
Diffstat (limited to 'gnu/usr.bin/cvs/windows-NT/waitpid.c')
-rw-r--r--gnu/usr.bin/cvs/windows-NT/waitpid.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/windows-NT/waitpid.c b/gnu/usr.bin/cvs/windows-NT/waitpid.c
new file mode 100644
index 00000000000..9d7932c2a71
--- /dev/null
+++ b/gnu/usr.bin/cvs/windows-NT/waitpid.c
@@ -0,0 +1,22 @@
+/* waitpid.c --- waiting for process termination, under Windows NT
+ Jim Blandy <jimb@cyclic.com> --- August 1995 */
+
+#include <assert.h>
+#include <stdio.h>
+#include <process.h>
+#include <errno.h>
+
+#include "config.h"
+
+/* Wait for the process PID to exit. Put the return status in *statusp.
+ OPTIONS is not supported yet under Windows NT. We hope it's always zero. */
+pid_t waitpid (pid, statusp, options)
+ pid_t pid;
+ int *statusp;
+ int options;
+{
+ /* We don't know how to deal with any options yet. */
+ assert (options == 0);
+
+ return _cwait (statusp, pid, _WAIT_CHILD);
+}