boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

SYSCALLS (6348B)


      1 #+COMMENT:                                                            -*- org -*-
      2 #+TITLE: Linux System Calls
      3 
      4 |---------------+----------+-----+--------+-----+---------|
      5 | name          | old      | x86 | x86_64 | arm | riscv64 |
      6 |---------------+----------+-----+--------+-----+---------|
      7 | libc-mini     |          |     |        |     |         |
      8 |---------------+----------+-----+--------+-----+---------|
      9 | exit          |          |   1 |     60 |   1 |       1 |
     10 | write         |          |   4 |      1 |   4 |       4 |
     11 |---------------+----------+-----+--------+-----+---------|
     12 | libc          |          |     |        |     |         |
     13 |---------------+----------+-----+--------+-----+---------|
     14 | fork          |          |   2 |     57 |   2 |       2 |
     15 | read          |          |   3 |      0 |   3 |       3 |
     16 | open          |          |   5 |      2 |   5 |       5 |
     17 | waitpid       |          |   7 |        |     |         |
     18 | wait4         | waitpid  | 114 |     61 | 114 |     114 |
     19 | execve        |          |  11 |     59 |  11 |      11 |
     20 | chmod         |          |  15 |     90 |  15 |      15 |
     21 | access        |          |  33 |     21 |  33 |      33 |
     22 | brk           |          |  45 |     12 |  45 |      45 |
     23 | ioctl         |          |  54 |     16 |  54 |      54 |
     24 | fsync         |          | 118 |     74 | 118 |     118 |
     25 | getcwd        |          | 183 |     79 | 183 |     183 |
     26 | dup           |          |  41 |     32 |  41 |      41 |
     27 | dup2          |          |  63 |     33 |  63 |      63 |
     28 | unlink        |          |  10 |     87 |  10 |      10 |
     29 | gettimeofday  | time     |  78 |     96 |  78 |      78 |
     30 | clock_gettime |          | 265 |    228 | 263 |     260 |
     31 | time          |          |  13 |    201 |  13 |         |
     32 |---------------+----------+-----+--------+-----+---------|
     33 | libc+tcc      |          |     |        |     |         |
     34 |---------------+----------+-----+--------+-----+---------|
     35 | close         |          |   6 |      3 |   6 |       6 |
     36 | lseek         |          |  19 |      8 |  19 |      19 |
     37 | rmdir         |          |  40 |     84 |  40 |      40 |
     38 | stat          |          | 106 |      4 | 106 |     106 |
     39 |---------------+----------+-----+--------+-----+---------|
     40 | libc+GNU      |          |     |        |     |         |
     41 |---------------+----------+-----+--------+-----+---------|
     42 | chdir         |          |  12 |     80 |  12 |      12 |
     43 | link          |          |   9 |     86 |   9 |       9 |
     44 | getpid        |          |  20 |     39 |  20 |      20 |
     45 | getuid        |          |  24 |    102 |  24 |     199 |
     46 | kill          |          |  37 |     62 |  37 |      37 |
     47 | rename        |          |  38 |     82 |  38 |      38 |
     48 | mkdir         |          |  39 |     83 |  39 |      39 |
     49 | pipe          |          |  42 |     22 |  42 |      42 |
     50 | getgid        |          |  47 |    104 |  47 |     200 |
     51 | signal        |          |  48 |        |     |      48 |
     52 | sigaction     |          |  67 |        |  67 |      67 |
     53 | rt_sigaction  |          | 174 |     13 | 174 |     174 |
     54 | signal        |          |  48 |        |     |      48 |
     55 | fcntl         |          |  55 |     72 |  55 |      55 |
     56 | getrusage     |          |  77 |     98 |  77 |      77 |
     57 | lstat         |          | 107 |      6 | 107 |     107 |
     58 | setitimer     |          | 104 |     38 | 104 |     104 |
     59 | fstat         |          | 108 |      5 | 108 |     108 |
     60 | nanosleep     |          | 162 |     35 | 162 |     162 |
     61 | getdents      |          | 141 |     78 | 141 |     141 |
     62 |---------------+----------+-----+--------+-----+---------|
     63 | GNU+bash      |          |     |        |     |         |
     64 |---------------+----------+-----+--------+-----+---------|
     65 | setuid        |          |  23 |    105 |  23 |     213 |
     66 | geteuid       |          |  49 |    107 |  49 |     201 |
     67 | getegid       |          |  50 |    108 |  50 |     202 |
     68 | setgid        |          |  46 |    106 |  46 |     214 |
     69 | getppid       |          |  64 |    110 |  64 |      64 |
     70 |---------------+----------+-----+--------+-----+---------|
     71 | GNU+make      |          |     |        |     |         |
     72 |---------------+----------+-----+--------+-----+---------|
     73 | sigprocmask   |          | 126 |        | 126 |     126 |
     74 |---------------+----------+-----+--------+-----+---------|
     75 | GNU+tar       |          |     |        |     |         |
     76 |---------------+----------+-----+--------+-----+---------|
     77 | symlink       |          |  83 |     88 |  83 |      83 |
     78 | readlink      |          |  85 |     89 |  85 |      85 |
     79 | mknod         |          |  14 |    133 |  14 |      14 |
     80 |---------------+----------+-----+--------+-----+---------|
     81 | new           |          |     |        |     |         |
     82 |---------------+----------+-----+--------+-----+---------|
     83 | clone         | fork     | 120 |     56 | 120 |     120 |
     84 | getdents64    | getdents | 220 |    217 | 217 |     220 |
     85 | openat        | open     | 295 |    257 | 322 |     288 |
     86 | mkdirat       | mkdir    | 296 |    258 | 323 |     289 |
     87 | mknodat       | mknod    | 297 |    259 | 324 |     290 |
     88 | unlinkat      | rmdir    | 301 |    263 | 328 |     294 |
     89 | unlinkat      | unlink   | 301 |    263 | 328 |     294 |
     90 | renameat      | rename   | 302 |    264 | 329 |     295 |
     91 | linkat        | link     | 303 |    265 | 330 |     296 |
     92 | symlinkat     | symlink  | 304 |    266 | 331 |     297 |
     93 | readlinkat    | readlink | 305 |    267 | 332 |     298 |
     94 | fchmodat      | chmod    | 306 |    268 | 333 |     299 |
     95 | faccessat     | access   | 307 |    269 | 334 |     300 |
     96 | dup3          | dup2     | 330 |    292 | 358 |     326 |
     97 | pipe2         | pipe     | 331 |    293 | 359 |     325 |
     98 |---------------+----------+-----+--------+-----+---------|
     99 
    100 * Sources
    101 
    102 https://github.com/torvalds/linux/blob/v4.19/arch/arm/tools/syscall.tbl
    103 https://github.com/torvalds/linux/blob/v4.19/arch/x86/entry/syscalls/syscall_32.tbl
    104 https://github.com/torvalds/linux/blob/v4.19/arch/x86/entry/syscalls/syscall_64.tbl
    105 
    106 * Legalese
    107 Copyright © 2022 Jan (janneke) Nieuwenhuizen <[[mailto:janneke@gnu.org][janneke@gnu.org]]>
    108 
    109   Copying and distribution of this file, with or without modification,
    110   are permitted in any medium without royalty provided the copyright
    111   notice and this notice are preserved.