@ -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)
@ -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);
}