OpenBSD CVS

CVS log for src/include/stdlib.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Fri Mar 1 21:30:40 2024 UTC (2 months, 2 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored)

Add mkdtemps(3), like mkdtemp(3) but with a suffix.
OK deraadt@ tb@

Revision 1.76 / (download) - annotate - [select for diffs], Fri May 10 15:03:24 2019 UTC (5 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, 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
Changes since 1.75: +3 -1 lines
Diff to previous 1.75 (colored)

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.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Nov 21 06:57:04 2018 UTC (5 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.74: +1 -2 lines
Diff to previous 1.74 (colored)

Introducing malloc_usable_size() was a mistake. While some other
libs have it, it is a function that is considered harmful, so:

Delete malloc_usable_size(). It is a function that blurs the line
between malloc managed memory and application managed memory and
exposes some of the internal workings of malloc.  If an application
relies on that, it is likely to break using another implementation
of malloc.  If you want usable size x, just allocate x bytes. ok
deraadt@ and other devs

Revision 1.74 / (download) - annotate - [select for diffs], Sun Nov 18 16:15:18 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Implement malloc_usable_size(); ok millert@ deraadt@ and jmc@ for the man page

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 5 08:23:40 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.72: +6 -1 lines
Diff to previous 1.72 (colored)

Implement C11's aligned_alloc(3). ok guenther@

Revision 1.72 / (download) - annotate - [select for diffs], Tue Sep 5 03:16:13 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.71: +3 -4 lines
Diff to previous 1.71 (colored)

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.

With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 11 11:52:18 2017 UTC (7 years ago) by tom
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

arc4random_buf should be bounded buffer, not bounded string

ok millert@

Revision 1.70 / (download) - annotate - [select for diffs], Wed May 10 21:48:29 2017 UTC (7 years ago) by millert
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored)

Add bounded attribute to freezero().  OK tom@

Revision 1.69 / (download) - annotate - [select for diffs], Mon Apr 10 05:45:02 2017 UTC (7 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

Introducing freezero(3) a version of free that guarantees the process
no longer has access to the content of a memmory object. It does
this by either clearing (if the object memory remains cached) or
by calling munmap(2). ok millert@, deraadt@, guenther@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Mar 6 18:50:28 2017 UTC (7 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)
with the added feature that released memory is cleared. Much input from various
developers. ok deraadt@ tom@

Revision 1.67 / (download) - annotate - [select for diffs], Tue Sep 20 21:10:22 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
Changes since 1.66: +1 -3 lines
Diff to previous 1.66 (colored)

Remove duplicated includes in stdlib.h and termios.h

OK guenther@

Revision 1.66 / (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.65: +2 -12 lines
Diff to previous 1.65 (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.65 / (download) - annotate - [select for diffs], Tue Jul 14 19:05:11 2015 UTC (8 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

The first argument to devname(3) should be dev_t, not int.
The man page was already correct.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Feb 8 02:58:50 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.63: +10 -10 lines
Diff to previous 1.63 (colored)

add restrict to strtol like functions. ok guenther

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 15 19:55:58 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

we don't have an alloca() symbol anywhere in libc, don't prototype it.
instead, #define to __builtin_alloca. if that doesn't work, you're hosed.
from an old discussion about the perils of alloca. (don't use alloca!)

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 8 21:45:19 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.61: +6 -1 lines
Diff to previous 1.61 (colored)

Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()
to returning strong random by default, source from arc4random(3).
Parameters to the seeding functions are ignored, and the subsystems remain
in strong random mode.  If you wish the standardized deterministic mode,
call srand_deterministic(), srandom_determistic(), srand48_deterministic(),
seed48_deterministic() or lcong48_deterministic() instead.
The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are
unaffected by this change and remain in deterministic mode (for now).

Verified as a good roadmap forward by auditing 8800 pieces of software.
Roughly 60 pieces of software will need adaptation to request the
deterministic mode.

Violates POSIX and C89, which violate best practice in this century.
ok guenther tedu millert

Revision 1.61 / (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.60: +1 -5 lines
Diff to previous 1.60 (colored)

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

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

Add additional userland interfaces for setting close-on-exec on fds
when creating them: mkostemp(), mkostemps(), the 'e' mode letter for
fopen(), freopen(), fdopen(), and popen().  The close-on-exec flag will
be cleared by the action created by posix_spawn_file_actions_adddup2().

Also, add support for the C11 'x' mode letter for fopen() and freopen(),
setting O_EXCL when possibly creating files.

Note: this requires kernel support for pipe2() and dup3()!

ok millert@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jul 9 16:57:49 2014 UTC (9 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

Clean up after arc4random u_int32_t uint32_t change
ok jsing@

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 22 14:26:26 2014 UTC (10 years ago) by tedu
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

change mallocarray to reallocarray. useful in a few more situations.
malloc can, as always, be emulated via realloc(NULL).
ok deraadt

Revision 1.57 / (download) - annotate - [select for diffs], Mon Apr 21 13:17:32 2014 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

Introducing:      void *mallocarray(size_t nmemb, size_t size);
Like calloc(), except without the cleared-memory gaurantee
ok beck guenther, discussed for more than a year...

Revision 1.56 / (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.55: +3 -2 lines
Diff to previous 1.55 (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.55 / (download) - annotate - [select for diffs], Fri Dec 13 20:48:39 2013 UTC (10 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Fix typo; 200809 not 20080 for __POSIX_VISIBLE.  Noticed by jca@

Revision 1.54 / (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.53: +5 -8 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Mon Oct 21 20:33:24 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +1 -4 lines
Diff to previous 1.52 (colored)

Remove arc4random_stir() and arc4random_addrandom(), which none should
be using directly.  Well, a few rare people cloned it upstream and it
will take a bit of time for them to learn.
ok various

Revision 1.52 / (download) - annotate - [select for diffs], Fri May 31 20:59:24 2013 UTC (10 years, 11 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.51: +5 -1 lines
Diff to previous 1.51 (colored)

Add getprogname() and setprogname() to ease slackers^porters' work.
Man page adapted from FreeBSD and NetBSD.

Bump libc minor now (there will be more upcoming changes).

input from tedu@
get it in deraadt@

Revision 1.51 / (download) - annotate - [select for diffs], Mon Dec 3 20:08:33 2012 UTC (11 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.50: +9 -1 lines
Diff to previous 1.50 (colored)

Simple emulation of POSIX pty APIs posix_openpt(), ptsname(),
grantpt() and unlockpt() using /dev/ptm.  Man pages from FreeBSD.
OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jun 1 01:01:57 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.49: +37 -14 lines
Diff to previous 1.49 (colored)

Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),
and valloc() are not in the current version, while posix_memalign() mkstemp(),
and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'.

ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jul 3 18:51:01 2011 UTC (12 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (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.48 / (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.47: +2 -2 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Tue May 18 22:24:55 2010 UTC (14 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

add posix_madvise, posix_memalign, strndup, and strnlen.  mostly from
brad and millert, with hints from guenther, jmc, and otto I think.
ok previous.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jun 3 15:52:16 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Make putenv(), setenv() and unsetenv() standards compliant.  The
standard explicitly disallows passing setenv a name with a '=' in
it but historic BSD behavior is to allow this but to ignore the '='
and anything after it.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Sep 7 20:36:07 2008 UTC (15 years, 8 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

- replace dtoa w/ David's gdtoa, version 2008-03-15
- provide proper dtoa locks
- use the real strtof implementation
- add strtold, __hdtoa, __hldtoa
- add %a/%A support
- don't lose precision in printf, don't round to double anymore
- implement extended-precision versions of libc functions: fpclassify,
isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is
fixed
- separate vax versions of strtof, and __hdtoa
- add complex math support.  added functions: cacos, casin, catan,
ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp,
clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf,
casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf,
ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf,
cimagf, conjf, cprojf, crealf
- add fdim, fmax, fmin
- add log2. (adapted implementation e_log.c.  could be more acruate
& faster, but it's good enough for now)
- remove wrappers & cruft in libm, supposed to work-around mistakes
in SVID, etc.;  use ieee versions.  fixes issues in python 2.6 for
djm@
- make _digittoint static
- proper definitions for i386, and amd64 in ieee.h
- sh, powerpc don't really have extended-precision
- add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h
for LDBL_*
- merge lead to frac for m{6,8}k, for gdtoa to work properly
- add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa
to use
- add EXT_IMPLICIT_NBIT definition, which indicates implicit
normalization bit
- add regression tests for libc: fpclassify and printf
- arith.h & gd_qnan.h definitions
- update ieee.h: hppa doesn't have quad-precision, hppa64 does
- add missing prototypes to gdtoaimp
- on 64-bit platforms make sure gdtoa doesn't use a long when it
really wants an int
- etc., what i may have forgotten...
- bump libm major, due to removed&changed symbols
- no libc bump, since this is riding on djm's libc major crank from
a day ago

discussed with / requested by / testing theo, sthen@, djm@, jsg@,
merdely@, jsing@, tedu@, brad@, jakemsr@, and others.
looks good to millert@
parts of the diff ok kettenis@

this commit does not include:
- man page changes

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jun 24 06:01:33 2008 UTC (15 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

remove recalloc; sloppy me; ok deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jun 20 15:21:06 2008 UTC (15 years, 11 months ago) by ragge
Branch: MAIN
Changes since 1.42: +2 -6 lines
Diff to previous 1.42 (colored)

Remove obsolete (and erroneous) #if statement that caused all compilers
except for gcc to get the wrong prototype.  Ok millert@

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jun 13 21:04:24 2008 UTC (15 years, 11 months ago) by landry
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Add strtof() to libc, some ports seem to like it. Currently it's a simple
call to strtod() with bounding check.
Discussed with pyr@ and otto@

ok otto@ deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Sun Mar 16 19:47:43 2008 UTC (16 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.40: +5 -1 lines
Diff to previous 1.40 (colored)

diff from djm@ committed at his request:

introduce two new APIs for requesting strong random numbers:

arc4random_buf() - fill an arbitrary memory range with random numbers

arc4random_uniform() - return a uniformly distributed random number
below
a specified upper bound, avoiding the bias that comes from a naive
"arc4random() % upper_bound" construction.

these mirror similarly-named functions in the kernel;
lots of discussion deraadt@ mcbride@

Revision 1.40 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:02 2007 UTC (16 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

add recaloc(3)

Revision 1.39 / (download) - annotate - [select for diffs], Sun Sep 17 16:48:04 2006 UTC (17 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

add lldiv prototype; ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Fri Mar 31 00:41:21 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

after we changed mode_t to be an int, the devname() man page was
updated but the function itself never was; ok millert

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 13 17:58:09 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.36: +9 -2 lines
Diff to previous 1.36 (colored)

Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jan 6 18:53:04 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.35: +9 -11 lines
Diff to previous 1.35 (colored)

Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable

Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.34: +78 -45 lines
Diff to previous 1.34 (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.34 / (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.33: +5 -1 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Wed May 11 18:44:12 2005 UTC (19 years ago) by espie
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

major abi changes:

* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.

* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).

* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.

bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.

Discussed and matthieu, otto, millert, kettenis, deraadt.

Major libc bump

Revision 1.32 / (download) - annotate - [select for diffs], Tue Aug 3 19:59:42 2004 UTC (19 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Update strtonum() protor

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 3 19:16:36 2004 UTC (20 years ago) by tedu
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

strtonum prototype

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 3 17:21:13 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Add _Exit(3) as per C99.  Discussed with espie@ some time ago.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 21 19:50:39 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

Prototype llabs(3).  Forgotten commit gathering bit rot in my tree...

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 1 17:38:33 2003 UTC (20 years, 9 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.27: +5 -3 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (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.26: +2 -4 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (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.25: +5 -3 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (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.24: +2 -6 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (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.23: +4 -1 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Mon Dec 2 15:38:54 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 2 02:07:28 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add prototype for atoll(3).  I must have forgotten to commit this bit
when I committed atoll(3).

Revision 1.21 / (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.20: +2 -2 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jun 29 00:20:11 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)

Replace strtou?q() with the more standard strtou?ll(), using weak
aliases to fake up strtou?q().  espie@ OK.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 20 18:12:44 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.18: +1 -8 lines
Diff to previous 1.18 (colored)

Revert local changes that snuck in to the last commit.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 20 18:11:04 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.17: +17 -1 lines
Diff to previous 1.17 (colored)

Some user header files may define an abs macro which will cause a
syntax error if the #define happens before stdlib.h is included.
If abs is #defined, #undef and issue a warning.  This is similar
to what Tru64 UNIX does and is effectively the same as what happens
on Solaris (though on Solaris the real abs() is a macro).

Revision 1.17 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:21 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.16: +11 -14 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (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.15: +79 -79 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Sun Nov 4 23:27:54 2001 UTC (22 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Ghostscript port refused to build with 'printf' in the
__attribute__ statement. Using '__printf__' makes it happy.

ok millert@ miod@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 1 23:52:10 2001 UTC (22 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Mention printf-like attributes for setproctitle().
millert@ espie@ ok

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 18 18:11:12 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add new cgetusedb() function to toggle reading of .db files in getcap(3).
Needed for cap_mkdb to really DRT when given several input files or
an output file with a different name from the input file.
cvs: ----------------------------------------------------------------------

Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 3 23:23:48 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Add srandomdev() from FreeBSD for use by sendmail and others.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 27 13:20:25 1999 UTC (24 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

In ANSI C++, wchar_t is a builtin. gcc 2.95.1 handles that correctly.
Redefining it as a typedef is an error, as it prevents overloading
on e.g., int/wchar_t separately.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 11 22:47:48 1999 UTC (24 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu Feb 25 21:40:15 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.8: +8 -8 lines
Diff to previous 1.8 (colored)

constify getcap(3).  This fixes a warning in libcurses and doesn't
really change the API since those parameters that was been constified
really are not modified by getcap(3) routines.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 20 11:18:26 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Sat Feb 7 02:16:26 1998 UTC (26 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

More XPG4.2 --
  setstate takes a const parameter
  don't ever spew to stderr, just return NULL

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 6 01:49:06 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

size_t n in initstate(); XPG

Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 9 13:32:36 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

for XPG, do not use special typedef types

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 21 10:45:53 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (colored)

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now.  Added openBSD tags.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 28 06:32:59 1996 UTC (27 years, 4 months ago) by dm
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.2: +4 -0 lines
Diff to previous 1.2 (colored)

arc4random() number generator, for use with things like RPC xid's.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 30 08:12:37 1995 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

abort() and exit() need __dead tags in stdlib.h; mike.long@analog.com;
netbsd pr#1845

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.