path
stringlengths
14
112
content
stringlengths
0
6.32M
size
int64
0
6.32M
max_lines
int64
1
100k
repo_name
stringclasses
2 values
autogenerated
bool
1 class
cosmopolitan/libc/calls/uname.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
7,314
184
jart/cosmopolitan
false
cosmopolitan/libc/calls/fmodl.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,405
45
jart/cosmopolitan
false
cosmopolitan/libc/calls/readlinkat.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,508
62
jart/cosmopolitan
false
cosmopolitan/libc/calls/timespec_mono.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,202
35
jart/cosmopolitan
false
cosmopolitan/libc/calls/landlock_create_ruleset.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,991
49
jart/cosmopolitan
false
cosmopolitan/libc/calls/fexecve.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,659
260
jart/cosmopolitan
false
cosmopolitan/libc/calls/sched_getparam.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,694
49
jart/cosmopolitan
false
cosmopolitan/libc/calls/fchmodat-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,458
40
jart/cosmopolitan
false
cosmopolitan/libc/calls/futimes.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,114
61
jart/cosmopolitan
false
cosmopolitan/libc/calls/ftruncate.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,400
90
jart/cosmopolitan
false
cosmopolitan/libc/calls/termios.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_TERMIOS_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_TERMIOS_INTERNAL_H_ #include "libc/calls/struct/metatermios.internal.h" #include "libc/calls/struct/termios.h" #define COPY_TERMIOS(TO, FROM) \ do { \ ...
1,656
33
jart/cosmopolitan
false
cosmopolitan/libc/calls/fstatat64.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,599
32
jart/cosmopolitan
false
cosmopolitan/libc/calls/fileexists.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,622
83
jart/cosmopolitan
false
cosmopolitan/libc/calls/ttyname_r.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,945
99
jart/cosmopolitan
false
cosmopolitan/libc/calls/usleep.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,412
39
jart/cosmopolitan
false
cosmopolitan/libc/calls/cfspeed.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,070
89
jart/cosmopolitan
false
cosmopolitan/libc/calls/ntsetprivilege.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,703
43
jart/cosmopolitan
false
cosmopolitan/libc/calls/rmdir.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,060
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/ttyname.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,106
32
jart/cosmopolitan
false
cosmopolitan/libc/calls/clock.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,675
67
jart/cosmopolitan
false
cosmopolitan/libc/calls/sigcount.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,899
22
jart/cosmopolitan
false
cosmopolitan/libc/calls/clock_gettime-xnu.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,464
44
jart/cosmopolitan
false
cosmopolitan/libc/calls/fstatfs-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,119
87
jart/cosmopolitan
false
cosmopolitan/libc/calls/setresuid.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,576
43
jart/cosmopolitan
false
cosmopolitan/libc/calls/ntspawn.h
#ifndef COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_ #define COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_ #include "libc/nt/struct/processinformation.h" #include "libc/nt/struct/securityattributes.h" #include "libc/nt/struct/startupinfo.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int mkntcmdline(char16_t[ARG_MAX / 2], ...
838
20
jart/cosmopolitan
false
cosmopolitan/libc/calls/touch.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,592
46
jart/cosmopolitan
false
cosmopolitan/libc/calls/mkntcmdline.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,240
148
jart/cosmopolitan
false
cosmopolitan/libc/calls/poll.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,729
91
jart/cosmopolitan
false
cosmopolitan/libc/calls/tcsetattr.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,699
47
jart/cosmopolitan
false
cosmopolitan/libc/calls/sigprocmask-sysv.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,734
52
jart/cosmopolitan
false
cosmopolitan/libc/calls/fixenotdir.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,399
70
jart/cosmopolitan
false
cosmopolitan/libc/calls/wincrashearly.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,862
21
jart/cosmopolitan
false
cosmopolitan/libc/calls/sigenter-xnu.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
18,804
588
jart/cosmopolitan
false
cosmopolitan/libc/calls/fstat.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,028
56
jart/cosmopolitan
false
cosmopolitan/libc/calls/ptsname_r.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,228
38
jart/cosmopolitan
false
cosmopolitan/libc/calls/dup2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,669
76
jart/cosmopolitan
false
cosmopolitan/libc/calls/onntconsoleevent.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,236
67
jart/cosmopolitan
false
cosmopolitan/libc/calls/vdsofunc.greg.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,361
153
jart/cosmopolitan
false
cosmopolitan/libc/calls/openat-sysv.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,116
63
jart/cosmopolitan
false
cosmopolitan/libc/calls/getcwd.greg.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,867
96
jart/cosmopolitan
false
cosmopolitan/libc/calls/fsync.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,843
57
jart/cosmopolitan
false
cosmopolitan/libc/calls/reboot.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,875
94
jart/cosmopolitan
false
cosmopolitan/libc/calls/setpgrp.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,951
27
jart/cosmopolitan
false
cosmopolitan/libc/calls/ischardev.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,948
62
jart/cosmopolitan
false
cosmopolitan/libc/calls/syscall_support-sysv.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_SYSCALL_SUPPORT_SYSV_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_SYSCALL_SUPPORT_SYSV_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /*──────────────────────────────────────────â”...
1,678
34
jart/cosmopolitan
false
cosmopolitan/libc/calls/calls.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ # # SYNOPSIS # # System Call Compatibility Layer # # DESCRIPTION # # This package exports a familiar system call int...
6,617
215
jart/cosmopolitan
false
cosmopolitan/libc/calls/makedirs.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,027
92
jart/cosmopolitan
false
cosmopolitan/libc/calls/execle.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,861
55
jart/cosmopolitan
false
cosmopolitan/libc/calls/munlock.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,434
45
jart/cosmopolitan
false
cosmopolitan/libc/calls/landlock_restrict_self.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,728
43
jart/cosmopolitan
false
cosmopolitan/libc/calls/lutimes.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,424
39
jart/cosmopolitan
false
cosmopolitan/libc/calls/pledge.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_PLEDGE_INTERNAL_H_ #include "libc/calls/pledge.h" #include "libc/intrin/promises.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct Pledges { const char *name; const uint16_t *syscalls; const size_t len...
612
22
jart/cosmopolitan
false
cosmopolitan/libc/calls/pipe-sysv.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,124
35
jart/cosmopolitan
false
cosmopolitan/libc/calls/linkat-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,477
39
jart/cosmopolitan
false
cosmopolitan/libc/calls/getloadavg-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,206
72
jart/cosmopolitan
false
cosmopolitan/libc/calls/madvise-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,683
82
jart/cosmopolitan
false
cosmopolitan/libc/calls/utimensat-sysv.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,894
55
jart/cosmopolitan
false
cosmopolitan/libc/calls/getprogramexecutablename.greg.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,199
148
jart/cosmopolitan
false
cosmopolitan/libc/calls/isatty-nt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,290
39
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigval.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGVAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGVAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ union sigval { int32_t sival_int; void *sival_ptr; }; int sigqueue(int, int, const union sigval); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER_...
384
16
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/timeval.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_H_ #include "libc/calls/struct/timespec.h" #include "libc/time/struct/timezone.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct timeval { int64_t tv_sec; int64_t tv_usec; /* microseconds */ }; int...
1,132
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/stat.macros.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_MACROS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_MACROS_H_ #define STAT_HAVE_NSEC 1 #define st_atime st_atim.tv_sec #define st_mtime st_mtim.tv_sec #define st_ctime st_ctim.tv_sec #define st_atime_nsec st_atim.tv_nsec #define st_mtime_nsec st_mtim.tv_nsec #define st_c...
642
24
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/ucontext.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_INTERNAL_H_ #include "libc/calls/ucontext.h" #include "libc/nt/struct/context.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void _ntcontext2linux(struct ucontext *, const struct NtContext *) _Hi...
526
14
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sysinfo.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SYSINFO_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SYSINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct sysinfo { int64_t uptime; /* seconds since boot */ uint64_t loads[3]; /* 1-5-15 min active process averages */ uint64_t totalram; /* system ...
1,055
28
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/metastat.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_ #include "libc/calls/struct/stat.h" #include "libc/calls/struct/timespec.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define METASTAT(x, field) \ (IsLinux() || IsMetal() ? x.linux...
2,910
120
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/metatermios.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_METATERMIOS_H_ #include "libc/calls/struct/termios.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct termios_xnu { uint64_t c_iflag; uint64_t c_oflag; uint64_t c_cflag; uint64_t c_lflag; uint8_t c...
768
36
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/iovec.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_ #include "libc/calls/struct/fd.internal.h" #include "libc/calls/struct/iovec.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int64_t sys_preadv(int, struct iovec...
1,776
34
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/winsize.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct winsize { uint16_t ws_row; uint16_t ws_col; uint16_t ws_xpixel; uint16_t ws_ypixel; }; int _getttysize(int, struct winsize *); COSMOPOLITAN_C_...
427
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sysinfo.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SYSINFO_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SYSINFO_INTERNAL_H_ #include "libc/calls/struct/sysinfo.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_sysinfo(struct sysinfo *) _Hide; int sys_sysinfo_nt(struct sysinfo *) _Hide; COSMOPOLITAN_C_E...
435
13
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/flock.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct flock { /* cosmopolitan abi */ int16_t l_type; /* F_RDLCK, F_WRLCK, F_UNLCK */ int16_t l_whence; /* SEEK_SET, SEEK_CUR, SEEK_END */ int64_t l_s...
642
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/timespec.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define timespec_zero ((struct timespec){0}) #define timespec_max ((struct timespec){0x7fffffffffffffff, 999999999}) struct timespec { int64_t tv_sec; ...
1,668
41
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/ucontext-netbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_NETBSD_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_NETBSD_INTERNAL_H_ #include "libc/calls/ucontext.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ // clang-format off #ifdef __x86_64__ #define __UCONTEXT_SIZE 784 #define _UC_SIGMASK 0...
1,833
88
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/framebufferfixedscreeninfo.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERFIXEDSCREENINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct FrameBufferFixedScreenInfo { char id[16]; uint64_t smem_start; uint32_t smem_len; uint32_t type; uint32_t type_aux; uint32_t...
653
25
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/rlimit.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_INTERNAL_H_ #include "libc/calls/struct/rlimit.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_getrlimit(int, struct rlimit *) _Hide; int sys_setrlimit(int, const ...
664
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/dirent.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct dirent { /* linux getdents64 abi */ uint64_t d_ino; /* inode number */ int64_t d_off; /* implementation-dependent location number */ uin...
1,226
34
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo-netbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_NETBSD_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_NETBSD_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct siginfo_netbsd { int32_t si_signo; int32_t si_code; int32_t si_errno; int32_t __pad; union...
1,194
54
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/iovec.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct iovec { void *iov_base; size_t iov_len; }; ssize_t preadv(int, struct iovec *, int, int64_t); ssize_t pwritev(int, const struct iovec *, int, int64_t);...
601
20
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/framebuffercolormap.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERCOLORMAP_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct FrameBufferColorMap { uint32_t start; uint32_t len; uint16_t *red; uint16_t *green; uint16_t *blue; uint16_t *transp; }; #endif /* !(__AS...
418
16
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/framebuffervirtualscreeninfo.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FRAMEBUFFERVIRTUALSCREENINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct FrameBufferBitField { uint32_t offset; uint32_t length; uint32_t msb_right; }; struct FrameBufferVirtualScreenInfo { uint32...
1,120
45
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statvfs.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATVFS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATVFS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statvfs { unsigned long f_bsize; /* Filesystem block size */ unsigned long f_frsize; /* Fragment size */ uint64_t f_blocks; /* Size of fs...
1,016
26
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs-meta.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_META_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_META_INTERNAL_H_ #include "libc/calls/struct/statfs-freebsd.internal.h" #include "libc/calls/struct/statfs-linux.internal.h" #include "libc/calls/struct/statfs-netbsd.internal.h" #include "libc/calls/struct/stat...
873
25
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs-netbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_NETBSD_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_NETBSD_H_ #include "libc/calls/struct/fsid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statfs_netbsd { int16_t f_type; /* type of file system */ uint16_t f_oflags; /* depreca...
1,406
31
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/itimerval.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_INTERNAL_H_ #include "libc/calls/struct/itimerval.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_getitimer(int, struct itimerval *) _Hide; int sys_setitimer...
729
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo-openbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_OPENBSD_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_OPENBSD_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct siginfo_openbsd { int32_t si_signo; int32_t si_code; int32_t si_errno; union { int32_t...
812
37
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_INTERNAL_H_ #include "libc/calls/struct/statfs-meta.internal.h" #include "libc/calls/struct/statfs.h" #include "libc/calls/struct/statvfs.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOL...
853
22
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/timespec.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_INTERNAL_H_ #include "libc/calls/struct/timespec.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* clang-format off */ int __sys_clock_nanosleep(int, int, const struc...
1,890
35
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/ucontext-freebsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_FREEBSD_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_FREEBSD_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct stack_freebsd { void *ss_sp; uint64_t ss_size; int32_t ss_flags; }; struct mcontext_freebsd { int64_t mc_on...
1,396
65
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/tms.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TMS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TMS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct tms { int64_t tms_utime; /* userspace time */ int64_t tms_stime; /* kernelspace time */ int64_t tms_cutime; /* children userspace time */ int64_t tms_...
509
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/metasigaltstack.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASIGALTSTACK_H_ #include "libc/calls/struct/sigaltstack.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct sigaltstack_bsd { void *ss_sp; uint64_t ss_size; int32_t ss_flags; }; COSMOPOLITAN_C_E...
434
16
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/itimerval.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_ #include "libc/calls/struct/timeval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct itimerval { struct timeval it_interval; /* {0,0} means singleshot */ struct timeval it_value; /* {0,0}...
572
18
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/rusage.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_H_ #include "libc/calls/struct/timeval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct rusage { struct timeval ru_utime; /* user CPU time used */ struct timeval ru_stime; /* system CPU time used */ ...
1,437
34
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/seccomp.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SECCOMP_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SECCOMP_H_ #define SECCOMP_SET_MODE_STRICT 0 #define SECCOMP_SET_MODE_FILTER 1 #define SECCOMP_GET_ACTION_AVAIL 2 #define SECCOMP_GET_NOTIF_SIZES 3 #define SECCOMP_FILTER_FLAG_TSYNC (1UL <...
2,657
81
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs-xnu.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_XNU_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_XNU_INTERNAL_H_ #include "libc/calls/struct/fsid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statfs_xnu { uint32_t f_bsize; /* fundamental file system block size */ int32_t ...
1,366
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/filter.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FILTER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define BPF_MAJOR_VERSION 1 #define BPF_MINOR_VERSION 1 struct sock_filter { uint16_t code; uint8_t jt; uint8_t jf; uint32_t k; }; struct sock_fprog { ...
1,670
60
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs-freebsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_FREEBSD_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_FREEBSD_INTERNAL_H_ #include "libc/calls/struct/fsid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statfs_freebsd { uint32_t f_version; /* structure version number */ uint32...
1,729
35
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/rusage.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_RUSAGE_INTERNAL_H_ #include "libc/calls/struct/rusage.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int __sys_getrusage(int, struct rusage *) _Hide; int __sys_wait4(int, int *, int, struct rusage *) _Hide;...
648
17
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/stat.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_INTERNAL_H_ #include "libc/calls/struct/stat.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_fstat(int, struct stat *) _Hide; int sys_fstatat(int, const char *, struct...
804
21
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/rlimit.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct rlimit { uint64_t rlim_cur; /* current (soft) limit in bytes */ uint64_t rlim_max; /* maximum limit in bytes */ }; int getrlimit(int, struct rlimit *...
488
17
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/bpf.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_BPF_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define BPF_MAXINSNS 4096 #define BPF_CLASS(code) ((code)&0x07) #define BPF_LD 0x00 /* load into accumulator */ #define BPF_LDX 0x01 /* load into ind...
40,095
1,333
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigset.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGSET_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGSET_INTERNAL_H_ #include "libc/calls/struct/sigset.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int __sys_sigprocmask(int, const struct sigset *, struct sigset *, ...
793
20
jart/cosmopolitan
false