JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... する) ことができるからである。 * スタックサイズ。 スレッドの実装によって適切な境界に揃えられる可能があるためである。 * guard size. スレッドの実装によりページサイズの倍数に切り上げられたり、 アプリケーションが自分でスタックを割り当てる場合には無視される ... 用例を示したものである。 このプログラムは、スレッドを作成し、それから pthread_getattr_np () を使ってそのスレッドの属性 guard size、 スタックアドレス、スタックサイズを取得し表示する。 コマンドライン引数での指定で、スレッドを作成する際に 上記の属性にデフォ ... 例は、デフォルトの属性でスレッドが作成されている (x86-32 システム上で実行)。 $ ulimit -s # No stack limit ==> default stack size is 2 MB unlimited $ ./a.out Attributes of created thread: Guard size = 4096 bytes Stack address = 0x40196000 (EOS = 0x4039 ... ... ON glibc 2.13 $ ./a.out 1 10000 100 ============ Before allocating blocks ============ <malloc version="1"> <heap nr="0"> <sizes> </sizes> <total type="fast" count="0" size="0"/> <total type="rest" count="0" size="0"/> <system type="current" size="13 ... 5168"/> <system type="max" size="135168"/> <aspace type="total" size="135168"/> <aspace type="mprotect" size="135168"/> </heap> <total type="fast" count=" ... 0" size="0"/> <total type="rest" count="0" size="0"/> <system type="current" size="135168"/> <system type="max" size="135168"/> <a ... ... Memory usage summary" (メモリー使用量概要) の行には以下のフィールドが含まれる。 heap total malloc (3) のすべての呼び出しの size 引数の合計、 calloc (3) のすべての呼び出しの引数の積 ( nmemb * size )、 mmap (2) のすべての呼び出しの length 引数の合計。 ... ズが以前のサイズよりも大きい場合、 差分 (新しいサイズから古いサイズを引いた値) の合計が加算される。 heap peak malloc (3) の size 引数、 calloc (3) の nmemb * size の積、 realloc (3) の size 引数、 mmap (2) の length 引数、 mremap (2) の new_size 引数、 ... 総メモリー」のセルは "free/total memory" セルよりも大きくなることがある。 ブロックサイズのヒストグラム "Histogram for block sizes" (ブロックサイズのヒストグラム) は、 メモリー割り当てをバケットサイズ単位に分割した情報である。 オプション -n name , --pr ... ... id *ptr ); void *calloc(size_t nmemb , size_t size ); void *realloc(void *ptr , size_t size ); void *reallocarray(void *ptr , size_t nmemb , size_t siz ... est_macros (7) 参照): reallocarray (): glibc 2.29 以降: _DEFAULT_SOURCE glibc 2.28 以前: _GNU_SOURCE 説明 malloc () 関数は size バイトを割り当て、 割り当てられたメモリーに対する ポインターを返す。 メモリーの内容は初期化されない 。 size が 0 の場合、 ... 。 ptr が NULL の場合には、何の動作も行われない。 The calloc () function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. If nmemb or size is 0, then calloc () ... ... id *ptr ); void *calloc(size_t nmemb , size_t size ); void *realloc(void *ptr , size_t size ); void *reallocarray(void *ptr , size_t nmemb , size_t siz ... est_macros (7) 参照): reallocarray (): glibc 2.29 以降: _DEFAULT_SOURCE glibc 2.28 以前: _GNU_SOURCE 説明 malloc () 関数は size バイトを割り当て、 割り当てられたメモリーに対する ポインターを返す。 メモリーの内容は初期化されない 。 size が 0 の場合、 ... 。 ptr が NULL の場合には、何の動作も行われない。 The calloc () function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. If nmemb or size is 0, then calloc () ... ... id *ptr ); void *calloc(size_t nmemb , size_t size ); void *realloc(void *ptr , size_t size ); void *reallocarray(void *ptr , size_t nmemb , size_t siz ... est_macros (7) 参照): reallocarray (): glibc 2.29 以降: _DEFAULT_SOURCE glibc 2.28 以前: _GNU_SOURCE 説明 malloc () 関数は size バイトを割り当て、 割り当てられたメモリーに対する ポインターを返す。 メモリーの内容は初期化されない 。 size が 0 の場合、 ... 。 ptr が NULL の場合には、何の動作も行われない。 The calloc () function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. If nmemb or size is 0, then calloc () ... ... id *ptr ); void *calloc(size_t nmemb , size_t size ); void *realloc(void *ptr , size_t size ); void *reallocarray(void *ptr , size_t nmemb , size_t siz ... est_macros (7) 参照): reallocarray (): glibc 2.29 以降: _DEFAULT_SOURCE glibc 2.28 以前: _GNU_SOURCE 説明 malloc () 関数は size バイトを割り当て、 割り当てられたメモリーに対する ポインターを返す。 メモリーの内容は初期化されない 。 size が 0 の場合、 ... 。 ptr が NULL の場合には、何の動作も行われない。 The calloc () function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. If nmemb or size is 0, then calloc () ... ... id *ptr ); void *calloc(size_t nmemb , size_t size ); void *realloc(void *ptr , size_t size ); void *reallocarray(void *ptr , size_t nmemb , size_t siz ... est_macros (7) 参照): reallocarray (): glibc 2.29 以降: _DEFAULT_SOURCE glibc 2.28 以前: _GNU_SOURCE 説明 malloc () 関数は size バイトを割り当て、 割り当てられたメモリーに対する ポインターを返す。 メモリーの内容は初期化されない 。 size が 0 の場合、 ... 。 ptr が NULL の場合には、何の動作も行われない。 The calloc () function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. If nmemb or size is 0, then calloc () ... ... mber ] [ --common ] [ -t | --totals ] [ --target= bfdname ] [ -V | --version ] [ -f ] [ objfile ...] 説明 GNU size ユーティリティは、引数リストに objfile の各バイナリファイルのセクションサイズと合計サイズを一覧表示します。 デフォルトでは ... コマンドラインオプションには次の意味があります: -A -B -G --format= compatibility これらのオプションのいずれかを使用して、GNU size の出力をSystem V の size ( -A または --format=sysv を使用) または Berkeley の size ( -B または --format=berkeley を使用) の ... ます ( -G または --format=gnu を使用)。これは Berkeley の出力形式に似ていますが、サイズのカウント方法が異なります。 以下は、 size の Berkeley(デフォルト) 形式の出力例です: $ size --format=Berkeley ranlib size text data bss dec hex filename 294880 81920 ... ... nst void * s1 , const void * s2 , size_t n ); void bcopy(const void * src , void * dest , size_t n ); void bzero(void * s , size_t n ); void *memccpy(void * dest ... , const void * src , int c , size_t n ); void *memchr(const void * s , int c , size_t n ); int memcmp(const void * s1 , const void * s2 , size_t n ); void * ... memcpy(void * dest , const void * src , size_t n ); void *memfrob(void * s , size_t n ); void *memmem(const void * haystack , size_t haystacklen , const void * needle ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。