Hacker GitHub

← All repos

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

Mentions per year 189 mentions · busiest year 2020 (28)
20082026
  1. …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.
  2. …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...
  3. …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:…
  4. …my knowledge faster due to less context shifting, since it’s self-contained in one source tree. https://github.com/freebsd/freebsd-src
  5. …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...
  6. …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...
  7. …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
  8. …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
  9. …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
  10. …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
  11. …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…
  12. net80211: validate Mesh ID length in ieee80211_parse_beacon https://github.com/freebsd/freebsd-src/commit/fb8c87b4f3bfdf...
  13. 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
  14. …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
  15. …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...
  16. …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…
  17. 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
  18. …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: *…
  19. …in filesystem corruption and this solution will at least correctly deal with transient errors. * https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986...
  20. …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/...
  21. …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
  22. …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...
  23. …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... )
  24. …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...
  25. …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
  26. …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)
  27. …forced to apply hacks depending on the __specific model of laptop__ just to avoid audio glitches: https://github.com/freebsd/freebsd-src/blob/40923b0c81cc2c15...
  28. …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
  29. …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
  30. …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…
  31. …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…
  32. …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
  33. …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
  34. …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…
  35. …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…
  36. …/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
  37. …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
  38. …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/...
  39. …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…
  40. …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)
  41. …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
  42. ▲ 1
    Remove overuse of exclamation marks in kernel printfs (2009)
    story by segfaultbuserr · 2021-01-04 · 0 comments
  43. 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...
  44. …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...…
  45. …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...
  46. Netflix is mostly RACK. https://github.com/freebsd/freebsd/blob/f607bd6573312609114f...
  47. …, 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
  48. ▲ 1
    Trigger soft lifetime expiration on sequence number · FreeBSD/FreeBSD e9ef32d
    story by rodrigo975 · 2020-11-02 · 0 comments
  49. 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
  50. …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