History log of /openbsd-src/lib/libc/nls/catopen.c (Results 1 – 21 of 21)
Revision Date Author Comments
# 3123b2cb 27-Apr-2017 millert <millert@openbsd.org>

ntohl() returns uint32_t so it cannot be < 0. Since we're storing
the result in an int check for > INT_MAX instead. OK bluhm@


# 3240e6a8 21-Sep-2016 guenther <guenther@openbsd.org>

Delete casts to off_t and size_t that are implied by assignments
or prototypes. Ditto for some of the char* and void* casts too.

verified no change to instructions on ILP32 (i386) and LP64 (amd64)

Delete casts to off_t and size_t that are implied by assignments
or prototypes. Ditto for some of the char* and void* casts too.

verified no change to instructions on ILP32 (i386) and LP64 (amd64)
ok natano@ abluhm@ deraadt@ millert@

show more ...


# 9eb35f14 05-Nov-2015 bluhm <bluhm@openbsd.org>

After removing National Language Support (NLS) from base, stop
creating the directory /usr/share/nls. Having a non-existing default
path in catopen(3) does not make sense, so remove it. If the user

After removing National Language Support (NLS) from base, stop
creating the directory /usr/share/nls. Having a non-existing default
path in catopen(3) does not make sense, so remove it. If the user
does not specify a NLS path, better fail early than fail because
of an empty directory. Remove path form hier(7).
OK stsp@ schwarze@ jmc@

show more ...


# 3c63f6bb 23-Oct-2015 tobias <tobias@openbsd.org>

Verify that opened message catalog is valid, i.e. avoid integer overflows
and out of boundary accesses.

with input by miod, ok stsp


# e969daf4 05-Sep-2015 guenther <guenther@openbsd.org>

Use new framework for wrapping cat{open,gets,close}(), eliminating
_cat* in the process.

ok kettenis@


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# e62104c6 01-Jun-2013 stsp <stsp@openbsd.org>

Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.

Catalogs had an arbitrary character set which was used regardless of locale.
Add UTF-8-encoded catalogs for libc error m

Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.

Catalogs had an arbitrary character set which was used regardless of locale.
Add UTF-8-encoded catalogs for libc error messages, and rename existing ones
to indicate their character sets. catopen(3) now chooses a catalog which
matches the locale's encoding, if available.

help & ok matthew, man page bits ok jmc, input from naddy and bluhm

show more ...


# 02e4001d 12-Jul-2011 matthew <matthew@openbsd.org>

Don't call munmap(2) if mmap(2) failed.

ok deraadt@, tedu@


# d874cce4 26-Jun-2008 ray <ray@openbsd.org>

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code t

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

show more ...


# 53b37aa9 05-Aug-2005 espie <espie@openbsd.org>

zap rcsid


# cf20c6bb 23-Mar-2005 otto <otto@openbsd.org>

ansify. ok deraadt@ millert@


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# e7cdc372 11-May-2001 art <art@openbsd.org>

-1 -> MAP_FAILED


# c8f91e0d 15-Sep-1996 tholo <tholo@openbsd.org>

Remove dead code
Remove unused variables
Silence some warnings
lint(1) is your friend


# 17600e31 05-Sep-1996 deraadt <deraadt@openbsd.org>

1 char oflow; bitblt & deraadt


# 6ee6661b 26-Aug-1996 deraadt <deraadt@openbsd.org>

use issetugid() to protect against bad getenv


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

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


# 86e350a5 23-Jun-1996 deraadt <deraadt@openbsd.org>

from jtc; Ensure user can't make us overrun fixed sized buffers.
Merged in changes from branch (make sure all memory, file descriptors,
mappings, etc. are freed and return (nl_catd) -1 on error). Als

from jtc; Ensure user can't make us overrun fixed sized buffers.
Merged in changes from branch (make sure all memory, file descriptors,
mappings, etc. are freed and return (nl_catd) -1 on error). Also fix
one minor bug and clean up NLSPATH parsing a bit more.

show more ...


# 49517a37 10-Jun-1996 deraadt <deraadt@openbsd.org>

exit nicely, error out nicely


# deeceb4f 22-May-1996 deraadt <deraadt@openbsd.org>

svr4-style gencat


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree