Browse Source

oops, open_write did not create the file

master
Felix von Leitner 20 years ago
parent
commit
406d99ae9b
  1. 2
      Makefile
  2. 2
      open/open_write.c

2
Makefile

@ -69,7 +69,7 @@ clean:
install: libowfat.a
install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
install -m 644 buffer.h byte.h fmt.h ip4.h ip6.h mmap.h open.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h $(prefix)/include
install -m 644 buffer.h byte.h fmt.h ip4.h ip6.h mmap.h open.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h open.h $(prefix)/include
install -m 644 $(wildcard */*.3) $(MAN3DIR)
install -m 644 libowfat.a $(LIBDIR)

2
open/open_write.c

@ -3,5 +3,5 @@
#include "open.h"
extern int open_write(const char *filename) {
return open(filename,O_WRONLY|O_NDELAY);
return open(filename,O_WRONLY|O_CREAT|O_NDELAY);
}

Loading…
Cancel
Save