JM Project

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

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 10 of about 13 for nbytes (0.003 sec.)
Man page of SELECT_TUT 12950
SELECT_TUT Section: Linux Programmer's Manual (2) Updated: 2020-04-11 Index JM Home Page 名前 select, pselect - 同期 I/O の多重化 書式 select (2) 参照。 説明 システムコール select () や pselect () を使うと、効率的に複数のファイルディスクリプ ... atoi(argv[2]); h = listen_socket(atoi(argv[1])); if (h == -1) exit(EXIT_FAILURE); for (;;) { int ready, nfds = 0; ssize_t nbytes; fd_set readfds, writefds, exceptfds; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&exceptfds); FD_SET(h, &readfds); nfd ... criptors. */ continue; } } /* NB: read OOB data before normal reads */ if (fd1 > 0 && FD_ISSET(fd1, &exceptfds)) { char c; nbytes = recv(fd1, &c, 1, MSG_OOB); if (nbytes < 1) SHUT_FD1; else send(fd2, &c, 1, MSG_OOB); } if (fd2 > 0 && FD_ISSET(fd2, &exc ... eptfds)) { char c; nbytes = recv(fd2, &c, 1, MSG_OOB); if (nbytes < 1) SHUT_FD2; else send(fd1, &c, 1, MSG_OOB); } if (fd1 > 0 && FD_ISSET(fd1, &rea ...
https://man.mtool.work/man/20260915/man2/select_tut.2.html
Man page of CACHEFLUSH 10733
CACHEFLUSH Section: Linux Programmer's Manual (2) Updated: 2007-05-26 Index JM Home Page 名前 cacheflush - 命令キャッシュやデータキャッシュの内容をフラッシュする 書式 #include < asm/cachectl.h > int cacheflush(char * addr , int nbytes , int ... cache ); 説明 cacheflush () は addr から (addr+nbytes-1) の範囲のユーザーアドレスに対応する 指定されたキャッシュをフラッシュする。 cache には以下のいずれかを指定する: ICACHE 命 ... た場合は 0 を、失敗した場合は -1 を返す。エラーが検出された場合は errno にエラーが指示される。 エラー EFAULT addr から (addr+nbytes-1) の範囲のアドレスの全てまたは一部が アクセス可能ではない。 EINVAL cache パラメーターが ICACHE , DCACHE , BCACHE のどれで ... MIPS ベースのシステムでのみ有効である。 移植を意図したプログラムで使用すべきではない。 バグ 現在の実装では、引き数 addr と nbytes は無視される。そのため、 常に全てのキャッシュがフラッシュされる。 この文書について この man ページは Linux man-pages プロジ ...
https://man.mtool.work/man/20260915/man2/cacheflush.2.html
Man page of SYNC_FILE_RANGE 9571
SYNC_FILE_RANGE Section: Linux Programmer's Manual (2) Updated: 2017-09-15 Index JM Home Page 名前 sync_file_range - ファイルセグメントをディスクと同期する 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < fcntl.h > int ... sync_file_range(int fd , off64_t offset , off64_t nbytes , unsigned int flags ); 説明 sync_file_range () を使うと、ファイルディスクリプター fd で参照されるオープンされたファイルの ... ディスクとの同期に関して、 きめ細かな制御が可能となる。 offset は、同期を行うファイルの領域の開始バイトである。 nbytes には同期を行う領域の長さをバイト単位で指定する。 nbytes が 0 の場合は、 offset からファイル末尾までの全バイトを同期する。 ... 同期はシステムのページサイズの単位で行われる。 offset はページ境界にあわせて切り下げられ、 (offset+nbytes-1) はページ境界にあわせて切り上げられる。 ビットマスク引数 flags には以下の値を指定することができる: SYNC_FILE_RANGE_WAIT_ ...
https://man.mtool.work/man/20260915/man2/arm_sync_file_range.2.html
Man page of SYNC_FILE_RANGE 9571
SYNC_FILE_RANGE Section: Linux Programmer's Manual (2) Updated: 2017-09-15 Index JM Home Page 名前 sync_file_range - ファイルセグメントをディスクと同期する 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < fcntl.h > int ... sync_file_range(int fd , off64_t offset , off64_t nbytes , unsigned int flags ); 説明 sync_file_range () を使うと、ファイルディスクリプター fd で参照されるオープンされたファイルの ... ディスクとの同期に関して、 きめ細かな制御が可能となる。 offset は、同期を行うファイルの領域の開始バイトである。 nbytes には同期を行う領域の長さをバイト単位で指定する。 nbytes が 0 の場合は、 offset からファイル末尾までの全バイトを同期する。 ... 同期はシステムのページサイズの単位で行われる。 offset はページ境界にあわせて切り下げられ、 (offset+nbytes-1) はページ境界にあわせて切り上げられる。 ビットマスク引数 flags には以下の値を指定することができる: SYNC_FILE_RANGE_WAIT_ ...
https://man.mtool.work/man/20260915/man2/sync_file_range.2.html
Man page of SYNC_FILE_RANGE 9571
SYNC_FILE_RANGE Section: Linux Programmer's Manual (2) Updated: 2017-09-15 Index JM Home Page 名前 sync_file_range - ファイルセグメントをディスクと同期する 書式 #define _GNU_SOURCE /* feature_test_macros (7) 参照 */ #include < fcntl.h > int ... sync_file_range(int fd , off64_t offset , off64_t nbytes , unsigned int flags ); 説明 sync_file_range () を使うと、ファイルディスクリプター fd で参照されるオープンされたファイルの ... ディスクとの同期に関して、 きめ細かな制御が可能となる。 offset は、同期を行うファイルの領域の開始バイトである。 nbytes には同期を行う領域の長さをバイト単位で指定する。 nbytes が 0 の場合は、 offset からファイル末尾までの全バイトを同期する。 ... 同期はシステムのページサイズの単位で行われる。 offset はページ境界にあわせて切り下げられ、 (offset+nbytes-1) はページ境界にあわせて切り上げられる。 ビットマスク引数 flags には以下の値を指定することができる: SYNC_FILE_RANGE_WAIT_ ...
https://man.mtool.work/man/20260915/man2/sync_file_range2.2.html
Man page of READLINK 9114
READLINK Section: Linux Programmer's Manual (2) Updated: 2020-06-09 Index JM Home Page 名前 readlink, readlinkat - シンボリックリンクの値を読む 書式 #include < unistd.h > ssize_t readlink(const char * pathname , char * buf , size_t bufsiz ) ... tdio.h > #include < stdlib.h > #include < unistd.h > int main(int argc, char *argv[]) { struct stat sb; char *buf; ssize_t nbytes, bufsiz; if (argc != 2) { fprintf(stderr, "Usage: %s <pathname>\n", argv[0]); exit(EXIT_FAILURE); } if (lstat(argv[1], &sb ... / if (sb.st_size == 0) bufsiz = PATH_MAX; buf = malloc(bufsiz); if (buf == NULL) { perror("malloc"); exit(EXIT_FAILURE); } nbytes = readlink(argv[1], buf, bufsiz); if (nbytes == -1) { perror("readlink"); exit(EXIT_FAILURE); } printf("'%s' points to '%. ... *s'\n", argv[1], (int) nbytes, buf); /* If the return value was equal to the buffer size, then the the link target was larger than expected (perhaps bec ...
https://man.mtool.work/man/20260915/man2/readlink.2.html
Man page of READLINK 9114
READLINK Section: Linux Programmer's Manual (2) Updated: 2020-06-09 Index JM Home Page 名前 readlink, readlinkat - シンボリックリンクの値を読む 書式 #include < unistd.h > ssize_t readlink(const char * pathname , char * buf , size_t bufsiz ) ... tdio.h > #include < stdlib.h > #include < unistd.h > int main(int argc, char *argv[]) { struct stat sb; char *buf; ssize_t nbytes, bufsiz; if (argc != 2) { fprintf(stderr, "Usage: %s <pathname>\n", argv[0]); exit(EXIT_FAILURE); } if (lstat(argv[1], &sb ... / if (sb.st_size == 0) bufsiz = PATH_MAX; buf = malloc(bufsiz); if (buf == NULL) { perror("malloc"); exit(EXIT_FAILURE); } nbytes = readlink(argv[1], buf, bufsiz); if (nbytes == -1) { perror("readlink"); exit(EXIT_FAILURE); } printf("'%s' points to '%. ... *s'\n", argv[1], (int) nbytes, buf); /* If the return value was equal to the buffer size, then the the link target was larger than expected (perhaps bec ...
https://man.mtool.work/man/20260915/man2/readlinkat.2.html
Man page of GETDIRENTRIES 8305
GETDIRENTRIES Section: Linux Programmer's Manual (3) Updated: 2016-03-15 Index JM Home Page 名前 getdirentries - ディレクトリのエントリーをファイルシステムに依存しない形式で取得する 書式 #include < dirent.h > ssize_t getdirentries(int fd , ... char * buf , size_t nbytes , off_t * basep ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): getdirentries (): glibc 2.19 以降: _D ... glibc 2.19 以前: _BSD_SOURCE || _SVID_SOURCE 説明 fd で指定されたディレクトリからエントリーを読み、 buf に格納する。最大で nbytes が読み込まれる。読み込みはオフセット *basep から開始され、読み込み終了時には *basep は新しい位置に更新される。 返り値 getd ...
https://man.mtool.work/man/20260915/man3/getdirentries.3.html
Man page of AIO_READ 7601
AIO_READ Section: Linux Programmer's Manual (3) Updated: 2020-06-09 Index JM Home Page 名前 aio_read - 非同期で読み込む 書式 #include < aio.h > int aio_read(struct aiocb * aiocbp ); -lrt でリンクする。 説明 aio_read () 関数は、 aiocbp が指す ... 関数は read (2) の非同期版である。 呼び出し read(fd, buf, count) の各引数は aiocb が指す構造体の aio_fildes , aio_buf , aio_nbytes に (この順序で) 対応する ( aiocb 構造体の説明は aio (7) を参照)。 データの読み込みは、ファイルオフセットに関係なく、絶対位 ... DF aio_fildes は読み込みのためにオープンされた有効なファイルディスクリプターでない。 EINVAL aio_offset , aio_reqprio , aio_nbytes のうち 1 つ以上が無効である。 ENOSYS aio_read () は実装されていない。 EOVERFLOW ファイルが通常のファイルであり、 ファイルの ...
https://man.mtool.work/man/20260915/man3/aio_read.3.html
Man page of AIO_WRITE 7601
AIO_WRITE Section: Linux Programmer's Manual (3) Updated: 2017-09-15 Index JM Home Page 名前 aio_write - 非同期で書き込む 書式 #include < aio.h > int aio_write(struct aiocb * aiocbp ); -lrt でリンクする。 説明 aio_write () 関数は、 aiocbp が ... 数は write (2) の非同期版である。 呼び出し write(fd, buf, count) の各引数は aiocb が指す構造体の aio_fildes , aio_buf , aio_nbytes に (この順序で) 対応する ( aiocb 構造体の説明は aio (7) を参照)。 O_APPEND が設定されない場合、ファイルオフセットに関係なく ... としている。 しかし開始位置が、このファイルの最大オフセットと同じかそれを超えている。 EINVAL aio_offset , aio_reqprio , aio_nbytes のうち 1 つ以上が無効である。 ENOSYS aio_write () は実装されていない。 バージョン The aio_write () 関数は glibc 2.1 以降で ...
https://man.mtool.work/man/20260915/man3/aio_write.3.html
PREV 1 2 NEXT

リンク

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