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. 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
  2. …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
  3. …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
  4. …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
  5. …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.
  6. …terminal emulator (vt) loads two fonts, one for normal (medium) weight and one for boldface. * https://github.com/freebsd/freebsd/blob/5f17a06d9cc0a87e26fb...
    comment by JdeBP · 2020-06-03 · in Writing to the Framebuffer (2018)
  7. They could even do it with less churn, because of https://github.com/freebsd/freebsd/blob/master/sys/conf/opti... FreeBSD easily achieves binary compatibility with earlier versions. So no need to mess around with DKMS or their own thing.…
  8. …flag definitions for calls). See linux_common_open() for an example of an "easy" straight mapping. https://github.com/freebsd/freebsd/blob/68a4c41e983228d54619... This is true even between OSes that share a common ancestor. I was the…
    comment by drewg123 · 2020-05-06 · in Initial Impressions of WSL 2
  9. …to as "runcom" by FreeBSD init (pid 1), for example, in reference to the /etc/rc program (pid 2): https://github.com/freebsd/freebsd/blob/master/sbin/init/ini...
  10. …We ran into this on localhost first, but then later across the internet with external clients. [1] https://github.com/freebsd/freebsd/commit/56ba0a68edde7b3832... [2] https://github.com/freebsd/freebsd/commit/fc2be30b217171175b...
  11. …second round trip covers the vast majority of internet connections. Details nicely commented here: https://github.com/freebsd/freebsd/blob/master/sys/netinet/t...
  12. …a well-defined priority[1], and the array is sorted by this priority value at boot time.[2] [1]: https://github.com/freebsd/freebsd/blob/master/sys/sys/kerne... [2]: https://github.com/freebsd/freebsd/blob/master/sys/kern/init...
    comment by loeg · 2020-04-17 · in Embedding Binary Objects in C
  13. FreeBSD recently switched PPC32 to Clang and LLD https://github.com/freebsd/freebsd/commit/684fed6e06cc3d3cff... :) As for WinNT and other non-ELF platforms systems, that's retro hobbyist territory, not very likely to end up in upstream…
    comment by floatboth · 2020-04-02 · in Swift on Mac OS 9
  14. …-U postgres db | ssh user@rsync.net "dd of=db_dump" or maybe even: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" Setting aside these "rsync.net tricks", I think you should look into the 'borg'[1][2] backup…
    comment by rsync · 2020-03-24 · in In praise of S3
  15. …* https://www.freebsd.org/cgi/man.cgi?mtree It can also be used to create a hierarchy: * https://github.com/freebsd/freebsd/tree/master/etc/mtree
  16. ▲ 287
    FreeBSD has removed GCC from its base system
    story by gcoleman · 2020-03-03 · 176 comments
  17. …LuaJIT, FreeBSD, Memcached --> https://github.com/antirez/redis https://github.com/LuaDist/luajit https://github.com/freebsd/freebsd https://github.com/memcached/memcached
    comment by eindiran · 2020-02-14 · in To become a good C programmer (2011)
  18. The FreeBSD core utilities are reasonably short: https://github.com/freebsd/freebsd/tree/master/bin
  19. …SYN+ACK if it was smaller than the locally configured MSS, but that was removed with this commit: https://github.com/freebsd/freebsd/commit/e1f9aeedee0bae9281...
  20. …that FreeBSD's tar is contributed code from libarchive and not an in-tree thing like I assumed! https://github.com/freebsd/freebsd/blob/master/usr.bin/tar/M... Looks like that option got merged in 2013:…
  21. …rather than the BSD side). [1] https://opensource.apple.com/source/xnu/xnu-1504.15.3/osfmk/... [2] https://github.com/freebsd/freebsd/commits/master/sys/sys/tu...
  22. ▲ 1
    Port the NetBSD Kcsan Runtime to FreeBSDc
    story by rodrigo975 · 2019-11-21 · 0 comments
  23. …really strange. This seems to be inherited by the FreeBSD version, which still does that as well: https://github.com/freebsd/freebsd/blob/8f9d69492c3da3a8c1ea... It has the worst of both worlds: it incorrectly counts the number of words…
    comment by danieldk · 2019-11-21 · in Beating C with 70 lines of Go
  24. …https://github.com/torvalds/linux/blob/6cdc577a18a616c331f57... And FreeBSD: https://github.com/freebsd/freebsd/blob/0ee2302122d0710ced1e...
    comment by deaddodo · 2019-11-10 · in Principles for C Programming
  25. …I expect you can fairly easily copy-paste it from various BSD-licensed libraries, though (example: https://github.com/freebsd/freebsd/blob/master/sys/libkern/b... , but be warned about that “I don't believe this is a problem since AFAIK,…
    comment by Someone · 2019-09-19 · in LLVM 9.0
  26. …obviously derived: /etc/rc.local, /etc/rc.d, etc.) FreeBSD init(8) still refers to it as "runcom": https://github.com/freebsd/freebsd/blob/90b1841/sbin/init/in... https://github.com/freebsd/freebsd/blob/90b1841/sbin/init/pa...
    comment by loeg · 2019-09-02 · in Run Commands, the 'rc' in '.bashrc'
  27. …FreeBSD, ~7/8 years later these "practical" Capsicum changes were never merged into FreeBSD. :-( https://github.com/freebsd/freebsd/tree/master/contrib/bzip2
    comment by notaplumber · 2019-07-07 · in Capsicum: Practical Capabilities for Unix
  28. FreeBSD also imports RCs, for example https://github.com/freebsd/freebsd/commit/48cf3d0825d200d26e... Who cares about "really™ final releases"? :D
  29. Survey says, in the past ~20 years.. https://github.com/freebsd/freebsd/search?q=MAP_NOCORE&unsco... Pretty much bupkis. But still more than Capsicum!
    comment by notaplumber · 2019-06-06 · in OpenBSD Recent Security Innovations
  30. …of the LIST_ macros in <sys/queue.h>. http://man7.org/linux/man-pages/man3/queue.3.html https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...
    comment by pdkl95 · 2019-02-28 · in C Macro Magic
  31. Here's the code from FreeBSD: https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...
    comment by electrum · 2019-02-28 · in C Macro Magic
  32. FreeBSD has had different semantics here for ~20 years: https://github.com/freebsd/freebsd/commit/e4e8fec98ae986357c... I wish I could find the discussion around that commit. It'll only start throwing away dirty buffers if the device…
  33. The most important part IMHO is here https://github.com/freebsd/freebsd/tree/master/sys/netinet/t... . The TLS sendfile piece is a bit specialized, mainly interesting if you are doing the exact same workload i.e. a CDN on UFS disks. I can…
  34. …shows there are still some other parts as well. GNU binutils, GNU diff, dialog is GPL, etc. See: https://github.com/freebsd/freebsd/tree/master/contrib In the kernel, I think there are some drivers that are based on the Linux GPL code, for…
    comment by Carpetsmoker · 2019-01-09 · in Bash 5.0 released
  35. …someone can?), there's a comment in the libc source suggesting that this will be accepted there https://github.com/freebsd/freebsd/blob/1d6e4247415d264485ee... Parsing sucks.
  36. …built-in getopt that BSD is using: https://git.savannah.gnu.org/cgit/sed.git/tree/sed/sed.c?h=v... https://github.com/freebsd/freebsd/blob/release/7.0.0/usr.bi... So, while your interpretation of the shell splitting is correct, it's the…
    comment by mdaniel · 2018-12-26 · in Using different delimiters in sed (2010)
  37. > `cat` without any options Interestingly, the `raw_cat()` function is 37 lines long. https://github.com/freebsd/freebsd/blob/e511976db9f51bae1a59...
  38. Do you really think cat is as simple as left-pad? https://github.com/freebsd/freebsd/blob/master/bin/cat/cat.c Also, cat is kind of an important primitive for building a functional system that uses files as one of its core abstractions. It…
    comment by bmurphy1976 · 2018-11-27 · in Backdoor in event-stream library dependency
  39. …ago: http://git.savannah.gnu.org/cgit/grep.git FreeBSD's grep was last updated back in August: https://github.com/freebsd/freebsd/tree/master/usr.bin/grep OpenBSD's grep was last updated 11 months ago:…
    comment by zeveb · 2018-11-12 · in The Source History of Cat
  40. …Or even NetBSD: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/net/... EDIT: freebsd: https://github.com/freebsd/freebsd/blob/master/sys/netinet/i... openbsd: https://github.com/openbsd/src/blob/master/sys/netinet/in4_c...
    comment by dronemallone · 2018-09-04 · in A bug story: data alignment in C on x86 (2016)
  41. …part of the same repo and built at the same time than the kernel. Run a big "make universe" here : https://github.com/freebsd/freebsd and see for yourself. That they are different binaries does not matter a lot, it's just a question of…
  42. …work. A very amazing person! * https://penturalabs.wordpress.com/2013/11/24/what-is-sigtran... * https://github.com/freebsd/freebsd/blob/master/sys/netinet/t...
    comment by kev009 · 2018-07-04 · in Sequenced Packets Over Ordinary TCP
  43. …2010-01-04. It might have been in an earlier implementation of the terminal line discipline, too. * https://github.com/freebsd/freebsd/commit/74b0526bbe6326adb7... OpenBSD, which no longer implements the kernel mechanism, had had it since…
  44. …up? Looks like the Forth loader is going to eventually be replaced by a Lua one, though [2]. [1]: https://github.com/freebsd/freebsd/tree/release/11.1.0/sys/b... [2]: https://lists.freebsd.org/pipermail/freebsd-current/2018-Feb...
    comment by groovy2shoes · 2018-06-07 · in Fortran is still a thing (2017)
  45. …[edit] An inspection of the following makes me think this is ZoL specific. https://github.com/freebsd/freebsd/blob/58941b0245fd8d3d5861...
  46. …discussing were written in 2002 [1], so the time-appropriate version is POSIX-2001 (Issue 6). [1]: https://github.com/freebsd/freebsd/commit/55d0b8395514ae4055... But you don't have to take my word for it: I've paste-bin'ed the entirety of…
    comment by LukeShu · 2018-03-01 · in How does `cd` work?
  47. …bit isn't actually in the FreeBSD version of the script[1], so I'm assuming it's a macOS HFS thing. https://github.com/freebsd/freebsd/blob/master/usr.bin/alias...
    comment by LukeShu · 2018-03-01 · in How does `cd` work?
  48. …for FreeBSD in 2002 [1], I have to wonder which non-POSIX-y shells they were worried about. [1]: https://github.com/freebsd/freebsd/commit/55d0b8395514ae4055...
    comment by LukeShu · 2018-03-01 · in How does `cd` work?
  49. …that is copied (hard-linked) in to /usr/bin for several shell builtins ( https://github.com/freebsd/freebsd/blob/0bc1bed704cc7b7292be... ). For other builtins that don't need to be builtins, it makes sense; let other programs call
    comment by LukeShu · 2018-03-01 · in How does `cd` work?
  50. …userland is based on FreeBSD. Colin Percival is a FreeBSD developer who last modified this file: https://github.com/freebsd/freebsd/commit/0bc1bed704cc7b7292...
    comment by jwilk · 2018-03-01 · in How does `cd` work?