# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2013-08-15 19:32+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: build/C/man3/asprintf.3:27 #, no-wrap msgid "ASPRINTF" msgstr "" #. type: TH #: build/C/man3/asprintf.3:27 build/C/man3/fcloseall.3:25 build/C/man3/ferror.3:44 build/C/man3/fmtmsg.3:13 build/C/man3/stdio_ext.3:25 build/C/man3/tmpnam.3:27 #, no-wrap msgid "2013-06-21" msgstr "" #. type: TH #: build/C/man3/asprintf.3:27 build/C/man3/ctermid.3:26 build/C/man3/dprintf.3:26 build/C/man3/fclose.3:44 build/C/man3/fcloseall.3:25 build/C/man3/fflush.3:45 build/C/man3/fgetwc.3:18 build/C/man3/fmemopen.3:10 build/C/man3/fopen.3:44 build/C/man3/fputwc.3:16 build/C/man3/fread.3:45 build/C/man3/fseek.3:42 build/C/man3/getline.3:26 build/C/man3/gets.3:27 build/C/man3/getw.3:25 build/C/man3/popen.3:40 build/C/man3/printf.3:34 build/C/man3/puts.3:26 build/C/man3/remove.3:31 build/C/man3/scanf.3:52 build/C/man3/wprintf.3:16 #, no-wrap msgid "GNU" msgstr "" #. type: TH #: build/C/man3/asprintf.3:27 build/C/man3/ctermid.3:26 build/C/man3/dprintf.3:26 build/C/man3/fclose.3:44 build/C/man3/fcloseall.3:25 build/C/man3/ferror.3:44 build/C/man3/fflush.3:45 build/C/man3/fgetwc.3:18 build/C/man3/flockfile.3:25 build/C/man3/fmemopen.3:10 build/C/man3/fmtmsg.3:13 build/C/man3/fopen.3:44 build/C/man3/fopencookie.3:26 build/C/man3/fpurge.3:25 build/C/man3/fputwc.3:16 build/C/man3/fread.3:45 build/C/man3/fseek.3:42 build/C/man3/fseeko.3:25 build/C/man3/getline.3:26 build/C/man3/gets.3:27 build/C/man3/getw.3:25 build/C/man2/link.2:31 build/C/man2/llseek.2:28 build/C/man2/lseek.2:47 build/C/man3/lseek64.3:25 build/C/man2/open.2:51 build/C/man3/perror.3:31 build/C/man2/pipe.2:36 build/C/man3/popen.3:40 build/C/man3/printf.3:34 build/C/man3/puts.3:26 build/C/man2/read.2:35 build/C/man2/readlink.2:43 build/C/man2/readv.2:32 build/C/man3/remove.3:31 build/C/man2/rename.2:32 build/C/man2/rmdir.2:30 build/C/man3/scanf.3:52 build/C/man3/setbuf.3:48 build/C/man3/stdin.3:13 build/C/man3/stdio.3:39 build/C/man3/stdio_ext.3:25 build/C/man2/symlink.2:32 build/C/man7/symlink.7:36 build/C/man3/tempnam.3:25 build/C/man3/tmpfile.3:31 build/C/man3/tmpnam.3:27 build/C/man2/unlink.2:32 build/C/man3/unlocked_stdio.3:25 build/C/man3/wprintf.3:16 build/C/man2/write.2:39 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: build/C/man3/asprintf.3:28 build/C/man3/ctermid.3:27 build/C/man3/dprintf.3:27 build/C/man3/fclose.3:45 build/C/man3/fcloseall.3:26 build/C/man3/ferror.3:45 build/C/man3/fflush.3:46 build/C/man3/fgetwc.3:19 build/C/man3/flockfile.3:26 build/C/man3/fmemopen.3:11 build/C/man3/fmtmsg.3:14 build/C/man3/fopen.3:45 build/C/man3/fopencookie.3:27 build/C/man3/fpurge.3:26 build/C/man3/fputwc.3:17 build/C/man3/fread.3:46 build/C/man3/fseek.3:43 build/C/man3/fseeko.3:26 build/C/man3/getline.3:27 build/C/man3/gets.3:28 build/C/man3/getw.3:26 build/C/man2/link.2:32 build/C/man2/llseek.2:29 build/C/man2/lseek.2:48 build/C/man3/lseek64.3:26 build/C/man2/open.2:52 build/C/man3/perror.3:32 build/C/man2/pipe.2:37 build/C/man3/popen.3:41 build/C/man3/printf.3:35 build/C/man3/puts.3:27 build/C/man2/read.2:36 build/C/man2/readlink.2:44 build/C/man2/readv.2:33 build/C/man3/remove.3:32 build/C/man2/rename.2:33 build/C/man2/rmdir.2:31 build/C/man3/scanf.3:53 build/C/man3/setbuf.3:49 build/C/man3/stdin.3:14 build/C/man3/stdio.3:40 build/C/man3/stdio_ext.3:26 build/C/man2/symlink.2:33 build/C/man7/symlink.7:37 build/C/man3/tempnam.3:26 build/C/man3/tmpfile.3:32 build/C/man3/tmpnam.3:28 build/C/man2/unlink.2:33 build/C/man3/unlocked_stdio.3:26 build/C/man3/wprintf.3:17 build/C/man2/write.2:40 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:30 msgid "asprintf, vasprintf - print to allocated string" msgstr "" #. type: SH #: build/C/man3/asprintf.3:30 build/C/man3/ctermid.3:29 build/C/man3/dprintf.3:29 build/C/man3/fclose.3:47 build/C/man3/fcloseall.3:28 build/C/man3/ferror.3:47 build/C/man3/fflush.3:48 build/C/man3/fgetwc.3:21 build/C/man3/flockfile.3:28 build/C/man3/fmemopen.3:13 build/C/man3/fmtmsg.3:16 build/C/man3/fopen.3:47 build/C/man3/fopencookie.3:29 build/C/man3/fpurge.3:28 build/C/man3/fputwc.3:19 build/C/man3/fread.3:48 build/C/man3/fseek.3:45 build/C/man3/fseeko.3:28 build/C/man3/getline.3:29 build/C/man3/gets.3:30 build/C/man3/getw.3:28 build/C/man2/link.2:34 build/C/man2/llseek.2:31 build/C/man2/lseek.2:50 build/C/man3/lseek64.3:28 build/C/man2/open.2:54 build/C/man3/perror.3:34 build/C/man2/pipe.2:39 build/C/man3/popen.3:43 build/C/man3/printf.3:38 build/C/man3/puts.3:29 build/C/man2/read.2:38 build/C/man2/readlink.2:46 build/C/man2/readv.2:35 build/C/man3/remove.3:34 build/C/man2/rename.2:35 build/C/man2/rmdir.2:33 build/C/man3/scanf.3:55 build/C/man3/setbuf.3:51 build/C/man3/stdin.3:16 build/C/man3/stdio.3:42 build/C/man3/stdio_ext.3:30 build/C/man2/symlink.2:35 build/C/man3/tempnam.3:28 build/C/man3/tmpfile.3:34 build/C/man3/tmpnam.3:30 build/C/man2/unlink.2:35 build/C/man3/unlocked_stdio.3:29 build/C/man3/wprintf.3:20 build/C/man2/write.2:42 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:32 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:34 build/C/man3/dprintf.3:31 build/C/man3/fclose.3:49 build/C/man3/ferror.3:49 build/C/man3/fflush.3:50 build/C/man3/fseek.3:47 build/C/man3/perror.3:36 build/C/man3/printf.3:40 build/C/man3/remove.3:36 build/C/man2/rename.2:37 build/C/man3/stdio.3:44 build/C/man3/stdio_ext.3:32 msgid "B<#include Estdio.hE>" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:36 msgid "BIB<, const char *>IB<, ...);>" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:38 msgid "" "BIB<, const char *>IB<, va_list " ">IB<);>" msgstr "" #. type: SH #: build/C/man3/asprintf.3:38 build/C/man3/ctermid.3:46 build/C/man3/dprintf.3:55 build/C/man3/fclose.3:51 build/C/man3/fcloseall.3:35 build/C/man3/ferror.3:65 build/C/man3/fflush.3:52 build/C/man3/fgetwc.3:30 build/C/man3/flockfile.3:51 build/C/man3/fmemopen.3:46 build/C/man3/fmtmsg.3:26 build/C/man3/fopen.3:65 build/C/man3/fopencookie.3:37 build/C/man3/fpurge.3:42 build/C/man3/fputwc.3:28 build/C/man3/fread.3:58 build/C/man3/fseek.3:57 build/C/man3/fseeko.3:37 build/C/man3/getline.3:58 build/C/man3/gets.3:46 build/C/man3/getw.3:59 build/C/man2/link.2:38 build/C/man2/llseek.2:43 build/C/man2/lseek.2:56 build/C/man3/lseek64.3:36 build/C/man2/open.2:65 build/C/man3/perror.3:55 build/C/man2/pipe.2:51 build/C/man3/popen.3:64 build/C/man3/printf.3:76 build/C/man3/puts.3:43 build/C/man2/read.2:44 build/C/man2/readlink.2:63 build/C/man2/readv.2:58 build/C/man3/remove.3:38 build/C/man2/rename.2:39 build/C/man2/rmdir.2:37 build/C/man3/scanf.3:87 build/C/man3/setbuf.3:73 build/C/man3/stdin.3:24 build/C/man3/stdio.3:50 build/C/man3/stdio_ext.3:54 build/C/man2/symlink.2:52 build/C/man3/tempnam.3:42 build/C/man3/tmpfile.3:40 build/C/man3/tmpnam.3:36 build/C/man2/unlink.2:39 build/C/man3/unlocked_stdio.3:106 build/C/man3/wprintf.3:60 build/C/man2/write.2:46 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:53 msgid "" "The functions B() and B() are analogs of " "B(3) and B(3), except that they allocate a string large " "enough to hold the output including the terminating null byte " "(\\(aq\\e0\\(aq), and return a pointer to it via the first argument. This " "pointer should be passed to B(3) to release the allocated storage " "when it is no longer needed." msgstr "" #. type: SH #: build/C/man3/asprintf.3:53 build/C/man3/ctermid.3:59 build/C/man3/fclose.3:59 build/C/man3/fcloseall.3:50 build/C/man3/fflush.3:74 build/C/man3/fgetwc.3:55 build/C/man3/flockfile.3:120 build/C/man3/fmemopen.3:176 build/C/man3/fmtmsg.3:152 build/C/man3/fopen.3:189 build/C/man3/fopencookie.3:238 build/C/man3/fpurge.3:58 build/C/man3/fputwc.3:54 build/C/man3/fread.3:83 build/C/man3/fseek.3:121 build/C/man3/fseeko.3:75 build/C/man3/getline.3:110 build/C/man3/gets.3:111 build/C/man3/getw.3:73 build/C/man2/link.2:52 build/C/man2/llseek.2:62 build/C/man2/lseek.2:162 build/C/man2/open.2:567 build/C/man2/pipe.2:92 build/C/man3/popen.3:123 build/C/man3/puts.3:84 build/C/man2/read.2:81 build/C/man2/readlink.2:77 build/C/man2/readv.2:177 build/C/man3/remove.3:60 build/C/man2/rename.2:91 build/C/man2/rmdir.2:40 build/C/man3/scanf.3:530 build/C/man3/setbuf.3:152 build/C/man2/symlink.2:84 build/C/man3/tempnam.3:87 build/C/man3/tmpfile.3:47 build/C/man3/tmpnam.3:70 build/C/man2/unlink.2:55 build/C/man3/wprintf.3:205 build/C/man2/write.2:89 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:61 msgid "" "When successful, these functions return the number of bytes printed, just " "like B(3). If memory allocation wasn't possible, or some other " "error occurs, these functions will return -1, and the contents of I is " "undefined." msgstr "" #. type: SH #: build/C/man3/asprintf.3:61 build/C/man3/ctermid.3:67 build/C/man3/dprintf.3:69 build/C/man3/fclose.3:90 build/C/man3/fcloseall.3:60 build/C/man3/ferror.3:115 build/C/man3/fflush.3:98 build/C/man3/fgetwc.3:70 build/C/man3/flockfile.3:135 build/C/man3/fmemopen.3:195 build/C/man3/fmtmsg.3:237 build/C/man3/fopen.3:246 build/C/man3/fopencookie.3:245 build/C/man3/fpurge.3:70 build/C/man3/fputwc.3:68 build/C/man3/fread.3:103 build/C/man3/fseek.3:168 build/C/man3/fseeko.3:87 build/C/man3/getline.3:137 build/C/man3/gets.3:138 build/C/man3/getw.3:80 build/C/man2/link.2:138 build/C/man2/llseek.2:81 build/C/man2/lseek.2:200 build/C/man2/open.2:719 build/C/man3/perror.3:111 build/C/man2/pipe.2:118 build/C/man3/popen.3:172 build/C/man3/printf.3:806 build/C/man3/puts.3:103 build/C/man2/read.2:173 build/C/man2/readlink.2:125 build/C/man2/readv.2:214 build/C/man3/remove.3:70 build/C/man2/rename.2:232 build/C/man2/rmdir.2:127 build/C/man3/scanf.3:577 build/C/man3/setbuf.3:164 build/C/man3/stdin.3:113 build/C/man3/stdio.3:246 build/C/man2/symlink.2:149 build/C/man3/tempnam.3:98 build/C/man3/tmpfile.3:78 build/C/man3/tmpnam.3:87 build/C/man2/unlink.2:141 build/C/man3/unlocked_stdio.3:113 build/C/man3/wprintf.3:213 build/C/man2/write.2:185 #, no-wrap msgid "CONFORMING TO" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:67 msgid "" "These functions are GNU extensions, not in C or POSIX. They are also " "available under *BSD. The FreeBSD implementation sets I to NULL on " "error." msgstr "" #. type: SH #: build/C/man3/asprintf.3:67 build/C/man3/ctermid.3:77 build/C/man3/dprintf.3:95 build/C/man3/fclose.3:102 build/C/man3/fcloseall.3:62 build/C/man3/ferror.3:122 build/C/man3/fflush.3:113 build/C/man3/fgetwc.3:87 build/C/man3/flockfile.3:143 build/C/man3/fmemopen.3:341 build/C/man3/fmtmsg.3:309 build/C/man3/fopen.3:348 build/C/man3/fopencookie.3:437 build/C/man3/fpurge.3:80 build/C/man3/fputwc.3:85 build/C/man3/fread.3:105 build/C/man3/fseek.3:170 build/C/man3/fseeko.3:93 build/C/man3/getline.3:171 build/C/man3/gets.3:173 build/C/man3/getw.3:86 build/C/man2/link.2:187 build/C/man2/llseek.2:87 build/C/man2/lseek.2:245 build/C/man3/lseek64.3:159 build/C/man2/open.2:992 build/C/man3/perror.3:139 build/C/man2/pipe.2:190 build/C/man3/popen.3:201 build/C/man3/printf.3:1080 build/C/man3/puts.3:112 build/C/man2/read.2:187 build/C/man2/readlink.2:214 build/C/man2/readv.2:284 build/C/man3/remove.3:81 build/C/man2/rename.2:245 build/C/man2/rmdir.2:132 build/C/man3/scanf.3:715 build/C/man3/setbuf.3:200 build/C/man3/stdin.3:154 build/C/man3/stdio.3:250 build/C/man3/stdio_ext.3:151 build/C/man2/symlink.2:164 build/C/man7/symlink.7:471 build/C/man3/tempnam.3:168 build/C/man3/tmpfile.3:97 build/C/man3/tmpnam.3:163 build/C/man2/unlink.2:148 build/C/man3/unlocked_stdio.3:136 build/C/man3/wprintf.3:253 build/C/man2/write.2:211 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:71 msgid "B(3), B(3), B(3)" msgstr "" #. type: SH #: build/C/man3/asprintf.3:71 build/C/man3/ctermid.3:79 build/C/man3/dprintf.3:97 build/C/man3/fclose.3:108 build/C/man3/fcloseall.3:68 build/C/man3/ferror.3:127 build/C/man3/fflush.3:121 build/C/man3/fgetwc.3:92 build/C/man3/flockfile.3:145 build/C/man3/fmemopen.3:344 build/C/man3/fmtmsg.3:312 build/C/man3/fopen.3:354 build/C/man3/fopencookie.3:442 build/C/man3/fpurge.3:85 build/C/man3/fputwc.3:89 build/C/man3/fread.3:111 build/C/man3/fseek.3:173 build/C/man3/fseeko.3:95 build/C/man3/getline.3:178 build/C/man3/gets.3:189 build/C/man3/getw.3:92 build/C/man2/link.2:197 build/C/man2/llseek.2:90 build/C/man2/lseek.2:252 build/C/man3/lseek64.3:162 build/C/man2/open.2:1014 build/C/man3/perror.3:144 build/C/man2/pipe.2:197 build/C/man3/popen.3:211 build/C/man3/printf.3:1089 build/C/man3/puts.3:124 build/C/man2/read.2:200 build/C/man2/readlink.2:222 build/C/man2/readv.2:288 build/C/man3/remove.3:92 build/C/man2/rename.2:254 build/C/man2/rmdir.2:141 build/C/man3/scanf.3:722 build/C/man3/setbuf.3:208 build/C/man3/stdin.3:160 build/C/man3/stdio.3:257 build/C/man3/stdio_ext.3:154 build/C/man2/symlink.2:176 build/C/man7/symlink.7:489 build/C/man3/tempnam.3:173 build/C/man3/tmpfile.3:103 build/C/man3/tmpnam.3:168 build/C/man2/unlink.2:161 build/C/man3/unlocked_stdio.3:139 build/C/man3/wprintf.3:260 build/C/man2/write.2:223 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: build/C/man3/asprintf.3:78 build/C/man3/ctermid.3:86 build/C/man3/dprintf.3:104 build/C/man3/fclose.3:115 build/C/man3/fcloseall.3:75 build/C/man3/ferror.3:134 build/C/man3/fflush.3:128 build/C/man3/fgetwc.3:99 build/C/man3/flockfile.3:152 build/C/man3/fmemopen.3:351 build/C/man3/fmtmsg.3:319 build/C/man3/fopen.3:361 build/C/man3/fopencookie.3:449 build/C/man3/fpurge.3:92 build/C/man3/fputwc.3:96 build/C/man3/fread.3:118 build/C/man3/fseek.3:180 build/C/man3/fseeko.3:102 build/C/man3/getline.3:185 build/C/man3/gets.3:196 build/C/man3/getw.3:99 build/C/man2/link.2:204 build/C/man2/llseek.2:97 build/C/man2/lseek.2:259 build/C/man3/lseek64.3:169 build/C/man2/open.2:1021 build/C/man3/perror.3:151 build/C/man2/pipe.2:204 build/C/man3/popen.3:218 build/C/man3/printf.3:1096 build/C/man3/puts.3:131 build/C/man2/read.2:207 build/C/man2/readlink.2:229 build/C/man2/readv.2:295 build/C/man3/remove.3:99 build/C/man2/rename.2:261 build/C/man2/rmdir.2:148 build/C/man3/scanf.3:729 build/C/man3/setbuf.3:215 build/C/man3/stdin.3:167 build/C/man3/stdio.3:264 build/C/man3/stdio_ext.3:161 build/C/man2/symlink.2:183 build/C/man7/symlink.7:496 build/C/man3/tempnam.3:180 build/C/man3/tmpfile.3:110 build/C/man3/tmpnam.3:175 build/C/man2/unlink.2:168 build/C/man3/unlocked_stdio.3:146 build/C/man3/wprintf.3:267 build/C/man2/write.2:230 msgid "" "This page is part of release 3.53 of the Linux I project. A " "description of the project, and information about reporting bugs, can be " "found at \\%http://www.kernel.org/doc/man-pages/." msgstr "" #. type: TH #: build/C/man3/ctermid.3:26 #, no-wrap msgid "CTERMID" msgstr "" #. type: TH #: build/C/man3/ctermid.3:26 #, no-wrap msgid "2013-07-04" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:29 msgid "ctermid - get controlling terminal name" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:34 build/C/man3/fgetwc.3:24 build/C/man3/flockfile.3:31 build/C/man3/fmemopen.3:16 build/C/man3/fopen.3:50 build/C/man3/fputwc.3:22 build/C/man3/fread.3:51 build/C/man3/fseeko.3:31 build/C/man3/getline.3:32 build/C/man3/gets.3:33 build/C/man3/getw.3:31 build/C/man3/popen.3:46 build/C/man3/puts.3:32 build/C/man3/scanf.3:58 build/C/man3/setbuf.3:54 build/C/man3/stdin.3:19 build/C/man3/tempnam.3:31 build/C/man3/tmpfile.3:37 build/C/man3/tmpnam.3:33 build/C/man3/unlocked_stdio.3:32 #, no-wrap msgid "B<#include Estdio.hE>\n" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:36 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:41 build/C/man3/dprintf.3:39 build/C/man3/ferror.3:61 build/C/man3/flockfile.3:42 build/C/man3/fmemopen.3:29 build/C/man3/fopen.3:61 build/C/man3/getline.3:42 build/C/man3/getw.3:40 build/C/man3/perror.3:50 build/C/man3/popen.3:55 build/C/man3/printf.3:63 build/C/man2/readlink.2:54 build/C/man2/readv.2:53 build/C/man3/scanf.3:73 build/C/man3/setbuf.3:68 build/C/man2/symlink.2:43 build/C/man3/tempnam.3:38 build/C/man3/unlocked_stdio.3:68 build/C/man3/wprintf.3:39 msgid "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. From : _XOPEN_SOURCE #. type: Plain text #: build/C/man3/ctermid.3:46 msgid "B(): _POSIX_C_SOURCE\\ E=\\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:59 msgid "" "B() returns a string which is the pathname for the current " "controlling terminal for this process. If I is NULL, a static buffer is " "used, otherwise I points to a buffer used to hold the terminal pathname. " "The symbolic constant B is the maximum number of characters in " "the returned pathname." msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:61 msgid "The pointer to the pathname." msgstr "" #. type: SH #: build/C/man3/ctermid.3:61 build/C/man3/fcloseall.3:55 build/C/man3/ferror.3:106 build/C/man3/fflush.3:93 build/C/man3/flockfile.3:127 build/C/man3/fmtmsg.3:225 build/C/man3/stdio_ext.3:132 build/C/man3/tmpnam.3:77 #, no-wrap msgid "ATTRIBUTES" msgstr "" #. type: SS #: build/C/man3/ctermid.3:62 build/C/man3/fcloseall.3:56 build/C/man3/ferror.3:107 build/C/man3/fflush.3:94 build/C/man3/flockfile.3:128 build/C/man3/fmtmsg.3:226 build/C/man3/stdio_ext.3:133 build/C/man3/tmpnam.3:78 #, no-wrap msgid "Multithreading (see pthreads(7))" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:67 msgid "" "The B() function is thread-safe with exceptions. It is not " "thread-safe if called with a NULL parameter." msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:69 msgid "Svr4, POSIX.1-2001." msgstr "" #. type: SH #: build/C/man3/ctermid.3:69 build/C/man3/fmemopen.3:213 build/C/man3/fopen.3:331 build/C/man3/gets.3:152 build/C/man3/getw.3:82 build/C/man2/link.2:181 build/C/man2/open.2:981 build/C/man3/popen.3:178 build/C/man3/printf.3:929 build/C/man3/puts.3:105 build/C/man2/readv.2:258 build/C/man3/remove.3:78 build/C/man2/rename.2:234 build/C/man2/rmdir.2:129 build/C/man3/scanf.3:646 build/C/man3/setbuf.3:170 build/C/man3/tempnam.3:158 build/C/man3/tmpnam.3:156 build/C/man2/unlink.2:145 #, no-wrap msgid "BUGS" msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:73 msgid "" "The path returned may not uniquely identify the controlling terminal; it " "may, for example, be I." msgstr "" #. in glibc 2.3.x, x >= 4, the glibc headers threw an error #. if ctermid() was given an argument; fixed in 2.4. #. type: Plain text #: build/C/man3/ctermid.3:77 msgid "It is not assured that the program can open the terminal." msgstr "" #. type: Plain text #: build/C/man3/ctermid.3:79 msgid "B(3)" msgstr "" #. type: TH #: build/C/man3/dprintf.3:26 #, no-wrap msgid "DPRINTF" msgstr "" #. type: TH #: build/C/man3/dprintf.3:26 #, no-wrap msgid "2010-09-15" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:29 msgid "dprintf, vdprintf - print to a file descriptor" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:33 msgid "BIB<, const char *>IB<, ...);>" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:35 msgid "BIB<, const char *>IB<, va_list >IB<);>" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:43 msgid "B(), B():" msgstr "" #. type: TP #: build/C/man3/dprintf.3:46 build/C/man3/fmemopen.3:37 build/C/man3/getline.3:49 #, no-wrap msgid "Since glibc 2.10:" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:49 build/C/man3/fmemopen.3:40 msgid "_XOPEN_SOURCE\\ E=\\ 700 || _POSIX_C_SOURCE\\ E=\\ 200809L" msgstr "" #. type: TP #: build/C/man3/dprintf.3:49 build/C/man3/fmemopen.3:40 build/C/man3/getline.3:52 #, no-wrap msgid "Before glibc 2.10:" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:52 build/C/man3/fmemopen.3:43 build/C/man3/getline.3:55 build/C/man3/unlocked_stdio.3:104 msgid "_GNU_SOURCE" msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:69 msgid "" "The functions B() and B() (as found in the glibc2 " "library) are exact analogs of B(3) and B(3), except that " "they output to a file descriptor I instead of to a I stream." msgstr "" #. .SH NOTES #. These functions are GNU extensions, not in C or POSIX. #. Clearly, the names were badly chosen. #. Many systems (like MacOS) have incompatible functions called #. .BR dprintf (), #. usually some debugging version of #. .BR printf (3), #. perhaps with a prototype like # #. .BI "void dprintf(int level, const char *" format ", ...);" # #. where the first argument is a debugging level (and output is to #. .IR stderr ). #. Moreover, #. .BR dprintf () #. (or #. .BR DPRINTF ) #. is also a popular macro name for a debugging printf. #. So, probably, it is better to avoid this function in programs #. intended to be portable. # #. A better name would have been #. .BR fdprintf (). #. type: Plain text #: build/C/man3/dprintf.3:95 msgid "" "These functions are GNU extensions that are nowadays specified in " "POSIX.1-2008." msgstr "" #. type: Plain text #: build/C/man3/dprintf.3:97 msgid "B(3)" msgstr "" #. type: TH #: build/C/man3/fclose.3:44 #, no-wrap msgid "FCLOSE" msgstr "" #. type: TH #: build/C/man3/fclose.3:44 #, no-wrap msgid "2009-02-23" msgstr "" #. type: Plain text #: build/C/man3/fclose.3:47 msgid "fclose - close a stream" msgstr "" #. type: Plain text #: build/C/man3/fclose.3:51 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/fclose.3:59 msgid "" "The B() function flushes the stream pointed to by I (writing " "any buffered output data using B(3)) and closes the underlying file " "descriptor." msgstr "" #. type: Plain text #: build/C/man3/fclose.3:70 msgid "" "Upon successful completion 0 is returned. Otherwise, B is returned and " "I is set to indicate the error. In either case any further access " "(including another call to B()) to the stream results in undefined " "behavior." msgstr "" #. type: SH #: build/C/man3/fclose.3:70 build/C/man3/ferror.3:96 build/C/man3/fflush.3:81 build/C/man3/fgetwc.3:64 build/C/man3/flockfile.3:125 build/C/man3/fopen.3:201 build/C/man3/fpurge.3:65 build/C/man3/fputwc.3:63 build/C/man3/fseek.3:136 build/C/man3/fseeko.3:84 build/C/man3/getline.3:125 build/C/man2/link.2:57 build/C/man2/llseek.2:69 build/C/man2/lseek.2:170 build/C/man2/open.2:575 build/C/man2/pipe.2:97 build/C/man3/popen.3:146 build/C/man2/read.2:95 build/C/man2/readlink.2:85 build/C/man2/readv.2:188 build/C/man3/remove.3:65 build/C/man2/rename.2:96 build/C/man2/rmdir.2:45 build/C/man3/scanf.3:547 build/C/man2/symlink.2:89 build/C/man3/tempnam.3:94 build/C/man3/tmpfile.3:56 build/C/man3/tmpnam.3:75 build/C/man2/unlink.2:60 build/C/man2/write.2:107 #, no-wrap msgid "ERRORS" msgstr "" #. type: TP #: build/C/man3/fclose.3:71 build/C/man3/fflush.3:82 build/C/man3/fpurge.3:66 build/C/man3/fseek.3:137 build/C/man2/llseek.2:70 build/C/man2/lseek.2:171 build/C/man2/read.2:114 build/C/man3/scanf.3:553 build/C/man2/write.2:126 #, no-wrap msgid "B" msgstr "" #. This error cannot occur unless you are mixing ANSI C stdio operations and #. low-level file operations on the same stream. If you do get this error, #. you must have closed the stream's low-level file descriptor using #. something like close(fileno(fp)). #. type: Plain text #: build/C/man3/fclose.3:80 msgid "The file descriptor underlying I is not valid." msgstr "" #. type: Plain text #: build/C/man3/fclose.3:90 msgid "" "The B() function may also fail and set I for any of the " "errors specified for the routines B(2), B(2) or B(3)." msgstr "" #. type: Plain text #: build/C/man3/fclose.3:92 build/C/man3/fseek.3:170 build/C/man3/puts.3:105 msgid "C89, C99." msgstr "" #. type: SH #: build/C/man3/fclose.3:92 build/C/man3/fflush.3:104 build/C/man3/fgetwc.3:72 build/C/man3/fmemopen.3:207 build/C/man3/fmtmsg.3:252 build/C/man3/fopen.3:255 build/C/man3/fpurge.3:78 build/C/man3/fputwc.3:70 build/C/man3/fseeko.3:89 build/C/man2/link.2:143 build/C/man2/llseek.2:84 build/C/man2/lseek.2:210 build/C/man2/open.2:746 build/C/man3/perror.3:124 build/C/man3/printf.3:867 build/C/man2/read.2:175 build/C/man2/readlink.2:130 build/C/man2/readv.2:226 build/C/man3/remove.3:72 build/C/man3/scanf.3:608 build/C/man3/stdin.3:122 build/C/man2/symlink.2:155 build/C/man3/tempnam.3:103 build/C/man3/tmpfile.3:80 build/C/man3/tmpnam.3:92 build/C/man3/wprintf.3:215 build/C/man2/write.2:194 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: build/C/man3/fclose.3:102 msgid "" "Note that B() only flushes the user-space buffers provided by the C " "library. To ensure that the data is physically stored on disk the kernel " "buffers must be flushed too, for example, with B(2) or B(2)." msgstr "" #. type: Plain text #: build/C/man3/fclose.3:108 msgid "B(2), B(3), B(3), B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/fcloseall.3:25 #, no-wrap msgid "FCLOSEALL" msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:28 msgid "fcloseall - close all open streams" msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:32 build/C/man3/fopencookie.3:33 #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Estdio.hE>\n" msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:34 #, no-wrap msgid "B\n" msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:43 msgid "" "The B() function closes all of the calling process's open " "streams. Buffered output for each stream is written before it is closed (as " "for B(3)); buffered input is discarded." msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:50 msgid "The standard streams, I, I, and I are also closed." msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:55 msgid "" "This function returns 0 if all files were successfully closed; on error, " "B is returned." msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:60 msgid "" "The B() function does not lock the streams, so it is not " "thread-safe." msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:62 msgid "This function is a GNU extension." msgstr "" #. type: Plain text #: build/C/man3/fcloseall.3:68 msgid "B(2), B(3), B(3), B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/ferror.3:44 #, no-wrap msgid "FERROR" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:47 msgid "clearerr, feof, ferror, fileno - check and reset stream status" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:51 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:53 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:55 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:57 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:65 msgid "B(): _POSIX_C_SOURCE\\ E=\\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:70 msgid "" "The function B() clears the end-of-file and error indicators for " "the stream pointed to by I." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:78 msgid "" "The function B() tests the end-of-file indicator for the stream " "pointed to by I, returning nonzero if it is set. The end-of-file " "indicator can be cleared only by the function B()." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:87 msgid "" "The function B() tests the error indicator for the stream pointed " "to by I, returning nonzero if it is set. The error indicator can be " "reset only by the B() function." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:93 msgid "" "The function B() examines the argument I and returns its " "integer descriptor." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:96 build/C/man3/fgetwc.3:55 build/C/man3/fputwc.3:54 build/C/man3/fread.3:83 build/C/man3/gets.3:111 build/C/man3/puts.3:84 msgid "For nonlocking counterparts, see B(3)." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:106 msgid "" "These functions should not fail and do not set the external variable " "I. (However, in case B() detects that its argument is not a " "valid stream, it must return -1 and set I to B.)" msgstr "" #. type: Plain text #: build/C/man3/ferror.3:115 msgid "" "The B(), B(), B(), and B() functions are " "thread-safe." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:122 msgid "" "The functions B(), B(), and B() conform to C89 and " "C99." msgstr "" #. type: Plain text #: build/C/man3/ferror.3:127 msgid "B(2), B(3), B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/fflush.3:45 #, no-wrap msgid "FFLUSH" msgstr "" #. type: TH #: build/C/man3/fflush.3:45 #, no-wrap msgid "2013-07-15" msgstr "" #. type: Plain text #: build/C/man3/fflush.3:48 msgid "fflush - flush a stream" msgstr "" #. type: Plain text #: build/C/man3/fflush.3:52 msgid "BIB<);>" msgstr "" #. type: Plain text #: build/C/man3/fflush.3:63 msgid "" "For output streams, B() forces a write of all user-space buffered " "data for the given output or update I via the stream's underlying " "write function. For input streams, B() discards any buffered data " "that has been fetched from the underlying file, but has not been consumed by " "the application. The open status of the stream is unaffected." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:71 msgid "" "If the I argument is NULL, B() flushes I open output " "streams." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:74 msgid "For a nonlocking counterpart, see B(3)." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:81 msgid "" "Upon successful completion 0 is returned. Otherwise, B is returned and " "I is set to indicate the error." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:86 msgid "I is not an open stream, or is not open for writing." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:93 msgid "" "The function B() may also fail and set I for any of the " "errors specified for B(2)." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:98 msgid "The B() function is thread-safe." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:100 msgid "C89, C99, POSIX.1-2001, POSIX.1-2008." msgstr "" #. Verified on: Solaris 8. #. type: Plain text #: build/C/man3/fflush.3:104 msgid "" "The standards do not specify the behavior for input streams. Most other " "implementations behave the same as Linux." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:113 msgid "" "Note that B() only flushes the user-space buffers provided by the C " "library. To ensure that the data is physically stored on disk the kernel " "buffers must be flushed too, for example, with B(2) or B(2)." msgstr "" #. type: Plain text #: build/C/man3/fflush.3:121 msgid "" "B(2), B(2), B(2), B(3), B(3), " "B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/fgetwc.3:18 #, no-wrap msgid "FGETWC" msgstr "" #. type: TH #: build/C/man3/fgetwc.3:18 build/C/man3/fputwc.3:16 build/C/man3/getline.3:26 build/C/man3/popen.3:40 build/C/man3/tempnam.3:25 #, no-wrap msgid "2013-04-19" msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:21 msgid "fgetwc, getwc - read a wide character from a FILE stream" msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:26 build/C/man3/fmemopen.3:22 build/C/man3/fputwc.3:24 build/C/man3/unlocked_stdio.3:54 #, no-wrap msgid "B<#include Ewchar.hE>\n" msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:29 #, no-wrap msgid "" "BIB<);>\n" "BIB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:44 msgid "" "The B() function is the wide-character equivalent of the " "B(3) function. It reads a wide character from I and returns " "it. If the end of stream is reached, or if I becomes true, " "it returns B. If a wide-character conversion error occurs, it sets " "I to B and returns B." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:52 msgid "" "The B() function or macro functions identically to B(). It " "may be implemented as a macro, and may evaluate its argument more than " "once. There is no reason ever to use it." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:64 msgid "" "The B() function returns the next wide-character from the stream, " "or B. In the event of an error, I is set to indicate the " "cause." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:66 build/C/man3/fputwc.3:65 msgid "Apart from the usual ones, there is" msgstr "" #. type: TP #: build/C/man3/fgetwc.3:66 build/C/man3/fputwc.3:65 build/C/man3/scanf.3:558 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:70 msgid "The data obtained from the input stream does not form a valid character." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:72 build/C/man3/fputwc.3:70 msgid "C99, POSIX.1-2001." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:79 msgid "" "The behavior of B() depends on the B category of the " "current locale." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:87 msgid "" "In the absence of additional information passed to the B(3) call, it " "is reasonable to expect that B() will actually read a multibyte " "sequence from the stream and then convert it to a wide character." msgstr "" #. type: Plain text #: build/C/man3/fgetwc.3:92 msgid "B(3), B(3), B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/flockfile.3:25 #, no-wrap msgid "FLOCKFILE" msgstr "" #. type: TH #: build/C/man3/flockfile.3:25 #, no-wrap msgid "2013-07-23" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:28 msgid "flockfile, ftrylockfile, funlockfile - lock FILE for stdio" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:33 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:35 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:37 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:46 build/C/man3/wprintf.3:43 msgid "All functions shown above:" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:49 msgid "" "_POSIX_C_SOURCE\\ E=\\ 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE " "|| _POSIX_SOURCE" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:63 msgid "" "The stdio functions are thread-safe. This is achieved by assigning to each " "I object a lockcount and (if the lockcount is nonzero) an owning " "thread. For each library call, these functions wait until the I " "object is no longer locked by a different thread, then lock it, do the " "requested I/O, and unlock the object again." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:69 msgid "" "(Note: this locking has nothing to do with the file locking done by " "functions like B(2) and B(3).)" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:77 msgid "" "All this is invisible to the C-programmer, but there may be two reasons to " "wish for more detailed control. On the one hand, maybe a series of I/O " "actions by one thread belongs together, and should not be interrupted by the " "I/O of some other thread. On the other hand, maybe the locking overhead " "should be avoided for greater efficiency." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:94 msgid "" "To this end, a thread can explicitly lock the I object, then do its " "series of I/O actions, then unlock. This prevents other threads from coming " "in between. If the reason for doing this was to achieve greater efficiency, " "one does the I/O with the nonlocking versions of the stdio functions: with " "B(3) and B(3) instead of B(3) and " "B(3)." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:105 msgid "" "The B() function waits for I<*filehandle> to be no longer locked " "by a different thread, then makes the current thread owner of " "I<*filehandle>, and increments the lockcount." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:109 msgid "The B() function decrements the lock count." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:120 msgid "" "The B() function is a nonblocking version of B(). " "It does nothing in case some other thread owns I<*filehandle>, and it " "obtains ownership and increments the lockcount otherwise." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:125 msgid "" "The B() function returns zero for success (the lock was " "obtained), and nonzero for failure." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:127 msgid "None." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:135 msgid "" "The B(), B(), and B() functions are " "thread-safe." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:137 build/C/man3/popen.3:174 msgid "POSIX.1-2001." msgstr "" #. type: SH #: build/C/man3/flockfile.3:137 #, no-wrap msgid "AVAILABILITY" msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:143 msgid "" "These functions are available when B<_POSIX_THREAD_SAFE_FUNCTIONS> is " "defined. They are in libc since libc 5.1.1 and in glibc since glibc 2.0." msgstr "" #. type: Plain text #: build/C/man3/flockfile.3:145 msgid "B(3)" msgstr "" #. type: TH #: build/C/man3/fmemopen.3:10 #, no-wrap msgid "FMEMOPEN" msgstr "" #. type: TH #: build/C/man3/fmemopen.3:10 #, no-wrap msgid "2012-04-28" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:13 msgid "fmemopen, open_memstream, open_wmemstream - open memory as stream" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:18 #, no-wrap msgid "" "BIB<, size_t >IB<, const char " "*>IB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:20 #, no-wrap msgid "BIB<, size_t *>IB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:24 #, no-wrap msgid "BIB<, size_t *>IB<);>\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:34 msgid "B(), B(), B():" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:57 msgid "" "The B() function opens a stream that permits the access specified " "by I. The stream allows I/O to be performed on the string or memory " "buffer pointed to by I. This buffer must be at least I bytes " "long." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:77 msgid "" "The argument I is the same as for B(3). If I specifies " "an append mode, then the initial file position is set to the location of the " "first null byte (\\(aq\\e0\\(aq) in the buffer; otherwise the initial file " "position is set to the start of the buffer. Since glibc 2.9, the letter " "\\(aqb\\(aq may be specified as the second character in I. This " "provides \"binary\" mode: writes don't implicitly add a terminating null " "byte, and B(3) B is relative to the end of the buffer " "(i.e., the value specified by the I argument), rather than the current " "string length." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:89 msgid "" "When a stream that has been opened for writing is flushed (B(3)) or " "closed (B(3)), a null byte is written at the end of the buffer if " "there is space. The caller should ensure that an extra byte is available in " "the buffer (and that I counts that byte) to allow for this." msgstr "" #. See http://sourceware.org/bugzilla/show_bug.cgi?id=1995 #. and #. http://sources.redhat.com/ml/libc-alpha/2006-04/msg00064.html #. type: Plain text #: build/C/man3/fmemopen.3:107 msgid "" "Attempts to write more than I bytes to the buffer result in an error. " "(By default, such errors will be visible only when the I buffer is " "flushed. Disabling buffering with I may be useful to " "detect errors at the time of an output operation. Alternatively, the caller " "can explicitly set I as the stdio stream buffer, at the same time " "informing stdio of the buffer's size, using I.)" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:115 msgid "" "In a stream opened for reading, null bytes (\\(aq\\e0\\(aq) in the buffer do " "not cause read operations to return an end-of-file indication. A read from " "the buffer will only indicate end-of-file when the file pointer advances " "I bytes past the start of the buffer." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:130 msgid "" "If I is specified as NULL, then B() dynamically allocates a " "buffer I bytes long. This is useful for an application that wants to " "write data to a temporary buffer and then read it back again. The buffer is " "automatically freed when the stream is closed. Note that the caller has no " "way to obtain a pointer to the temporary buffer allocated by this call (but " "see B() below)." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:141 msgid "" "The B() function opens a stream for writing to a buffer. " "The buffer is dynamically allocated (as with B(3)), and " "automatically grows as required. After closing the stream, the caller " "should B(3) this buffer." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:156 msgid "" "When the stream is closed (B(3)) or flushed (B(3)), the " "locations pointed to by I and I are updated to contain, " "respectively, a pointer to the buffer and the current size of the buffer. " "These values remain valid only as long as the caller performs no further " "output on the stream. If further output is performed, then the stream must " "again be flushed before trying to access these variables." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:162 msgid "" "A null byte is maintained at the end of the buffer. This byte is I " "included in the size value stored at I." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:170 msgid "" "The stream's file position can be changed with B(3) or " "B(3). Moving the file position past the end of the data already " "written fills the intervening space with zeros." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:176 msgid "" "The B() is similar to B(), but operates on " "wide characters instead of bytes." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:188 msgid "" "Upon successful completion B(), B() and " "B() return a I pointer. Otherwise, NULL is returned " "and I is set to indicate the error." msgstr "" #. type: SH #: build/C/man3/fmemopen.3:188 build/C/man3/fmtmsg.3:222 build/C/man3/getline.3:135 build/C/man2/pipe.2:113 build/C/man2/readv.2:209 #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:195 msgid "" "B() and B() were already available in glibc " "1.0.x. B() is available since glibc 2.4." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:199 msgid "" "POSIX.1-2008. These functions are not specified in POSIX.1-2001, and are " "not widely available on other systems." msgstr "" #. http://austingroupbugs.net/view.php?id=396 #. type: Plain text #: build/C/man3/fmemopen.3:207 msgid "" "POSIX.1-2008 specifies that \\(aqb\\(aq in I shall be ignored. " "However, Technical Corrigendum 1 adjusts the standard to allow " "implementation-specific treatment for this case, thus permitting the glibc " "treatment of \\(aqb\\(aq." msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:213 msgid "" "There is no file descriptor associated with the file stream returned by " "these functions (i.e., B(3) will return an error if called on the " "returned stream)." msgstr "" #. http://sourceware.org/bugzilla/show_bug.cgi?id=1996 #. type: Plain text #: build/C/man3/fmemopen.3:220 msgid "" "In glibc before version 2.7, seeking past the end of a stream created by " "B() does not enlarge the buffer; instead the B(3) " "call fails, returning -1." msgstr "" #. FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=11216 #. type: Plain text #: build/C/man3/fmemopen.3:231 msgid "" "If I is specified as zero, B() fails with the error " "B. It would be more consistent if this case successfully created a " "stream that then returned end of file on the first attempt at reading. " "Furthermore, POSIX.1-2008 does not specify a failure for this case." msgstr "" #. FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=13152 #. type: Plain text #: build/C/man3/fmemopen.3:239 msgid "" "Specifying append mode (\"a\" or \"a+\") for B() sets the initial " "file position to the first null byte, but (if the file offset is reset to a " "location other than the end of the stream) does not force subsequent writes " "to append at the end of the stream." msgstr "" #. FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=13151 #. type: Plain text #: build/C/man3/fmemopen.3:255 msgid "" "If the I argument to B() specifies append (\"a\" or " "\"a+\"), and the I argument does not cover a null byte in I then, " "according to POSIX.1-2008, the initial file position should be set to the " "next byte after the end of the buffer. However, in this case the glibc " "B() sets the file position to -1." msgstr "" #. FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12836 #. type: Plain text #: build/C/man3/fmemopen.3:268 msgid "" "To specify binary mode for B() the \\(aqb\\(aq must be the " "I character in I. Thus, for example, \"wb+\" has the desired " "effect, but \"w+b\" does not. This is inconsistent with the treatment of " "I by B(3)." msgstr "" #. http://sourceware.org/bugzilla/show_bug.cgi?id=6544 #. type: Plain text #: build/C/man3/fmemopen.3:276 msgid "" "The glibc 2.9 addition of \"binary\" mode for B() silently " "changed the ABI: previously, B() ignored \\(aqb\\(aq in I." msgstr "" #. type: SH #: build/C/man3/fmemopen.3:276 build/C/man3/fmtmsg.3:256 build/C/man3/fopencookie.3:247 build/C/man3/getline.3:144 build/C/man2/pipe.2:124 build/C/man3/printf.3:973 build/C/man2/readlink.2:157 build/C/man2/readv.2:265 build/C/man3/scanf.3:681 #, no-wrap msgid "EXAMPLE" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:286 msgid "" "The program below uses B() to open an input buffer, and " "B() to open a dynamically sized output buffer. The program " "scans its input string (taken from the program's first command-line " "argument) reading integers, and writes the squares of these integers to the " "output buffer. An example of the output produced by this program is the " "following:" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:291 #, no-wrap msgid "" "$B< ./a.out \\(aq1 23 43\\(aq>\n" "size=11; ptr=1 529 1849\n" msgstr "" #. type: SS #: build/C/man3/fmemopen.3:293 build/C/man3/fopencookie.3:271 #, no-wrap msgid "Program source" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:300 #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Estring.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:303 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:311 #, no-wrap msgid "" "int\n" "main(int argc, char *argv[])\n" "{\n" " FILE *out, *in;\n" " int v, s;\n" " size_t size;\n" " char *ptr;\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:316 #, no-wrap msgid "" " if (argc != 2) {\n" "\tfprintf(stderr, \"Usage: %s EfileE\\en\", argv[0]);\n" "\texit(EXIT_FAILURE);\n" " }\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:320 #, no-wrap msgid "" " in = fmemopen(argv[1], strlen(argv[1]), \"r\");\n" " if (in == NULL)\n" " handle_error(\"fmemopen\");\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:324 #, no-wrap msgid "" " out = open_memstream(&ptr, &size);\n" " if (out == NULL)\n" " handle_error(\"open_memstream\");\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:329 #, no-wrap msgid "" " for (;;) {\n" " s = fscanf(in, \"%d\", &v);\n" " if (s E= 0)\n" " break;\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:340 #, no-wrap msgid "" " s = fprintf(out, \"%d \", v * v);\n" " if (s == -1)\n" " handle_error(\"fprintf\");\n" " }\n" " fclose(in);\n" " fclose(out);\n" " printf(\"size=%ld; ptr=%s\\en\", (long) size, ptr);\n" " free(ptr);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: Plain text #: build/C/man3/fmemopen.3:344 msgid "B(3), B(3)" msgstr "" #. type: TH #: build/C/man3/fmtmsg.3:13 #, no-wrap msgid "FMTMSG" msgstr "" #. type: Plain text #: build/C/man3/fmtmsg.3:16 msgid "fmtmsg - print formatted error messages" msgstr "" #. type: Plain text #: build/C/man3/fmtmsg.3:19 #, no-wrap msgid "B<#include Efmtmsg.hE>\n" msgstr "" #. type: Plain text #: build/C/man3/fmtmsg.3:21 #, no-wrap msgid "BIB<, const char *>I