OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / 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)