Rewrote copyfd to use library functions, terminate, and copy correct data.

This commit is contained in:
Matt Kraai
2001-05-18 14:14:55 +00:00
parent 6943815400
commit d6ef07406d
3 changed files with 18 additions and 26 deletions

View File

@ -133,7 +133,7 @@ extern pid_t* find_pid_by_name( char* pidName);
extern char *find_real_root_device_name(const char* name);
extern char *get_line_from_file(FILE *file);
extern void print_file(FILE *file);
extern size_t copyfd(int fd1, int fd2);
extern int copyfd(int fd1, int fd2);
extern int print_file_by_name(char *filename);
extern char process_escape_sequence(const char **ptr);
extern char *get_last_path_component(char *path);