tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
include
/
at
trash-bin2
4 folders
89 files
arpa
Consistently spell "IPsec" in comments and debug outputs.
8 years ago
protocols
Rearrange variables in dump / restore to handle -fno-common.
5 years ago
rpc
Mark all the rpc 'ops' vectors, for auth, client, service, and xdr, as const, moving them from .data to .data.rel.ro. The other BSDs did this a long time ago; NetBSD did a chunk in 1998, which is long enough I didn't bother to get exact dates for others.
4 years ago
rpcsvc
When it's the possessive of 'it', it's spelled "its", without the apostrophe.
4 years ago
Makefile
Enable libexecinfo.
4 years ago
a.out.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
ar.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
asr.h
Allow the caller of asr functions to create and use a specific context. Diff from eric@ and florian@, commiting on their behalf since they are absent and we want to ride the minor shlib bump.
6 years ago
assert.h
Use __STDC_VERSION__ instead of __ISO_C_VISIBLE to guard _Static_assert. We need to test what the compiler supports, not what the C library provides. This prevents static_assert from being defined when compiling with the in-tree gcc (4.2.1) which does not support _Static_assert.
5 years ago
bitstring.h
Use a double-underscore prefix for local variables declared in macros that have arguments. Document this requirement/recommendation in style(9)
6 years ago
blf.h
Niels agreed to remove the advertising clause; switching these to 3-term BSD license.
4 years ago
bsd_auth.h
As per style.9, prototypes should not have variable names associated with the types.
9 years ago
complex.h
lint is dead (long live the lint!), so stop using it as a cpp conditional (namespace pollution!) or talking about its opinion on code.
12 years ago
cpio.h
First pass at removing clauses 3 and 4 from NetBSD licenses.
18 years ago
ctype.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago
curses.h
I am retiring my old email address; replace it with my OpenBSD one.
7 years ago
db.h
Move the last of the __DBINTERFACE_PRIVATE bits from <db.h> to libc's wrapper and eliminate the now superfluous -D option
10 years ago
dirent.h
Move the 10 (!) defintions of NULL to their own mini header file and update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
9 years ago
disktab.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
dlfcn.h
add RTLD_NODELETE support
4 years ago
elf.h
<elf.h> should make it easier to port our ELF-related tools to other Unices.
8 years ago
elf_abi.h
err.h
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
10 years ago
errno.h
___errno (three underbars) is long gone
8 years ago
fenv.h
Also enclose variable names with external linkage in __BEGIN_DECLS.
15 years ago
float.h
create new machine/_float.h which is namespace clean. create a new MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
13 years ago
fnmatch.h
First step in include files overhaul. Use __FOO_VISIBLE (as defined in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
20 years ago
fstab.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
fts.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
ftw.h
I am retiring my old email address; replace it with my OpenBSD one.
7 years ago
getopt.h
The getopt() prototype and externs don't belong in stdlib.h. Berkeley moved them to unistd.h to match POSIX in 1995 but we never did. The exception to this is getsubopt() which POSIX says should be in stdlib.h. The non-standard suboptarg extern remains in the BSD-only section of stdlib.h. Neither getsubopt() nor suboptarg belong in unistd.h or getopt.h. They were only there to allow us to protect all the getopt() bits from being multiply defined. OK guenther@
12 years ago
glob.h
Make gl_pathc, gl_matchc and gl_offs size_t in glob_t to match POSIX. This requires a libc major version bump. OK deraadt@
7 years ago
grp.h
Add uid_from_user() and gid_from_group(), derived from pax's cache.c. It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@
7 years ago
icdb.h
Make the key sizes and offsets arrays const, ok tedu
9 years ago
ieeefp.h
use c calling conventions so that g++ doesn't mangle fpgetmask & friends' names unbreaking at least enblend-enfuse & inkscape on macppc & alpha reported, tested: ajacoutot@, sthen@ ok: millert@, otto@
16 years ago
ifaddrs.h
Remove unnecessary typedef usage.
22 years ago
inttypes.h
I am retiring my old email address; replace it with my OpenBSD one.
7 years ago
iso646.h
C++ has all those as built-ins. Problem found with gcc 3.0.1 testsuite.
24 years ago
kvm.h
- add UNIX-domain socket info to struct kinfo_file2 - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE.
12 years ago
langinfo.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago
libgen.h
Align the basename(3) and dirname(3) prototypes with the POSIX spec: Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not.
5 years ago
limits.h
increase TMP_MAX to the equivalent of INT_MAX. it's actually more, but safer not to wraparound by accident. ok deraadt millert miod
11 years ago
link.h
Remove more knowledge of a.out and stab information from the tree. ok miod
12 years ago
link_elf.h
When it's the possessive of 'it', it's spelled "its", without the apostrophe.
4 years ago
locale.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago
login_cap.h
add rtable capability to login.conf. from Matthew Martin
4 years ago
math.h
Implement sicos(3), sincosf(3) and sincosl(3). These functions are common extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine.
8 years ago
md5.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
memory.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
ndbm.h
Make ndbm match POSIX. A datum consists of a void *dptr and a size_t dsize. Also make the open functions take a mode_t, not int. OK deraadt@
22 years ago
netdb.h
Stop including <sys/param.h> from <netdb.h>. Portable software must either include <sys/param.h> (to operate in legacy mode) or if it wishes to operate in the POSIX world use <limits.h> ok guenther millert doug naddy
11 years ago
netgroup.h
Hide netgroup internals inside libc. The parts that netgroup_mkdb wants to use, well.... copy them there. ok guenther
10 years ago
nl_types.h
First pass at removing clauses 3 and 4 from NetBSD licenses.
18 years ago
nlist.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
paths.h
add /usr/local/sbin. ok deraadt millert
6 years ago
poll.h
PD
22 years ago
pthread.h
#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch needs (looking at you sgi, but others required this before). This is for the circumstances we need pagesize known at compile time, not getpagesize() runtime. Use it for malloc storage sizes, for shm, and to set pthread stack default sizes. The stack sizes were a mess, and pushing them towards page-aligned is healthy move (which will also be needed by the coming stack register checker) ok guenther kettenis, discussion with stefan
8 years ago
pthread_np.h
Include pthread.h to make this header standalone (needs pthread_t and others)
6 years ago
pwd.h
Add uid_from_user() and gid_from_group(), derived from pax's cache.c. It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@
7 years ago
ranlib.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
readpassphrase.h
I am retiring my old email address; replace it with my OpenBSD one.
7 years ago
regex.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
resolv.h
Implement rfc6840 (AD flag processing) if using trusted name servers
4 years ago
rmd160.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
sched.h
Move the thread-related .h files to /usr/src/include/, since the implementation is now spread between libc and librthread. No changes to the content
8 years ago
search.h
Change lsearch()'s "base" argument to require a non-const pointer to align with POSIX and other systems.
11 years ago
semaphore.h
Move the thread-related .h files to /usr/src/include/, since the implementation is now spread between libc and librthread. No changes to the content
8 years ago
setjmp.h
Stop supporting longjmperror(); it's not used, not portable, and the checks longjmp performs can't really be relied upon, even after we got rid of the false positives...
10 years ago
sha1.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
sha2.h
i forgot to commit sha2.h changes for SHA512/256
9 years ago
signal.h
The open POSIX test suite reveals that sigpause(int sigmask) from 4.2 BSD takes a signal mask as argument while POSIX sigpause(int sig) expects a single signal. Do not expose our traditional BSD sigpause(3) to XPG/POSIX sources. OK guenther@
7 years ago
siphash.h
Use standard spelling for types, and rename local variable from "free". No actual change, but makes it easier to reuse the code elsewhere. Suggested by Andre Smagin
11 years ago
sndio.h
Add sio_flush(3) function to stop playback immediately
4 years ago
spawn.h
Remove function argument name from posix_spawnattr_getsigmask() prototype to match other prototypes in the file. OK guenther@ deraadt@
11 years ago
stdbool.h
These days pcc defines __GNUC__ and we don't support gcc2. Also needed for upcoming CompCert port.
10 years ago
stddef.h
Add max_align_t.
9 years ago
stdio.h
funopen(): change seekfn argument to use off_t, not fpos_t On BSD, fpos_t is typedef'd to off_t but some systems use a struct. This means fpos_t is not a portable function argument or return value. Both FreeBSD and the Linux libbsd funopen() have switched to off_t for this--we should too. From Joe Nelson. OK deraadt@
4 years ago
stdlib.h
Inroduce malloc_conceal() and calloc_conceal(). Similar to their counterparts but return memory in pages marked MAP_CONCEAL and on free() freezero() is actually called.
7 years ago
string.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago
strings.h
str[n]casecmp_l(3) appeared in POSIX 2008, not in XPG 4; phessler@ reported that this oversight broke an armv7 bulk build; OK guenther@
8 years ago
sysexits.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
tar.h
First pass at removing clauses 3 and 4 from NetBSD licenses.
18 years ago
tgmath.h
Add support for tgmath--the type-generic math; now that both math and complex math routines are complete. OK kettenis@.
14 years ago
tib.h
Fix TIB/TCB on powerpc64. Some bright sould decided that the TCB should be 8 bytes in the 64-bit ABI just like in the 32-bit ABI. But that means there is no "spare" word in the TCB that we can use to store a pointer to our struct pthread. So we have to treat powerpc64 special.
5 years ago
time.h
Add C11's timespec_get(3); minor bump for libc.
7 years ago
ttyent.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
unistd.h
Unveiling unveil(2). This brings unveil into the tree, disabled by default - Currently this will return EPERM on all attempts to use it until we are fully certain it is ready for people to start using, but this now allows for others to do more tweaking and experimentation.
7 years ago
utime.h
Pull in <sys/_types.h> instead of <machine/_types.h> in prep for the future
13 years ago
utmp.h
Delete struct definitions that have been obsolete for a dozen years
12 years ago
uuid.h
Add uuid support routines to libc. From FreeBSD via NetBSD via Bitrig via Markus Mueller.
11 years ago
vis.h
Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@
10 years ago
wchar.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago
wctype.h
New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.
8 years ago