msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2013-03-26 16:48+0900\n"
+"POT-Creation-Date: 2015-02-04 23:33+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: TH
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:50
+#: build/C/man3/bsearch.3:56
msgid ""
"The B<bsearch>() function searches an array of I<nmemb> objects, the "
"initial member of which is pointed to by I<base>, for a member that matches "
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:59
+#: build/C/man3/bsearch.3:70
msgid ""
"The contents of the array should be in ascending sorted order according to "
"the comparison function referenced by I<compar>. The I<compar> routine is "
msgstr ""
#. type: SH
-#: build/C/man3/bsearch.3:59 build/C/man3/hsearch.3:174 build/C/man3/lsearch.3:59 build/C/man3/qsort.3:91 build/C/man3/tsearch.3:167
+#: build/C/man3/bsearch.3:70 build/C/man3/hsearch.3:174 build/C/man3/lsearch.3:72 build/C/man3/qsort.3:91 build/C/man3/tsearch.3:167
#, no-wrap
msgid "RETURN VALUE"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:66
+#: build/C/man3/bsearch.3:77
msgid ""
"The B<bsearch>() function returns a pointer to a matching member of the "
"array, or NULL if no match is found. If there are multiple elements that "
msgstr ""
#. type: SH
-#: build/C/man3/bsearch.3:66 build/C/man3/hsearch.3:226 build/C/man3/insque.3:99 build/C/man3/lsearch.3:67 build/C/man3/qsort.3:100 build/C/man3/tsearch.3:190
+#: build/C/man3/bsearch.3:77 build/C/man3/hsearch.3:246 build/C/man3/insque.3:99 build/C/man3/lsearch.3:80 build/C/man3/qsort.3:100 build/C/man3/tsearch.3:190
#, no-wrap
msgid "CONFORMING TO"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:68
+#: build/C/man3/bsearch.3:79
msgid "SVr4, 4.3BSD, POSIX.1-2001, C89, C99."
msgstr ""
#. type: SH
-#: build/C/man3/bsearch.3:68 build/C/man3/hsearch.3:273 build/C/man3/insque.3:134 build/C/man3/qsort.3:116 build/C/man3/tsearch.3:212
+#: build/C/man3/bsearch.3:79 build/C/man3/hsearch.3:293 build/C/man3/insque.3:134 build/C/man3/qsort.3:116 build/C/man3/tsearch.3:212
#, no-wrap
msgid "EXAMPLE"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:73
+#: build/C/man3/bsearch.3:84
msgid ""
"The example below first sorts an array of structures using B<qsort>(3), then "
"retrieves desired elements using B<bsearch>()."
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:78 build/C/man3/qsort.3:127
+#: build/C/man3/bsearch.3:89 build/C/man3/qsort.3:127
#, no-wrap
msgid ""
"#include E<lt>stdio.hE<gt>\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:87
+#: build/C/man3/bsearch.3:98
#, no-wrap
msgid ""
"struct mi {\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:89
+#: build/C/man3/bsearch.3:100
#, no-wrap
msgid "#define nr_of_months (sizeof(months)/sizeof(months[0]))\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:97
+#: build/C/man3/bsearch.3:108
#, no-wrap
msgid ""
"static int\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:102
+#: build/C/man3/bsearch.3:113
#, no-wrap
msgid ""
"int\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:116
+#: build/C/man3/bsearch.3:127
#, no-wrap
msgid ""
" qsort(months, nr_of_months, sizeof(struct mi), compmi);\n"
msgstr ""
#. type: SH
-#: build/C/man3/bsearch.3:118 build/C/man3/hsearch.3:323 build/C/man3/lsearch.3:72 build/C/man3/qsort.3:155 build/C/man3/tsearch.3:289
+#: build/C/man3/bsearch.3:129 build/C/man3/hsearch.3:343 build/C/man3/lsearch.3:85 build/C/man3/qsort.3:155 build/C/man3/tsearch.3:289
#, no-wrap
msgid "SEE ALSO"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:123
+#: build/C/man3/bsearch.3:134
msgid "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)"
msgstr ""
#. type: SH
-#: build/C/man3/bsearch.3:123 build/C/man3/hsearch.3:328 build/C/man3/insque.3:244 build/C/man3/lsearch.3:76 build/C/man3/qsort.3:160 build/C/man3/tsearch.3:294
+#: build/C/man3/bsearch.3:134 build/C/man3/hsearch.3:348 build/C/man3/insque.3:244 build/C/man3/lsearch.3:89 build/C/man3/qsort.3:160 build/C/man3/tsearch.3:294
#, no-wrap
msgid "COLOPHON"
msgstr ""
#. type: Plain text
-#: build/C/man3/bsearch.3:130 build/C/man3/hsearch.3:335 build/C/man3/insque.3:251 build/C/man3/lsearch.3:83 build/C/man3/qsort.3:167 build/C/man3/tsearch.3:301
+#: build/C/man3/bsearch.3:142 build/C/man3/hsearch.3:356 build/C/man3/insque.3:252 build/C/man3/lsearch.3:97 build/C/man3/qsort.3:168 build/C/man3/tsearch.3:302
msgid ""
-"This page is part of release 3.50 of the Linux I<man-pages> project. A "
-"description of the project, and information about reporting bugs, can be "
-"found at http://www.kernel.org/doc/man-pages/."
+"This page is part of release 3.79 of the Linux I<man-pages> project. A "
+"description of the project, information about reporting bugs, and the latest "
+"version of this page, can be found at "
+"\\%http://www.kernel.org/doc/man-pages/."
msgstr ""
#. type: TH
#. type: TH
#: build/C/man3/hsearch.3:35
#, no-wrap
-msgid "2011-09-10"
+msgid "2014-01-05"
msgstr ""
#. type: TH
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:180
+#: build/C/man3/hsearch.3:182
msgid ""
"B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 "
-"on error."
+"on error, with I<errno> set to indicate the cause of the error."
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:191
+#: build/C/man3/hsearch.3:196
msgid ""
"On success, B<hsearch>() returns a pointer to an entry in the hash table. "
"B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and "
"the hash table is full, or I<action> is B<FIND> and I<item> cannot be found "
"in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on "
-"error."
+"error. In the event of an error, these two functions set I<errno> to "
+"indicate the cause of the error."
msgstr ""
#. type: SH
-#: build/C/man3/hsearch.3:191
+#: build/C/man3/hsearch.3:196
#, no-wrap
msgid "ERRORS"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:197
+#: build/C/man3/hsearch.3:202
msgid "B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:"
msgstr ""
#. type: TP
-#: build/C/man3/hsearch.3:197
+#: build/C/man3/hsearch.3:202
#, no-wrap
msgid "B<EINVAL>"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:201
+#: build/C/man3/hsearch.3:206
msgid "I<htab> is NULL."
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:206
+#: build/C/man3/hsearch.3:211
msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:"
msgstr ""
#. type: TP
-#: build/C/man3/hsearch.3:206
+#: build/C/man3/hsearch.3:211
#, no-wrap
msgid "B<ENOMEM>"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:214
+#: build/C/man3/hsearch.3:219
msgid ""
"I<action> was B<ENTER>, I<key> was not found in the table, and there was no "
"room in the table to add a new entry."
msgstr ""
#. type: TP
-#: build/C/man3/hsearch.3:214
+#: build/C/man3/hsearch.3:219
#, no-wrap
msgid "B<ESRCH>"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:222
+#: build/C/man3/hsearch.3:227
msgid "I<action> was B<FIND>, and I<key> was not found in the table."
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:226
-msgid "POSIX.1-2001 only specifies the B<ENOMEM> error."
+#: build/C/man3/hsearch.3:231
+msgid "POSIX.1-2001 specifies only the B<ENOMEM> error."
+msgstr ""
+
+#. type: SH
+#: build/C/man3/hsearch.3:231
+#, no-wrap
+msgid "ATTRIBUTES"
+msgstr ""
+
+#. type: SS
+#: build/C/man3/hsearch.3:232
+#, no-wrap
+msgid "Multithreading (see pthreads(7))"
msgstr ""
#. type: Plain text
#: build/C/man3/hsearch.3:239
msgid ""
+"The B<hcreate>(), B<hsearch>(), and B<hdestroy>() functions use a global "
+"space for storing the table, so they are not thread-safe."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man3/hsearch.3:246
+msgid ""
+"The B<hcreate_r>(), B<hsearch_r>(), and B<hdestroy_r>() functions are "
+"thread-safe."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man3/hsearch.3:259
+msgid ""
"The functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() are from SVr4, "
"and are described in POSIX.1-2001. The functions B<hcreate_r>(), "
"B<hsearch_r>(), and B<hdestroy_r>() are GNU extensions."
msgstr ""
#. type: SH
-#: build/C/man3/hsearch.3:239 build/C/man3/insque.3:101 build/C/man3/qsort.3:104 build/C/man3/tsearch.3:195
+#: build/C/man3/hsearch.3:259 build/C/man3/insque.3:101 build/C/man3/qsort.3:104 build/C/man3/tsearch.3:195
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:246
+#: build/C/man3/hsearch.3:266
msgid ""
"Hash table implementations are usually more efficient when the table "
"contains enough free space to minimize collisions. Typically, this means "
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:264
+#: build/C/man3/hsearch.3:284
msgid ""
"The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers "
"pointed to by the I<key> and I<data> elements of the hash table entries. "
msgstr ""
#. type: SH
-#: build/C/man3/hsearch.3:264 build/C/man3/insque.3:127 build/C/man3/lsearch.3:70
+#: build/C/man3/hsearch.3:284 build/C/man3/insque.3:127 build/C/man3/lsearch.3:83
#, no-wrap
msgid "BUGS"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:271
+#: build/C/man3/hsearch.3:291
msgid ""
"SVr4 and POSIX.1-2001 specify that I<action> is significant only for "
"unsuccessful searches, so that an B<ENTER> should not do anything for a "
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:273
+#: build/C/man3/hsearch.3:293
msgid "Individual hash table entries can be added, but not deleted."
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:277
+#: build/C/man3/hsearch.3:297
msgid ""
"The following program inserts 24 items into a hash table, then prints some "
"of them."
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:282
+#: build/C/man3/hsearch.3:302
#, no-wrap
msgid ""
"#include E<lt>stdio.hE<gt>\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:289
+#: build/C/man3/hsearch.3:309
#, no-wrap
msgid ""
-"char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
+"static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
" \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
" \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
" \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:295
+#: build/C/man3/hsearch.3:315
#, no-wrap
msgid ""
"int\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:297
+#: build/C/man3/hsearch.3:317
#, no-wrap
msgid " hcreate(30);\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:310
+#: build/C/man3/hsearch.3:330
#, no-wrap
msgid ""
" for (i = 0; i E<lt> 24; i++) {\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:322
+#: build/C/man3/hsearch.3:342
#, no-wrap
msgid ""
" for (i = 22; i E<lt> 26; i++) {\n"
msgstr ""
#. type: Plain text
-#: build/C/man3/hsearch.3:328
+#: build/C/man3/hsearch.3:348
msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
msgstr ""
#. type: TH
#: build/C/man3/insque.3:36
#, no-wrap
-msgid "2010-09-09"
+msgid "2014-08-19"
msgstr ""
#. type: Plain text
#. type: Plain text
#: build/C/man3/insque.3:105
msgid ""
-"Traditionally (e.g., SunOS, Linux libc 4 and libc 5), the arguments of these "
+"Traditionally (e.g., SunOS, Linux libc4 and libc5), the arguments of these "
"functions were of type I<struct qelem *>, defined as:"
msgstr ""
"including I<E<lt>search.hE<gt>>."
msgstr ""
+#. Linux libc4 and libc 5 placed them
+#. in \fI<stdlib.h>\fP.
#. type: Plain text
#: build/C/man3/insque.3:127
msgid ""
"The location of the prototypes for these functions differs among several "
"versions of UNIX. The above is the POSIX version. Some systems place them "
-"in I<E<lt>string.hE<gt>>. Linux libc4 and libc 5 placed them in "
-"I<E<lt>stdlib.hE<gt>>."
+"in I<E<lt>string.hE<gt>>."
msgstr ""
#. type: Plain text
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:51
+#: build/C/man3/lsearch.3:61
msgid ""
"B<lfind>() and B<lsearch>() perform a linear search for I<key> in the "
"array I<base> which has I<*nmemb> elements of I<size> bytes each. The "
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:59
+#: build/C/man3/lsearch.3:72
msgid ""
"If B<lsearch>() does not find a matching element, then the I<key> object is "
"inserted at the end of the table, and I<*nmemb> is incremented. In "
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:67
+#: build/C/man3/lsearch.3:80
msgid ""
"B<lfind>() returns a pointer to a matching member of the array, or NULL if "
"no match is found. B<lsearch>() returns a pointer to a matching member of "
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:70
+#: build/C/man3/lsearch.3:83
msgid "SVr4, 4.3BSD, POSIX.1-2001. Present in libc since libc-4.6.27."
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:72
+#: build/C/man3/lsearch.3:85
msgid "The naming is unfortunate."
msgstr ""
#. type: Plain text
-#: build/C/man3/lsearch.3:76
+#: build/C/man3/lsearch.3:89
msgid "B<bsearch>(3), B<hsearch>(3), B<tsearch>(3)"
msgstr ""
#, no-wrap
msgid ""
" if (argc E<lt> 2) {\n"
-"\tfprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\en\", argv[0]);\n"
-"\texit(EXIT_FAILURE);\n"
+" fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\en\", argv[0]);\n"
+" exit(EXIT_FAILURE);\n"
" }\n"
msgstr ""
#. type: TH
#: build/C/man3/tsearch.3:25
#, no-wrap
-msgid "2012-08-03"
+msgid "2014-05-28"
msgstr ""
#. type: Plain text
#: build/C/man3/tsearch.3:37
#, no-wrap
msgid ""
-"B<void *tfind(const void *>I<key>B<, const void **>I<rootp>B<,>\n"
+"B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
"B< int (*>I<compar>B<)(const void *, const void *));>\n"
msgstr ""
#. type: Plain text
#: build/C/man3/tsearch.3:225
#, no-wrap
-msgid "void *root = NULL;\n"
+msgid "static void *root = NULL;\n"
msgstr ""
#. type: Plain text
#: build/C/man3/tsearch.3:236
#, no-wrap
msgid ""
-"void *\n"
+"static void *\n"
"xmalloc(unsigned n)\n"
"{\n"
" void *p;\n"
#: build/C/man3/tsearch.3:246
#, no-wrap
msgid ""
-"int\n"
+"static int\n"
"compare(const void *pa, const void *pb)\n"
"{\n"
" if (*(int *) pa E<lt> *(int *) pb)\n"
#: build/C/man3/tsearch.3:251
#, no-wrap
msgid ""
-"void\n"
+"static void\n"
"action(const void *nodep, const VISIT which, const int depth)\n"
"{\n"
" int *datap;\n"