Skip to content

Latest commit

 

History

History
152 lines (65 loc) · 29.8 KB

readme.asc

File metadata and controls

152 lines (65 loc) · 29.8 KB

Reference

Documentation of minilib.

A short introduction

Description of howto use and configure minilib

API

Please note, the number after "Size:" is an estimation. Each function added as a function, with all dependent functions, within a binary that much bytes to the overall size.

It is however not possible to give exact numbers, these depend on how much the compiler can optimize for each call. What is different each time, depending on the circumstances.

To complicate things more, some functions will be inlined, others will be reused.

And, the choosen linker script will have it’s (sometimes surprising) influence.

The linked manpages are from the freeBSD project and there for convenience. The description of the manpage does not neccessarily match the implementation, here the description at the reference precedes.

ALIGN OPTFENCE OPTIMIZATIONS _die _match _match_ext2 accept assert bind bsd_cksum bsd_cksumblock bsd_definitions bsd_timespec bsearch calloc cfmakeraw config ctype_functions def die die_if dief dief_if dies dies_if dirbuf_malloc eprintf err error errx ether_ntoa ewritesl fgetsn fgetsp fgetud fgetul flock fwritesl getegid geteuid getgrouplist getgroups gethostname getresuid getrlimit getrusage getsid getsockopt getusergroups group_printf htonl htons inet_aton inet_ntoa initgroups killpg listen locale_dummies lstat match_ext match_ext2 memchr msync network ntohl ntohs optimization_fence poll prctl pwent qsort readlink recv recvfrom rt_sigsuspend sendto setbrk setenv setresuid setreuid setrlimit setsockopt short_errstr sigsuspend snprintfs socket stpcpy stplcpy stpncpy strcspn strlcpy strncat strndup strnlen strpbrk strspn strtoimax strtok strtok_r strtoll sys_signame tcgetpgrp tcsetpgrp term_width termio timerfd_create timerfd_gettime timerfd_settime times token_i token_s unsetenv userdb_open warn where writesl

syssysctl sys_accept sys_accept4 sys_access sys_acct sys_add_key sys_adjtimex sys_alarm sys_arch_prctl sys_bind sys_brk sys_capget sys_capset sys_chdir sys_chmod sys_chown sys_chroot sys_clock_adjtime sys_clock_getres sys_clock_gettime sys_clock_nanosleep sys_clock_settime sys_clone sys_close sys_connect sys_creat sys_delete_module sys_dup sys_dup2 sys_dup3 sys_epoll_create sys_epoll_create1 sys_epoll_ctl sys_epoll_pwait sys_epoll_wait sys_eventfd sys_eventfd2 sys_execve sys_exit sys_exit_group sys_faccessat sys_fadvise64 sys_fallocate sys_fanotify_init sys_fanotify_mark sys_fchdir sys_fchmod sys_fchmodat sys_fchown sys_fchownat sys_fcntl sys_fdatasync sys_fgetxattr sys_finit_module sys_flistxattr sys_flock sys_fork sys_fremovexattr sys_fsetxattr sys_fstat sys_fstatfs sys_fsync sys_ftruncate sys_futex sys_futimesat sys_get_mempolicy sys_get_robust_list sys_getcpu sys_getcwd sys_getdents sys_getdents64 sys_getegid sys_geteuid sys_getgid sys_getgroups sys_getitimer sys_getpeername sys_getpgid sys_getpgrp sys_getpid sys_getppid sys_getpriority sys_getrandom sys_getresgid sys_getresuid sys_getrlimit sys_getrusage sys_getsid sys_getsockname sys_getsockopt sys_gettid sys_gettimeofday sys_getuid sys_getxattr sys_init_module sys_inotify_add_watch sys_inotify_init sys_inotify_init1 sys_inotify_rm_watch sys_io_cancel sys_io_destroy sys_io_getevents sys_io_setup sys_io_submit sys_ioctl sys_ioperm sys_iopl sys_ioprio_get sys_ioprio_set sys_kcmp sys_kexec_file_load sys_kexec_load sys_keyctl sys_kill sys_lchown sys_lgetxattr sys_link sys_linkat sys_listen sys_listxattr sys_llistxattr sys_lookup_dcookie sys_lremovexattr sys_lseek sys_lsetxattr sys_lstat sys_madvise sys_mbind sys_memfd_create sys_migrate_pages sys_mincore sys_mkdir sys_mkdirat sys_mknod sys_mknodat sys_mlock sys_mlockall sys_mmap sys_modify_ldt sys_mount sys_move_pages sys_mprotect sys_mq_getsetattr sys_mq_notify sys_mq_open sys_mq_timedreceive sys_mq_timedsend sys_mq_unlink sys_mremap sys_msgctl sys_msgget sys_msgrcv sys_msgsnd sys_msync sys_munlock sys_munlockall sys_munmap sys_name_to_handle_at sys_nanosleep sys_newfstatat sys_open sys_open_by_handle_at sys_openat sys_pause sys_perf_event_open sys_personality sys_pipe sys_pipe2 sys_pivot_root sys_poll sys_ppoll sys_prctl sys_pread64 sys_preadv sys_prlimit64 sys_process_vm_readv sys_process_vm_writev sys_pselect6 sys_ptrace sys_pwrite64 sys_pwritev sys_quotactl sys_read sys_readahead sys_readlink sys_readlinkat sys_readv sys_reboot sys_recvfrom sys_recvmmsg sys_recvmsg sys_remap_file_pages sys_removexattr sys_rename sys_renameat sys_renameat2 sys_request_key sys_restart_syscall sys_rmdir sys_rt_sigaction sys_rt_sigpending sys_rt_sigprocmask sys_rt_sigqueueinfo sys_rt_sigreturn sys_rt_sigsuspend sys_rt_sigtimedwait sys_rt_tgsigqueueinfo sys_sched_get_priority_max sys_sched_get_priority_min sys_sched_getaffinity sys_sched_getattr sys_sched_getparam sys_sched_getscheduler sys_sched_rr_get_interval sys_sched_setaffinity sys_sched_setattr sys_sched_setparam sys_sched_setscheduler sys_sched_yield sys_seccomp sys_select sys_semctl sys_semget sys_semop sys_semtimedop sys_sendfile sys_sendmmsg sys_sendmsg sys_sendto sys_set_mempolicy sys_set_robust_list sys_set_tid_address sys_setdomainname sys_setfsgid sys_setfsuid sys_setgid sys_setgroups sys_sethostname sys_setitimer sys_setns sys_setpgid sys_setpriority sys_setregid sys_setresgid sys_setresuid sys_setreuid sys_setrlimit sys_setsid sys_setsockopt sys_settimeofday sys_setuid sys_setxattr sys_shmat sys_shmctl sys_shmdt sys_shmget sys_shutdown sys_sigaltstack sys_signalfd sys_signalfd4 sys_socket sys_socketpair sys_splice sys_stat sys_statfs sys_swapoff sys_swapon sys_symlink sys_symlinkat sys_sync sys_sync_file_range sys_syncfs sys_sysfs sys_sysinfo sys_syslog sys_tee sys_tgkill sys_time sys_timer_create sys_timer_delete sys_timer_getoverrun sys_timer_gettime sys_timer_settime sys_timerfd_create sys_timerfd_gettime sys_timerfd_settime sys_times sys_tkill sys_truncate sys_umask sys_umount2 sys_uname sys_unlink sys_unlinkat sys_unshare sys_ustat sys_utime sys_utimensat sys_utimes sys_vfork sys_vhangup sys_vmsplice sys_wait4 sys_waitid sys_write sys_writev

License

Opensource, "fair use by attribution"

Some files in the folder header have different licensing terms, they define the kernel interface(s) and are either from linux itself (SPDX licensed), or from musl.