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. Specifically in this script https://github.com/openbsd/src/blob/master/distrib/miniroot/... Just look for `fw_update`
  2. …are already MIT/X licensed for historical reasons, same goes for the Mesa GL and Xorg components. https://github.com/openbsd/src/tree/master/sys/dev/pci/drm
  3. Although Theo seems to imply AI code is not welcome, this commit says Claude was used: https://github.com/openbsd/src/commit/9c2b8e445a0bdfafdd6148...
    comment by ranger_danger · 2026-10-19 · in Wine ported to OpenBSD
  4. See also BSD queue.h: https://man.openbsd.org/queue.3 https://github.com/openbsd/src/blob/master/sys/sys/queue.h
  5. ▲ 4
    OpenBSD's hypervisor now supports guest SMP
    story by rockhardandrew · 2026-09-21 · 0 comments
  6. …to have something like OpenBSD's ed[0] or dmesg[1], which you only touch every few years or so [0] https://github.com/openbsd/src/commits/master/bin/ed [1] https://github.com/openbsd/src/commits/master/sbin/dmesg/dme...
    comment by skydhash · 2026-08-02 · in Karpathy’s Pelican
  7. …is as simple as it gets[2]. [1]: https://github.com/coreutils/coreutils/blob/master/src/yes.c [2]: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
  8. No. https://github.com/openbsd/src/blob/d5b0ed23b6fe61f0278c37a4... Perhaps relevant, Students from the University of Southern Denmark released a paper earlier this month, which once again noted the fact that over ~90% of the OpenBSD base…
  9. …discovered that it could have been used for LPE. Again, just my guess I could be wrong. [0] https://github.com/openbsd/src/commit/1957873d2063db11dab780...
  10. …without checking `waitpid()` for errors. This is UB since `status` is uninitialized. ( https://github.com/openbsd/src/blob/ae684bfaed6cae797cd90e27... ) The reason is my previous experience with OpenBSD where the reply may be "<some…
    comment by thomashabets2 · 2026-05-20 · in OpenBSD 7.9
  11. In OpenBSD, with the fcntl system call https://github.com/openbsd/src/blob/master/lib/libc/gen/isat... https://man.openbsd.org/fcntl https://github.com/openbsd/src/blob/master/sys/sys/fcntl.h https://github.com/openbsd/src/blob/ba496e526752…
    comment by skydhash · 2026-02-25 · in LLM=True
  12. Is this really that hard to type? https://github.com/openbsd/src/blob/master/etc/rc.d/watchdog...
    comment by bandrami · 2026-02-03 · in Linux From Scratch ends SysVinit support
  13. …excuse to use it someday, hopefully in something high visibility so I can blow people's minds. [1] https://github.com/openbsd/src/blob/17290de/share/mk/bsd.lib... [2] https://github.com/NetBSD/src/blob/7d8184e/share/mk/bsd.lib....
  14. …I did for openbsd; it's around 700 lines, including the gunk to interface with the hypervisor. https://github.com/openbsd/src/blob/master/usr.sbin/vmd/vioq... It's not a good choice for computing diffs, but you can run your VM directly off…
  15. …on the other hand is extremely active, there's no way OpenSSH will be dethroned anytime soon. https://github.com/openbsd/src/commits/master/
  16. The actual commit referred to in the mailing list: https://github.com/openbsd/src/commit/ee2db53800abe0382657ec...
    comment by LeonM · 2025-09-02 · in Raspberry Pi 5 support (OpenBSD)
  17. …you can see all data structures indexing the object. Here are some of the more common examples: https://github.com/openbsd/src/blob/master/sys/sys/queue.h https://github.com/openbsd/src/blob/master/sys/sys/tree.h sys/queue.h is actually…
  18. …code and some other breadcrumbs: 1. Apparently OpenBSD gave up on trying to fix desync'd TSCs. See https://github.com/openbsd/src/commit/78156938567f79506a923c... 2. Relevant OpenBSD kernel code: https://github.com/openbsd/src/blob/master/s…
  19. …and write the packet header status and flags fields, and that original code is still used today: https://github.com/openbsd/src/blob/master/include/arpa/name... It does rely on implementation-defined behavior--it swaps the order of fields…
    comment by wahern · 2025-07-30 · in Writing memory efficient C structs
  20. …(glibc may be a different story). However, on OpenBSD, it did seem to have some user-visible bits: https://github.com/openbsd/src/commit/b7f6c2eb760a2da367dd51... If you expose it, someone will probably sooner or later use it, but probably…
    comment by recipe19 · 2025-07-20 · in Stdio(3) change: FILE is now opaque
  21. …Here's OpenBSD's MBR code, just for starters. It has no range checking for zero size partitions. * https://github.com/openbsd/src/blob/9213be19d4b9057bbb074ab1...
  22. …and see how httpd's config [2] got started as a fork of relayd [3]. [1] http://augeas.net/ [2] https://github.com/openbsd/src/blob/master/usr.sbin/httpd/pa... [3] https://github.com/openbsd/src/blob/master/usr.sbin/relayd/p...
  23. …is 100 times faster[3]. [1] https://github.com/coreutils/coreutils/blob/master/src/yes.c [2] https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c [3] https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes...
  24. …mode. [1] https://en.wikipedia.org/wiki/User_space_and_kernel_space [2] Mirror is available at: https://github.com/openbsd/src/tree/master/sys/kern [3] https://github.com/openbsd/src/blob/master/sys/kern/sched_bs...
    comment by quietbritishjim · 2025-04-23 · in MinC Is Not Cygwin
  25. The "dsb nsh; isb" sequence after "svc 0" is part of OpenBSD's mitigations for Spectre. https://github.com/openbsd/src/commit/bbeaada4689520859307d5... https://github.com/openbsd/src/commit/0c401ffc2a2550c32105ce...…
    comment by jmillikin · 2025-03-12 · in A more robust raw OpenBSD syscall demo
  26. …Tries [0] and Allotment Routing Tables [1]. [0] https://news.ycombinator.com/item?id=3015246 [1] https://github.com/openbsd/src/blob/2bd42e97200bee/sys/net/a...
  27. …patch that added '/' protection, because that's the only character that's not allowed in filenames. https://github.com/openbsd/src/commit/46f7109a9e03df89b66ada...
  28. …OpenBSD's libc asr implementation, written by Eric Faurot. https://man.openbsd.org/man3/asr_run.3 https://github.com/openbsd/src/tree/master/lib/libc/asr
  29. Seems to be a trivia quiz game included in OpenBSD. https://github.com/openbsd/src/tree/a6105854a9e3aab642e6a0fc... In datfiles/index there's a list of categories and with some interpretation you can see what they're asking. Like "chinese"…
    comment by Jtsummers · 2024-08-23 · in We have reached OpenBSD of Theseus
  30. …people have a local checkout of the repo on their local computers. URLs aren't needed (for them). https://github.com/openbsd/src/commit/a6105854a9e3aab642e6a0...
    comment by runjake · 2024-08-23 · in We have reached OpenBSD of Theseus
  31. Here's the change itself: https://github.com/openbsd/src/commit/a6105854a9e3aab642e6a0... I know that OpenBSD doesn't actually use GitHub, but it was the easiest way I could find the diff. I don't know how to otherwise get it from that…
    comment by rany_ · 2024-08-23 · in We have reached OpenBSD of Theseus
  32. …of args is 0, and uses the Linux read function to read character by character. The [OpenBSD]( https://github.com/openbsd/src/blob/master/usr.bin/wc/wc.c ) version is just *nice*. It reads from stdin by default, and uses a bit of buffering…
  33. …max:600 min:15 max-sources:65536 overflow:permissive [1] https://cvsweb.openbsd.org/ [2] https://github.com/openbsd/src [3] https://www.openssh.com/portable.html [4] https://anongit.mindrot.org/openssh.git [5]…
  34. They do use CVS for version control. https://cvsweb.openbsd.org/ from their github: https://github.com/openbsd/src > Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@…
  35. …handlers by adding a new reason code, ILL_BTCFI, to SIGILL info (siginfo_t). The full patch is at https://github.com/openbsd/src/commit/88580652a3669007813512... I'm not sure if this patch is noteworthy on its own, but perhaps it was…
  36. …would be an interesting project. Here is the source code of the OpenBSD implementation of cat: > https://github.com/openbsd/src/blob/master/bin/cat/cat.c and here of the GNU coreutils implementation: >…
    comment by aleph_minus_one · 2023-12-22 · in From Nand to Tetris (2017)
  37. > I don't know how they define `MAX`, but I'm guessing it's a typical "a>b?a:b" Indeed: https://github.com/openbsd/src/blob/master/sys/sys/param.h#L... > Then `SYS_kbind` seems to be a signed int. It's an untyped #define:…
    comment by LukeShu · 2023-12-12 · in OpenBSD – pinning all system calls
  38. …really change your conclusion, but I think that’s the wrong file. This is the real doas afaict: https://github.com/openbsd/src/blob/master/usr.bin/doas/doas... Still just a tidy 1072 lines in that folder though. I spent 5 minutes staring…
    comment by xerxes901 · 2023-11-03 · in Sudo-rs' first security audit
  39. …C. sudo and doas are not equivalent in functionality, but it shows how simple things can really be. https://github.com/openbsd/src/blob/master/distrib/special/d...
    comment by cedws · 2023-11-03 · in Sudo-rs' first security audit
  40. …syscall "dispatcher" or emulator for the Perl syscall function so that it calls the libc stubs. https://github.com/openbsd/src/commit/312e26c80be876012ae979... The ports tree is being cleansed of syscall(2) usage, until they're all gone.…
  41. Actually, I got it wrong, too many vulnerabilities in flight. They did fix it: https://github.com/openbsd/src/commit/375ccafb2eb77de6cf240e...
  42. This is the commit for those curious: https://github.com/openbsd/src/commit/c778c0d73570b51def4f06... > Packets sent over loopback got their checksums calculated twice. In the output path they were filled in and during TCP/IP input all…
    comment by petee · 2023-10-16 · in OpenBSD 7.4
  43. Also, take a look at openbsd's version of yes https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
    comment by rcr · 2023-09-09 · in Decoded: GNU Coreutils (2018)
  44. also quite interesting to compare with other implementations from the present and the past: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c https://github.com/freebsd/freebsd-src/blob/release/4.0.0/us...
    comment by m1keil · 2023-09-09 · in Decoded: GNU Coreutils (2018)
  45. ▲ 2
    Generate Ed25519 keys when invoked without arguments
    story by Tomte · 2023-09-04 · 0 comments
  46. …looked at the source for traceroute. This heading comment is quite great and informative as well: https://github.com/openbsd/src/blob/master/usr.sbin/tracerou... They also use the event APIs to implement the loop of traceroute. Seems like…
    comment by seeknotfind · 2023-08-02 · in Traceroute isn't real
  47. For comparison, the OpenBSD version: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c That’s a lot simpler, but also slower (see https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes... , discussed in…
  48. …is actually even more permissive than me when it comes to letting stuff through pledge("stdio"). https://github.com/openbsd/src/blob/fb5793d3d4d0fd4795586dd9... Also surface area isn't a weakness, it's a paradigm. If a weakness actually…
    comment by jart · 2023-06-18 · in Redbean Systems
  49. …figure out how to get the actual changes from this page, here's the commit in the github mirror... https://github.com/openbsd/src/commit/e208b5629e93dc00cc4301...
  50. Can't find any documentation but here is the source on the GitHub mirror of their CVS: https://github.com/openbsd/src/blob/e208b5629e93dc00cc43012e... https://github.com/openbsd/src/blob/e208b5629e93dc00cc43012e...