#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:53+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/brk.2:29 #, no-wrap msgid "BRK" msgstr "" #. type: TH #: man-pages/man2/brk.2:29 #, no-wrap msgid "2010-09-20" msgstr "" #. type: TH #: man-pages/man2/brk.2:29 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/brk.2:29 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/brk.2:30 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:32 msgid "brk, sbrk - change data segment size" msgstr "" #. type: SH #: man-pages/man2/brk.2:32 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:34 msgid "B<#include Eunistd.hE>" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:36 msgid "BIB<);>" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:38 msgid "BIB<);>" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:42 msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:46 msgid "B(), B():" msgstr "" #. type: TP #: man-pages/man2/brk.2:49 #, no-wrap msgid "Since glibc 2.12:" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:56 #, no-wrap msgid "" "_BSD_SOURCE || _SVID_SOURCE ||\n" " (_XOPEN_SOURCE\\ E=\\ 500 ||\n" " _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n" " !(_POSIX_C_SOURCE\\ E=\\ 200112L || _XOPEN_SOURCE\\ E=\\ 600)\n" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:61 msgid "" "Before glibc 2.12: _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\\ E=\\ " "500 || _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED" msgstr "" #. type: SH #: man-pages/man2/brk.2:64 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:76 msgid "" "B() and B() change the location of the I, which " "defines the end of the process's data segment (i.e., the program break is " "the first location after the end of the uninitialized data segment). " "Increasing the program break has the effect of allocating memory to the " "process; decreasing the break deallocates memory." msgstr "" #. type: Plain text #: man-pages/man2/brk.2:83 msgid "" "B() sets the end of the data segment to the value specified by " "I, when that value is reasonable, the system has enough memory, and " "the process does not exceed its maximum data size (see B(2))." msgstr "" #. type: Plain text #: man-pages/man2/brk.2:93 msgid "" "B() increments the program's data space by I bytes. " "Calling B() with an I of 0 can be used to find the current " "location of the program break." msgstr "" #. type: SH #: man-pages/man2/brk.2:93 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:102 msgid "" "On success, B() returns zero. On error, -1 is returned, and I " "is set to B. (But see I below.)" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:114 msgid "" "On success, B() returns the previous program break. (If the break " "was increased, then this value is a pointer to the start of the newly " "allocated memory). On error, I<(void\\ *)\\ -1> is returned, and I " "is set to B." msgstr "" #. type: SH #: man-pages/man2/brk.2:114 #, no-wrap msgid "CONFORMING TO" msgstr "" #. .BR brk () #. and #. .BR sbrk () #. are not defined in the C Standard and are deliberately excluded from the #. POSIX.1-1990 standard (see paragraphs B.1.1.1.3 and B.8.3.3). #. type: Plain text #: man-pages/man2/brk.2:122 msgid "4.3BSD; SUSv1, marked LEGACY in SUSv2, removed in POSIX.1-2001." msgstr "" #. type: SH #: man-pages/man2/brk.2:122 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:131 msgid "" "Avoid using B() and B(): the B(3) memory allocation " "package is the portable and comfortable way of allocating memory." msgstr "" #. One sees #. \fIint\fP (e.g., XPGv4, DU 4.0, HP-UX 11, FreeBSD 4.0, OpenBSD 3.2), #. \fIssize_t\fP (OSF1 2.0, Irix 5.3, 6.5), #. \fIptrdiff_t\fP (libc4, libc5, ulibc, glibc 2.0, 2.1), #. \fIintptr_t\fP (e.g., XPGv5, AIX, SunOS 5.8, 5.9, FreeBSD 4.7, NetBSD 1.6, #. Tru64 5.1, glibc2.2). #. type: Plain text #: man-pages/man2/brk.2:141 msgid "" "Various systems use various types for the argument of B(). Common are " "I, I, I, I." msgstr "" #. type: SS #: man-pages/man2/brk.2:141 #, no-wrap msgid "Linux notes" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:157 msgid "" "The return value described above for B() is the behavior provided by " "the glibc wrapper function for the Linux B() system call. (On most " "other implementations, the return value from B() is the same; this " "return value was also specified in SUSv2.) However, the actual Linux system " "call returns the new program break on success. On failure, the system call " "returns the current break. The glibc wrapper function does some work (i.e., " "checks whether the new break is less than I) to provide the 0 and -1 " "return values described above." msgstr "" #. type: Plain text #: man-pages/man2/brk.2:164 msgid "" "On Linux, B() is implemented as a library function that uses the " "B() system call, and does some internal bookkeeping so that it can " "return the old break value." msgstr "" #. type: SH #: man-pages/man2/brk.2:164 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:169 msgid "B(2), B(2), B(3), B(3)" msgstr "" #. type: SH #: man-pages/man2/brk.2:169 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man2/brk.2:177 msgid "" "This page is part of release 3.70 of the Linux I 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 ""