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
-
…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) -
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.…
comment by LargoLasskhyfv · 2020-05-18 · in John Carmack is reading and contributing to OpenBSD source code -
…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 -
…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...
comment by loeg · 2020-04-25 · in What does the 'rc' in `.bashrc`, etc. mean? -
…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...
comment by toast0 · 2020-04-21 · in SYN cookies ate my dog – breaking TCP on Linux (2018) -
…second round trip covers the vast majority of internet connections. Details nicely commented here: https://github.com/freebsd/freebsd/blob/master/sys/netinet/t...
comment by toast0 · 2020-04-21 · in SYN cookies ate my dog – breaking TCP on Linux (2018) -
…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 -
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 -
…-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 -
…* 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
comment by throw0101a · 2020-03-19 · in Understanding the bin, sbin, usr/bin, usr/sbin split (2010) -
…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) -
The FreeBSD core utilities are reasonably short: https://github.com/freebsd/freebsd/tree/master/bin
comment by userbinator · 2020-02-09 · in Become a Better Developer by Reading Source Code -
…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...
comment by toast0 · 2020-02-07 · in Bicycle Attacks: Quantifying the Damage of Widespread Password Length Leakage -
…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:…
comment by Lammy · 2020-01-05 · in Now using Zstandard instead of xz for package compression -
…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...
comment by comex · 2019-12-11 · in Threads can infect each other with their low priority -
…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 -
…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 -
…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' -
…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 -
FreeBSD also imports RCs, for example https://github.com/freebsd/freebsd/commit/48cf3d0825d200d26e... Who cares about "really™ final releases"? :D
comment by floatboth · 2019-06-16 · in OpenMandriva, the first Clang-built Linux distribution -
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 -
…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 -
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 -
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…
comment by macdice · 2019-02-26 · in Linux Fsync Issue for Buffered IO and Its Preliminary Fix for PostgreSQL -
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…
comment by kev009 · 2019-02-03 · in Netflix and FreeBSD: Using Open Source to Deliver Streaming Video [pdf] -
…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 -
…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.
comment by nly · 2018-12-31 · in Potholes to avoid when migrating to IPv6 -
…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) -
> `cat` without any options Interestingly, the `raw_cat()` function is 37 lines long. https://github.com/freebsd/freebsd/blob/e511976db9f51bae1a59...
comment by marshray · 2018-11-27 · in Backdoor in event-stream library dependency -
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 -
…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 -
…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) -
…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…
comment by jcelerier · 2018-07-10 · in Goodbye Microservices: From 100s of problem children to 1 superstar -
…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 -
…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…
comment by JdeBP · 2018-06-14 · in Ancient “su – hostile” vulnerability in Debian 8 and 9 -
…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) -
…[edit] An inspection of the following makes me think this is ZoL specific. https://github.com/freebsd/freebsd/blob/58941b0245fd8d3d5861...
comment by aidenn0 · 2018-04-09 · in ZFS on Linux: Unlistable and disappearing files -
…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? -
…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? -
…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? -
…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? -
…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? -
…queue.h decades ago. I like how FreeBSD's fork of queue.h has a table of the macro's features: https://github.com/freebsd/freebsd/blob/releng/11.1/sys/sys/... Here's the linked list for Postgres, https://github.com/postgres/postgres/blob/ma…
comment by git-pull · 2018-01-26 · in Ask HN: Books/courses for self-taught programmer -
…[2] cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/bin/ls/ls.c?rev=1.75.4.1 [3] https://github.com/freebsd/freebsd/blob/master/bin/ls/ls.c
comment by thisacctforreal · 2017-11-19 · in Why the Update Fever Is Bad -
…a compiler/linker capable of generating an image that could be read into memory by a boot loader: https://github.com/freebsd/freebsd/tree/master/sys/libkern
comment by xenophonf · 2017-10-28 · in Alan Kay on Lisp -
…in our environment: ssh user@rsync.net s3cmd get s3://rsync/mscdex.exe ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" So you could run a cron job that would clone a repo to your rsync.net account and then…
comment by rsync · 2017-09-13 · in Connecting a Git Repository to Amazon S3 and AWS Services -
…original drm.h header that defines most of the structs and ioctls mentioned (e.g. [1] [2] [3]) [1] https://github.com/freebsd/freebsd/blob/master/sys/dev/drm/d... [2] https://github.com/openbsd/src/blob/master/sys/dev/pci/drm/d... [3]…
comment by 0xcde4c3db · 2017-08-31 · in Intro to Low-Level Graphics on Linux -
…look through FreeBSD's Make files, you'll see that conditionals exist, but they begin with dots: https://github.com/freebsd/freebsd/blob/c09174d99/share/mk/b... There are going to be some compromises when writing portable scripts where it…
comment by git-pull · 2017-08-20 · in A Tutorial on Portable Makefiles -
Out of curiosity, I did blame on some files in the FreeBSD source code ( https://github.com/freebsd/freebsd ). In core utilities like "cat", "kill" and "mv", there are still quite a few lines dating back all the way to the original commits…
comment by int_19h · 2017-08-17 · in X: The First Fully Modular Software Disaster