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
-
…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 -
…my knowledge faster due to less context shifting, since it’s self-contained in one source tree. https://github.com/freebsd/freebsd-src
comment by Cieplak · 2022-09-10 · in Ask HN: What's the best source code you've read? -
…function to tear down the connection and release what's sitting on the socket buffer. See https://github.com/freebsd/freebsd-src/blob/main/sys/kern/ke...
comment by drewg123 · 2022-08-19 · in Serving Netflix Video Traffic at 800Gb/s and Beyond [pdf] -
…a lot of CPU as compared to normal TCP (since it is doing pacing, limiting TSO burst sizes, etc). https://github.com/freebsd/freebsd-src/blob/main/sys/netinet...
comment by drewg123 · 2022-08-19 · in Serving Netflix Video Traffic at 800Gb/s and Beyond [pdf] -
…it, but it uses a different protocol from Linux's CUSE. You can see the FreeBSD implementation at https://github.com/freebsd/freebsd-src/blob/release/13.1.0/s... -- note how cuse_server_read() and cuse_server_write() are stubs. I am…
comment by jmillikin · 2022-08-18 · in An io_uring-based user-space block driver -
…and touchpad). Edit: for example, this is the FreeBSD code for HDA sound device (it's messy): https://github.com/freebsd/freebsd-src/blob/main/sys/dev/sou...
comment by zinekeller · 2022-08-01 · in Linux 5.19 -
…typical desktop or a server you'll likely find better targets than 'yes' to reduce energy use. [1] https://github.com/freebsd/freebsd-src/blob/main/usr.bin/yes...
comment by citrin_ru · 2022-07-21 · in A little story about the `yes` Unix command -
…the code to handle those procedures, but on the client side it's all there, ready to use. [0] https://github.com/freebsd/freebsd-src/blob/main/include/rpc...
comment by mprovost · 2022-06-21 · in NFS: The Early Years -
…scripts, it's an entirely orthogonal issue; a typical rc script in, say, FreeBSD, looks like this: https://github.com/freebsd/freebsd-src/blob/main/libexec/rc/... . It's declarative, it's easy to understand, but it also provides you with…
comment by trasz · 2022-06-08 · in What FreeBSD can offer compared to other operating systems (2020) -
net80211: validate Mesh ID length in ieee80211_parse_beacon https://github.com/freebsd/freebsd-src/commit/fb8c87b4f3bfdf...
comment by jiripospisil · 2022-06-01 · in CVE-2022-23088 – FreeBSD Network Subsystem Remote Code Execution Vulnerability -
Identifying slow pieces of boot: https://github.com/freebsd/freebsd-src/search?q=TSENTER , etc: https://github.com/freebsd/freebsd-src/blob/main/sys/sys/tsl... , and then eliminating low hanging fruit (many, but not all of his recent…
comment by loeg · 2022-05-16 · in FreeBSD 13.1 -
…The GitHub mirror shows commits to that part of the source tree less than a month ago: https://github.com/freebsd/freebsd-src/tree/main/tools/tools... https://reviews.freebsd.org/D34241
comment by xenophonf · 2022-03-11 · in FreeBSD 13.1 Beta 1 -
…FreeBSD's queue(3) (sys/queue.h). https://www.freebsd.org/cgi/man.cgi?query=queue&apropos=0&se... https://github.com/freebsd/freebsd-src/blob/main/sys/sys/que...
comment by loeg · 2022-03-10 · in Toward a better list iterator for the Linux kernel -
…ioctls to the low 32-bit space because of exactly this kind of bogus assumption in userspace: https://github.com/freebsd/freebsd-src/blob/main/sys/kern/sy... It's a relatively recent change (2020). Here's the corresponding place OpenBSD…
comment by loeg · 2022-02-18 · in Debugging an Ioctl Problem on OpenBSD -
FreeBSD did not require non null argv[0] until 9 days ago. https://github.com/freebsd/freebsd-src/commit/773fa8cd136a57...
comment by tedunangst · 2022-02-04 · in Handling argc==0 in the Linux kernel -
…FreeBSD keeps the dirty buffer (always marked as dirty) in memory as long as the device exists: * https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986... You only toss the data when the device associated with the data goes away: *…
comment by throw0101a · 2022-01-30 · in PostgreSQL used fsync incorrectly for 20 years (2019) [video] -
…in filesystem corruption and this solution will at least correctly deal with transient errors. * https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986...
comment by throw0101a · 2022-01-30 · in PostgreSQL used fsync incorrectly for 20 years (2019) [video] -
…are branches from the stable branch. This chart attempts to draw the relationship in ASCII: https://github.com/freebsd/freebsd-src/blob/main/share/misc/...
comment by loeg · 2022-01-25 · in FreeBSD has serious problems with focus, longevity and lifecycle (2012) -
…The rest of this commit message describes the behavior when enabled. […] * https://github.com/freebsd/freebsd-src/commit/179f62805cf05c... random(4): Flip default Fortuna generator over to Chacha20 The implementation was landed in r3
comment by throw0101a · 2022-01-07 · in Random number generator updates for Linux 5.17 -
…The Fortuna state hashing algorithm uses a SHA256-based construction; not SHA1 or Blake2s[1]. [1]: https://github.com/freebsd/freebsd-src/blob/main/sys/dev/ran... , https://github.com/freebsd/freebsd-src/blob/main/sys/dev/ran...
comment by loeg · 2022-01-07 · in Random number generator updates for Linux 5.17 -
…of jails in the code -- see https://github.com/apple/darwin-xnu/blob/main/bsd/kern/kern_... vs https://github.com/freebsd/freebsd-src/blob/main/sys/kern/ke... )
comment by spijdar · 2021-09-08 · in Podman, the open source Docker alternative ported to M1 (Apple Silicon) machines -
…confident of that yet based on the article), this will be worse than glibc's larger buffer. [1]: https://github.com/freebsd/freebsd-src/blob/main/lib/libc/ge...
comment by loeg · 2021-08-15 · in You can list a directory containing 8M files, but not with ls -
…the routine & the unit test, and they hilariously left my commented debug prints in the routine. https://github.com/freebsd/freebsd-src/blob/412b5e40a721430a... And their 100GbE NIC has the same limit, which is just so sad. All these fancy…
comment by drewg123 · 2021-07-29 · in Hunting a bug in the i40e Intel driver -
…representative of real-world usage. A factor of 2 would IMO be worth it, though. Cursory reading https://github.com/freebsd/freebsd-src/blob/de1aa3dab23c06fe... , I get the impression FreeBSD switches over to a ¿bubble sort? (I didn’t look…
comment by Someone · 2021-07-19 · in Do Low-Level Optimizations Matter? (2020) -
…forced to apply hacks depending on the __specific model of laptop__ just to avoid audio glitches: https://github.com/freebsd/freebsd-src/blob/40923b0c81cc2c15...
comment by qalmakka · 2021-05-28 · in Ubuntu 21.04 significantly faster than windows 10 on Threadripper -
…By the way, I don't know if this is the canonical implementation, but FreeBSD mv is 481 lines of C: https://github.com/freebsd/freebsd-src/blob/master/bin/mv/mv...
comment by nonameiguess · 2021-05-07 · in JavaScript for Shell Scripting -
…that committee consists of a single individual who also writes all the code for the project... [2]: https://github.com/freebsd/freebsd-src/blob/main/sys/dev/e10...
comment by jen20 · 2021-04-22 · in Green vs. Brown Programming Languages -
…In FreeBSD, the RB tree implementation has been replaced with a "weak AVL" tree implementation: https://github.com/freebsd/freebsd-src/commit/504ba65c8c9f7a... > Weak AVL (Wavl) trees sit between AVL and red-black trees in terms of how…
comment by loeg · 2021-04-09 · in Tree.h in OpenBSD: dependency-free intrusive binary tree (2002) -
…which in turn is probably sync'd from FreeBSD. `find -name something` will fail early in main. See https://github.com/freebsd/freebsd-src/blob/b422540/usr.bin/... When processing the 'n' in '-name' getopt() will return '?', which will end…
comment by wahern · 2021-04-09 · in Why do long options start with two dashes? (2019) -
…of PNG. You can see it's a fair bit more complicated but it does have mime and extension data. https://github.com/freebsd/freebsd-src/blob/master/contrib/f...
comment by garblegarble · 2021-03-24 · in Removed gem breaks Rails ActiveStorage -
…else of that nature. [0]: https://elixir.bootlin.com/linux/v5.11.8/source/include/linu... [1]: https://github.com/freebsd/freebsd-src/blob/master/sys/kern/...
comment by cycloptic · 2021-03-23 · in Plan 9 from Bell Labs in Cyberspace -
…people the effort of finding the right git revision and the path, the kernel module starts here: https://github.com/freebsd/freebsd-src/tree/95331c228a39b44c... On a casual inspection, there are at least kernel printfs in crypto code in…
comment by siebenmann · 2021-03-18 · in FreeBSD kernel-mode WireGuard moves forward out-of-tree -
…platform and you can do anything you like with it, remotely, over ssh: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" I personally track a number of repos I consider important and keep my own source trees up to…
comment by rsync · 2021-03-12 · in How Git servers work, and how to keep yours secure -
…/proc: https://github.com/coreutils/coreutils/blob/9de1d153f82243ae... FreeBSD just uses fstat: https://github.com/freebsd/freebsd-src/blob/e4b8deb222278b2a...
comment by Freaky · 2021-03-09 · in Debian Running on Rust Coreutils -
…The FreeBSD C library does not use a separate "operations" table. * https://github.com/freebsd/freebsd-src/blob/main/lib/libc/st... A glib summary is that sscanf() in these implementations has to set up state on every call tha
comment by JdeBP · 2021-03-01 · in How I cut GTA Online loading times by 70% -
…have a pretty tight software stack (or a lot of swap) to average less than 16k of ram per fd. [1] https://github.com/freebsd/freebsd-src/blob/master/sys/kern/...
comment by toast0 · 2021-02-05 · in Talking to Postgres Through Java 16 Unix-Domain Socket Channels -
…platform. So, in the same way that you can run 'git' commands over SSH: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" ... you can now, also, run 'rclone' over SSH: ssh user@rsync.net rclone s3:/some/bucket…
comment by rsync · 2021-01-26 · in An rsync.net account is the swiss army knife of cloud storage -
…supported. So, while you've always been able to do things like this: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" ... you can now supply a list of repos and access tokens/keys (presumably read-only) and set…
comment by rsync · 2021-01-22 · in Backing up Everything, Again (2019) -
…used have direct parallels. Compare and contrast: • FreeBSD ABI (direct descendant of 4.2BSD): https://github.com/freebsd/freebsd-src/blob/master/sys/kern/... • Linux x86 ABI: https://chromium.googlesource.com/chromiumos/docs/+/master/c...…
comment by derefr · 2021-01-15 · in Apple M1 Assembly Language Hello World -
▲ 1
Remove overuse of exclamation marks in kernel printfs (2009)story by segfaultbuserr · 2021-01-04 · 0 comments
-
I think you are right. `strlcpy` is only supposed to copy `n-1` bytes from src to dest. https://github.com/freebsd/freebsd/blob/master/sys/libkern/s...
comment by harikb · 2020-12-28 · in Cosmopolitan Libc: build-once run-anywhere C library -
…massive machine with (for some reason) very sparsely populated huge physical memory address space. https://github.com/freebsd/freebsd/commit/d7704f9e75aafd312a... https://github.com/freebsd/freebsd/commit/5786fe85813a411327...…
comment by floatboth · 2020-12-18 · in The Ampere Altra Review: 2x 80 Cores Arm Server Performance Monster -
…is type safe, has quite a few variants for single and double lists, and oh also, it's not GPL. [0]: https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...
comment by buserror · 2020-12-07 · in Linus Torvalds' good taste argument for linked lists, explained -
Netflix is mostly RACK. https://github.com/freebsd/freebsd/blob/f607bd6573312609114f...
comment by drewg123 · 2020-11-28 · in The great Internet TCP congestion control census -
…, previously: https://news.ycombinator.com/item?id=24971456 [3]: https://github.com/freebsd/freebsd/blob/master/etc/mtree/BSD...
comment by loeg · 2020-11-24 · in FreeBSD Commands Cheat Sheet -
▲ 1
Trigger soft lifetime expiration on sequence number · FreeBSD/FreeBSD e9ef32dstory by rodrigo975 · 2020-11-02 · 0 comments
-
Just use the `whois` tool? man page: https://www.freebsd.org/cgi/man.cgi?query=whois source code: https://github.com/freebsd/freebsd/blob/master/usr.bin/whois...
comment by dddddaviddddd · 2020-09-17 · in Tell HN: Never search for domains on Godaddy.com -
…about the same size, but was again re-written in 2002 to "to add some features required by SUSv3" : https://github.com/freebsd/freebsd/commit/1894db5ac7af64acc7...
comment by drewg123 · 2020-09-03 · in The Unix `Who` Command