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
20082026
-
…' '\n' | sort -R` ${LDADD} ./sshd -V && install -o root -g wheel -m ${BINMODE} sshd /usr/sbin/sshd https://github.com/openbsd/src/commit/898412097f87ba70d4012f...
comment by codesniperjoe · 2023-01-20 · in SSHD: Random boot time relinking, OpenBSD -
…from Linux and other Unix like projects was a source of inspiration. I'd recommend OpenBSD libc. https://github.com/openbsd/src/tree/master/lib/libc String functions especially are a good way to get into the C way of thinking. Since C's…
comment by asveikau · 2022-12-23 · in Ask HN: Learn C in 2023? -
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? -
…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
comment by e12e · 2022-12-18 · in Ask HN: Resources for Building a Webserver in C? -
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 -
[BSD systems do]( https://github.com/openbsd/src/tree/master/regress/sys )
comment by emilengler · 2022-11-25 · in Ask HN: Why the Linux Kernel doesn't have unit tests? -
…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 -
…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 -
…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 -
…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
comment by Aissen · 2022-09-27 · in Outdated vs. Complete: In defense of apps that don’t need updates -
…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 -
…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? -
A cleaner example without bit masking: https://github.com/openbsd/src/blob/master/lib/libc/crypt/ar...
comment by LudwigNagasena · 2022-09-15 · in The definitive guide to “modulo bias” and how to avoid it (2020) -
…} * 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() -
…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() -
…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() -
▲ 1
Using BSD licensed code in a GPL programstory by kenesary · 2022-08-05 · 0 comments
-
…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
comment by dchest · 2022-07-13 · in Rolling your own crypto: Everything you need to build AES from scratch -
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 -
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 -
…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) -
…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…
comment by dijit · 2022-06-03 · in Microsoft Purview: Additional classifiers for Communication Compliance (preview) -
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 -
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 -
…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 -
…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:…
comment by trn · 2022-02-19 · in OpenVi: Portable OpenBSD vi for Unix systems -
…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…
comment by trn · 2022-02-19 · in OpenVi: Portable OpenBSD vi for Unix systems -
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 -
Kdump truncates to a 32-bit value: https://github.com/openbsd/src/blob/master/usr.bin/kdump/kdu...
comment by loeg · 2022-02-18 · in Debugging an Ioctl Problem on OpenBSD -
…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...
comment by loeg · 2022-02-18 · in Debugging an Ioctl Problem on OpenBSD -
…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 -
…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 -
…[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 -
…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 -
And here is the commit https://github.com/openbsd/src/commit/21b3e8786537fe05ba6f42...
comment by martin_ · 2021-09-03 · in Traceroute(8) Gets Speed Boost -
The code change on GitHub: https://github.com/openbsd/src/commit/56bc0efbd80da2ff595e44...
comment by santix · 2021-09-01 · in OpenBSD: Hibernate Time Reduced -
…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 -
…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 -
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 -
…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 -
▲ 112
Tree.h in OpenBSD: dependency-free intrusive binary tree (2002)story by attractivechaos · 2021-04-09 · 36 comments
-
…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…
comment by wahern · 2021-03-24 · in 64-Bit Linux Return-Oriented Programming -
…[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 -
…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
comment by owenmarshall · 2021-02-16 · in What security does a default OpenBSD installation offer? -
…if my reasoning is correct, saying that OpenBSD “changed it at some point” is not quite correct. https://github.com/openbsd/src/blob/df930be708d50e9715f173ca...
comment by ainar-g · 2021-02-02 · in Go 1.16 will make system calls through Libc on OpenBSD -
…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 -
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 -
▲ 3
OpenBSD removes Bluetooth support (2014)story by harporoeder · 2020-11-27 · 0 comments
-
…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 -
…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