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
-
…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 -
…tps://github.com/coreutils/coreutils/blob/master/src/opera... Appears to be the case for BSD as well: https://github.com/freebsd/freebsd/blob/master/bin/kill/kill...
comment by anamexis · 2017-06-16 · in Don't Leave Coredumps on Web Servers -
…short write, possible when writing to pipes etc. Update: They fixed that issue with this follow up https://github.com/freebsd/freebsd/commit/2592fbb8
comment by pixelbeat__ · 2017-06-13 · in How is GNU `yes` so fast? -
FreeBSD's yes has just been updated because of this. https://github.com/freebsd/freebsd/commit/1d61762ca37c20ab6f... It's about twice as fast as GNU yes now on my FreeBSD system here.
comment by tobik · 2017-06-13 · in How is GNU `yes` so fast? -
…pretty much the same way. For device permissions though, we have rules support directly in devfs. https://github.com/freebsd/freebsd/blob/master/etc/defaults/... — there's a default ruleset for jails that makes sense (allows log, null,…
comment by floatboth · 2017-03-29 · in Containers vs. Zones vs. Jails vs. VMs -
▲ 184
The BSD family treestory by jbergstroem · 2017-03-17 · 57 comments
-
…from freebsd [1]. If you need a generic red-black tree, this is probably your best choice in C. [1] https://github.com/freebsd/freebsd/blob/master/sys/sys/tree....
comment by attractivechaos · 2017-03-16 · in Principles for C programming -
Yep. GNU source: http://git.savannah.gnu.org/cgit/time.git/tree/ BSD source: https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccf... Busybox source: https://github.com/mirror/busybox/blob/f88e3bfa8ded4f1c7e7d2... Toybox source:…
comment by voltagex_ · 2017-03-07 · in /usr/bin/time: not the command you think you know -
…2008. Many developers use an official git mirror[0] to stage their work before committing. [0]: https://github.com/freebsd/freebsd
comment by loeg · 2017-02-15 · in A rift in the NTP world -
Doesn't it just use realloc? See __rebuild_environ in https://github.com/freebsd/freebsd/blob/master/lib/libc/stdl...
comment by bonzini · 2017-01-31 · in Don't setenv in multi-threaded code on glibc -
…like this: pg_dump -U postgres db | ssh user@rsync.net "dd of=db_dump" ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" ssh user@rsync.net "test -f fileThatExists" ssh user@rsync.net du -Ahd2 some/directory…
comment by rsync · 2017-01-24 · in Rsync.net – Cloud Storage for Offsite Backups -
Forth is still used in places like the bootstrap of FreeBSD 11. * https://github.com/freebsd/freebsd/tree/release/11.0.1/sys/b... Some people want to replace this with Lua.
comment by JdeBP · 2016-11-27 · in The BASIC Issue with Retro Computers -
Longest and oldest I remember: `we_need_to_sort_interface_list` circa 13 years ago: https://github.com/freebsd/freebsd/commit/fdbb382f1cbb42ab48... Aww, looks like someone renamed it a decade later: https://lists.freebsd.org/pipermail/svn-s…
comment by trentnelson · 2016-08-18 · in Is anybody else using ridiculously long variable names? -
…the number / quality of pull requests received [0] [1] and I find RoI of doing that very low. [0] https://github.com/freebsd/freebsd/pulls [1] https://github.com/torvalds/linux/pulls
comment by notabot · 2016-01-15 · in Dear GitHub -
Just use queue.h, as do all the BSDs. https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...
comment by jpfr · 2016-01-09 · in Why I Write Games in C -
From the bsd init / systemd blog article of today: https://github.com/freebsd/freebsd/blob/master/etc/rc (standing on https://github.com/freebsd/freebsd/blob/master/etc/rc.subr ) made me feel the same.
comment by agumonkey · 2015-12-21 · in 1% the Code (2001) -
There is also an official mirror on Github. https://github.com/freebsd/freebsd
comment by sigjuice · 2015-07-17 · in Ask HN: Good C codebases to read? -
…in some widely deployed performant code: https://github.com/mackyle/sqlite/search?q=linked+list https://github.com/freebsd/freebsd/search?l=c&q=linked+list
comment by woodman · 2015-06-21 · in Ask HN: Is C/C++ really faster than Python? -
…private fork? i couldn't find a public fork on your gh and didn't see you listed as a contributor ( https://github.com/freebsd/freebsd/graphs/contributors ) - was curious to see the improvements you were introducing
comment by gingerrr · 2015-04-20 · in Unix swiss army knife for headless browser JavaScript -
…manpage, have you? The idea is completely different. accf_http is... here, just read the source: https://github.com/freebsd/freebsd/blob/master/sys/netinet/a... – if it sees something that looks like an HTTP request and delays returning to…
comment by floatboth · 2015-04-15 · in Remote Kernel Code Execution Via HTTP Request In IIS On Windows -
…of your code and resources outside a single central site like github." ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" Done and done.
comment by rsync · 2015-03-31 · in China's Man-On-the-Side Attack on GitHub -
…this [2] commit (apparently fixes for performance with many arguments) it was pretty simple. [1]: https://github.com/freebsd/freebsd/blob/master/bin/echo/echo... [2]: https://github.com/freebsd/freebsd/commit/cbf5708f4336b824b8...
comment by stock_toaster · 2015-02-22 · in Unix V5, OpenBSD, Plan 9, FreeBSD, and GNU Coreutils Implementations of Echo.c -
Yes, the OSX code seems to come from FreeBSD. Here is the FreeBSD version of the source: https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/... It looks very similar to the current OSX file posted in an earlier comment. Calls…
comment by JoachimS · 2015-02-10 · in Apple's libc shells out to Perl to implement wordexp -
…utilities that transform the kernel into a complete standard system (e.g. Debian[1]). [0]: https://github.com/freebsd/freebsd/tree/master/usr.bin [1]: https://www.debian.org/doc/debian-policy/ch-binary.html#s3.7 --- Leadership: Linux has a…
comment by wyc · 2014-11-22 · in Ask HN: Can we talk about FreeBSD vs. Linux? -
…the Gnu project had a kernel - remember GNU was the cathedral in the cathedral and the bazaar. [1] https://github.com/freebsd/freebsd/commits/master [2] https://github.com/torvalds/linux/commits/master
comment by justincormack · 2014-11-22 · in Ask HN: Can we talk about FreeBSD vs. Linux? -
…appears to be DES (or SHA512 if DES isn't available). What makes HN think it's bcrypt? @kogir? [1] https://github.com/freebsd/freebsd/blob/master/lib/libcrypt/...
comment by baudehlo · 2014-11-13 · in Tell HN: Hacker News Profile Leak (Fixed) -
…moved to Subversion. Or if Git is your thing, they have some kind of synchronization set up with https://github.com/freebsd/freebsd .
comment by xenophonf · 2014-09-19 · in File Systems, Data Loss and ZFS -
…this: ssh user@rsync.net s3cmd get s3://rsynctest/mscdex.exe and this: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" ... and has had a "HN readers" discount for new users for many years now.
comment by rsync · 2014-03-31 · in Today is World Backup Day – a friendly reminder to backup and check restores -
github backups: ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd" Or at least, that's what I do ...
comment by rsync · 2014-03-25 · in Could keybase.io do for crypto what GitHub did for Git? -
Sony contributes back to FreeBSD. You can find at least a few examples using GitHub search: https://github.com/freebsd/freebsd/search?q=%22sony+computer... Note: these aren't the only examples of Sony contributing back to FreeBSD, they…
comment by profquail · 2014-01-19 · in FreeBSD 10.0 is here -
…was passed[1], and `clone_file()` fails on everything but btrfs[2]. [0]: FreeBSD `copy_file()`: https://github.com/freebsd/freebsd/blob/master/bin/cp/utils.... [1]: coreutils `copy_reg()`: http://git.savannah.gnu.org/gitweb/?p=coreutils.git…
comment by loeg · 2013-03-02 · in Heroku Fucking Console -
…of SVN I believe was a large factor in the decision. -- [1] https://wiki.freebsd.org/VCSWhy [2] https://github.com/freebsd/freebsd
comment by lcampbell · 2013-01-13 · in FreeBSD Ports CVS End of Life on February 28th 2013 -
…to . .. and all local files beginning with . the BSD version of rm will never remove . or .. see: https://github.com/freebsd/freebsd/blob/master/bin/rm/rm.c#L... checkdot is called against all argv: https://github.com/freebsd/freebsd/blob/m…
comment by nikcub · 2012-05-14 · in How Pixar Almost Lost Toy Story 2 To A Bad Backup