Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
242 B

  1. #define _FILE_OFFSET_BITS 64
  2. #include <unistd.h>
  3. #include <fcntl.h>
  4. #include "open.h"
  5. #ifndef O_NDELAY
  6. #define O_NDELAY 0
  7. #endif
  8. int open_excl(const char *filename) {
  9. return open(filename,O_WRONLY|O_NDELAY|O_TRUNC|O_CREAT|O_EXCL,0600);
  10. }