copyfile function takes 2 filedescriptors as arguments args copies from one other
/* source: http://vip.cs.utsa.edu/usp/ */
makefile |
# makefile for assignment 1
CC = gcc
CFLAGS = -Wall -g
COMPILE = $(CC) $(CFLAGS) -c
SRCS := $(wildcard *.c)
|
opnnred.c |
file descriptor open/read of argv
#include<assert.h>
r_read.c |
the r_read is similar to read except that it restarts itself if interrupted by a signal
/* http://vip.cs.utsa.edu/usp/ dr.robbins utsa computer science */
r_write.c |
the r_read is similar to read except that it restarts itself if interrupted by a signal
/* http://vip.cs.utsa.edu/usp/ dr.robbins utsa computer science */
read_rite |
add
ELF 4 $ 4 ( " | | | | |