summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls/msgcat.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-09-03 21:05:10 +0000
committerache <ache@FreeBSD.org>2000-09-03 21:05:10 +0000
commitbbd4badbd6d7b92261cdcf9cd93d0ee89b56a54c (patch)
treeac59eca4538fbf824a090a9e6e54de98c2bbfb2f /lib/libc/nls/msgcat.h
parent5ee0050a669e30889e79a97e32ee941c379bd32f (diff)
downloadFreeBSD-src-bbd4badbd6d7b92261cdcf9cd93d0ee89b56a54c.zip
FreeBSD-src-bbd4badbd6d7b92261cdcf9cd93d0ee89b56a54c.tar.gz
Rewrite using stdio. It cause program speedup since eliminates lots of small
read() syscalls. It not cause static binary size increasing because stdio already picked via setlocale() called from catopen()
Diffstat (limited to 'lib/libc/nls/msgcat.h')
-rw-r--r--lib/libc/nls/msgcat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/nls/msgcat.h b/lib/libc/nls/msgcat.h
index ee6799d3..f13d888 100644
--- a/lib/libc/nls/msgcat.h
+++ b/lib/libc/nls/msgcat.h
@@ -130,7 +130,7 @@ typedef struct _MCSetT {
*/
typedef struct {
long loadType; /* How to load the messages (see MSLoadType) */
- int fd; /* File descriptor of catalog (if load-on-demand) */
+ FILE *fp; /* File descriptor of catalog (if load-on-demand) */
long numSets; /* Number of sets */
MCSetT *sets; /* Pointer to the sets */
off_t firstSet; /* Offset of first set on disk */
OpenPOWER on IntegriCloud