diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 09:21:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 09:21:45 +0000 |
commit | d2986da510e6c7e4505c75a4b3fbb1940b2ad08d (patch) | |
tree | ebc252891ef89551a9d2cde9e164ba9d3c3e64ef /gnu/usr.bin/cvs/windows-NT/waitpid.c | |
parent | 2b1f6f285527e332944cd8a2802f26984978c7a9 (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.c | 22 |
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); +} |