From 1364674546202e2e4fe5139eb0463968b19d2f91 Mon Sep 17 00:00:00 2001
From: Eduardo Cavazos <wayo.cavazos@gmail.com>
Date: Sun, 4 Nov 2007 13:42:18 -0600
Subject: [PATCH] Added execv, and some constants used with waitpid to unix
 vocab

---
 extra/unix/unix.factor | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/extra/unix/unix.factor b/extra/unix/unix.factor
index ca4b569587..0854754dcb 100644
--- a/extra/unix/unix.factor
+++ b/extra/unix/unix.factor
@@ -107,6 +107,7 @@ FUNCTION: void close ( int fd ) ;
 FUNCTION: int connect ( int s, void* name, socklen_t namelen ) ;
 FUNCTION: int dup2 ( int oldd, int newd ) ;
 ! FUNCTION: int dup ( int oldd ) ;
+FUNCTION: int execv ( char* path, char** argv ) ;
 FUNCTION: int execvp ( char* path, char** argv ) ;
 FUNCTION: int execve ( char* path, char** argv, char** envp ) ;
 FUNCTION: int fchdir ( int fd ) ;
@@ -164,6 +165,18 @@ FUNCTION: int system ( char* command ) ;
 FUNCTION: time_t time ( time_t* t ) ;
 FUNCTION: int unlink ( char* path ) ;
 FUNCTION: int utimes ( char* path, timeval[2] times ) ;
+
+! Flags for waitpid
+
+: WNOHANG   1 ;
+: WUNTRACED 2 ;
+
+: WSTOPPED   2 ;
+: WEXITED    4 ;
+: WCONTINUED 8 ;
+: WNOWAIT    HEX: 1000000 ;
+
 FUNCTION: pid_t wait ( int* status ) ;
 FUNCTION: pid_t waitpid ( pid_t wpid, int* status, int options ) ;
+
 FUNCTION: ssize_t write ( int fd, void* buf, size_t nbytes ) ;