⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscalls_37.html

📁 Linux系统调用
💻 HTML
字号:
<!-- This HTML file has been created by texi2html 1.29
     from syscalls.texi on 4 June 1994 -->

<TITLE>Syscall specifications of Linux - brk</TITLE>
<P>Go to the <A HREF="syscalls_36.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_36.html">previous</A>, <A HREF="syscalls_38.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_38.html">next</A> section.<P>
<H2><A NAME="SEC37" HREF="syscalls_toc.html#SEC37" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC37">brk</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int brk(void *<VAR>end_data_segment</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>end_data_segment</VAR>: [in] the new end of the data segment.
<P>
<H3>DESCRIPTION</H3>
<P>
<CODE>brk</CODE> sets the end of the data segment to the value specified by
<VAR>end_data_segment</VAR>. This value must be greater than the end
of the text segment and lower than 16KB before the end of the stack.
<P>
Note: the brk syscall is in never called directly. It is wrapped by a
libc function that changes the return value. The sbrk fucntion is also
implemented as a wrapper.
<P>
<H3>RETURN VALUE</H3>
<P>
Returns the new end of the data segment. (If it is not equal the the
requested end, then there has been an error and the memory couldn't be
allocated.)
<P>
<P>Go to the <A HREF="syscalls_36.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_36.html">previous</A>, <A HREF="syscalls_38.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_38.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -