freebsd/freebsd-src
View on GitHub ↗ ★ 9,421 C
The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....
189 mentions on Hacker News by 121 people: 8 stories, 181 comments · first 2012-05-14 · latest 2026-10-26
20082026
-
FreeBSD /bin/cat has lots of recent changes of substance: https://github.com/freebsd/freebsd-src/commits/main/bin/cat/... Otoh, /usr/bin/true has only minor changes since initial import (1994) https://github.com/freebsd/freebsd-src/commits/…
comment by toast0 · 2026-10-26 · in Oldest GUI application that still runs on Windows 11 -
…, and was committed in 1994: * https://svnweb.freebsd.org/base/head/lib/libcrypt/crypt.c?re... * https://github.com/freebsd/freebsd-src/commit/3b2b7f71deba2a... * https://phk.freebsd.dk/sagas/md5crypt/ *…
comment by throw0101a · 2026-07-18 · in Goodbye, and Thanks for All the Bikesheds -
…Capsicum sandbox before processing any data, akin to what the OpenBSD version does with pledge. [1] https://github.com/freebsd/freebsd-src/blob/main/usr.bin/yes...
comment by ptx · 2026-07-09 · in OpenBSD has a use-after-free allowing local privilege escalation to root -
…directly [2]. Yeah... but at least the kernel doesn't call the apps... which it could ;^) [1] https://github.com/freebsd/freebsd-src/blob/main/sys/x86/x86...
comment by luke8086 · 2026-06-09 · in Show HN: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs -
…now until .\" the time_t's wrap around. .Pp You can tune a file system, but you cannot tune a fish. https://github.com/freebsd/freebsd-src/blob/main/sbin/tunefs...
comment by beej71 · 2026-04-06 · in Number in man page titles e.g. sleep(3) -
…increases the chance they’ll both eventually accept it. [0] https://man.netbsd.org/getenv_r.3 [1] https://github.com/freebsd/freebsd-src/commit/873420ca1e6e8a...
comment by skissane · 2025-10-13 · in Environment variables are a legacy mess: Let's dive deep into them -
…did spot that their own find had a -delete option in 1999. (-: Hell, even I am still using find. https://github.com/freebsd/freebsd-src/blob/main/usr.sbin/pe...
comment by JdeBP · 2025-08-11 · in Debian 13 “Trixie” -
…have to care about compatibility as much FreeBSD did it in 2012 (for the 2014 release of 10.0?): * https://github.com/freebsd/freebsd-src/commit/8f77be2b4ce5e3... And has compat layers going back many releases: *…
comment by throw0101d · 2025-07-28 · in Debian switches to 64-bit time for everything -
…in 2017: * https://lists.freebsd.org/pipermail/svn-src-all/2017-June/14... but amd64 was in 2012: * https://github.com/freebsd/freebsd-src/commit/8f77be2b4ce5e3... with only i386 remaining: * https://man.freebsd.org/cgi/man.cgi?query=arch…
comment by throw0101c · 2025-07-28 · in Debian switches to 64-bit time for everything -
I think FreeBSD tried to opaque FILE[1], but it was reverted[2] and still non-opaque in main[3]. [1]: https://github.com/freebsd/freebsd-src/commit/c17bf9a9a5a3b5... [2]: https://github.com/freebsd/freebsd-src/commit/19e03ca8038019... [3]:…
comment by loeg · 2025-07-20 · in Stdio(3) change: FILE is now opaque -
…a list of helpful macros for bit operations that originated in OpenSolaris (as far as I know) here: https://github.com/freebsd/freebsd-src/blob/master/sys/cddl/... There used to be an Open Solaris blog post on them, but Oracle has taken it…
comment by ryao · 2025-05-16 · in A leap year check in three instructions -
…metaprograming, but like everyone else, they eventually do. That's how we get monstrosities like https://github.com/freebsd/freebsd-src/blob/master/sys/sys/q... (plenty of Linux equivalents --- e.g. the tracepoint stuff) Better to use a…
comment by quotemstr · 2025-05-09 · in Implementing a Struct of Arrays -
…[1]. It's still supported, although in the recent years it was deprecated in favor of Lua [2]. [1] https://github.com/freebsd/freebsd-src/tree/main/stand/forth [2] https://github.com/freebsd/freebsd-src/tree/main/stand/lua
comment by luke8086 · 2025-03-05 · in NetBSD on a JavaStation -
…Why do you need to build it? But if it matters, FreeBSD has a pretty trivial BSDmake build of it: https://github.com/freebsd/freebsd-src/blob/main/lib/libzstd... https://github.com/freebsd/freebsd-src/blob/main/usr.bin/zst... You could…
comment by loeg · 2025-02-01 · in Bzip3: A spiritual successor to BZip2 -
…accepted by the masses. It is a great OS, but for personal computing, there are clear issues. 0: https://github.com/freebsd/freebsd-src/commit/2cf8ef5910fd37... 1: https://joshua.hu/FreeBSD-on-MacbookPro-114-A1398#building-w... 2:…
comment by mmsc · 2024-10-12 · in FreeBSD: How Can We Make It More Attractive to New Users? -
…on their site. This is whatabouttism, but damn, they don't deserve this kinda talk. Example: https://github.com/freebsd/freebsd-src/blob/0abe05aeac29d997...
comment by spookie · 2024-09-26 · in WordPress.org bans WP Engine -
…100% Rust or C OS, you still need C++ because of LLVM/GCC....well if you want a modern compiler ;) https://github.com/freebsd/freebsd-src
comment by BSDobelix · 2024-08-29 · in FreeBSD considers Rust in the base system -
…of ls is a bit more approachable, since BSD utilities typically don't have as much functionality. https://github.com/freebsd/freebsd-src/blob/main/bin/ls/ls.c I don't think Rust is going to make things significantly more accessible. It…
comment by jchw · 2024-08-27 · in FreeBSD-rustdate, a reimplementation of FreeBSD-update -
…doesn't seem great; using data structures should be a lot simpler! It doesn't look too crazy: https://github.com/freebsd/freebsd-src/blob/main/usr.sbin/fr... It's fairly well broken down, and pretty well organized. I think the most…
comment by deaddodo · 2024-08-27 · in FreeBSD-rustdate, a reimplementation of FreeBSD-update -
Cosmo author here. I'm familiar with the new rules. They were first implemented in https://github.com/freebsd/freebsd-src/commit/e0f5c1387df23c... which makes a clear intentional allowance for what APE is doing. If you look at the hex…
comment by jart · 2024-06-24 · in Cosmopolitan v3.5 -
…(x64): https://www.nvidia.com/en-us/drivers/unix/ FreeBSD ships firmware blobs both in tree, e.g., https://github.com/freebsd/freebsd-src/tree/main/sys/contrib... and via ports/packages, e.g., https://ports.freebsd.org/cgi/ports.cgi?query=f…
comment by jasomill · 2024-04-22 · in You shouldn't run a BSD on a PC -
…~150 critical tools, hardlinked under their usual names https://man.freebsd.org/cgi/man.cgi?rescue https://github.com/freebsd/freebsd-src/blob/main/rescue/resc...
comment by infofarmer · 2024-03-24 · in Linux Crisis Tools -
…degree that's been cleaned up – not so easy to grep for, but a quick check in git log shows e.g. https://github.com/freebsd/freebsd-src/commit/e5d0d1c5fbbc and some other things, so it seems there's still some K&R around. Probably others…
comment by arp242 · 2023-12-23 · in Xmas.c (1988) -
…But I bet this guy and his optimizations to the vfs and locking has made a significant impact. https://github.com/freebsd/freebsd-src/commits?author=mjguzi...
comment by laxd · 2023-11-27 · in FreeBSD 14.0 Delivering Great Performance Uplift -
…were deep concerns about the stability of same, so vfs.zfs.bclone_enabled = 0 was left in-place https://github.com/freebsd/freebsd-src/commit/068913e4ba3dd9...
comment by gonzo · 2023-11-22 · in ZFS 2.2.1: Block Cloning disabled due to data corruption -
Well there are some examples: https://github.com/freebsd/freebsd-src/tree/main/share/examp... But yeah that pf.conf could be expanded allot, but there are many source to cobble a conf together. My conf is massive but 99.9% commented out so…
comment by BSDobelix · 2023-11-20 · in FreeBSD 14.0-Release -
…* https://github.com/openzfs/zfs/discussions/15232 Also committed to FreeBSD -HEAD/development: * https://github.com/freebsd/freebsd-src/commit/e716630d4cf89e...
comment by throw0101a · 2023-11-20 · in FreeBSD 14.0-Release -
…-- FreeBSD imported a not fully functional version in 2017 and has seen more work on it in 2022: https://github.com/freebsd/freebsd-src/commits/main/usr.bin/... , but the default version shipped is still GNU diff3 from ~2007 (before the…
comment by loeg · 2023-11-10 · in How Git cherry-pick and revert use 3-way merge -
…Currently live release notes: * https://cgit.freebsd.org/src/tree/RELNOTES * https://github.com/freebsd/freebsd-src/blob/main/RELNOTES Particular commits that stated they should be noted in the notes ("Relnotes: yes"): * https://cgit.f
comment by throw0101b · 2023-09-10 · in FreeBSD 14 Beta Released with WiFi 6 Support, Updated LLVM Toolchain, Fwget -
…from the present and the past: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c https://github.com/freebsd/freebsd-src/blob/release/4.0.0/us...
comment by m1keil · 2023-09-09 · in Decoded: GNU Coreutils (2018) -
…< (*xipp)->order)) continue; /* skip*/ save = *sipp; *sipp = *xipp; *xipp = save; } } https://github.com/freebsd/freebsd-src/blob/2b14f991e64ebe31...
comment by erk__ · 2023-08-21 · in FreeBSD replaces bubblesort with mergesort on SYSINTs -
And Netgate contributes a ton to pf (and other subsystems) on FreeBSD. https://github.com/freebsd/freebsd-src/commits/main/sys/netp... Does OPNsense?
comment by gonzo · 2023-07-07 · in Big Update to OpenBSD's pfsync -
I think FreeBSD code in C is very well organized: https://github.com/freebsd/freebsd-src
comment by spektom · 2023-06-19 · in Ask HN: What are some of the most elegant codebases in your favorite language? -
…compatibility. For reference: * FreeBSD just returns EINVAL for a zero-length argument vector, https://github.com/freebsd/freebsd-src/commit/773fa8cd136a57... . This came from OpenBSD. * A null argument vector has been EFAULT in FreeBSD…
comment by JdeBP · 2023-06-06 · in The Linux kernel will fix some peculiar argv usage in execve(2) -
…and you can "Copy Permalink" to get a link directly to the line which has #L255 on the end, e.g. https://github.com/freebsd/freebsd-src/blob/40b287054521f0a9... )
comment by jodrellblank · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
Starting around line 255 in init_main.c (or search for bubble). see https://github.com/freebsd/freebsd-src/blob/40b287054521f0a9...
comment by canucker2016 · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…fewer SYSINIT objects to sort back in 1995 than today. see ~line 150 of sys/kern/init_main.c in https://github.com/freebsd/freebsd-src/commit/2b14f991e64ebe...
comment by canucker2016 · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…which we hit in production given how our data was arranged. (I think this was the check) https://github.com/freebsd/freebsd-src/blob/main/lib/libc/st...
comment by nice2meetu · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…boot process, but it is availible. [0]: https://twitter.com/bsdphk/status/1659568675899228163 [1]: https://github.com/freebsd/freebsd-src/commit/d89a1b600fc071...
comment by erk__ · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…In any new-ish production system I'd probably want to use anything other than syslogd anyways. https://github.com/freebsd/freebsd-src/blob/main/usr.sbin/sy...
comment by inferiorhuman · 2023-05-18 · in What happened with ASUS routers this morning? -
…This was added in FreeBSD 5.3, committed 19 years ago. (FreeBSD 5.3 released November 6, 2004) https://github.com/freebsd/freebsd-src/commit/f5896baf9c429c...
comment by toast0 · 2023-05-08 · in OpenBSD cron(8) now supports random ranges with steps -
…when I want to mirror a repo I consider interesting or important: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" Remember, also , the existence of "git annex": https://git-annex.branchable.com/ ... which solves…
comment by rsync · 2023-05-02 · in Let's make sure GitHub doesn't become the only option -
…to his lame fork of musl for the official FreeBSD sources for libm, taken from Sun, used by musl? https://github.com/freebsd/freebsd-src/blob/main/lib/msun/sr... or at least https://git.musl-libc.org/cgit/musl/tree/src/math/__cos.c
comment by rurban · 2023-03-31 · in Cosine Implementation in C -
…over SSH, etc. This is the earliest I could find, and it already contains assuming breach in 1998. https://github.com/freebsd/freebsd-src/commit/f063d76ae36ca4... Does anyone have an idea on how to see the file and its history from where…
comment by tete · 2023-01-15 · in Ask HN: How do you trust that your personal machine is not compromised? -
…to maintain it in base. Users/use-cases feedback are welcome. https://reviews.freebsd.org/D37354 https://github.com/freebsd/freebsd-src/pulls
comment by codesniperjoe · 2023-01-15 · in DragonFlyBSD's HAMMER2 File-System Being Ported to NetBSD -
…but probably that's not the source of the bug. What smells in there is 'hlen = ip->ip_hl << 2' [0] https://github.com/freebsd/freebsd-src/commit/46d7b45a267b3d... [1] https://github.com/freebsd/freebsd-src/commit/d9cacf605e2ac0... [2]…
comment by pajko · 2022-12-01 · in Remote execution bug in BSD ping -
…to be in multiple lists in the same time you can keep multiple list entries in the same struct: https://github.com/freebsd/freebsd-src/blob/69413598d2660054...
comment by nirs · 2022-11-05 · in In defense of linked lists -
…approach personally. And it's the approach some other grep implementations have taken too (eg https://github.com/freebsd/freebsd-src/blob/main/usr.bin/gre... ). The argv[0] approach (to me) feels like a right kind of compromise.
comment by hnlmorg · 2022-10-13 · in We are stuck with egrep and fgrep (unless you like beating people) -
…FreeBSD, it checks the first character of the program name and modifies behavior based on that. See https://github.com/freebsd/freebsd-src/blob/main/usr.bin/gre...
comment by drewg123 · 2022-10-13 · in We are stuck with egrep and fgrep (unless you like beating people) -
…the memo: coreutils ls: https://git.savannah.gnu.org/cgit/coreutils.git/log/src/ls.c freebsd ls: https://github.com/freebsd/freebsd-src/commits/927f8d8bbbed7... busybox ls: https://git.busybox.net/busybox/log/coreutils/ls.c openbsd ls:…
comment by Aissen · 2022-09-27 · in Outdated vs. Complete: In defense of apps that don’t need updates