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. …my knowledge faster due to less context shifting, since it’s self-contained in one source tree. https://github.com/freebsd/freebsd-src
  2. …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...
  3. …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...
  4. …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
  5. …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
  6. …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
  7. …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
  8. …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…
  9. net80211: validate Mesh ID length in ieee80211_parse_beacon https://github.com/freebsd/freebsd-src/commit/fb8c87b4f3bfdf...
  10. 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
  11. …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
  12. …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...
  13. …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…
  14. 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
  15. …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: *…
  16. …in filesystem corruption and this solution will at least correctly deal with transient errors. * https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986...
  17. …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/...
  18. …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
  19. …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...
  20. …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... )
  21. …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...
  22. …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
  23. …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)
  24. …forced to apply hacks depending on the __specific model of laptop__ just to avoid audio glitches: https://github.com/freebsd/freebsd-src/blob/40923b0c81cc2c15...
  25. …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
  26. …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
  27. …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…
  28. …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…
  29. …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
  30. …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
  31. …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…
  32. …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…
  33. …/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
  34. …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
  35. …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/...
  36. …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…
  37. …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)
  38. …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
  39. 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...
  40. …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...…
  41. …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...
  42. Netflix is mostly RACK. https://github.com/freebsd/freebsd/blob/f607bd6573312609114f...
  43. …, 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
  44. 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
  45. …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
  46. I archive github repos, for my own purposes, into my rsync.net account: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd"
    comment by rsync · 2020-08-29 · in GH Archive
  47. …be interested in reading the email thread of why it still panic'd, if you have it lying around. [0] https://github.com/freebsd/freebsd/blob/master/sys/kern/kern...
    comment by shakna · 2020-08-19 · in I’m A Teapot – HTTP status code 418
  48. …while FreeBSD uses dedicated system calls. https://filippo.io/linux-syscall-table/ <- max = 313 https://github.com/freebsd/freebsd/blob/master/sys/kern/sysc... <- max = 576, 356 marked 'STD'
    comment by EdSchouten · 2020-06-30 · in Implementing a System Call for OpenBSD
  49. …as a separately developed package. https://github.com/openbsd/src/commits/master/sbin/ifconfig https://github.com/freebsd/freebsd/commits/master/sbin/ifcon...
    comment by sigjuice · 2020-06-26 · in Questions: History of Ifconfig
  50. …where it is happily #defined as 11, and continues as such to this day: https://github.com/freebsd/freebsd/blob/master/sys/sys/signa... (etc, in the other BSD-derived systems) if anyone wants to dig further.