Displaying 2 results from an estimated 2 matches for "create_final_def".
2011 Jun 28
0
[PATCH] cpio: cleanup O_BINARY usage.
...o.c
index 6891883..15134b9 100644
--- a/usr/utils/cpio.c
+++ b/usr/utils/cpio.c
@@ -31,10 +31,6 @@
#include <fnmatch.h>
#endif
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
# ifndef DIRECTORY_SEPARATOR
# define DIRECTORY_SEPARATOR '/'
# endif
@@ -576,8 +572,7 @@ static void create_final_defers(void)
if (link_res == 0) {
continue;
}
- out_file_des = 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",...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...ning: skipped %ld byte(s) of junk\n",
progname, bytes_skipped);
@@ -578,7 +565,7 @@ static void create_defered_links(struct new_cpio_header *file_hdr)
we are done reading the whole archive. Write out all of these
empty links that are still on the deferments list. */
-static void create_final_defers()
+static void create_final_defers(void)
{
struct deferment *d;
int link_res;
@@ -720,7 +707,7 @@ copyin_regular_file(struct new_cpio_header *file_hdr, int in_file_des)
NAME has no file name components because it is all slashes, return
NAME if it is empty, the address of its last sl...