CVS commit: src/lib/libc/nls
Module Name:src Committed By: mgorny Date: Sun Mar 8 22:06:06 UTC 2020 Modified Files: src/lib/libc/nls: C.msg Log Message: Sync signal messages between catalog and sys_siglist To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/lib/libc/nls/C.msg Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/nls/C.msg diff -u src/lib/libc/nls/C.msg:1.15 src/lib/libc/nls/C.msg:1.16 --- src/lib/libc/nls/C.msg:1.15 Sun Mar 8 22:05:40 2020 +++ src/lib/libc/nls/C.msg Sun Mar 8 22:06:05 2020 @@ -225,9 +225,9 @@ $ SIGTERM $ SIGURG 16 Urgent I/O condition $ SIGSTOP -17 Stopped (signal) +17 Suspended (signal) $ SIGTSTP -18 Stopped +18 Suspended $ SIGCONT 19 Continued $ SIGCHLD @@ -239,15 +239,15 @@ $ SIGTTOU $ SIGIO 23 I/O possible $ SIGXCPU -24 Cputime limit exceeded +24 CPU time limit exceeded $ SIGXFSZ -25 Filesize limit exceeded +25 File size limit exceeded $ SIGVTALRM 26 Virtual timer expired $ SIGPROF 27 Profiling timer expired $ SIGWINCH -28 Window size changes +28 Window size changed $ SIGINFO 29 Information request $ SIGUSR1
CVS commit: src/lib/libc/nls
Module Name:src Committed By: christos Date: Tue Sep 16 01:30:28 UTC 2014 Modified Files: src/lib/libc/nls: catopen.c Log Message: belt-n-suspenders, close on exec catalog files. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/lib/libc/nls/catopen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/nls/catopen.c diff -u src/lib/libc/nls/catopen.c:1.32 src/lib/libc/nls/catopen.c:1.33 --- src/lib/libc/nls/catopen.c:1.32 Mon Aug 19 04:03:34 2013 +++ src/lib/libc/nls/catopen.c Mon Sep 15 21:30:28 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: catopen.c,v 1.32 2013/08/19 08:03:34 joerg Exp $ */ +/* $NetBSD: catopen.c,v 1.33 2014/09/16 01:30:28 christos Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__RCSID($NetBSD: catopen.c,v 1.32 2013/08/19 08:03:34 joerg Exp $); +__RCSID($NetBSD: catopen.c,v 1.33 2014/09/16 01:30:28 christos Exp $); #define _NLS_PRIVATE #define __SETLOCALE_SOURCE__ @@ -163,7 +163,7 @@ load_msgcat(const char *path) _DIAGASSERT(path != NULL); - if ((fd = open(path, O_RDONLY)) == -1) + if ((fd = open(path, O_RDONLY|O_CLOEXEC)) == -1) return (nl_catd)-1; if (fstat(fd, st) != 0) {
CVS commit: src/lib/libc/nls
Module Name:src Committed By: yamt Date: Mon Jul 30 23:02:41 UTC 2012 Modified Files: src/lib/libc/nls: catopen.c Log Message: comment To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/nls/catopen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/nls/catopen.c diff -u src/lib/libc/nls/catopen.c:1.30 src/lib/libc/nls/catopen.c:1.31 --- src/lib/libc/nls/catopen.c:1.30 Tue Mar 20 17:44:18 2012 +++ src/lib/libc/nls/catopen.c Mon Jul 30 23:02:41 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: catopen.c,v 1.30 2012/03/20 17:44:18 matt Exp $ */ +/* $NetBSD: catopen.c,v 1.31 2012/07/30 23:02:41 yamt Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include sys/cdefs.h #if defined(LIBC_SCCS) !defined(lint) -__RCSID($NetBSD: catopen.c,v 1.30 2012/03/20 17:44:18 matt Exp $); +__RCSID($NetBSD: catopen.c,v 1.31 2012/07/30 23:02:41 yamt Exp $); #endif /* LIBC_SCCS and not lint */ #define _NLS_PRIVATE @@ -87,10 +87,13 @@ _catopen(const char *name, int oflag) if (issetugid() || (nlspath = getenv(NLSPATH)) == NULL) nlspath = NLS_DEFAULT_PATH; + /* + * histrical note: + * http://www.hauN.org/ml/b-l-j/a/800/828.html (in japanese) + */ if (oflag == NL_CAT_LOCALE) { lang = setlocale(LC_MESSAGES, NULL); - } - else { + } else { lang = getenv(LANG); } if (lang == NULL || strchr(lang, '/'))