leitner 19202d2320 turns out the imult routines (which I never used) were incorrect.
Noted by Matthew Dempsky
  open_* from open.h now open in large file mode
2005-07-15 20:57:07 +00:00

13 lines
223 B
C

#define _FILE_OFFSET_BITS 64
#include <unistd.h>
#include <fcntl.h>
#include "open.h"
#ifndef O_NDELAY
#define O_NDELAY 0
#endif
int open_rw(const char *filename) {
return open(filename,O_RDWR|O_CREAT|O_NDELAY,0644);
}