#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:58+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages-posix/man3p/dirname.3p:2 #, no-wrap msgid "DIRNAME" msgstr "" #. type: TH #: man-pages-posix/man3p/dirname.3p:2 #, no-wrap msgid "2013" msgstr "" #. type: TH #: man-pages-posix/man3p/dirname.3p:2 #, no-wrap msgid "IEEE/The Open Group" msgstr "" #. type: TH #: man-pages-posix/man3p/dirname.3p:2 #, no-wrap msgid "POSIX Programmer's Manual" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:3 #, no-wrap msgid "PROLOG" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:8 msgid "" "This manual page is part of the POSIX Programmer's Manual. The Linux " "implementation of this interface may differ (consult the corresponding Linux " "manual page for details of Linux behavior), or the interface may not be " "implemented on Linux." msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:9 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:12 msgid "dirname \\(em report the parent directory name of a file pathname" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:12 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:16 #, no-wrap msgid "#include Elibgen.hE\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:18 #, no-wrap msgid "char *dirname(char *I);\n" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:19 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:27 msgid "" "The I() function shall take a pointer to a character string that " "contains a pathname, and return a pointer to a string that is a pathname of " "the parent directory of that file. Trailing B<'/'> characters in the path " "are not counted as part of the path." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:42 msgid "" "If I does not contain a B<'/'>, then I() shall return a " "pointer to the string B<\".\">. If I is a null pointer or points to " "an empty string, I() shall return a pointer to the string B<\".\">." "" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:46 msgid "The I() function need not be thread-safe." msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:46 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:57 msgid "" "The I() function shall return a pointer to a string that is the " "parent directory of I. If I is a null pointer or points to an " "empty string, a pointer to a string B<\".\"> is returned." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:65 msgid "" "The I() function may modify the string pointed to by I, and " "may return a pointer to internal storage. The returned pointer might be " "invalidated or the storage might be overwritten by a subsequent call to " "I()." msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:65 #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:67 msgid "No errors are defined." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:69 msgid "I" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:69 #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:72 msgid "" "The following code fragment reads a pathname, changes the current working " "directory to the parent directory, and opens the file." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:80 #, no-wrap msgid "" "B<\n" "char *path = NULL, *pathcopy;\n" "size_t buflen = 0;\n" "ssize_t linelen = 0;\n" "int fd;>\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:82 #, no-wrap msgid "linelen = getline(&path, &buflen, stdin);\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:95 #, no-wrap msgid "" "path[linelen-1] = 0;\n" "pathcopy = strdup(path);\n" "if (chdir(dirname(pathcopy)) E 0) {\n" " ...\n" "}\n" "if ((fd = open(basename(path), O_RDONLY)) E= 0) {\n" " ...\n" " close (fd);\n" "}\n" "\\&...\n" "free (pathcopy);\n" "free (path);\n" msgstr "" #. type: SS #: man-pages-posix/man3p/dirname.3p:98 #, no-wrap msgid "Sample Input and Output Strings for dirname(\\|)" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:105 msgid "" "In the following table, the input string is the value pointed to by I, " "and the output string is the return value of the I() function." msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:109 #, no-wrap msgid "Input String!Output String\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:110 #, no-wrap msgid "_\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:111 #, no-wrap msgid "\"/usr/lib\"!\"/usr\"\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:112 #, no-wrap msgid "\"/usr/\"!\"/\"\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:113 #, no-wrap msgid "\"usr\"!\".\"\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:114 #, no-wrap msgid "\"/\"!\"/\"\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:115 #, no-wrap msgid "\".\"!\".\"\n" msgstr "" #. type: tbl table #: man-pages-posix/man3p/dirname.3p:116 #, no-wrap msgid "\"..\"!\".\"\n" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:118 #, no-wrap msgid "APPLICATION USAGE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:126 msgid "" "The I() and I() functions together yield a complete " "pathname. The expression I\\^(I) obtains the pathname of the " "directory where I\\^(I) is found." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:137 msgid "" "Since the meaning of the leading B<\"//\"> is implementation-defined, " "I(\"B) may return either B<\"//\"> or B<'/'> (but nothing " "else)." msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:137 #, no-wrap msgid "RATIONALE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:139 man-pages-posix/man3p/dirname.3p:141 msgid "None." msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:139 #, no-wrap msgid "FUTURE DIRECTIONS" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:141 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:143 msgid "I\\^(\\|)" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:146 msgid "The Base Definitions volume of POSIX.1\\(hy2008, Blibgen.hE>" msgstr "" #. type: SH #: man-pages-posix/man3p/dirname.3p:146 #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:157 msgid "" "Portions of this text are reprinted and reproduced in electronic form from " "IEEE Std 1003.1, 2013 Edition, Standard for Information Technology -- " "Portable Operating System Interface (POSIX), The Open Group Base " "Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical " "and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 " "with the 2013 Technical Corrigendum 1 applied.) In the event of any " "discrepancy between this version and the original IEEE and The Open Group " "Standard, the original IEEE and The Open Group Standard is the referee " "document. The original Standard can be obtained online at http://www.unix." "org/online.html ." msgstr "" #. type: Plain text #: man-pages-posix/man3p/dirname.3p:162 msgid "" "Any typographical or formatting errors that appear in this page are most " "likely to have been introduced during the conversion of the source files to " "man page format. To report such errors, see https://www.kernel.org/doc/man-" "pages/reporting_bugs.html ." msgstr ""