History log of /openbsd-current/lib/libc/gen/setmode.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.22 11-Oct-2014 deraadt

obvious reallocarray() use
ok doug


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.21 24-Nov-2013 deraadt

most obvious unsigned char casts for ctype
ok jca krw ingo


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.20 02-Sep-2007 deraadt

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.19 12-Mar-2006 otto

Cleanup to avoid a save errno dance; from Andrey Matveev; ok pat@
jaredy@ ray@


Revision tags: OPENBSD_3_9_BASE
# 1.18 26-Oct-2005 otto

Always set errno on error. Based on NetBSD. ok jaredy@ pat@


Revision tags: OPENBSD_3_8_BASE
# 1.17 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 miod

Set errno right before return(), so that it does not risk being reset
by any other functions we will invoke in-between.

Fix from Andrey Matveev <andrushock@korovino.net>


Revision tags: OPENBSD_3_6_BASE
# 1.15 02-Jul-2004 otto

deregister, better use of strtoul and always set ERANGE on invalid octal
permission. ok millert@; man page ok jmc@


# 1.14 01-Jul-2004 otto

Initialize cmd when processing octal only. Failing to do that results
in rare cases of bogus permissions; noted when using mtree(8) with
mmap malloc.

ok tdeval@ millert@


# 1.13 18-May-2004 jfb

ansify function definitions and zap some `register'

ok millert@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_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 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.10 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_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.9 18-Nov-1998 deraadt

negative change strtol()


Revision tags: OPENBSD_2_4_BASE
# 1.8 14-Aug-1998 deraadt

realloc repair


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.7 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


# 1.6 23-Jul-1997 kstailey

tabify


Revision tags: OPENBSD_2_1_BASE
# 1.5 07-Mar-1997 millert

From NetBSD (christos) [fixed typo introduced in comment]:
If ``who'' was not specified, set the appropriate bits as the manual
page states. ``chmod +s foo'' and ``chmod +t dir'' now work.


Revision tags: OPENBSD_2_0_BASE
# 1.4 19-Aug-1996 tholo

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


# 1.3 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.2 25-Mar-1996 tholo

Prototype internal functions
Do the right thing in presense of __STDC__


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision