summaryrefslogtreecommitdiff
path: root/lib/libsysdecode
AgeCommit message (Collapse)Author
2025-12-16rtld: silence clang's unterminated-string-initialization warningAlex Richardson
Since the initializer is used in other places where we can't just replace it with a char-by-char initializer, this adds a macro for the nonstring attribute (match the linuxkpi definition). Reviewed by: emaste, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52535
2025-12-07libsysdecode: Use consistent include pathDag-Erling Smørgrav
mkioctls should look at the same set of headers as mktables does. MFC after: 1 week Fixes: 139d114acc7b ("libsysdecode use MKTABLES_INCLUDEDIR") Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D54106
2025-10-12blocklist: Rename blacklist to blocklistJose Luis Duran
Follow up upstream rename from blacklist to blocklist. - Old names and rc scripts are still valid, but emitting an ugly warning - Old firewall rules and anchor names should work, but emitting an ugly warning - Old MK_BLACKLIST* knobs are wired to the new ones Although care has been taken not to break current configurations, this is a large patch containing mostly duplicated code. If issues arise, it will be swiftly reverted. Reviewed by: ivy (pkgbase) Approved by: emaste (mentor) MFC after: 2 days Relnotes: yes
2025-08-25sysdecode_syscallnames.3: s/names/name/Felix Johnson
The sysdecode_syscallname function was accidentally documented as being plural. Move it to reflect it's actual name, and adjust all references. PR: 278383 Reviewed by: ziaee Differential Revision: https://reviews.freebsd.org/D51002
2025-07-06libsysdecode: Add O_CLOFORK flags to sysdecodeRicardo Branco
Reviewed by: kib MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/1698
2025-07-04libsysdecode: Add support for decoding inotify syscall flagsMark Johnston
MFC after: 3 months Sponsored by: Klara, Inc.
2025-06-04libsysdecode: correct regexp for thr_new flagsKonstantin Belousov
Two flags include underscore after the "THR_" prefix. Sponsored by: The FreeBSD Foundation MFC after: 1 week
2024-10-15manuals: Fix "unusual .Xr" warnings with a scriptGraham Percival
These were reported by `mandoc -T lint ...` as warnings: - unusual Xr order - unusual Xr punctuation Fixes made by script in https://github.com/Tarsnap/freebsd-doc-scripts Signed-off-by: Graham Percival <gperciva@tarsnap.com> Reviewed by: mhorne, Alexander Ziaee <concussious.bugzilla@runbox.com> Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1464
2024-09-10Remove a ktrace.out which snuck into an earlier commitMark Johnston
Fixes: b76961e3a21a ("kdump: Print splice structures")
2024-09-10kdump: Print splice structuresMark Johnston
MFC after: 3 months Sponsored by: Klara, Inc. Sponsored by: Stormshield
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2024-06-19libsysdecode: support rfork(RFSPAWN)Brooks Davis
Match the "U" in RFSPAWN's value (1U<<31) (and "u" for completeness). Reject kernel-only RFPPWAIT to avoid a duplicate entry. Reviewed by: imp, markj Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D45597
2024-03-21libsysdecode use MKTABLES_INCLUDEDIRSimon J. Gerraty
We do not conflate SYSROOT with STAGE_ROOT/DESTDIR during DIRDEPS_BUILD Make sure mktables looks in the right place. Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D44415
2024-03-20libsysdecode: fix build after 3d0a736796a9Kyle Evans
TCP_USE_DDP is a kernel-only macro, so we must exclude it in libsysdecode to avoid breaking the build. Fixes: 3d0a736796a9 ("tcp: Add a new kernel-only TCP_USE_DDP [...]")
2024-03-04libsysdecode: add a decoder for pollfd eventsKyle Evans
We'll use this in another change to read pollfd arrays coming from a successful poll(2) operation. Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44159
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: two-line nroff patternWarner Losh
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-08-14vm: Allow MAP_32BIT for all architecturesDmitry Chagin
Reviewed by: alc, kib, markj Differential revision: https://reviews.freebsd.org/D41435
2023-07-09libsysdecode: Migrate from COMPAT_32BIT to generic COMPAT_LIBCOMPATJessica Clarke
The use isn't any more generic, just the variable itself, which will allow COMPAT_32BIT to be removed. The fact we even have to check COMPAT_LIBCOMPAT here in order to pass the right flags to CPP points at our libcompat infrastructure not suitably modifying the CPP variable (which we barely use for world; this and bsd.symver.mk are the two uses, and the latter could benefit from the right flags too), but this change doesn't attempt to fix that. See commit 8fad2cda93c7 ("bsd.compat.mk: Provide new CPP and sub-make variables") for the context behind this change. Reviewed by: emaste, imp, brooks, jhb Differential Revision: https://reviews.freebsd.org/D40930
2023-07-09libsysdecode: Drop dead __amd64__ && COMPAT_32BIT codeJessica Clarke
Under COMPAT_32BIT we are compiling 32-bit code and so __amd64__ is not defined, __i386__ is, and we use the real i386 headers. Reviewed by: brooks, jhb, imp Differential Revision: https://reviews.freebsd.org/D40916
2023-05-26libsysdecode: Decode linux_clone syscall flagsDmitry Chagin
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40150 MFC after: 1 week
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2023-04-18Update/fix Makefile.depend for userlandSimon J. Gerraty
2023-04-11sysdecode: Add aarch64Warner Losh
FREEBSD32 API is also supported on aarch64. Refer to aarch64 instead of arm64 because it's about the architecture (powerpc64), not the kernel interface... Sponsored by: Netflix
2023-02-14linux(4): Rename linux_timer.h to linux_time.hDmitry Chagin
To avoid confusing people, rename linux_timer.h to linux_time.h, as linux_timer.c is the implementation of timer syscalls only, while linux_time.c contains implementation of all stuff declared in linux_time.h. MFC after: 2 weeks
2022-11-02libsysdecode: Match socket option names containing underscoresMark Johnston
MFC after: 1 week Sponsored by: Modirum MDPay Sponsored by: Klara, Inc.
2022-10-02Put OPIE to rest.Dag-Erling Smørgrav
Differential Revision: https://reviews.freebsd.org/D36592
2022-06-30libsysdecode: Grab some more ioctl definitions from CAMMark Johnston
MFC after: 1 week Sponsored by: The FreeBSD Foundation
2022-06-23libsysdecode: Fix a typo in my emailDmitry Chagin
Reported by: Mikaël Urankar MFC after: 2 weeks
2022-06-22libsysdecode: Decode Linux open() flagsDmitry Chagin
MFC after: 2 weeks
2022-06-22libsysdecode: Decode Linux *at() flagsDmitry Chagin
MFC after: 2 weeks
2022-06-22kdump: Decode Linux clock_nanosleep syscallDmitry Chagin
MFC after: 2 weeks
2022-06-22kdump: Decode Linux sigprocmask how argumentDmitry Chagin
MFC after: 2 weeks
2022-06-22libsysdecode: Decode setitimer, getitimer which argumentDmitry Chagin
Reviewed by: jhb Differential revision: https://reviews.freebsd.org/D35230 MFC after: 2 weeks
2022-06-22libsysdecode: Add method for decoding Linux signal namesDmitry Chagin
Reviewed by: jhb Differential revision: https://reviews.freebsd.org/D35215 MFC after: 2 weeks
2022-06-22libsysdecode: Add preliminary support for decoding Linux syscallsDmitry Chagin
Differential revision: https://reviews.freebsd.org/D35354 MFC after: 2 weeks
2022-06-22libsysdecode: For future use extract common code to a separate filesDmitry Chagin
Reviewed by: jhb, emaste Differential revision: https://reviews.freebsd.org/D35353 MFC after: 2 weeks
2022-05-16libsysdecode: Fix decoding of SCHED_ flagsDmitry Chagin
Use sys/sched.h where SCHED_ flags are defined. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D35208 MFC after: 2 weeks
2022-04-15libsysdecode: Add regression tests for sysdecode_cap_rights(3)Mark Johnston
Reviewed by: jhb, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34900
2022-04-15libsysdecode: Include required headers in sysdecode.hMark Johnston
Make sysdecode.h self-contained rather than forcing all consumers to include dependencies. No functional change intended. Reviewed by: pauamma_gundo.com, jhb, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34899
2022-04-13libsysdecode: Fix decoding of Capsicum rightsMark Johnston
Capsicum rights are a bit tricky since some of them are subsets of others, and one can have rights R1 and R2 such that R1 is a subset of R2, but there is no collection of named rights whose union is R2. So, they don't behave like most other flag sets. sysdecode_cap_rights(3) does not handle this properly and so can emit misleading decodings. Try to fix all of these problems: - Include composite rights in the caprights table. - Use a constructor to sort the caprights table such that "larger" rights appear first and thus are matched first. - Don't print rights that are a subset of rights already printed, so as to minimize the length of the output. - Print a trailing message if some of the specific rights are not matched by the table. PR: 263165 Reviewed by: pauamma_gundo.com (doc), jhb, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34874
2022-03-03fd: add close_range(..., CLOSE_RANGE_CLOEXEC)Mateusz Guzik
For compatibility with Linux. MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D34424
2022-01-04libsysdecode: Decode sendmsg/recvmsg flags containing an underscoreMark Johnston
Otherwise MSG_CMSG_CLOEXEC is not decoded. MFC after: 1 week Sponsored by: The FreeBSD Foundation
2021-10-05sysdecode_enum.3: Fix a typo: SIGBTRAP -> SIGTRAP.John Baldwin
MFC after: 3 days Sponsored by: DARPA
2021-09-23libsysdecode: Permit _ in VM_PROT_(.*) names.Nathaniel Wesley Filardo
CheriBSD defines additional protection flags which use underscores such as VM_PROT_READ_CAP and VM_PROT_WRITE_CAP. Obtained from: CheriBSD Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D30017
2021-09-22sysdecode.3: Remove documentation of CloudABI ABIs.John Baldwin
Fixes: cf0ee8738e31 Drop cloudabi
2021-09-23libsysdecode: Decode FreeBSD32 syscalls on arm64.Olivier Houchard
Add aarch64 to the list of architectures that can run 32bits FreeBSD binaries, so that truss works correctly with an arm32 binary. The same should probably be done with mips. MFC After: 1 week