lib9.std.h - 9base - revived minimalist port of Plan 9 userland to Unix
 (HTM) git clone git://git.suckless.org/9base
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       lib9.std.h (471B)
       ---
            1 #define _FILE_OFFSET_BITS 64
            2 #define _LARGEFILE64_SOURCE
            3 
            4 #include <utf.h>
            5 #include <fmt.h>
            6 
            7 #include <fcntl.h>
            8 #include <string.h>
            9 #include <unistd.h>
           10 #include <stdlib.h>
           11 
           12 #define OREAD                O_RDONLY
           13 #define OWRITE        O_WRONLY
           14 
           15 #define        OCEXEC 0
           16 #define        ORCLOSE        0
           17 #define        OTRUNC        0
           18 
           19 #define nil ((void*)0)
           20 
           21 typedef long long vlong;
           22 typedef unsigned long long uvlong;
           23 
           24 #define seek(fd, offset, whence) lseek(fd, offset, whence)
           25 #define create(name, mode, perm) creat(name, perm)
           26