History log of /openbsd-current/lib/libc/stdio/tempnam.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 28-Nov-2017 tb

GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections
with "warning: " since 2003, so the messages themselves need not
contain the prefix anymore.

From Scott Cheloha
ok jca, deraadt


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 31-Aug-2015 guenther

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.

tests clean on i386, amd64, sparc64, powerpc, and mips64

naming feedback from kettenis@ and millert@
ok kettenis@


Revision tags: OPENBSD_5_8_BASE
# 1.18 23-Mar-2015 jsg

fix memory leaks in tempnam(3) error paths
ok miod@ millert@ krw@ guenther@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.17 30-Sep-2013 millert

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.16 21-Sep-2007 moritz

Add some more truncation checks for path construction in tmpnam(3).

ok ray@


# 1.15 17-Sep-2007 moritz

Prevent out-of-bounds memory access in tempnam(3), if the environment
variable TMPDIR or the argument `dir' is an empty string.

With and ok millert@ ray@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.14 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_7_BASE
# 1.13 28-Sep-2004 otto

deregister + ansify, no change in object code. ok deraadt@ millert@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.12 02-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 16-Feb-2002 millert

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 tags: OPENBSD_3_0_BASE
# 1.10 09-Jul-2001 deraadt

a first pass at -Wall


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.9 03-Apr-1997 millert

10 X's for mktemp() and mkstemp().


# 1.8 12-Feb-1997 deraadt

more XXXX for mktemp


# 1.7 20-Jan-1997 graichen

back out my last change to avoid the __warn_references on the mips - it's
now done for the pmax like for the arc in machine/cdefs.h


# 1.6 19-Jan-1997 graichen

put all the __warn_references behind a #ifndef NO_WARN_REFERENCES which
is then set in the libc Makefile for the mips (the mips linker can't
handle them)


# 1.5 28-Dec-1996 deraadt

95% of common uses of these are incorrect and insecure. correct use is
incredibly rare. Time for some education!


Revision tags: OPENBSD_2_0_BASE
# 1.4 05-Sep-1996 deraadt

issetugid backwards, duh; thanks bitblt


# 1.3 25-Aug-1996 deraadt

use issetugid()


# 1.2 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision