search for: copyin_regular_file

Displaying 2 results from an estimated 2 matches for "copyin_regular_file".

2011 Jun 28
0
[PATCH] cpio: cleanup O_BINARY usage.
...open(d->header.c_name, - O_CREAT | O_WRONLY | O_BINARY, 0600); + out_file_des = open(d->header.c_name, O_CREAT | O_WRONLY, 0600); if (out_file_des < 0) { fprintf(stderr, "%s: open %s: %s\n", progname, d->header.c_name, strerror(errno)); @@ -647,8 +642,7 @@ copyin_regular_file(struct new_cpio_header *file_hdr, int in_file_des) } /* If not linked, copy the contents of the file. */ - out_file_des = open(file_hdr->c_name, - O_CREAT | O_WRONLY | O_BINARY, 0600); + out_file_des = open(file_hdr->c_name, O_CREAT | O_WRONLY, 0600); if (out_file_des < 0)...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...link_to_name, and return 0 for success and -1 for failure. */ -int +static int link_to_maj_min_ino(char *file_name, int st_dev_maj, int st_dev_min, int st_ino) { int link_res; @@ -457,7 +444,7 @@ link_to_maj_min_ino(char *file_name, int st_dev_maj, int st_dev_min, int st_ino) static void copyin_regular_file(struct new_cpio_header *file_hdr, int in_file_des); -void warn_junk_bytes(long bytes_skipped) +static void warn_junk_bytes(long bytes_skipped) { fprintf(stderr, "%s: warning: skipped %ld byte(s) of junk\n", progname, bytes_skipped); @@ -578,7 +565,7 @@ static void create_defe...