OBJ = FullRead.o FullWrite.o SigHand.o Mutex.o SharedMem.o LockFile.o \
DirScan.o endian.o SockUtil.o full_fread.o full_fwrite.o is_closing.o
-FINAL = forktest errcode echo echod daytimed iterdaytimed daytime testfopen \
+FINAL = forktest errcode techo uecho echod daytimed iterdaytimed daytime \
testren fortune fortuned mqfortune mqfortuned flock myls dirmonitor \
- readmon ipctestid writeshm getcap #readshm
+ readmon ipctestid writeshm getcap testfopen #readshm
$(LIB): $(OBJ)
gcc -shared -lrt $^ -o $@
/*
* Include needed headers
*/
+#include <stdlib.h> /* standard library */
#include <sys/types.h> /* primitive system data types */
#include <unistd.h> /* unix standard library */
#include <arpa/inet.h> /* IP addresses conversion utilities */
#include <arpa/inet.h> /* IP addresses conversion utilities */
#include <sys/socket.h> /* socket constants, types and functions */
#include <stdio.h> /* standard I/O library */
+#include <stdlib.h> /* standard library */
#define MAXLINE 80
/* Program begin */
#include <stdio.h> /* standard I/O library */
#include <string.h> /* C strings library */
#include <sys/types.h> /* primitive system data types */
-#include <sys/capability.h>
+#include <sys/capability.h> /* need package libcap-dev */
/* Help printing routine */
void usage(void);