JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 7 of about 7 for utsname (0.003 sec.)
Man page of UNAME 11178
UNAME Section: Linux Programmer's Manual (2) Updated: 2019-10-10 Index JM Home Page 名前 uname - 現在稼働中のカーネルについての名前と情報を得る 書式 #include < sys/utsname.h > int uname(struct utsname * buf ); 説明 uname () は buf で指される ... 構造体にシステム情報を返す。 utsname 構造体は < sys/utsname.h > で以下のように定義されている。 struct utsname { char sysname[]; /* OS の名前 (例: "Linux") */ c ... ar machine[]; /* ハードウェア識別子 */ #ifdef _GNU_SOURCE char domainname[]; /* NIS や YP のドメイン名 */ #endif }; struct utsname にある配列の長さは指定されていない (「注意」の節を参照)。 フィールドはヌルバイト ('\0') で終端される。 返り値 成功した場合 ... イブラリの中には、 ハードコードされた 9, 33, 65, 257 などの値を使っているものもある。 また SYS_NMLN , _SYS_NMLN , UTSLEN , _UTSNAME_LENGTH などを使っているシステムもある。 はっきり言って、これらの定数を使うのは悪い考え方であり、 sizeof(...) を使うべきであ ...
https://man.mtool.work/man/20260915/man2/oldolduname.2.html
Man page of UNAME 11178
UNAME Section: Linux Programmer's Manual (2) Updated: 2019-10-10 Index JM Home Page 名前 uname - 現在稼働中のカーネルについての名前と情報を得る 書式 #include < sys/utsname.h > int uname(struct utsname * buf ); 説明 uname () は buf で指される ... 構造体にシステム情報を返す。 utsname 構造体は < sys/utsname.h > で以下のように定義されている。 struct utsname { char sysname[]; /* OS の名前 (例: "Linux") */ c ... ar machine[]; /* ハードウェア識別子 */ #ifdef _GNU_SOURCE char domainname[]; /* NIS や YP のドメイン名 */ #endif }; struct utsname にある配列の長さは指定されていない (「注意」の節を参照)。 フィールドはヌルバイト ('\0') で終端される。 返り値 成功した場合 ... イブラリの中には、 ハードコードされた 9, 33, 65, 257 などの値を使っているものもある。 また SYS_NMLN , _SYS_NMLN , UTSLEN , _UTSNAME_LENGTH などを使っているシステムもある。 はっきり言って、これらの定数を使うのは悪い考え方であり、 sizeof(...) を使うべきであ ...
https://man.mtool.work/man/20260915/man2/olduname.2.html
Man page of UNAME 11178
UNAME Section: Linux Programmer's Manual (2) Updated: 2019-10-10 Index JM Home Page 名前 uname - 現在稼働中のカーネルについての名前と情報を得る 書式 #include < sys/utsname.h > int uname(struct utsname * buf ); 説明 uname () は buf で指される ... 構造体にシステム情報を返す。 utsname 構造体は < sys/utsname.h > で以下のように定義されている。 struct utsname { char sysname[]; /* OS の名前 (例: "Linux") */ c ... ar machine[]; /* ハードウェア識別子 */ #ifdef _GNU_SOURCE char domainname[]; /* NIS や YP のドメイン名 */ #endif }; struct utsname にある配列の長さは指定されていない (「注意」の節を参照)。 フィールドはヌルバイト ('\0') で終端される。 返り値 成功した場合 ... イブラリの中には、 ハードコードされた 9, 33, 65, 257 などの値を使っているものもある。 また SYS_NMLN , _SYS_NMLN , UTSLEN , _UTSNAME_LENGTH などを使っているシステムもある。 はっきり言って、これらの定数を使うのは悪い考え方であり、 sizeof(...) を使うべきであ ...
https://man.mtool.work/man/20260915/man2/uname.2.html
Man page of CLONE 7506
CLONE Section: Linux Programmer's Manual (2) Updated: 2014-09-21 Index JM Home Page 名前 clone, __clone2 - 子プロセスを作成する 書式 /* glibc ラッパー関数のプロトタイプ */ #include < sched.h > int clone(int (* fn )(void *), void * child_sta ... グラムの使用方法については setns (2) を参照。 プログラムのソース #define _GNU_SOURCE #include < sys/wait.h > #include < sys/utsname.h > #include < sched.h > #include < string.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define er ... or(msg); exit(EXIT_FAILURE); \ } while (0) static int /* clone された子プロセスの開始関数 */ childFunc(void *arg) { struct utsname uts; /* 子プロセスの UTS 名前空間でホスト名を変更する */ if (sethostname(arg, strlen(arg)) == -1) errExit("sethostname"); ... ar *argv[]) { char *stack; /* スタックバッファーの先頭 */ char *stackTop; /* スタックバッファーの末尾 */ pid_t pid; struct utsname uts; if (argc < 2) { fprintf(stderr, "Usage: %s <child-hostname>\n", argv[0]); exit(EXIT_SUCCESS); } /* 子プロセス用のスタ ...
https://man.mtool.work/man/20260915/man2/__clone2.2.html
Man page of CLONE 7506
CLONE Section: Linux Programmer's Manual (2) Updated: 2014-09-21 Index JM Home Page 名前 clone, __clone2 - 子プロセスを作成する 書式 /* glibc ラッパー関数のプロトタイプ */ #include < sched.h > int clone(int (* fn )(void *), void * child_sta ... グラムの使用方法については setns (2) を参照。 プログラムのソース #define _GNU_SOURCE #include < sys/wait.h > #include < sys/utsname.h > #include < sched.h > #include < string.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define er ... or(msg); exit(EXIT_FAILURE); \ } while (0) static int /* clone された子プロセスの開始関数 */ childFunc(void *arg) { struct utsname uts; /* 子プロセスの UTS 名前空間でホスト名を変更する */ if (sethostname(arg, strlen(arg)) == -1) errExit("sethostname"); ... ar *argv[]) { char *stack; /* スタックバッファーの先頭 */ char *stackTop; /* スタックバッファーの末尾 */ pid_t pid; struct utsname uts; if (argc < 2) { fprintf(stderr, "Usage: %s <child-hostname>\n", argv[0]); exit(EXIT_SUCCESS); } /* 子プロセス用のスタ ...
https://man.mtool.work/man/20260915/man2/clone.2.html
Man page of CLONE 7506
CLONE Section: Linux Programmer's Manual (2) Updated: 2014-09-21 Index JM Home Page 名前 clone, __clone2 - 子プロセスを作成する 書式 /* glibc ラッパー関数のプロトタイプ */ #include < sched.h > int clone(int (* fn )(void *), void * child_sta ... グラムの使用方法については setns (2) を参照。 プログラムのソース #define _GNU_SOURCE #include < sys/wait.h > #include < sys/utsname.h > #include < sched.h > #include < string.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define er ... or(msg); exit(EXIT_FAILURE); \ } while (0) static int /* clone された子プロセスの開始関数 */ childFunc(void *arg) { struct utsname uts; /* 子プロセスの UTS 名前空間でホスト名を変更する */ if (sethostname(arg, strlen(arg)) == -1) errExit("sethostname"); ... ar *argv[]) { char *stack; /* スタックバッファーの先頭 */ char *stackTop; /* スタックバッファーの末尾 */ pid_t pid; struct utsname uts; if (argc < 2) { fprintf(stderr, "Usage: %s <child-hostname>\n", argv[0]); exit(EXIT_SUCCESS); } /* 子プロセス用のスタ ...
https://man.mtool.work/man/20260915/man2/clone2.2.html
Man page of CLONE 7506
CLONE Section: Linux Programmer's Manual (2) Updated: 2014-09-21 Index JM Home Page 名前 clone, __clone2 - 子プロセスを作成する 書式 /* glibc ラッパー関数のプロトタイプ */ #include < sched.h > int clone(int (* fn )(void *), void * child_sta ... グラムの使用方法については setns (2) を参照。 プログラムのソース #define _GNU_SOURCE #include < sys/wait.h > #include < sys/utsname.h > #include < sched.h > #include < string.h > #include < stdio.h > #include < stdlib.h > #include < unistd.h > #define er ... or(msg); exit(EXIT_FAILURE); \ } while (0) static int /* clone された子プロセスの開始関数 */ childFunc(void *arg) { struct utsname uts; /* 子プロセスの UTS 名前空間でホスト名を変更する */ if (sethostname(arg, strlen(arg)) == -1) errExit("sethostname"); ... ar *argv[]) { char *stack; /* スタックバッファーの先頭 */ char *stackTop; /* スタックバッファーの末尾 */ pid_t pid; struct utsname uts; if (argc < 2) { fprintf(stderr, "Usage: %s <child-hostname>\n", argv[0]); exit(EXIT_SUCCESS); } /* 子プロセス用のスタ ...
https://man.mtool.work/man/20260915/man2/clone3.2.html
PREV 1 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。