OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / obsolete / man2 / sstk.2
1 .\" From the 4.3BSD Architecture Manual - BSD copyright
2 .\"
3 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
4 .\"         all rights reserved.
5 .\" Translated Fri Jun 25 02:23:34 JST 2004
6 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
7 .\"
8 .TH SSTK 2 2003-11-11 "" "BSD planned"
9 .\"O .SH NAME
10 .SH Ì¾Á°
11 .\"O sstk \- change stack size
12 sstk \- ¥¹¥¿¥Ã¥¯¥µ¥¤¥º¤òÊѹ¹¤¹¤ë
13 .\"O .SH SYNOPSIS
14 .SH ½ñ¼°
15 caddr_t sstk(int incr);
16 .\"O .SH DESCRIPTION
17 .SH ÀâÌÀ
18 .\"O (From the 4.3BSD Architecture Manual)
19 (4.3BSD ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¥Þ¥Ë¥å¥¢¥ë¤è¤ê)
20 .sp
21 .\"O Each process begins execution with three logical areas of memories
22 .\"O called text, data and stack. The text area is read-only and shared,
23 .\"O while the data and stack areas are private to the process.
24 ³Æ¥×¥í¥»¥¹¤Ï¡¢¥Æ¥­¥¹¥È¡¦¥Ç¡¼¥¿¡¦¥¹¥¿¥Ã¥¯¤È¤¤¤¦
25 ¥á¥â¥ê¤Î 3 ¤Ä¤ÎÏÀÍýÎΰè¤òÊÝ»ý¤·¤Æ¼Â¹Ô¤ò³«»Ï¤¹¤ë¡£
26 ¥Æ¥­¥¹¥ÈÎΰè¤ÏÆɤ߹þ¤ßÀìÍѤǶ¦Í­¤µ¤ì¤ë¡£
27 °ìÊý¡¢¥Ç¡¼¥¿Îΰè¤È¥¹¥¿¥Ã¥¯Îΰè¤Ï¥×¥í¥»¥¹¤¬¸ø³«¤·¤Ê¤¤Îΰè¤Ç¤¢¤ë¡£
28 .\"O Both the data and stack areas may be extended and contracted on
29 .\"O program request. The call
30 ¥Ç¡¼¥¿Îΰè¤È¥¹¥¿¥Ã¥¯Îΰè¤Ï¥×¥í¥°¥é¥à¤ÎÍ×µá¤Ë¤è¤ê³ÈÂ硦½Ì¾®¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
31 ¸Æ¤Ó½Ð¤·
32 .sp
33 .in +5
34 caddr_t addr = sbrk(incr);
35 .in
36 .sp
37 .\"O changes the size of the data area by
38 .\"O .I incr
39 .\"O bytes and returns the new end of the data area, while
40 ¤Ï¥Ç¡¼¥¿Îΰè¤Î¥µ¥¤¥º¤ò
41 .I incr
42 ¥Ð¥¤¥È¤ËÊѹ¹¤·¡¢¥Ç¡¼¥¿Îΰè¤Î¿·¤·¤¤½ªÃ¼¤òÊÖ¤¹¡£
43 °ìÊý¡¢
44 .sp
45 .in +5
46 caddr_t addr = sstk(incr);
47 .in
48 .sp
49 .\"O changes the size of the stack area. The stack area is also automatically
50 .\"O extended as needed. On the VAX the text and data areas are adjacent
51 .\"O in the P0 region, while the stack section is in the P1 region, and
52 .\"O grows downward.
53 ¤Ï¥¹¥¿¥Ã¥¯Îΰè¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¡£
54 ¥¹¥¿¥Ã¥¯Îΰè¤ÏɬÍפ˱þ¤¸¤Æ¼«Æ°Åª¤Ë³ÈÂ礵¤ì¤¿¤ê¤â¤¹¤ë¡£
55 VAX ¤Ç¤Ï¡¢¥Æ¥­¥¹¥ÈÎΰè¤È¥Ç¡¼¥¿Îΰè¤Ï P0 Îΰè¤ÎÎÙ¤ê¹ç¤Ã¤¿¾ì½ê¤Ë¤¢¤ë¡£
56 ¤Þ¤¿¥¹¥¿¥Ã¥¯¶è²è¤Ï P1 Îΰè¤Ë¤¢¤Ã¤Æ¡¢²¼Êý¤ØÀ®Ä¹¤¹¤ë¡£
57 .\"O .SH NOTE
58 .SH Ãí°Õ
59 .\"O This call is not supported in 4.3BSD or 4.4BSD or glibc or Linux or any
60 .\"O other known Unix-like system. Some systems have a routine of this name
61 .\"O that returns ENOSYS.
62 ¤³¤Î¸Æ¤Ó½Ð¤·¤Ï 4.3BSD,  4.4BSD, glibc, Linux,
63 ¤½¤Î¾¤ÎÃΤé¤ì¤Æ¤¤¤ë Unix ·Ï¥·¥¹¥Æ¥à¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Ê¤¤¡£
64 ENOSYS ¤òÊÖ¤¹¤è¤¦¤Ê¤³¤Î̾Á°¤Î¥ë¡¼¥Á¥ó¤ò»ý¤Ã¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤â¤¢¤ë¡£
65 .\"O .SH "SEE ALSO"
66 .SH ´ØÏ¢¹àÌÜ
67 .BR sbrk (2)