Hacker GitHub

← All repos

openbsd/src

View on GitHub ↗ ★ 3,923 C

Read-only git conversion of OpenBSD's CVS src repository. This only includes the main branch; use CVS for -stable or release branches. Send any diffs to the tech@ mailing list.

146 mentions on Hacker News by 108 people: 6 stories, 140 comments · first 2016-10-17 · latest 2026-10-20

Mentions per year 146 mentions · busiest year 2022 (32)
20082026
  1. True. The author might enjoy studying something like OpenBSD ( https://github.com/openbsd/src )
    comment by jviotti · 2022-12-23 · in Ask HN: Learn C in 2023?
  2. …Or you might want to look at either of: https://www.acme.com/software/thttpd/ https://github.com/openbsd/src/tree/master/usr.sbin/httpd If you really want to build (another) web server in C. Not entirely clear why want to use C for this
  3. Is this even a bug? An invalid length is already being checked by the kernel. https://github.com/openbsd/src/blob/4628c0e6cf9bd4a6d679c314... Sure his fix made it more robust, but the problem only showed up because he had his fuzzer bypass…
    comment by charcircuit · 2022-12-11 · in Fuzzing ping(8) and finding a 24 year old bug
  4. [BSD systems do]( https://github.com/openbsd/src/tree/master/regress/sys )
  5. …during the initial development for the ThinkPad x13s, keyboard support was added in this commit. https://github.com/openbsd/src/commit/74edc71ccae4051eda11fa... Many of these older generation "Windows on Snapdragon" laptops unfortunately…
    comment by notaplumber1 · 2022-11-03 · in Testing Microsoft's Windows Dev Kit 2023
  6. …are some of the most commons: - netcat-traditional http://www.stearns.org/nc/ - netcat-openbsd : https://github.com/openbsd/src/blob/master/usr.bin/nc/netcat... (also packaged in Debian) - ncat https://nmap.org/ncat/ - netcat GNU:…
    comment by Aissen · 2022-10-21 · in The HTTP crash course nobody asked for
  7. …going to look at OpenBSD fork of ISC.[3] 2] https://github.com/egberts/isc-dhcp-server-nintendo 3] https://github.com/openbsd/src/blob/master/usr.sbin/dhcpd/dh...
    comment by egberts1 · 2022-10-11 · in ISC DHCP Server has reached EOL
  8. …busybox ls: https://git.busybox.net/busybox/log/coreutils/ls.c openbsd ls: https://github.com/openbsd/src/commits/master/bin/ls/ls.c The latter seems to be the most stable, yet has been updated two years ago, many years after its fir
  9. …IEEE binary floats representation. Here's a log() function from the standard library in OpenBSD: https://github.com/openbsd/src/blob/master/lib/libm/src/e_lo...
    comment by Const-me · 2022-09-27 · in Zen4's AVX512 Teardown
  10. …surprised if there aren't more serious mistakes lurking in your library, in fact I know there are. https://github.com/openbsd/src/commit/54e4f6b9a1dc183e1dc7c4... https://github.com/openbsd/src/commit/1d60349d0b961891264d42...
    comment by brynet · 2022-09-21 · in Can I use a system call?
  11. A cleaner example without bit masking: https://github.com/openbsd/src/blob/master/lib/libc/crypt/ar...
  12. …} * https://www.openbsd.org/papers/strlcpy-slides.ps The current OpenBSD is currently different: * https://github.com/openbsd/src/blob/master/lib/libc/string/s... * https://cvsweb.openbsd.org/src/lib/libc/string/strlcpy.c One problem with…
    comment by throw0101a · 2022-08-27 · in Ushering out strlcpy()
  13. …quite a bit from the openbsd one: https://elixir.bootlin.com/linux/v5.19.3/source/lib/string.c... https://github.com/openbsd/src/blob/master/lib/libc/string/s...
    comment by minusf · 2022-08-27 · in Ushering out strlcpy()
  14. …for OpenBSD (2.4) by Todd C. Miller (who has also been the maintainer of sudo since 1994): * https://github.com/openbsd/src/blob/master/lib/libc/string/s... * https://cvsweb.openbsd.org/src/lib/libc/string/strlcpy.c
    comment by throw0101a · 2022-08-27 · in Ushering out strlcpy()
  15. …tps://cr.yp.to/antiforgery/cachetiming-20050414.pdf Here's an implementation that doesn't use tables: https://github.com/openbsd/src/blob/master/sys/crypto/aes.c
  16. Here is the complete file if you are curious: https://github.com/openbsd/src/blob/master/share/misc/airpor... There are ~2,000 entries vs ~11,000 assigned IATA airport codes
    comment by mike_d · 2022-06-09 · in OpenBSD folklore and share/misc/airport
  17. Here’s a copy of the current version of the file itself https://github.com/openbsd/src/blob/master/share/misc/airpor...
    comment by codetrotter · 2022-06-09 · in OpenBSD folklore and share/misc/airport
  18. …yes(1)[0] which remains utterly naïve and freebsd yes(1)[1] which uses an 8k internal buffer. [0]: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c [1]: https://svnweb.freebsd.org/base/head/usr.bin/yes/yes.c?view=...
    comment by masklinn · 2022-06-04 · in How is GNU `yes` so fast? (2017)
  19. …you have never enjoyed the beauty of an operating system code you can actually read I guess: https://github.com/openbsd/src OpenBSD is a lot of code, sure, but far from insurmountable, the drivers are few and quite generalised. I can’t…
  20. You can just edit the kernel config file before compiling. https://github.com/openbsd/src/blob/master/sys/arch/amd64/co...
    comment by foodstances · 2022-05-08 · in Compiling an OpenBSD kernel 50% faster
  21. There is official read-only git mirror at https://github.com/openbsd/src CVS still works just fine for the devs ...
    comment by icybox · 2022-04-21 · in OpenBSD 7.1
  22. …uses the word in function calls etc in the code. See also [2] for relevant man knote(9) page. [1]: https://github.com/openbsd/src/commit/26eeb0be5e3709df77142e... [2]: https://man.openbsd.org/knote.9
    comment by unwind · 2022-04-06 · in Sometimes the knote comes early
  23. …originated): OpenVi: https://github.com/johnsonjh/OpenVi/blob/22c2a7022e31d91e09e... OpenBSD vi: https://github.com/openbsd/src/blob/master/usr.bin/vi/common... Nvi2: https://github.com/lichray/nvi2/blob/5fcdc13656500a8c5b4c073... Nvi1:…
  24. …messages - the complete details are in OpenBSD's CVS tree, and viewable a bit easier via GitHub ( https://github.com/openbsd/src/commits/master/usr.bin/vi ) Changes to the (OpenVi bundled) OpenBSD regular expression engine are not included…
  25. Oh! That's dumb. The printer correctly uses unsigned long. https://github.com/openbsd/src/blob/master/usr.bin/kdump/mki...
    comment by tedunangst · 2022-02-18 · in Debugging an Ioctl Problem on OpenBSD
  26. Kdump truncates to a 32-bit value: https://github.com/openbsd/src/blob/master/usr.bin/kdump/kdu...
  27. …It's a relatively recent change (2020). Here's the corresponding place OpenBSD doesn't do that: https://github.com/openbsd/src/blob/master/sys/kern/sys_gene...
  28. …has handled this case for some years. I do not know if there was any breakage or fallout from this. https://github.com/openbsd/src/commit/74212563870067f5b1e271...
    comment by mortenlarsen · 2022-02-04 · in Handling argc==0 in the Linux kernel
  29. …C, but openbsd grep does something like this because libc regex is super slow. Look for fastcomp on https://github.com/openbsd/src/blob/master/usr.bin/grep/util... It's not super sophisticated, but enough to beat the full regex engine. In…
    comment by tedunangst · 2022-02-04 · in Go performance from version 1.2 to 1.18
  30. …[1] https://github.com/coreutils/coreutils/blob/master/src/yes.c [2] https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
    comment by smoldesu · 2022-01-29 · in An update on rust/coreutils
  31. …reasons include code-base simplicity. https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
    comment by chrisseaton · 2021-11-07 · in Memory leaks are crippling my M1 MacBook Pro
  32. And here is the commit https://github.com/openbsd/src/commit/21b3e8786537fe05ba6f42...
    comment by martin_ · 2021-09-03 · in Traceroute(8) Gets Speed Boost
  33. The code change on GitHub: https://github.com/openbsd/src/commit/56bc0efbd80da2ff595e44...
    comment by santix · 2021-09-01 · in OpenBSD: Hibernate Time Reduced
  34. …a WIP driver for the NVMe controller on the M1 chip, but AFAIK it's not working 100% reliably yet. https://github.com/openbsd/src/commit/1c31dbaaf6000562ff37f7... https://github.com/openbsd/src/commit/0ccab0b00204b8c23f121d... Patrick…
    comment by brynet · 2021-08-28 · in NetBSD Booting on the Apple M1
  35. …focused. Besides, OpenBSD uses the same drivers as Linux, ported to the OpenBSD kernel. https://github.com/openbsd/src/commit/ad8b1aafbcc34f7eb86e4e...
    comment by notaplumber · 2021-07-25 · in My Fanless OpenBSD Desktop
  36. This is OpenBSD's sshd init script: https://github.com/openbsd/src/blob/master/etc/rc.d/sshd On an archlinux system running systemd I see that the equivalent of the rc_reload function is "ExecReload=/bin/kill -HUP $MAINPID" (which is…
    comment by Arch-TK · 2021-05-17 · in Systemd: The Good Parts
  37. …made any public progress yet on M1 support. https://marc.info/?l=openbsd-arm&m=161386122115249&w=2 https://github.com/openbsd/src/search?q=m1&type=commits
    comment by notaplumber · 2021-04-09 · in FreeBSD/arm64 becoming Tier 1 in FreeBSD 13
  38. …space is re-randomized. OpenSSH began doing this by default 10 years before the above paper: https://github.com/openbsd/src/commit/5541d005bde289515d9734... Presumably (hopefully) some other common, multi-process network daemons have been…
  39. …[3]: https://github.com/coreutils/coreutils/blob/ccbd1d7dc5189f46... [4]: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
    comment by felixr · 2021-03-09 · in Debian Running on Rust Coreutils
  40. …This prevents spoofed NTP packets from changing the time. https://man.openbsd.org/ntpd.conf.5 https://github.com/openbsd/src/blob/master/etc/ntpd.conf
  41. …if my reasoning is correct, saying that OpenBSD “changed it at some point” is not quite correct. https://github.com/openbsd/src/blob/df930be708d50e9715f173ca...
  42. …the Bluetooth stack they had (originally from netbsd I think) and no-one has written a new one yet. https://github.com/openbsd/src/commit/b8042ed98e3e7a691133b4...
    comment by liveranga · 2021-01-28 · in OpenBSD on the Lenovo ThinkPad X1 Nano
  43. You're welcome. And you might like to see ''sys/queue.h'': https://github.com/openbsd/src/blob/master/sys/sys/queue.h
    comment by smlckz · 2020-12-31 · in C Template Library
  44. …GNU is kind of notorious in this regard. Compare their `yes` to OpenBSD's. It's night and day. https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
    comment by bigbubba · 2020-11-17 · in Best aspects of C
  45. …including newline characters. I believe the actual source code for this behavior can be seen here: https://github.com/openbsd/src/blob/master/bin/ls/utf8.c
    comment by barrister · 2020-10-09 · in It used to be simpler to teach Unix
  46. …on anything that's not a tty device, so on OpenBSD revoke(2) returns ENOTTY in those cases. https://github.com/openbsd/src/commit/0aefaaaa63aa6de2ea734f... https://github.com/openbsd/src/commit/205dd0b22f2c32de7bacbd... This was discovered…
    comment by brynet · 2020-06-30 · in Implementing a System Call for OpenBSD
  47. …That is done inside the kernel. Changing the kernel would break backwards compatibility. https://github.com/openbsd/src/blob/0970cb57551e0e8df6688f8a... https://github.com/torvalds/linux/blob/cb8e59cc87201af93dfbb...
    comment by sigjuice · 2020-06-26 · in Questions: History of Ifconfig
  48. …1) Yes, there is active development. BSDs don't have net-tools 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
  49. …stat(), gethostbyname(), etc, work almost the same. Edit: One of their Perl scripts for reference: https://github.com/openbsd/src/blob/b66614995ab119f75167daaa... And pkg_add, which has quite a lot of Perl:…
  50. …Xe could have connected it to an OpenBSD system. OpenBSD still supports the whole mechanism. * https://github.com/openbsd/src/blob/57d747eef2b80ca9ffb95407...