"Fossies" - the Fresh Open Source Software Archive

Member "reptyr-reptyr-0.8.0/platform/linux/arch/default-syscalls.h" (29 Sep 2020, 676 Bytes) of package /linux/privat/reptyr-reptyr-0.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "default-syscalls.h" see the Fossies "Dox" file reference documentation.

    1 #define SC(name) .nr_##name = __NR_##name
    2 
    3 {
    4 #ifdef __NR_mmap2
    5     .nr_mmap = -1,
    6     SC(mmap2),
    7 #else
    8     SC(mmap),
    9     .nr_mmap2 = -1,
   10 #endif
   11     SC(munmap),
   12     SC(getsid),
   13     SC(setsid),
   14     SC(setpgid),
   15 #ifdef __NR_fork
   16     SC(fork),
   17     .nr_clone = -1,
   18 #else
   19     .nr_fork = -1,
   20     SC(clone),
   21 #endif
   22     SC(wait4),
   23 #ifdef __NR_signal
   24     SC(signal),
   25 #else
   26      .nr_signal = -1,
   27 #endif
   28     SC(rt_sigaction),
   29     SC(openat),
   30     SC(close),
   31     SC(ioctl),
   32 #ifdef __NR_dup2
   33     SC(dup2),
   34     .nr_dup3 = -1,
   35 #else
   36     .nr_dup2 = -1,
   37     SC(dup3),
   38 #endif
   39 #ifdef __NR_socketcall
   40     SC(socketcall),
   41 #else
   42     SC(socket),
   43     SC(connect),
   44     SC(sendmsg),
   45 #endif
   46 },
   47 
   48 #undef SC