OpenBSD CVS

CVS log for src/include/unistd.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.108 / (download) - annotate - [select for diffs], Tue Dec 12 15:30:55 2023 UTC (5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 (colored)

remove support for syscall(2) -- the "indirection system call" because
it is a dangerous alternative entry point for all system calls, and thus
incompatible with the precision system call entry point scheme we are
heading towards.  This has been a 3-year mission:
First perl needed a code-generated wrapper to fake syscall(2) as a giant
switch table, then all the ports were cleaned with relatively minor fixes,
except for "go".  "go" required two fixes -- 1) a framework issue with
old library versions, and 2) like perl, a fake syscall(2) wrapper to
handle ioctl(2) and sysctl(2) because "syscall(SYS_ioctl" occurs all over
the place in the "go" ecosystem because the "go developers" are plan9-loving
unix-hating folk who tried to build an ecosystem without allowing "ioctl".
ok kettenis, jsing, afresh1, sthen

Revision 1.107 / (download) - annotate - [select for diffs], Sat Jan 7 05:24:58 2023 UTC (16 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.106: +3 -1 lines
Diff to previous 1.106 (colored)

Add {get,set}thrname(2) for putting thread names in the kernel and
exposed in a new field returned by sysctl(KERN_PROC).  Update
pthread_{get,set}_name_np(3) to use the syscalls.  Show them, when
set, in ps -H and top -H output.

libc and libpthread minor bumps

ok mpi@, mvs@, deraadt@

Revision 1.106 / (download) - annotate - [select for diffs], Fri Jul 13 09:25:22 2018 UTC (5 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.105: +2 -1 lines
Diff to previous 1.105 (colored)

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.

Still needs to send the unveil's across forks and execs before
fully enabling.

Many thanks to robert@ and deraadt@ for extensive testing.
ok deraadt@

Revision 1.105 / (download) - annotate - [select for diffs], Tue Dec 12 01:12:34 2017 UTC (6 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

pledge()'s 2nd argument becomes char *execpromises, which becomes the
pledge for a new execve image immediately upon start.  Also introduces
"error" which makes violations return -1 ENOSYS instead of killing the
program ("error" may not be handed to a setuid/setgid program, which
may be missing/ignoring syscall return values and would continue with
inconsistant state)
Discussion with many
florian has used this to improve the strictness of a daemon

Revision 1.104 / (download) - annotate - [select for diffs], Thu Mar 9 10:13:03 2017 UTC (7 years, 2 months ago) by fcambus
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

As per style.9, prototypes should not have variable names associated
with the types.

OK jca@

Revision 1.103 / (download) - annotate - [select for diffs], Mon Sep 12 19:36:26 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.102: +1 -6 lines
Diff to previous 1.102 (colored)

Don't declare select() in <unistd.h>

ok deraadt@ millert@

Revision 1.102 / (download) - annotate - [select for diffs], Fri Sep 9 18:12:37 2016 UTC (7 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.101: +2 -12 lines
Diff to previous 1.101 (colored)

Move the 10 (!) defintions of NULL to their own mini header file and
update the NULL definition for C++11.  OK deraadt@ guenther@ kettenis@

Revision 1.101 / (download) - annotate - [select for diffs], Mon May 23 00:12:58 2016 UTC (7 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.100: +1 -3 lines
Diff to previous 1.100 (colored)

Remove iruserok(_sa)? and __ivaliduser(sa)?

ok millert@ deraadt@

Revision 1.100 / (download) - annotate - [select for diffs], Fri Oct 9 01:26:40 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

tame -> pledge.

Revision 1.99 / (download) - annotate - [select for diffs], Wed Sep 9 17:56:59 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

Move to next tame() API.  The flags are now passed as a very simple string,
which results in tame() code placements being much more recognizeable.
tame() can be moved to unistd.h and does not need cpp symbols to turn the
bits on and off.  The resulting API is a bit unexpected, but simplifies the
mapping to enabling bits in the kernel substantially.
vague ok's from various including guenther doug semarie

Revision 1.98 / (download) - annotate - [select for diffs], Wed Aug 26 01:54:08 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.97: +1 -2 lines
Diff to previous 1.97 (colored)

Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it.

ports test build by naddy@
ok deraadt@ kettenis@

Revision 1.97 / (download) - annotate - [select for diffs], Sat Dec 13 20:42:41 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

claim posix 2008 compat. apparently people look at this and get scared
when it's really old. but no actual ports fallout in espie's build.
ok deraadt

Revision 1.96 / (download) - annotate - [select for diffs], Thu Dec 11 23:05:38 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

update swab() to match the current posix definition. "rationale: none."
rewrite the function to be simpler as well. the compiler can unroll the
loop for us if necessary.
ok schwarze

Revision 1.95 / (download) - annotate - [select for diffs], Mon Dec 8 20:39:56 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.94: +1 -5 lines
Diff to previous 1.94 (colored)

header changes for recent libc changes:
add siphash
delete setkey, encrypt, cfree

Revision 1.94 / (download) - annotate - [select for diffs], Fri Nov 21 05:13:44 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.93: +2 -1 lines
Diff to previous 1.93 (colored)

change prototype for crypt_newhash. the login_cap_t is a holdover from its
pwd_gensalt origins, but a string argument works equally work and is more
friendly to consumers beyond local user accounts.
ok deraadt

Revision 1.93 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:56 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.92: +5 -7 lines
Diff to previous 1.92 (colored)

Our setpgrp() is the BSD version with two args and not the XSI
version with zero args, so it should only be visible if __BSD_VISIBLE
(and not also for __XPG_VISIBLE).  Contrawise, readlink() has been
part of base POSIX since 1995, so move to proper #if area for that.
Move crypt_checkpass() to the pure-BSD section of the file.

setpgrp() issue noted by Matti Karnaattu (mkarnaattu (at) gmail.com)
ok millert@

Revision 1.92 / (download) - annotate - [select for diffs], Mon Sep 1 05:09:52 2014 UTC (9 years, 8 months ago) by doug
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

Sync readlink(2) with IEEE Std 1003.1-2008.

discussion, help and ok guenther@

Revision 1.91 / (download) - annotate - [select for diffs], Sun Aug 31 04:02:08 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

Declare and document getthrid()

indirectly prodded by krw@

Revision 1.90 / (download) - annotate - [select for diffs], Sun Aug 31 01:42:36 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.89: +6 -1 lines
Diff to previous 1.89 (colored)

Add additional kernel interfaces for setting close-on-exec on fds
when creating them: pipe2(), dup3(), accept4(), MSG_CMSG_CLOEXEC,
SOCK_CLOEXEC.  Includes SOCK_NONBLOCK support.

ok matthew@

Revision 1.89 / (download) - annotate - [select for diffs], Tue Jul 8 21:35:39 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

update _POSIX2_FORT_RUN, so that sysconf(_SC_2_FORT_RUN) remains correct.
because you care. reminded by matthew.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jun 14 18:01:41 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

Change return value of getentropy() to int 0 for success.  Maximum
buffersize is enforced strictly, this supplies sufficient entropy
payload to act as seed material.  Discourage general use of this
API, but lock down this function name as the go-to for userland
PRNG seeding.  Improve documentation.
ok miod matthew

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jun 13 08:26:10 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.86: +2 -1 lines
Diff to previous 1.86 (colored)

Add new getentropy() system call.  Code and pressure from matthew.
I accepted that he's right (again) to seperate this out from heavy
sysctl API and this will simply a variety of things.  Functionname
is not used by anyone in the ports tree, so we guess we can use it.
Shocking that no application has a function called this.
ok matthew & others who pushed him to start this early on

Revision 1.86 / (download) - annotate - [select for diffs], Fri May 16 21:28:15 2014 UTC (10 years ago) by tedu
Branch: MAIN
Changes since 1.85: +4 -1 lines
Diff to previous 1.85 (colored)

add prototypes for new crypt functions

Revision 1.85 / (download) - annotate - [select for diffs], Mon Apr 21 11:28:26 2014 UTC (10 years ago) by guenther
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Use internal '__' names for __attributes__ in public headers

Revision 1.84 / (download) - annotate - [select for diffs], Tue Apr 1 05:04:50 2014 UTC (10 years, 1 month ago) by matthew
Branch: MAIN
Changes since 1.83: +6 -1 lines
Diff to previous 1.83 (colored)

Define intptr_t in <unistd.h> as specified by POSIX

ok millert

Revision 1.83 / (download) - annotate - [select for diffs], Sat Dec 28 01:51:53 2013 UTC (10 years, 4 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.82: +7 -4 lines
Diff to previous 1.82 (colored)

Annotate a few more bounded functions: realpath(3) needs a buffer
of size at least PATH_MAX.  pread(2), pwrite(2) and readlinkat(2)
also take the buffer and the bound.  OK theo.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Dec 4 22:58:24 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.81: +1 -5 lines
Diff to previous 1.81 (colored)

express final disapproval of the interfaces in libcompat, such as
them ftime(), gtty(), stty(), re_comp(), cuserid() and others.
Discussion and ongoing work to fix the ports tree from many, especially
naddy.
ok naddy
[There is a bit more cleanup possible after that, but this is considered
the current safe step]

Revision 1.81 / (download) - annotate - [select for diffs], Fri Nov 22 21:32:49 2013 UTC (10 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.80: +1 -4 lines
Diff to previous 1.80 (colored)

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@

Revision 1.80 / (download) - annotate - [select for diffs], Thu Oct 24 07:34:56 2013 UTC (10 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@

Revision 1.79 / (download) - annotate - [select for diffs], Mon Jun 17 19:11:54 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and
{clock,pthread}_getcpuclockid() functions.

Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@
ok matthew@

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jun 4 23:01:07 2013 UTC (10 years, 11 months ago) by brad
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

Enable the _POSIX_SHARED_MEMORY_OBJECTS option group now that we have shm_open / shm_unlink.

ok guenther@

Revision 1.77 / (download) - annotate - [select for diffs], Mon Apr 15 16:38:21 2013 UTC (11 years, 1 month ago) by matthew
Branch: MAIN
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored)

Implement fdatasync() as a wrapper around fsync()

ok guenther, deraadt, jmc

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 11 03:09:16 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

getpgid() and getsid() were rolled into POSIX in 2008

ok millert@

Revision 1.75 / (download) - annotate - [select for diffs], Fri Mar 1 21:19:41 2013 UTC (11 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.74: +33 -2 lines
Diff to previous 1.74 (colored)

Adds the (somewhat silly) _CS_V[67]_ENV and _CS_POSIX_V[67]_* defines
to <unistd.h> and confstr(3) per POSIX 1003.1-2008

Change confstr(_CS_PATH) to operate directly instead of calling sysctl(3)

ports build tested by espie@

Revision 1.74 / (download) - annotate - [select for diffs], Wed Dec 5 23:19:57 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.73: +1 -2 lines
Diff to previous 1.73 (colored)

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jun 21 00:56:59 2012 UTC (11 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.72: +3 -1 lines
Diff to previous 1.72 (colored)

__tfork() needs to set the stack address of the new thread in the kernel,
so that it can't get a signal while still running on the parent thread's
stack.  Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added.  This is an ABI change, so switch syscall
numbers and bump lib majors this time.

ok deraadt@ matthew@

Revision 1.72 / (download) - annotate - [select for diffs], Wed May 30 19:34:30 2012 UTC (11 years, 11 months ago) by matthew
Branch: MAIN
Changes since 1.71: +139 -1 lines
Diff to previous 1.71 (colored)

Move the _SC_* and _CS_* configurable system variables and strings
from sys/unistd.h to unistd.h.

From Brad; ok millert and me

Revision 1.71 / (download) - annotate - [select for diffs], Mon May 14 23:21:35 2012 UTC (12 years ago) by matthew
Branch: MAIN
Changes since 1.70: +97 -5 lines
Diff to previous 1.70 (colored)

More sysconf(3)-y and pathconf(3)-y goodness from Brad.
ok guenther, millert (and me); bulk build test by naddy

Revision 1.70 / (download) - annotate - [select for diffs], Thu Apr 12 12:33:03 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.69: +1 -2 lines
Diff to previous 1.69 (colored)

remove rfork(); ok guenther miod

Revision 1.69 / (download) - annotate - [select for diffs], Thu Apr 12 11:19:34 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

prototype getdtablecount()

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 21 23:20:35 2012 UTC (12 years, 1 month ago) by matthew
Branch: MAIN
Changes since 1.67: +7 -4 lines
Diff to previous 1.67 (colored)

Implement execvpe(3) and posix_spawn(3) and family.  Based on
FreeBSD's implementation via Frank Denis, with various cleanups and
tweaks by me.

ok deraadt@, guenther@; discussions and tweaks from many others
jmc@ promises to help me further with the man pages in tree

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 13 13:16:44 2012 UTC (12 years, 4 months ago) by nigel
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Replace _SELECT_DECLARED with _SELECT_DEFINED_

Ok sthen@, millert@, dcoppa@

Revision 1.66 / (download) - annotate - [select for diffs], Wed Nov 9 15:34:18 2011 UTC (12 years, 6 months ago) by fgsch
Branch: MAIN
Changes since 1.65: +3 -5 lines
Diff to previous 1.65 (colored)

getcwd() buffer's length can be smaller than 1024. In that case it will
fail with errno set to ERANGE if not enough room is provided. Similar for
getlogin_r() so remove minbytes enforcement attribute.
ok kettenis@ guenther@ deraadt@ on getcwd, deraadt@ on getlogin_r.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jul 18 17:29:49 2011 UTC (12 years, 10 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.64: +10 -1 lines
Diff to previous 1.64 (colored)

Expose a bunch of new functionality from POSIX 2008: openat(2),
fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2),
faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2),
symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and
fdopendir(3).

"Minor" libc bump.

Tested in a bulk build by naddy@
Much help from guenther@, thib@, tedu@, oga@, and others.
ok deraadt@, naddy@

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 3 18:51:01 2011 UTC (12 years, 10 months ago) by jsg
Branch: MAIN
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored)

As pointed out by Richard Guenther our definition
of NULL was incorrect for c++ compilers that aren't
gcc (or pretend to be gcc like clang).

ok miod@

Revision 1.63 / (download) - annotate - [select for diffs], Wed Apr 6 11:39:42 2011 UTC (13 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses
in the code are fixed.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 25 14:58:54 2008 UTC (15 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.61: +6 -1 lines
Diff to previous 1.61 (colored)

Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112
now that we support all the _r functions required by POSIX 1003.1-2001.
Also define _POSIX_REENTRANT_FUNCTIONS.  OK kurt@ deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Tue Apr 29 14:52:54 2008 UTC (16 years ago) by kurt
Branch: MAIN
Changes since 1.60: +1 -3 lines
Diff to previous 1.60 (colored)

Remove duplicate psignal(3) and sys_siglist definitions. signal.h
is the correct place for them and nothing gets them from here in
base/xenocara/ports. no objection millert@ okay kettenis@

Revision 1.60 / (download) - annotate - [select for diffs], Thu Apr 24 20:43:20 2008 UTC (16 years ago) by kurt
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

- correct brk(2) prototype and man page to match implementation and POSIX.
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not
a pointer to the new end of memory. okay millert@, kettenis@, deraadt@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Dec 20 08:12:00 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored)

zap bogus sentinel, as noticed by dasn.
okay theo

Revision 1.58 / (download) - annotate - [select for diffs], Mon Aug 28 15:47:28 2006 UTC (17 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

zap argument name, okay millert@

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.56: +99 -89 lines
Diff to previous 1.56 (colored)

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@

Revision 1.56 / (download) - annotate - [select for diffs], Thu Nov 24 02:09:13 2005 UTC (18 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

undelete died a while back; millert ok

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 21 18:16:36 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h.  Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Nov 20 02:24:59 2005 UTC (18 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

brk() and sbrk() should use void *, not char *.  Note that sbrk()
should take intptr_t, not int, but we don't presently have intptr_t
available from unistd.h.  OK marco@

Revision 1.53 / (download) - annotate - [select for diffs], Fri May 27 17:45:56 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.52: +1 -5 lines
Diff to previous 1.52 (colored)

mktemp(3) et al. go in stdlib.h, not unistd.h.  While there be more
explicit about mktemp(3) in the man page.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 13 18:10:53 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.51: +4 -1 lines
Diff to previous 1.51 (colored)

Prototype closefrom(); tedu@ OK

Revision 1.51 / (download) - annotate - [select for diffs], Thu Aug 7 01:16:11 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

des_cipher 3rd param is int32_t not long

Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 1 17:38:33 2003 UTC (20 years, 9 months ago) by avsm
Branch: MAIN
Changes since 1.49: +25 -12 lines
Diff to previous 1.49 (colored)

add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jun 26 19:34:17 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.48: +11 -24 lines
Diff to previous 1.48 (colored)

backout the __bounded__ attributes for a while; requested by deraadt@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jun 26 18:35:13 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.47: +25 -12 lines
Diff to previous 1.47 (colored)

Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jun 2 19:34:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.46: +2 -6 lines
Diff to previous 1.46 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.46 / (download) - annotate - [select for diffs], Sat May 10 17:51:39 2003 UTC (21 years ago) by miod
Branch: MAIN
Changes since 1.45: +1 -2 lines
Diff to previous 1.45 (colored)

Do not let userland access the swapon system call anymore (nothing uses it
anyway).
ok deraadt@ weingart@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Dec 3 20:24:29 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.44: +4 -1 lines
Diff to previous 1.44 (colored)

GNU-like getopt_long() from NetBSD with changes by me to support
getopt_long_only().  At some point this should replace the BSD
getopt(3) but we are not there yet.

While I am here add protection from the multiple getopt() definitions
due to conflicting standards.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 30 20:15:29 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.43: +7 -3 lines
Diff to previous 1.43 (colored)

Add [gs]etres[ug]id(2) syscall to libc and use it in emulating some 4.3BSD
functions.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 25 21:55:28 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 17 21:15:58 2002 UTC (21 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.41: +0 -3 lines
Diff to previous 1.41 (colored)

uncommit, since it breaks macppc libc.  millert and miod have now said they
did NOT approve those for commit.  why did mickey feel he was ok to go
commiting a set of diffs which had not been passed around and tested by people?
we don't know.  mickey, have you got something to say for yourself?

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 17 12:57:50 2002 UTC (21 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

move __syscall prototype into unistd.h (like everybody else) and avoid private protos for it everywhere; millert@ ok

Revision 1.40 / (download) - annotate - [select for diffs], Fri Aug 30 08:24:55 2002 UTC (21 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.39: +7 -4 lines
Diff to previous 1.39 (colored)

Put sentinel back in.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 7 03:11:31 2002 UTC (21 years, 11 months ago) by miod
Branch: MAIN
Changes since 1.38: +4 -7 lines
Diff to previous 1.38 (colored)

Backout previous change. Since it requires people to upgrade gcc, we want
to give them a larger timeslot to do that.
Requested by deraadt@ and various people on icb or vocally.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jun 5 19:27:50 2002 UTC (21 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.37: +7 -4 lines
Diff to previous 1.37 (colored)

Use attribute((sentinel)) on functions where it makes sense.
(this will warn if they are used without a terminating NULL pointer.
Note *pointer*, very useful for arches where 0 != (void *)0, in size)

okay millert@

Revision 1.37 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:21 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.36 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.35: +135 -135 lines
Diff to previous 1.35 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 7 21:34:42 2001 UTC (22 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

remove redundant __noreturn__ attributes now that __dead is sane for modern gcc

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 6 17:18:43 2000 UTC (23 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

use __x__ formats for __attribute__ arguments; guenther@gac.edu

Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 12 17:30:45 2000 UTC (23 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

o add missing getsid() prototype
o fix typo in getsid() that broke getsid(pid) where pid != 0
o cause getsid() and getpgid() to return EPERM if requesting the
  id of a session/process group not in the current session
o check for NULL session in getsid() for exiting processes

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jul 19 19:26:04 2000 UTC (23 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

from freebsd:
strtofflags/fflagstostr to convert file flags
to/from binary from/into a string as used in chflags(1).

use u_int32_t instead of u_long (as freebsd does).
increase libc minor.
millert@ ok.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 20 06:34:18 2000 UTC (24 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.30: +13 -2 lines
Diff to previous 1.30 (colored)

prototyping for p{read,write}{,v}

Revision 1.30 / (download) - annotate - [select for diffs], Sat Feb 19 13:21:25 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

swapctl 2nd arg is const

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 27 05:18:47 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.28: +4 -1 lines
Diff to previous 1.28 (colored)

add IPv6-ready rcmd() friends.
	rcmd(): IPv4 only
	rcmd_af(): af independent
	ruserok(): af independent
	iruserok(): IPv4 only
	iruserok_sa(): af independent

Revision 1.28 / (download) - annotate - [select for diffs], Thu Dec 16 21:30:34 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

rresvport_af() and bindresvport_af()

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 17 13:13:46 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Be thorough about NULL as __null for C++.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 11 22:47:47 1999 UTC (24 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.25: +5 -1 lines
Diff to previous 1.25 (colored)

Define NULL to be __null for C++: better quality of implementation.
__null is a magic constant of integral type that converts to a null pointer
as should be, but warns for ambiguity when used to resolved an overload
between an integral type and a pointer type.

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 22 23:49:48 1999 UTC (25 years ago) by weingart
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Add swapctl(2) prototype.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 20 11:18:26 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
  (more md stuff is needed for other libc/arch/*)
  (setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 19 06:44:07 1998 UTC (25 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

add getpgid() proto; form

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 30 23:03:09 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

add mkstemp(char *template, int suffixlen) interface

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 13 08:50:52 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

change size parameter to size_t

Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 25 07:14:50 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

readlink() 3rd param is size_t; XPG

Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 16 09:46:03 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.18: +5 -3 lines
Diff to previous 1.18 (colored)

be more careful for _XOPEN_SOURCE

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 10 02:44:38 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

more explicit protos

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 10 02:19:47 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

move proto to unistd.h

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 27 12:03:44 1997 UTC (26 years, 4 months ago) by tholo
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Make usleep prototype match manual page and implementation

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 22 10:13:50 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +11 -1 lines
Diff to previous 1.14 (colored)

add XPG4.2 lockf; kleink

Revision 1.14 / (download) - annotate - [select for diffs], Sun Nov 16 01:01:24 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

move proto to sys/stat.h; XPG4.2

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 20 04:10:20 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add mkdtemp(3)

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 26 05:11:16 1997 UTC (27 years, 3 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Add lchown() declaration.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 13 17:06:23 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

fix comments regarding {*path,sys}conf()

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 12 23:42:22 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

add quotactl

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 9 13:50:04 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

proto getgrouplist()

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 25 20:02:43 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

+issetugid

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 22 20:36:59 1996 UTC (27 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Adds rcmdsh() prototype.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 10 06:31:34 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

iruserok() can finally safely use a u_int32_t for the ip addr

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 25 21:33:17 1996 UTC (28 years, 1 month ago) by tholo
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

initgroups(3) 2nd argument should be gid_t

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 22 07:38:15 1996 UTC (28 years, 2 months ago) by tholo
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

sethostid() actually do return a value

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 12 14:45:42 1996 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

proto rfork()

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 14 06:53:22 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

from netbsd; profil() fixed for 64 bit

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.