History log of /netbsd-src/lib/libc/regex/regerror.c (Results 1 – 25 of 26)
Revision Date Author Comments
# 3ead30d6 05-Nov-2022 riastradh <riastradh@NetBSD.org>

regerror(3): Allow null errbuf if errbuf_size is zero.

The man page says:

If errbuf_size is 0, errbuf is ignored but the return value is still
correct.

POSIX says:

If errbuf_size is 0, r

regerror(3): Allow null errbuf if errbuf_size is zero.

The man page says:

If errbuf_size is 0, errbuf is ignored but the return value is still
correct.

POSIX says:

If errbuf_size is 0, regerror() shall ignore the errbuf argument,
and return the size of the buffer needed to hold the generated
string.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/regerror.html

from enh@google.com

show more ...


# f09b3194 26-Feb-2021 christos <christos@NetBSD.org>

Arrange for tools build


# 1ee269c3 23-Feb-2021 christos <christos@NetBSD.org>

sync with FreeBSD:
- NLS support
- GNU extensions
- bug fixes


# 931a89e7 09-Feb-2007 junyoung <junyoung@NetBSD.org>

Rearrange headers for better portability.


# 9641e3f0 08-Feb-2007 junyoung <junyoung@NetBSD.org>

ANSIfy.


# 19690e9a 08-Feb-2007 junyoung <junyoung@NetBSD.org>

Nuke __P.


# d2e40598 02-Dec-2005 yamt <yamt@NetBSD.org>

constify and remove __UNCONST.


# 03256c6e 29-Nov-2005 christos <christos@NetBSD.org>

WARNS=4


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 9134efab 17-Nov-2002 itojun <itojun@NetBSD.org>

use strlcpy where it is more appropriate.


# 60549036 22-Jan-2000 mycroft <mycroft@NetBSD.org>

Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# c46d95a3 17-Sep-1999 kleink <kleink@NetBSD.org>

The previous assertion change was incorrect: the preg argument is permitted to
be NULL (part of the interface definition!) unless errcode is REG_ATOI, which
is a non-portable extension.

Also, remove

The previous assertion change was incorrect: the preg argument is permitted to
be NULL (part of the interface definition!) unless errcode is REG_ATOI, which
is a non-portable extension.

Also, remove assertions from the local regatoi() function, as they are either
redundant or will never fail due to the buffer allocation for that argument in
regerror().

show more ...


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 28563871 08-Dec-1998 drochner <drochner@NetBSD.org>

correct a comment, minor formatting


# 4523c05f 14-Nov-1998 christos <christos@NetBSD.org>

Delint:
- we don't need to use longs; convert to use int32_t.
- remove break statements after returns.
- cast things properly.


# 392dcacb 26-Jul-1998 mycroft <mycroft@NetBSD.org>

const poisoning.


# 9ad899cc 26-Jul-1998 mycroft <mycroft@NetBSD.org>

constify some tables.


# c8bafd62 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# 43fa6fe3 21-Jul-1997 jtc <jtc@NetBSD.org>

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

show more ...


# 05e3795e 13-Jul-1997 christos <christos@NetBSD.org>

Add braces in initializers.
Fix RCSID's
Remove unused variables


# 9cd5492c 23-Jan-1997 mrg <mrg@NetBSD.org>

- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.


# 2c84ad3a 27-Feb-1995 cgd <cgd@NetBSD.org>

add unintrusive Ids


# 7c6ed81d 30-Jan-1995 cgd <cgd@NetBSD.org>

clean up import; kill old cruft.


# 6931099e 11-Nov-1993 jtc <jtc@NetBSD.org>

Update to Henry's Nov 2, 1993 alpha3.2 release.


12