JM Project

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

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 2 of about 2 for osnamelth (0.001 sec.)
Man page of SYSCTL 9357
SYSCTL Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 sysctl - システムパラメーターを読み書きする 書式 #include < unistd.h > #include < linux/sysctl.h > int _sysctl(struct __sysctl_args * args ); 説明 Thi ... ruct __sysctl_args *args ); #define OSNAMESZ 100 int main(void) { struct __sysctl_args args; char osname[OSNAMESZ]; size_t osnamelth; int name[] = { CTL_KERN, KERN_OSTYPE }; memset(&args, 0, sizeof(args)); args.name = name; args.nlen = sizeof(name)/sizeof ... (name[0]); args.oldval = osname; args.oldlenp = &osnamelth; osnamelth = sizeof(osname); if (syscall(SYS__sysctl, &args) == -1) { perror("_sysctl"); exit(EXIT_FAILURE); } printf("Thi ... s machine is running %*s\n", osnamelth, osname); exit(EXIT_SUCCESS); } 関連項目 proc (5) この文書について この man ページは Linux man-pages プロジェクトのリリース ...
https://man.mtool.work/man/20260915/man2/_sysctl.2.html
Man page of SYSCTL 9357
SYSCTL Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 sysctl - システムパラメーターを読み書きする 書式 #include < unistd.h > #include < linux/sysctl.h > int _sysctl(struct __sysctl_args * args ); 説明 Thi ... ruct __sysctl_args *args ); #define OSNAMESZ 100 int main(void) { struct __sysctl_args args; char osname[OSNAMESZ]; size_t osnamelth; int name[] = { CTL_KERN, KERN_OSTYPE }; memset(&args, 0, sizeof(args)); args.name = name; args.nlen = sizeof(name)/sizeof ... (name[0]); args.oldval = osname; args.oldlenp = &osnamelth; osnamelth = sizeof(osname); if (syscall(SYS__sysctl, &args) == -1) { perror("_sysctl"); exit(EXIT_FAILURE); } printf("Thi ... s machine is running %*s\n", osnamelth, osname); exit(EXIT_SUCCESS); } 関連項目 proc (5) この文書について この man ページは Linux man-pages プロジェクトのリリース ...
https://man.mtool.work/man/20260915/man2/sysctl.2.html
PREV 1 NEXT

リンク

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