FIB What function from our list of functions has the following description: creates a duplicate of the process with both processes being identical except for the return value from fork? fork FIB What function from our list of functions has the following description: replaces the program code for the current process with program code from a file? execv FIB What function from our list of functions has the following description: open and possibly create a file? open FIB What function from our list of functions has the following description: close a file descriptor (could be a file or socket)? close FIB What function from our list of functions has the following description: read from a file descriptor (could bea file or socket? read FIB What function from our list of functions has the following description: write to a file descriptor (could be a file or socket)? write FIB What function from our list of functions has the following description: remove reference to a given file from a directory (similar to rm, rm is based on this)? unlink FIB What function from our list of functions has the following description: creates a pipe that allows one-way communication between two processes? pipe FIB What function from our list of functions has the following description: creates two pipes to allow two-way communictaion between processes? socketpair FIB What function from our list of functions has the following description: create a file descriptor for a socket? socket FIB What function from our list of functions has the following description: returns address of a given socket? getsockname FIB What function from our list of functions has the following description: bind a socket to a specific name (either a named socket in the file system, or a port)? bind FIB What function from our list of functions has the following description: set a socket to be one that can accept incoming connections? listen FIB What function from our list of functions has the following description: wait for an incoming connection to a socket? accept FIB What function from our list of functions has the following description: initiate socket connection (to a given address)? connect FIB What function from our list of functions has the following description: send to a given socket at a specified name/address? sendto FIB What function from our list of functions has the following description: lookup error string for current error, write to stderr? perror FIB What function from our list of functions has the following description: binary copy, copy from one memory address to another? bcopy FIB What function from our list of functions has the following description: binary zero, set a chunk of memory to 0's? bzero FIB What function from our list of functions has the following description: copy a C string from one address to another, string must be NULL-terminated? strcpy FIB What function from our list of functions has the following description: print formatted to stdout? printf FIB What is the return value of fork in the child process? 0 FIB What is the return value of execve on error? -1 SR What is the return value of execve on success? does not return SR What is the return value of open on success? file descriptor SR What is the return value of read on success? # bytes read SR What is the return value of gethostbyname on success? pointer to hostent structure SR What is the return value of socket on success? file descriptor SR What is the return value of sendto on success? # bytes sent SR What is the return value of perror on success? no return value