aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd
Commit message (Collapse)AuthorAgeFilesLines
* sys/freebsd: add inotify definitionsMark Johnston2025-07-042-0/+46
|
* sys/freebsd: chase removal of TCP_PCAP_{IN,OUT}Mark Johnston2025-07-042-3/+1
|
* sys/syz-sysgen: serialize descriptions as gob and embedDmitry Vyukov2025-01-231-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of generating Go files with descriptions serialize them as gob and compress with flate. This significantly reduces build time, go vet time, and solves scalability problems with some static analysis tools. Reference times (all after rm -rf ~/.cache/go-build) before: TIME="%e %P %M" time go install ./syz-manager 48.29 577% 4824820 TIME="%e %P %M" time go test -c ./prog 56.28 380% 6973292 After: TIME="%e %P %M" time go install ./syz-manager 22.81 865% 859788 TIME="%e %P %M" time go test -c ./prog 12.74 565% 267760 syz-manager size before/after: 194712597 -> 83418407 -57% even provided we now embed all descriptions instead of just a single arch. Deflate/decoding time for a single Linux arch is ~330ms. Fixes #5542
* sys/freebsd: add SO_SPLICE and regenerateMark Johnston2024-10-285-22/+8
|
* pkg/host: explicitly disable syz_execute_funcDmitry Vyukov2024-04-291-1/+1
| | | | | | | | | Disable the syscall in descriptions rather than in the code. This makes it more visible for users that it's disabled, and makes it less special (will not need to move this logic to host). Also change the condition in syz-sysgen to be more precise, otherwise syz_execute_func becomes unused function.
* sys/freebsd: add description file socket_bluetooth.txtOliver Sieber2024-04-222-0/+133
|
* sys/freebsd: use nested flag definitions where sensiblePaul Chaignon2023-12-054-6/+6
| | | | | | These flags were identified using the same script as for sys/linux. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
* sys: consolidate sockopt_opt_{ip,ipv6}_group_source_req flagsPaul Chaignon2023-12-052-5/+3
| | | | | | | | | On the Linux, Darwin, and FreeBSD targets, sockopt_opt_ip_group_source_req and sockopt_opt_ipv6_group_source_req are equal. This commit consolidates those flag definitions to use a single one and renames it to sockopt_opt_group_source_req. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
* sys/freebsd: regen for MAP_32BIT on i386Andrew Turner2023-08-311-1/+1
|
* sys/freebsd: update the *_DEADKEYMAP definitionsAndrew Turner2023-08-312-2/+16
| | | | | GIO_DEADKEYMAP and PIO_DEADKEYMAP have been updated uo support Unicode characters. Update the structure definitions and add the compat ioctls.
* sys/freebsd: remove removed pf ioctlsKristof Provost2023-08-292-8/+0
| | | | | | | | Upstream has removed DIOCCLRSTATES and DIOCKILLSTATES. Remove them from our list as well. While here also remove DIOCGETRULE and DIOCGETSTATUS, because those will go away soon.
* sys/freebsd: regenerate FreeBSD const filesAndrew Turner2023-03-0135-35/+35
|
* sys/freebsd: regenerate riscv64 definitionsP1umer2023-01-039-84/+84
|
* all: add freebsd/riscv64 supportP1umer2023-01-0335-36/+36
|
* Add filemon(4) ioctl definitions for FreeBSD (#2887)Mark Johnston2021-11-202-0/+20
| | | | | * sys/freebsd: add definitions for filemon(4) * pkg/build: load filemon.ko on FreeBSD
* sys: remove confusing comments that fake directivesDmitry Vyukov2021-11-121-3/+0
| | | | | | | | | It's a somewhat common mistake to write comments instead of directives: #include <foo> #define FOO BAR because that's how it's done in C. In preparation for warning about such cases remove all existing comments that fake directives.
* sys/freebsd: add procctl(2) definitionsMark Johnston2021-10-282-0/+98
|
* sys/freebsd: add setfib(2)Mark Johnston2021-09-102-0/+2
|
* sys/freebsd: add getdirentries(2)Mark Johnston2021-09-102-0/+2
|
* sys/freebsd: regenerate 386 definitionsMark Johnston2021-09-103-18/+18
|
* sys/freebsd: added io(4), smbus(4), efidev(4), evdev(4)Simran Kathpalia2021-08-176-0/+379
|
* sys/freebsd: add definitions for fspacectl(2)Mark Johnston2021-08-052-0/+10
|
* sys/freebsd: add SO_RERRORMark Johnston2021-07-282-1/+2
|
* sys/freebsd: add sysarch(2)Mark Johnston2021-07-282-0/+89
|
* sys/freebsd: regenerate definitions for i386Mark Johnston2021-07-282-13/+13
|
* sys/freebsd: added md(4)Simran Kathpalia2021-06-292-0/+48
|
* sys/freebsd: added __specialfd syscallSimran Kathpalia2021-06-292-0/+9
|
* sys/freebsd: added kbd(4)Simran Kathpalia2021-06-293-1/+206
|
* sys/freebsd: added syscalls under signal.hSimran Kathpalia2021-06-042-1/+81
|
* sys/freebsd: added aio syscallsSimran Kathpalia2021-06-043-1/+77
|
* sys/freebsd: added bpf(4) ioctlSimran Kathpalia2021-05-292-0/+240
|
* sys/freebsd: add ktrace(2)Mark Johnston2021-05-202-0/+34
|
* sys/freebsd: rebuild const files for 386Andrew Turner2021-05-175-54/+55
|
* sys/freebsd: fix sigevent_u to work for 386Andrew Turner2021-05-171-1/+1
| | | | The spare data is long, so use intptr as the closest type.
* sys/freebsd: fix cmsghdr_un_cred on FreeBSDAndrew Turner2021-05-171-1/+4
| | | | | * Use the FreeBSD SCM_CREDS value rather than the Linux SCM_CREDENTIALS. * Update based on the FreeBSD struct cmsgcred
* sys/freebsd: remove Linux headersAndrew Turner2021-05-175-5/+2
| | | | | | These are only needed when building Linux ABI support and are not needed by native FreeBSD system calls. As these files describe the native FreeBSD ABI remove them.
* sys/freebsd: fix some problems with SysV semaphore definitions (#2588)Mark Johnston2021-05-152-24/+20
| | | | | | | | | | - There is no __semctl(SEM_INFO). - The fields in semid_ds and ipc_perm were wrong. - The last parameter for many of the operations was specified incorrectly. The last problem resulted in occasional SYZFAILs when IPC_STAT is used since the output region doesn't get set up properly and in some cases can cause kcov data to be overwritten.
* sys/freebsd: improve desription of KTLS TX mode (#2586)Michael Tüxen2021-05-132-1/+8
|
* sys/freebsd: disable close_range(2) and closefrom(2) (#2585)Mark Johnston2021-05-132-5/+4
| | | | | | | These tend to generate false-positive reports when, e.g., tunfd gets clobbered. In particular, tunfd is dup'ed to fd 240, so close_range(fd, ~0, 0) tends to result in an error. These system calls are not very interesting in light of the fact that close(2) is still available, so let's just disable them.
* sys/freebsd: add support for CC module socket optionsMichael Tuexen2021-05-132-0/+22
|
* sys/freebsd: add O_EMPTY_PATHMark Johnston2021-05-112-1/+2
|
* sys/freebsd: add definitions for KTLSMark Johnston2021-05-112-0/+44
|
* sys/freebsd: added crypto(4) ioctlSimran Kathpalia2021-05-032-0/+115
|
* pkg/build, sys/freebsd: add support for SCTP over UDPMichael Tuexen2021-04-252-0/+12
|
* sys/freebsd: fix struct sockaddr_storage usageMichael Tuexen2021-04-252-6/+6
| | | | | | | | The size of struct sockaddr_storage is always 128 bytes. So the padding after struct sockaddr_in, which is of size 16, needs to be an array of 14 uint64s. This allows to describe the structures used in the SCTP socket options as unpacked
* pkg/build, sys/freebsd: add support for TCP over UDPMichael Tuexen2021-04-252-1/+2
|
* sys: commit empty source filesDmitry Vyukov2021-04-211-0/+6
| | | | | | Commit empty files into generated packages, so that the tree is buildable even w/o generated files and Go tools continue to work.
* sys/freebsd: add O_PATH, AT_EMPTY_PATH, AT_RESOLVE_BENEATHMark Johnston2021-04-194-8/+12
|
* sys/freebsd: added mount(2), statfs(2), getlogin(2) related syscallsSimran Kathpalia2021-04-146-1/+123
|
* sys/freebsd: added few syscallsSimran Kathpalia2021-03-294-1/+57
|