Skip to content

Agent KB_src_p2

grisun0 edited this page Oct 23, 2026 · 12 revisions

Subsystem: src (page 2 of 3)

Previous: KB_src.md

progs/src/lxabi.c

  • Doc: Linux process, thread and descriptor ABI probe (FreeDom
  • Layer: utility
  • Language: c
  • Symbols:
    • thread_result (struct, line 195)
    • tls_seen (type_alias, line 194) typedef struct thread_result { long tls_seen;
    • report (function, line 65) static void report(const char *name, int ok, const char *detail)
    • now_ms (function, line 75) static long now_ms(void)
    • busy_wait_ms (function, line 81) static void busy_wait_ms(long ms)
    • fork_probe (function, line 95) static void fork_probe(uint64_t *out)
    • regs_match (function, line 132) static int regs_match(const uint64_t *r)
    • check_fork_registers (function, line 138) static void check_fork_registers(void)
    • check_fork_cow_kernel_write (function, line 160) static void check_fork_cow_kernel_write(void)
    • worker (function, line 201) static void *worker(void *arg)
    • check_threads (function, line 215) static void check_threads(void)
    • detached_worker (function, line 245) static void *detached_worker(void *arg)
    • check_detached_reaped (function, line 251) static void check_detached_reaped(void)
    • signaller (function, line 275) static void *signaller(void *arg)
    • check_condvar (function, line 285) static void check_condvar(void)
    • check_pipe2_flags (function, line 307) static void check_pipe2_flags(void)
    • check_pipe_blocking (function, line 334) static void check_pipe_blocking(void)
    • check_pipe_epipe (function, line 356) static void check_pipe_epipe(void)
    • check_writev_pipe (function, line 382) static void check_writev_pipe(void)
    • check_poll (function, line 394) static void check_poll(void)
    • check_eventfd (function, line 418) static void check_eventfd(void)
    • check_close_range (function, line 443) static void check_close_range(void)
    • check_time (function, line 455) static void check_time(void)
    • check_mkdir (function, line 464) static void check_mkdir(void)
    • check_limits (function, line 478) static void check_limits(void)
    • mono_us (function, line 491) static long mono_us(void)
    • check_sleep (function, line 500) static void check_sleep(void)
    • lxabi_sleeper (function, line 527) static void *lxabi_sleeper(void *arg)
    • child_status (function, line 535) static int child_status(void (*body)(void))
    • abort_from_worker_body (function, line 555) static void abort_from_worker_body(void)
    • lxabi_exit_group_worker (function, line 561) static void *lxabi_exit_group_worker(void *arg)
    • exit_group_from_worker_body (function, line 567) static void exit_group_from_worker_body(void)
    • wild_jump_body (function, line 573) static void wild_jump_body(void)
    • process (function, line 581) `* process (never a kernel panic), and kill(pid, 0) or a harmless signal
  • leaves the target aliv...`
  • check_uid_gid (function, line 642) static void check_uid_gid(void)
  • check_rename_dir (function, line 649) static void check_rename_dir(void)
  • copy_dentry_name (function, line 715) static void copy_dentry_name(char *dst, size_t cap, const char *src)
  • check_getdents64 (function, line 722) static void check_getdents64(void)
  • main (function, line 789) int main(void)
  • _GNU_SOURCE (macro, line 17) #define _GNU_SOURCE
  • LXABI_CHILD_DELAY_MS (macro, line 41) #define LXABI_CHILD_DELAY_MS
  • LXABI_THREADS (macro, line 42) #define LXABI_THREADS
  • LXABI_THREAD_ITERS (macro, line 43) #define LXABI_THREAD_ITERS
  • LXABI_DETACHED (macro, line 44) #define LXABI_DETACHED
  • LXABI_WAIT_SPINS (macro, line 45) #define LXABI_WAIT_SPINS
  • LXABI_GROUP_EXIT_CODE (macro, line 46) #define LXABI_GROUP_EXIT_CODE
  • LXABI_SLEEP_MS (macro, line 47) #define LXABI_SLEEP_MS
  • LXABI_MAX_SANE_CPUS (macro, line 48) #define LXABI_MAX_SANE_CPUS
  • LXABI_TIMEDWAIT_MS (macro, line 49) #define LXABI_TIMEDWAIT_MS
  • LXABI_EPOCH_2023 (macro, line 50) #define LXABI_EPOCH_2023
  • LXABI_CLOCK_SKEW_S (macro, line 51) #define LXABI_CLOCK_SKEW_S
  • LXABI_REG_PROBE_WORDS (macro, line 52) #define LXABI_REG_PROBE_WORDS
  • LXABI_CLONE_NR (macro, line 53) #define LXABI_CLONE_NR
  • LXABI_SIGCHLD (macro, line 54) #define LXABI_SIGCHLD
  • LXABI_A6_MAGIC (macro, line 55) #define LXABI_A6_MAGIC
  • LXABI_CHILD_BAD (macro, line 56) #define LXABI_CHILD_BAD
  • LXABI_MKDIR_PATH (macro, line 57) #define LXABI_MKDIR_PATH
  • LXABI_MKDIR_FILE (macro, line 58) #define LXABI_MKDIR_FILE
  • LXABI_CLOSE_RANGE_NR (macro, line 59) #define LXABI_CLOSE_RANGE_NR
  • LXABI_PAGE (macro, line 60) #define LXABI_PAGE
  • LXABI_COW_WORD (macro, line 61) #define LXABI_COW_WORD
  • Depends on: headers/sched.h, kernel/string.c, kernel/time.c

progs/src/lxhello.c

  • Doc: lmain: static void lx_write_int(long v) { char buf[24]; int i = (int)sizeof(buf); int neg = 0...
  • Layer: utility
  • Language: c
  • Symbols:
    • lx_syscall3 (function, line 11) static long lx_syscall3(long n, long a1, long a2, long a3)
    • lx_strlen (function, line 23) static unsigned long lx_strlen(const char *s)
    • lx_write (function, line 29) static void lx_write(const char *s)
    • lx_write_int (function, line 33) static void lx_write_int(long v)
    • lmain (function, line 46) int lmain(long argc, char **argv)
    • SYS_write (macro, line 20) #define SYS_write
    • SYS_exit (macro, line 21) #define SYS_exit

progs/src/lxnet.c

  • Doc: Linux socket ABI probe (FreeDom readiness step 6,
  • Layer: utility
  • Language: c
  • Symbols:
    • report (function, line 49) static void report(const char *name, int ok, const char *detail)
    • wait_for (function, line 55) static int wait_for(int fd, short events)
    • read_all (function, line 62) static int read_all(int fd, char *buf, size_t len)
    • check_udp (function, line 73) static void check_udp(const struct sockaddr_in *peer)
    • check_refused (function, line 150) static void check_refused(const struct sockaddr_in *peer)
    • check_tcp (function, line 174) static void check_tcp(const struct sockaddr_in *peer)
    • check_misc (function, line 217) static void check_misc(void)
    • dial (function, line 236) static int dial(const char *host, const char *port)
    • main (function, line 280) int main(int argc, char **argv)
    • _GNU_SOURCE (macro, line 24) #define _GNU_SOURCE
    • LXNET_WAIT_MS (macro, line 40) #define LXNET_WAIT_MS
    • LXNET_BUF (macro, line 41) #define LXNET_BUF
    • LXNET_UDP_MSG (macro, line 42) #define LXNET_UDP_MSG
    • LXNET_TCP_MSG (macro, line 43) #define LXNET_TCP_MSG
    • LXNET_LOOPBACK (macro, line 44) #define LXNET_LOOPBACK
    • LXNET_IP_UNKNOWN (macro, line 45) #define LXNET_IP_UNKNOWN
  • Depends on: kernel/string.c

progs/src/lxproc.c

  • Doc: foreground process-note probe (docs/spec/shell-fs.md, "Process
  • Layer: utility
  • Language: c
  • Symbols:
    • lxproc_note (struct, line 35)
    • report_exe (function, line 50) static int report_exe(void)
    • report_fork (function, line 64) static int report_fork(void)
    • main (function, line 91) int main(void)
    • _GNU_SOURCE (macro, line 17) #define _GNU_SOURCE
    • LXPROC_EXE_MAX (macro, line 27) #define LXPROC_EXE_MAX
    • LXPROC_CHILD_CODE (macro, line 29) #define LXPROC_CHILD_CODE
    • LXPROC_OK (macro, line 30) #define LXPROC_OK
    • LXPROC_BAD (macro, line 31) #define LXPROC_BAD
  • Depends on: progs/minios_abi.h

progs/src/lxsecc.c

  • Doc: Linux seccomp-bpf, prctl and /proc/self/exe probe (FreeDom
  • Layer: utility
  • Language: c
  • Symbols:
    • report (function, line 44) static void report(const char *name, int ok, const char *detail)
    • exit_code_of (function, line 53) static int exit_code_of(int st)
    • run_child (function, line 58) static int run_child(void (*body)(void))
    • install_filter (function, line 72) static int install_filter(unsigned getpid_action)
    • child_errno_action (function, line 100) static void child_errno_action(void)
    • child_kill_action (function, line 107) static void child_kill_action(void)
    • child_wx (function, line 116) static void child_wx(void)
    • grandchild_inherits (function, line 127) static void grandchild_inherits(void)
    • child_inherit (function, line 133) static void child_inherit(void)
    • child_stacked (function, line 142) static void child_stacked(void)
    • child_strict (function, line 150) static void child_strict(void)
    • child_no_nnp (function, line 157) static void child_no_nnp(void)
    • child_bad_program (function, line 165) static void child_bad_program(void)
    • check_prctl_flags (function, line 177) static void check_prctl_flags(void)
    • check_proc_self_exe (function, line 197) static void check_proc_self_exe(const char *argv0)
    • main (function, line 215) int main(int argc, char **argv)
    • _GNU_SOURCE (macro, line 13) #define _GNU_SOURCE
    • LXSECC_EXEC_FLAG (macro, line 28) #define LXSECC_EXEC_FLAG
    • LXSECC_EXEC_CODE (macro, line 29) #define LXSECC_EXEC_CODE
    • LXSECC_OK_CODE (macro, line 30) #define LXSECC_OK_CODE
    • LXSECC_BAD_CODE (macro, line 31) #define LXSECC_BAD_CODE
    • LXSECC_EXE_MAX (macro, line 32) #define LXSECC_EXE_MAX
    • LXSECC_NAME (macro, line 33) #define LXSECC_NAME
    • LXSECC_NAME_MAX (macro, line 34) #define LXSECC_NAME_MAX
    • LXSECC_ERRNO_A (macro, line 35) #define LXSECC_ERRNO_A
    • LXSECC_ERRNO_B (macro, line 36) #define LXSECC_ERRNO_B
    • LXSECC_PAGE (macro, line 37) #define LXSECC_PAGE
    • LXSECC_STATUS_MASK (macro, line 38) #define LXSECC_STATUS_MASK
    • LXSECC_STATUS_SHIFT (macro, line 39) #define LXSECC_STATUS_SHIFT
    • LXSECC_STATUS_BYTE (macro, line 40) #define LXSECC_STATUS_BYTE
  • Depends on: kernel/string.c

progs/src/lxsel.c

  • Doc: select(2)/pselect6(2) ABI probe (docs/spec/python.md).
  • Layer: utility
  • Language: c
  • Symbols:
    • report (function, line 36) static void report(const char *name, int ok)
    • raw_select (function, line 45) static long raw_select(long nfds, fd_set *r, fd_set *w, fd_set *e, struct ...
    • raw_pselect6 (function, line 50) static long raw_pselect6(long nfds, fd_set *r, fd_set *w, fd_set *e, str...
    • elapsed_ms (function, line 55) static long elapsed_ms(struct timespec *a, struct timespec *b)
    • main (function, line 60) int main(void)
    • _GNU_SOURCE (macro, line 17) #define _GNU_SOURCE
    • LXSEL_NFDS_OUT_OF_RANGE (macro, line 28) #define LXSEL_NFDS_OUT_OF_RANGE
    • LXSEL_BAD_FD (macro, line 29) #define LXSEL_BAD_FD
    • LXSEL_TIMEOUT_US (macro, line 30) #define LXSEL_TIMEOUT_US
    • LXSEL_TIMEOUT_MS_MIN (macro, line 31) #define LXSEL_TIMEOUT_MS_MIN
    • LXSEL_PSELECT_TIMEOUT_NS (macro, line 32) #define LXSEL_PSELECT_TIMEOUT_NS
  • Depends on: kernel/time.c

progs/src/lxtls.c

  • Doc: libcurl/OpenSSL fetch probe (FreeDom readiness step 6,
  • Layer: utility
  • Language: c
  • Symbols:
    • lxtls_sink (function, line 39) static size_t lxtls_sink(char *data, size_t size, size_t nmemb, void *user)
    • lxtls_debug (function, line 46) static int lxtls_debug(CURL *h, curl_infotype type, char *data, size_t size, void *user)
    • lxtls_step (function, line 65) static int lxtls_step(const char *name, int ok)
    • lxtls_rand (function, line 73) static int lxtls_rand(void)
    • main (function, line 87) int main(int argc, char **argv)
    • LXTLS_TIMEOUT_S (macro, line 31) #define LXTLS_TIMEOUT_S
    • LXTLS_CONNECT_S (macro, line 32) #define LXTLS_CONNECT_S
    • LXTLS_MAX_REDIRECTS (macro, line 33) #define LXTLS_MAX_REDIRECTS
    • LXTLS_CA_BUNDLE (macro, line 34) #define LXTLS_CA_BUNDLE
    • LXTLS_RAND_BYTES (macro, line 35) #define LXTLS_RAND_BYTES
  • Depends on: kernel/string.c

progs/src/lz4.c

  • Doc: command path LZ4 (de)compression tools: lz4 and unlz4.
  • Layer: utility
  • Language: c
  • Symbols:
    • lz4_has (function, line 39) static int lz4_has(const char *s, const char *needle)
    • lz4_read_all (function, line 53) static char *lz4_read_all(const char *name, int *len)
    • lz4_write_all (function, line 70) static int lz4_write_all(const char *name, char *data, int len)
    • lz4_compress_file (function, line 80) static int lz4_compress_file(const char *src, const char *dst)
    • lz4_decompress_file (function, line 117) static int lz4_decompress_file(const char *src, const char *dst)
    • main (function, line 164) int main(int argc, char **argv)
    • kernel (function, line 6) * * The codec lives in the kernel (lz4_kernel.c, the same one MiniFS uses), so * these tools are thin front-ends...
    • free (function, line 15) void free();
    • printf (function, line 16) int printf();
    • strcmp (function, line 17) int strcmp();
    • strlen (function, line 18) int strlen();
    • fopen (function, line 19) void *fopen();
    • fclose (function, line 20) int fclose();
    • fread (function, line 21) int fread();
    • fwrite (function, line 22) int fwrite();
    • fseek (function, line 23) int fseek();
    • ftell (function, line 24) int ftell();
    • rewind (function, line 25) void rewind();
    • lz4_compress (function, line 27) int lz4_compress(char *src, int srclen, char *dst, int dstcap);
    • lz4_decompress (function, line 28) int lz4_decompress(char *src, int srclen, char *dst, int dstcap);
    • LZ4_HDR_SIZE (macro, line 30) #define LZ4_HDR_SIZE
    • LZ4_BOUND_DEN (macro, line 31) #define LZ4_BOUND_DEN
    • LZ4_BOUND_SLACK (macro, line 32) #define LZ4_BOUND_SLACK
    • LZ4_MAX_BLOCK (macro, line 33) #define LZ4_MAX_BLOCK
    • LZ4_SEEK_END (macro, line 35) #define LZ4_SEEK_END
    • LZ4_EXIT_FAIL (macro, line 37) #define LZ4_EXIT_FAIL

progs/src/lzss.c

  • Doc: command path LZSS (de)compression tools: lzss and unlzss.
  • Layer: utility
  • Language: c
  • Symbols:
    • lz_in_getc (function, line 64) static int lz_in_getc(void)
    • lz_out_put (function, line 69) static void lz_out_put(int c)
    • lz_putbit1 (function, line 74) static void lz_putbit1(void)
    • lz_putbit0 (function, line 84) static void lz_putbit0(void)
    • lz_flush_bits (function, line 93) static void lz_flush_bits(void)
    • lz_out_literal (function, line 97) static void lz_out_literal(int c)
    • lz_out_pair (function, line 105) static void lz_out_pair(int x, int y)
    • lz_encode (function, line 118) static int lz_encode(void)
    • lz_getbit (function, line 173) static int lz_getbit(int n)
    • lz_decode (function, line 189) static int lz_decode(void)
    • lz_hdr_put (function, line 218) static void lz_hdr_put(char *h, int size)
    • lz_hdr_get (function, line 229) static int lz_hdr_get(char *h)
    • lz_has (function, line 237) static int lz_has(const char *s, const char *needle)
    • lz_read_all (function, line 251) static char *lz_read_all(const char *name, int *len)
    • lz_write_all (function, line 268) static int lz_write_all(const char *name, char *data, int len)
    • lz_compress (function, line 278) static int lz_compress(const char *src, const char *dst)
    • lz_decompress (function, line 325) static int lz_decompress(const char *src, const char *dst)
    • main (function, line 397) int main(int argc, char **argv)
    • malloc (function, line 13) void *malloc();
    • free (function, line 14) void free();
    • printf (function, line 15) int printf();
    • strcmp (function, line 16) int strcmp();
    • strlen (function, line 17) int strlen();
    • fopen (function, line 18) void *fopen();
    • fclose (function, line 19) int fclose();
    • fread (function, line 20) int fread();
    • fwrite (function, line 21) int fwrite();
    • fseek (function, line 22) int fseek();
    • ftell (function, line 23) int ftell();
    • rewind (function, line 24) void rewind();
    • LZSS_EI (macro, line 26) #define LZSS_EI
    • LZSS_EJ (macro, line 27) #define LZSS_EJ
    • LZSS_P (macro, line 28) #define LZSS_P
    • LZSS_N (macro, line 29) #define LZSS_N
    • LZSS_F (macro, line 30) #define LZSS_F
    • LZSS_WIN (macro, line 31) #define LZSS_WIN
    • LZSS_MAGIC0 (macro, line 33) #define LZSS_MAGIC0
    • LZSS_MAGIC1 (macro, line 34) #define LZSS_MAGIC1
    • LZSS_MAGIC2 (macro, line 35) #define LZSS_MAGIC2
    • LZSS_MAGIC3 (macro, line 36) #define LZSS_MAGIC3
    • LZSS_HDR_SIZE (macro, line 37) #define LZSS_HDR_SIZE
    • LZSS_ENC_SLACK (macro, line 39) #define LZSS_ENC_SLACK
    • LZSS_EXPAND_NUM (macro, line 40) #define LZSS_EXPAND_NUM
    • LZSS_EXPAND_DEN (macro, line 41) #define LZSS_EXPAND_DEN
    • LZSS_SEEK_END (macro, line 43) #define LZSS_SEEK_END
    • LZSS_ERR_NONE (macro, line 45) #define LZSS_ERR_NONE
    • LZSS_ERR_OVERFLOW (macro, line 46) #define LZSS_ERR_OVERFLOW
    • LZSS_EXIT_FAIL (macro, line 48) #define LZSS_EXIT_FAIL

progs/src/mmreuse.c

  • Doc: mmap/munmap reclaim stress test.
  • Layer: utility
  • Language: c
  • Symbols:
    • mmap_anon (function, line 7) static long mmap_anon(long len)
    • munmap (function, line 21) static long munmap(long addr, long len)
    • exit_now (function, line 31) static void exit_now(long code)
    • _start (function, line 35) void _start(void)
    • ENOMEM (function, line 3) * downward mmap cursor drains until a map fails with ENOMEM (-12);

progs/src/mprot.c

  • Doc: mprotect probe.
  • Layer: utility
  • Language: c
  • Symbols:
    • mmap_anon (function, line 11) static long mmap_anon(long len)
    • mprotect_sys (function, line 25) static long mprotect_sys(long addr, long len, long prot)
    • write_str (function, line 36) static long write_str(const char *s, long n)
    • exit_now (function, line 44) static void exit_now(long code)
    • _start (function, line 48) void _start(void)

progs/src/mthreads.h

  • Doc: Minimal pthread-like threads for MiniOS ELFs (roadmap
  • Layer: utility
  • Language: h
  • Symbols:
    • mmutex_t (struct, line 38)
    • mthread_slot_t (struct, line 42)
    • mthread_t (type_alias, line 35) typedef int mthread_t;
    • m_syscall6 (function, line 50) static inline long m_syscall6(long n, long a, long b, long c)
    • myield (function, line 59) static inline void myield(void)
    • mfutex_wait (function, line 63) static inline long mfutex_wait(volatile int *addr, int val)
    • mfutex_wake (function, line 67) static inline long mfutex_wake(volatile int *addr, int n)
    • mmutex_init (function, line 71) static inline void mmutex_init(mmutex_t *m)
    • mmutex_lock (function, line 75) static inline void mmutex_lock(mmutex_t *m)
    • mmutex_unlock (function, line 90) static inline void mmutex_unlock(mmutex_t *m)
    • mthread_entry (function, line 98) static void mthread_entry(void *p)
    • mthread_create (function, line 117) static int mthread_create(mthread_t *t, void *(*fn)(void *), void *arg)
    • mthread_join (function, line 144) static int mthread_join(mthread_t t, void **retval)
    • MTHREADS_H (macro, line 24) #define MTHREADS_H
    • MTHREAD_STACK_SZ (macro, line 28) #define MTHREAD_STACK_SZ
    • MTHREAD_MAX (macro, line 29) #define MTHREAD_MAX
    • MMUTEX_FREE (macro, line 31) #define MMUTEX_FREE
    • MMUTEX_HELD (macro, line 32) #define MMUTEX_HELD
    • MMUTEX_CONTENDED (macro, line 33) #define MMUTEX_CONTENDED
    • MMUTEX_SPINS (macro, line 34) #define MMUTEX_SPINS
  • Depends on: progs/minios_abi.h
  • Imported by: progs/src/fptest.c, progs/src/scfuzz.c, progs/src/thdemo.c

progs/src/mtop.c

  • Doc: ASCII real-time system monitor for MiniOS.
  • Layer: utility
  • Language: c
  • Symbols:
    • sc3 (function, line 63) static long sc3(long n, long a1, long a2, long a3)
    • mtop_time (function, line 72) static long mtop_time(void)
    • mtop_rtc (function, line 76) static long mtop_rtc(int *h, int *m, int *s)
    • mtop_key (function, line 80) static long mtop_key(void)
    • mtop_minfo (function, line 84) static long mtop_minfo(long sel, long *o1, long *o2)
    • emit (function, line 90) static void emit(char *s)
    • mtop_quit_key (function, line 94) static int mtop_quit_key(long k)
    • mtop_clear_ansi (function, line 103) static void mtop_clear_ansi(void)
    • mtop_clear (function, line 113) static void mtop_clear(void)
    • mtop_atoi (function, line 117) static int mtop_atoi(char *s)
    • mtop_putu (function, line 136) static void mtop_putu(long v)
    • mtop_put2 (function, line 158) static void mtop_put2(int v)
    • mtop_put_kb (function, line 163) static void mtop_put_kb(long kb)
    • mtop_bar (function, line 179) static void mtop_bar(long v, long max, int w)
    • mtop_hist_max (function, line 194) static long mtop_hist_max(long *h, int n)
    • mtop_hist_push (function, line 204) static void mtop_hist_push(long *h, long v)
    • mtop_spark (function, line 214) static void mtop_spark(long *h, int n)
    • mtop_mem (function, line 242) static long mtop_mem(long *used, long *freeb, long *total)
    • mtop_cpu (function, line 253) static long mtop_cpu(long *count, long *busy)
    • mtop_disk_open (function, line 289) static void mtop_disk_open(void)
    • mtop_disk_read (function, line 313) static long mtop_disk_read(long *bytes)
    • mtop_net_probe (function, line 337) static long mtop_net_probe(long *dns_ms, long *sock_ok)
    • mtop_frame (function, line 355) static void mtop_frame(int n)
    • main (function, line 531) int main(int argc, char **argv)
    • syscall (function, line 12) * * All system figures come from the MINFO syscall (251): heap used / * free, ramdisk used / cap, MiniFS free /...
    • putchar (function, line 35) int putchar();
    • strlen (function, line 36) int strlen();
    • strcmp (function, line 37) int strcmp();
    • fopen (function, line 38) void *fopen();
    • fclose (function, line 39) int fclose();
    • fread (function, line 40) int fread();
    • rewind (function, line 41) void rewind();
    • socket (function, line 42) int socket();
    • close (function, line 43) int close();
    • net_dns_resolve (function, line 44) int net_dns_resolve();
    • MTOP_HIST (macro, line 46) #define MTOP_HIST
    • MTOP_DISK_BUF (macro, line 47) #define MTOP_DISK_BUF
    • MTOP_DISK_MAX (macro, line 48) #define MTOP_DISK_MAX
    • MTOP_MINFO (macro, line 49) #define MTOP_MINFO

progs/src/mvrn.c

  • Doc: mvrn -- rename(82) syscall probe.
  • Layer: utility
  • Language: c
  • Symbols:
    • mvrn_sc3 (function, line 9) static long mvrn_sc3(long n, long a1, long a2, long a3)
    • mvrn_write (function, line 16) static void mvrn_write(const char *s, unsigned long len)
    • mvrn_exit (function, line 20) static void mvrn_exit(long code)
    • mvrn_fail (function, line 24) static void mvrn_fail(int step)
    • lmain (function, line 32) int lmain(void)

progs/src/nx.c

  • Doc: NX probe.
  • Layer: utility
  • Language: c
  • Symbols:
    • write_str (function, line 11) static long write_str(const char *s, long n)
    • exit_now (function, line 19) static void exit_now(long code)
    • _start (function, line 23) void _start(void)

progs/src/opl3.c

  • Doc: opl3_set_instrument: } static long sys_open(long on) { long r; asm...
  • Layer: utility
  • Language: c
  • Symbols:
    • note_t (struct, line 102)
    • sys_time (function, line 36) static long sys_time(void)
    • sys_open (function, line 39) static long sys_open(long on)
    • sys_submit (function, line 42) static long sys_submit(const void *buf, long len)
    • busy_ms (function, line 46) static void busy_ms(long ms)
    • opl3_set_instrument (function, line 52) static void opl3_set_instrument(opl3_chip *chip)
    • opl3_note (function, line 69) static void opl3_note(opl3_chip *chip, unsigned block, unsigned fnum, int on)
    • render (function, line 77) static void render(opl3_chip *chip, long ms, long *fail)
    • main (function, line 107) int main(void)
    • SYS_TIME (macro, line 21) #define SYS_TIME
    • SYS_SB16_OPEN (macro, line 22) #define SYS_SB16_OPEN
    • SYS_SB16_SUBMIT (macro, line 23) #define SYS_SB16_SUBMIT
    • SYS_WRITE (macro, line 24) #define SYS_WRITE
    • SAMPLE_RATE (macro, line 28) #define SAMPLE_RATE
    • STEREO_FRAMES (macro, line 29) #define STEREO_FRAMES
    • MONO_BYTES (macro, line 30) #define MONO_BYTES
    • BUF_MS (macro, line 32) #define BUF_MS
    • F_NUM_FACTOR (macro, line 34) #define F_NUM_FACTOR
  • Depends on: kernel/string.c, progs/minios_abi.h
  • Imported by: progs/piano/piano.c

progs/src/pcmap.c

  • Doc: pcmap probe: file-backed MAP_PRIVATE mmap shares text.
  • Layer: utility
  • Language: c
  • Symbols:
    • sc_open (function, line 12) static long sc_open(const char *p)
    • sc_mmap (function, line 21) static long sc_mmap(long len, long prot, long flags, long fd, long off)
    • sc_write (function, line 34) static long sc_write(long fd, const char *s, long n)
    • sc_exit (function, line 42) static void sc_exit(long code)
    • sc_fnv (function, line 46) static unsigned long sc_fnv(const char *p, long n)
    • sc_hex8 (function, line 56) static void sc_hex8(unsigned long v, char *out)
    • sc_munmap (function, line 65) static long sc_munmap(long addr, long len)
    • _start (function, line 75) void _start(void)

progs/src/pip.c

  • Doc: pip -- launcher for python3 -m pip, and pip3 as a copy of this image.
  • Layer: utility
  • Language: c
  • Symbols:
    • pip_note (struct, line 30)
    • main (function, line 45) int main(int argc, char **argv)
    • PIP_PYTHON_PATH (macro, line 19) #define PIP_PYTHON_PATH
    • PIP_MODULE_FLAG (macro, line 21) #define PIP_MODULE_FLAG
    • PIP_MODULE_NAME (macro, line 22) #define PIP_MODULE_NAME
    • PIP_PREFIX_WORDS (macro, line 24) #define PIP_PREFIX_WORDS
    • PIP_EXEC_FAILED (macro, line 26) #define PIP_EXEC_FAILED
  • Depends on: kernel/string.c, progs/minios_abi.h

progs/src/pollready.c

  • Doc: lmain: int v = 0; int digits = 0; while (*s >= '0' && *s <= '9') { v = v * 10 + (*s - '0'); s++...
  • Layer: utility
  • Language: c
  • Symbols:
    • p_write (function, line 26) static long p_write(long fd, const char *s, long n)
    • p_strlen (function, line 30) static unsigned long p_strlen(const char *s)
    • p_puts (function, line 36) static void p_puts(long fd, const char *s)
    • p_atoi (function, line 40) static int p_atoi(const char *s)
    • p_parse_ip (function, line 46) static int p_parse_ip(const char *s, unsigned char out[4])
    • lmain (function, line 63) int lmain(long argc, char **argv)

progs/src/sbtone.c

  • Doc: — headless SB16 diagnostic (ring-3, no GUI).
  • Layer: utility
  • Language: c
  • Symbols:
    • buffers (function, line 14) `*
  • Exit code is the number of submitted buffers (0 on failure to open). */

#include <stdio.h>...`

  • main (function, line 36) int main(void)
  • SYS_SB16_OPEN (macro, line 21) #define SYS_SB16_OPEN
  • SYS_SB16_SUBMIT (macro, line 22) #define SYS_SB16_SUBMIT
  • SYS_TIME (macro, line 23) #define SYS_TIME
  • RATE (macro, line 25) #define RATE
  • BUF (macro, line 26) #define BUF
  • WINDOW_MS (macro, line 27) #define WINDOW_MS
  • Depends on: progs/minios_abi.h

Next: KB_src_p3.md

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally