aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* msun: Add copyright noticesWarner Losh11 hours3-0/+24
| | | | | | | | | | | These files were copied from MUSL. Add the standard copyright notice and SPDX-License-Identifier: MIT consistent with our new draft license policy. It reads word for word the same as the MIT license on the SPDX web site. Add a pointer to the MUSL COPYIRGHT file which contains a list of all authors of MUSL. Sponsored by: Netflix Noticed by: Steve Kargl
* Add libfido2 to the buildEd Maste15 hours2-1/+74
| | | | | | | | | | | | | | | | | | | | | From https://github.com/Yubico/libfido2: libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB, and to verify attestation and assertion signatures. libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols. libfido2 will be used by ssh to support FIDO/U2F keys. It is currently intended only for use by ssh, and so is installed as a PRIVATELIB and is placed in the ssh pkgbase package. This is currently disabled for the 32-bit library build as libfido2 is not compatible with the COMPAT_32BIT hack in usb_ioctl.h. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32448
* Retire synchronous PPP kernel driver sppp(4).Gleb Smirnoff21 hours2-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last two drivers that required sppp are cp(4) and ce(4). These devices are still produced and can be purchased at Cronyx <http://cronyx.ru/hardware/wan.html>. Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no longer support FreeBSD officially. Later they have dropped support for Linux drivers to. As of mid-2020 they don't even have a developer to maintain their Windows driver. However, their support verbally told me that they could provide aid to a FreeBSD developer with documentaion in case if there appears a new customer for their devices. These drivers have a feature to not use sppp(4) and create an interface, but instead expose the device as netgraph(4) node. Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on top of the node and get your synchronous PPP. Alternatively you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC. Actually, last time I used cp(4) back in 2004, using netgraph(4) instead of sppp(4) was already the right way to do. Thus, remove the sppp(4) related part of the drivers and enable by default the negraph(4) part. Further maintenance of these drivers in the tree shouldn't be a big deal. While doing that, remove some cruft and enable cp(4) compilation on amd64. The ce(4) for some unknown reason marks its internal DDK functions with __attribute__ fastcall, which most likely is safe to remove, but without hardware I'm not going to do that, so ce(4) remains i386-only. Reviewed by: emaste, imp, donner Differential Revision: https://reviews.freebsd.org/D32590 See also: https://reviews.freebsd.org/D23928
* sysctl.3: sys/types.h no longer needs to be explicitly includedMark Johnston4 days1-2/+1
| | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32562
* procctl: actually require debug privileges over targetKonstantin Belousov4 days1-0/+8
| | | | | | | | | | | for state control over TRACE, TRAPCAP, ASLR, PROTMAX, STACKGAP, NO_NEWPRIVS, and WXMAP. Reported by: emaste Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32513
* procctl(2): add consistent shortcut P_ID:0 as curprocKonstantin Belousov4 days1-0/+2
| | | | | | | | Reported by: bdrewery, emaste Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32513
* llvm-readobj: Add missed source fileDimitry Andric7 days1-0/+1
| | | | | | | | | In some configurations (e.g. powerpc64) the llvm-readobj tool also needs contrib/llvm-project/llvm/BinaryFormat/MsgPackWriter.cpp, so add it to libllvm. Reported by: Shawn Webb <shawn.webb@hardenedbsd.org> Fixes: 1b85b68da0b2
* Add libcbor to the buildEd Maste8 days4-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | From https://github.com/PJK/libcbor: libcbor is a C library for parsing and generating CBOR, the general- purpose schema-less binary data format. libcbor will be used by ssh to support FIDO/U2F keys. It is currently intended only for use by ssh, and so is installed as a PRIVATELIB and is placed in the ssh pkgbase package. cbor_export.h and configuration.h were generated by the upstream CMake build. We could create them with bmake rules instead (as NetBSD has done) but this is a fine start. This is currently disabled for the 32-bit library build as libfido2 is not compatible with the COMPAT_32BIT hack in usb_ioctl.h, and there is no need for libcbor without libfido2. Reviewed by: kevans MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32347
* libthr: Use kern.stacktop for thread stack calculation.Dawid Gorecki8 days3-19/+24
| | | | | | | | | | | | | | | | | | | | Use the new kern.stacktop sysctl to retrieve the address of stack top instead of kern.usrstack. kern.usrstack does not have any knowledge of the stack gap, so this can cause problems with thread stacks. Using kern.stacktop sysctl should fix most of those problems. kern.usrstack is used as a fallback when kern.stacktop cannot be read. Rename usrstack variables to stacktop to reflect this change. Fixes problems with firefox and thunderbird not starting with stack gap enabled. PR: 239873 Reviewed by: kib Obtained from: Semihalf Sponsored by: Stormshield MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D31898
* llvm-readobj: Attach to buildsystemCameron Katri9 days1-8/+13
| | | | | | | Also install it as readelf when MK_LLVM_BINUTILS is set. Reviewed By: dim, arichardson Differential Revision: https://reviews.freebsd.org/D32058
* Allow the BPF to be select for write. This is needed for boost:asioHartmut Brandt13 days1-2/+7
| | | | | | which otherwise fails to handle BPFs. Reviewed by: ae Differential Revision: https://reviews.freebsd.org/D31967
* O_PATH: allow vfs_extattr syscallsGreg V12 days1-1/+6
| | | | | | | | | These calls do operate on vnodes only, not file contents. This is useful for e.g. the xdg-document-portal fuse filesystem. Reviewed by: kib, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D32438
* nanosleep.2: use appropriate macrosPiotr Pawel Stefaniak12 days1-1/+4
| | | | | Reported by: kib Fixes: bf8f6ffcb66a
* ncurses: fix typo in makefileBaptiste Daroussin13 days1-1/+1
|
* ncurses: convert libncursesw.a into a static ldscriptBaptiste Daroussin13 days1-0/+14
| | | | | | | | | | | | | | Introduce the notion of static linker scripts to allow libncursesw.a to track its dependency on libtinfow.a this allows the build of older freebsd source tree to happen and make static linking in part with dynamic linking which already provides a ldscript This fixes a bootstrapping FreeBSD 12 or 13 on recent FreeBSD 14 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D32435
* readlinkat(2): allow O_PATH fdKonstantin Belousov14 days1-2/+3
| | | | | | | | | PR: 258856 Reported by: ashish Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32390
* Mention kern.timecounter.alloweddeviation in nanosleep.1Piotr Pawel Stefaniak2021-10-081-1/+3
| | | | | PR: 224837 Reported by: Aleksander Derevianko
* login.conf.5: Mark passwordtime as implementedFelix Johnson2021-10-061-4/+4
| | | | | | | | | | | login.conf.5 listed passwordtime in RESERVED CAPABILITIES, which is a section for capabilities not implemented in the base system. However, passwordtime has been implemented in the base for several years now. PR: 246099 Reported by: avg Reviewed by: 0mp MFC after: 3 days
* Fix mistakes in link(2) and shm_open(2)Konstantin Belousov2021-10-062-3/+3
| | | | | | PR: 258957 Submitted by: sigsys@gmail.com MFC after: 1 week
* sysdecode_enum.3: Fix a typo: SIGBTRAP -> SIGTRAP.John Baldwin2021-10-051-1/+1
| | | | | MFC after: 3 days Sponsored by: DARPA
* libthr(3): explain some internals of the locks implementationKonstantin Belousov2021-10-051-2/+61
| | | | | | | | | | | | | | Describe internal allocations, mention problems with the use of global malloc(3) and the reasons for internal allocator existence. Document shared objects implementation and describe shortcomings of the chosen approach, as well as the rationale why it was done that way. Reviewed by: markj Discussed with: jilles Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D32243
* ncurses: fix path where to find curses.h at bootstrapBaptiste Daroussin2021-10-041-2/+2
| | | | | | after the split, curses.h is now generated by tinfo Makefile, but still used for a file generated in ncurses lib. Adjust the path to make sure curses.h is always found
* ncurses: chase dependency changes in the source treeBaptiste Daroussin2021-10-042-2/+2
| | | | Differential Revision: https://reviews.freebsd.org/D32098
* ncurses: split libtinfo from libncursesBaptiste Daroussin2021-10-048-987/+1146
| | | | | | | | | | | many external program expects libncurses to not be provided as a single library. Instead of fixing all ports, distribute ncurses the way upstream distributes it Turn libncursesw.so into a ldscript which will link automatically as needed to libtinfow so so this change is seamless at compile time. Differential Revision: https://reviews.freebsd.org/D32098
* libgcc_s: Export 64-bit int to 128-bit float functionsJessica Clarke2021-10-031-0/+2
| | | | | | | | | | | | The corresponding 32-bit int and 128-bit int functions were added in 790a6be5a169, as were all combinations of the float to int functions, but these two were overlooked. __floatditf is needed to build curl for riscv as there's a signed 64-bit int to 128-bit float conversion in lib/progress.c's trspeed as of 7.77.0. Reviewed by: dim MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D31997
* mixer(3): Fix buildworld after 38c857d956d61b811fb2047bc980b90d64a072bf .Hans Petter Selasky2021-10-012-4/+4
| | | | | | | s/default_unit/dunit/g Differential Revision: https://reviews.freebsd.org/D32254 Sponsored by: NVIDIA Networking
* mixer(3): Add some manual page symlinks.Hans Petter Selasky2021-10-011-0/+23
| | | | | | Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D32254 Sponsored by: NVIDIA Networking
* mixer(3): Add symbol versioning.Hans Petter Selasky2021-10-012-0/+24
| | | | | | Suggested by: kib Differential Revision: https://reviews.freebsd.org/D32254 Sponsored by: NVIDIA Networking
* libc: ssp: sprinkle around some __dead2Kyle Evans2021-10-011-3/+3
| | | | | This is consistent with, e.g., NetBSD's implementation, which declares these as noreturn in ssp/ssp.h.
* kqueue: clean up some igor and mandoc -Tlint warningsKyle Evans2021-10-011-4/+5
|
* kqueue: document how timers with low/past timeouts are handledKyle Evans2021-10-011-1/+7
| | | | | Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D32237
* jail(3lua): add jail.attach()/jail.remove() methodsKyle Evans2021-09-302-0/+96
| | | | | | | | | These aren't a part of or use libjail(3), but rather are direct syscalls. Still, they seem like good additions, allowing us to attach to already-running jails. Reviewed by: freqlabs Differential Revision: https://reviews.freebsd.org/D26927
* jail(3lua): add a jail.list() methodKyle Evans2021-09-302-35/+334
| | | | | | | | | | | This is implemented as an iterator, reusing parts of the earlier logic to populate jailparams from a passed in table. The user may request any number of parameters to pull in while we're searching, but we'll force jid and name to appear at a minimum. Reviewed by: freqlabs Differential Revision: https://reviews.freebsd.org/D26756
* libpmc: add some AMD pmu counter aliasesMitchell Horne2021-09-301-0/+13
| | | | | | | | | | Make it mostly compatible with what's defined for Intel. Except where noted, these are defined for all of amdzen(1|2|3). Reviewed by: emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32162
* libpmc: fix the 'cycles' event alias on x86Mitchell Horne2021-09-302-2/+1
| | | | | | | | | | | Looking for "tsc-tsc" in the pmu tables will fail every time. Instead, make this an alias for the static TSC event defined in pmc_events.h. This fixes 'pmcstat -s cycles' on Intel and AMD. Reviewed by: emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32197
* bluetooth: Remove one more h4 reference.Warner Losh2021-09-301-1/+0
| | | | Sponsored by: Netflix
* bluetooth: Remove stray btccc referencesWarner Losh2021-09-301-1/+0
| | | | | | | | The 3com bluetooth PC Card adapter was removed from the tree when PC Card support was removed earlier this year. Remove stray references to it still in the tree. Sponsored by: Netflix
* pfctl: userspace adaptive syncookies configrationKristof Provost2021-09-292-6/+55
| | | | | | | | Hook up the userspace bits to configure syncookies in adaptive mode. MFC after: 1 week Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D32136
* mixer(3): Add support for controlling mixer mute and volume on feeder channels.Hans Petter Selasky2021-09-281-10/+14
| | | | | | | PR: 258711 Reported by: jbeich@FreeBSD.org Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* pidfile test: guarantee nul termination of the read pid stringKonstantin Belousov2021-09-241-1/+2
| | | | | | PR: 258701 Based on the submission by: sigsys@gmail.com MFC after: 1 week
* pf: support dummynetKristof Provost2021-09-242-0/+9
| | | | | | | | | | | | Allow pf to use dummynet pipes and queues. We re-use the currently unused IPFW_IS_DUMMYNET flag to allow dummynet to tell us that a packet is being re-injected after being delayed. This is needed to avoid endlessly looping the packet between pf and dummynet. MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D31904
* kqueue: Add EV_KEEPUDATA flagNathaniel Wesley Filardo2021-09-241-1/+16
| | | | | | | | | | | When this flag is set, operations that update an existing kevent will not change the udata field. This can be used to NOTE_TRIGGER or EV_{EN,DIS}ABLE events without overwriting the stashed pointer. Reviewed by: Domagoj Stolfa <domagoj.stolfa@gmail.com> Obtained from: CheriBSD Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D30286
* libsysdecode: Permit _ in VM_PROT_(.*) names.Nathaniel Wesley Filardo2021-09-241-1/+1
| | | | | | | | | 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
* pmc: intr pmc.soft(3) updateWojciech Macek2021-09-231-1/+13
| | | | | | | Obtained from: Semihalf Sponsored by: Stormshield Reviewed by: mhorne Differential revision: https://reviews.freebsd.org/D32055
* sysdecode.3: Remove documentation of CloudABI ABIs.John Baldwin2021-09-231-8/+2
| | | | Fixes: cf0ee8738e31 Drop cloudabi
* libsysdecode: Decode FreeBSD32 syscalls on arm64.Olivier Houchard2021-09-221-2/+2
| | | | | | | | 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
* mixer(3) and mixer(8): Update manual pages.Hans Petter Selasky2021-09-221-2/+2
| | | | | | | | | - Use correct e-mail address. - Set FreeBSD 14.0 as introduction for the updated mixer(8) utility. Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* Implement and use new mixer(3) library for FreeBSD.Hans Petter Selasky2021-09-225-0/+1165
| | | | | | | | | Wiki article: https://wiki.freebsd.org/SummerOfCode2021Projects/SoundMixerImprovements This project was part of Google Summer of Code 2021. Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* Drop cloudabiKonstantin Belousov2021-09-213-112/+0
| | | | | | | | | | | | | According to https://github.com/NuxiNL/cloudlibc: CloudABI is no longer being maintained. It was an awesome experiment, but it never got enough traction to be sustainable. There is no reason to keep it in FreeBSD. Approved by: ed (private mail) Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D31923
* libcam: Define depop structures and introduce scsi_wrapWarner Losh2021-09-203-2/+221
| | | | | | | | | | | | | | | Define structures related to the depop set of commands (GET PHYSICAL ELEMENT STATUS, REMOVE ELEMENT AND TRUNCATE, and RESTORE ELEMENT AND REBUILD) as well as the CDB construction routines. Also create scsi_wrap.c. This will have convenience routines that will do all the elements of allocating the ccb, generating the CDB, sending the command (looping as necessary for cases where data is returned, but it's size isn't known up front), etc. As this functionality is fleshed out, calling many camcontrol commands programatically gets much easier. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29017