scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

_open.c (220B)


      1 #include <stddef.h>
      2 
      3 #include "../../../syscall.h"
      4 
      5 #define AT_FDCWD  -100
      6 
      7 extern int _openat(int fd, const char *fname, int flags);
      8 
      9 int
     10 _open(const char *fname, int flags)
     11 {
     12 	return _openat(AT_FDCWD, fname, flags);
     13 }