picolisp

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/picolisp.git/
Log | Files | Refs | README | LICENSE

ppc64.linux.defs.l (2546B)


      1 # 20oct11abu
      2 # (c) Software Lab. Alexander Burger
      3 
      4 # errno
      5 (equ ENOENT 2)       # No such file or directory
      6 (equ EINTR 4)        # Interrupted system call
      7 (equ EBADF 9)        # Bad file number
      8 (equ EAGAIN 11)      # Try again
      9 (equ EACCES 13)      # Permission denied
     10 (equ EPIPE 32)       # Broken pipe
     11 (equ ECONNRESET 104) # Connection reset by peer
     12 
     13 # open/fcntl
     14 (equ O_RDONLY 0)
     15 (equ O_WRONLY 1)
     16 (equ O_RDWR 2)
     17 (equ O_CREAT 64)
     18 (equ O_EXCL 128)
     19 (equ O_TRUNC 512)
     20 (equ O_APPEND 1024)
     21 (equ F_GETFD 1)
     22 (equ F_SETFD 2)
     23 (equ FD_CLOEXEC 1)
     24 
     25 # stdio
     26 (equ BUFSIZ 8192)
     27 (equ PIPE_BUF 4096)
     28 
     29 (equ MAXPATHLEN 4096)
     30 
     31 # dlfcn
     32 (equ RTLD_LAZY 1)
     33 (equ RTLD_GLOBAL 256)
     34 
     35 # fcntl
     36 (equ FLOCK 32)    # File lock structure
     37 (equ L_TYPE 0)  # 2
     38 (equ L_WHENCE 2)  # 2
     39 (equ L_START 8)
     40 (equ L_LEN 16)
     41 (equ L_PID 24)
     42 (equ SEEK_SET 0)
     43 (equ SEEK_CUR 1)
     44 (equ F_RDLCK 0)
     45 (equ F_WRLCK 1)
     46 (equ F_UNLCK 2)
     47 (equ F_GETFL 3)
     48 (equ F_SETFL 4)
     49 (equ F_GETLK 5)
     50 (equ F_SETLK 6)
     51 (equ F_SETLKW 7)
     52 (equ F_SETOWN 8)
     53 (equ O_NONBLOCK 2048)
     54 (equ O_ASYNC 8192)
     55 
     56 # stat
     57 (equ STAT 144)    # File status structure
     58 (equ ST_MODE 24)  # 4
     59 (equ ST_SIZE 48)
     60 (equ ST_MTIME 88)
     61 (equ S_IFMT (hex "F000"))
     62 (equ S_IFDIR (hex "4000"))
     63 
     64 # times
     65 (equ TMS 32)  # 'times' structure
     66 (equ TMS_UTIME 0)
     67 (equ TMS_STIME 8)
     68 
     69 # termios
     70 (equ TERMIOS 60)  # Terminal I/O structure
     71 (equ C_IFLAG 0)
     72 (equ C_LFLAG 12)
     73 (equ C_CC 17)
     74 (equ ISIG 128)
     75 (equ VMIN 5)
     76 (equ VTIME 7)
     77 (equ TCSADRAIN 1)
     78 
     79 # signal
     80 (equ SIGACTION 152)  # Sigaction structure
     81 (equ SIGSET_T 128)
     82 (equ SA_HANDLER 0)
     83 (equ SA_MASK 8)
     84 (equ SA_FLAGS 136)
     85 
     86 (equ SIG_DFL 0)
     87 (equ SIG_IGN 1)
     88 (equ SIG_UNBLOCK 1)
     89 
     90 (equ SIGHUP 1)  # Signals
     91 (equ SIGINT 2)
     92 (equ SIGUSR1 10)
     93 (equ SIGUSR2 12)
     94 (equ SIGPIPE 13)
     95 (equ SIGALRM 14)
     96 (equ SIGTERM 15)
     97 (equ SIGCHLD 17)
     98 (equ SIGCONT 18)
     99 (equ SIGSTOP 19)
    100 (equ SIGTSTP 20)
    101 (equ SIGTTIN 21)
    102 (equ SIGTTOU 22)
    103 (equ SIGIO 29)
    104 (equ SIGNALS 30)  # Highest used signal number plus 1
    105 
    106 # wait
    107 (equ WNOHANG 1)
    108 (equ WUNTRACED 2)
    109 
    110 # select
    111 (equ FD_SET 128)  # 1024 bit
    112 
    113 # time
    114 (equ TM_SEC 0)
    115 (equ TM_MIN 4)
    116 (equ TM_HOUR 8)
    117 (equ TM_MDAY 12)
    118 (equ TM_MON 16)
    119 (equ TM_YEAR 20)
    120 
    121 # dir
    122 (equ D_NAME 19)
    123 
    124 # Sockets
    125 (equ SOCK_STREAM 1)
    126 (equ SOCK_DGRAM 2)
    127 (equ AF_UNSPEC 0)
    128 (equ AF_INET6 10)
    129 (equ SOL_SOCKET 1)
    130 (equ SO_REUSEADDR 2)
    131 (equ IPPROTO_IPV6 41)
    132 (equ IPV6_V6ONLY 26)
    133 (equ INET6_ADDRSTRLEN 46)
    134 
    135 (equ NI_MAXHOST 1025)
    136 (equ NI_NAMEREQD 8)
    137 
    138 (equ SOCKADDR_IN6 28)
    139 (equ SIN6_FAMILY 0)
    140 (equ SIN6_PORT 2)
    141 (equ SIN6_ADDR 8)
    142 
    143 (equ ADDRINFO 48)
    144 (equ AI_FAMILY 4)
    145 (equ AI_SOCKTYPE 8)
    146 (equ AI_ADDRLEN 16)
    147 (equ AI_ADDR 24)
    148 (equ AI_NEXT 40)
    149 
    150 # vi:et:ts=3:sw=3