JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... ールでこの問題に対処するために O_CLOEXEC と同等の機能が提供されている。) O_CREAT If pathname does not exist, create it as a regular file. The owner (user ID) of the new file is set to the effective user ID of the process. The group ownership (group ID) o ... ion performed on the file descriptor with the O_NONBLOCK flag clear would not block. Note that this flag has no effect for regular files and block devices; that is, I/O operations will (briefly) block when device activity is required, regardless of whet ... ntics might eventually be implemented, applications should not depend upon blocking behavior when specifying this flag for regular files and block devices. FIFO (名前付きパイプ) を扱う場合には fifo (7) も参照すること。 強制ファイルロック (mandatory file ... ... ールでこの問題に対処するために O_CLOEXEC と同等の機能が提供されている。) O_CREAT If pathname does not exist, create it as a regular file. The owner (user ID) of the new file is set to the effective user ID of the process. The group ownership (group ID) o ... ion performed on the file descriptor with the O_NONBLOCK flag clear would not block. Note that this flag has no effect for regular files and block devices; that is, I/O operations will (briefly) block when device activity is required, regardless of whet ... ntics might eventually be implemented, applications should not depend upon blocking behavior when specifying this flag for regular files and block devices. FIFO (名前付きパイプ) を扱う場合には fifo (7) も参照すること。 強制ファイルロック (mandatory file ... ... ールでこの問題に対処するために O_CLOEXEC と同等の機能が提供されている。) O_CREAT If pathname does not exist, create it as a regular file. The owner (user ID) of the new file is set to the effective user ID of the process. The group ownership (group ID) o ... ion performed on the file descriptor with the O_NONBLOCK flag clear would not block. Note that this flag has no effect for regular files and block devices; that is, I/O operations will (briefly) block when device activity is required, regardless of whet ... ntics might eventually be implemented, applications should not depend upon blocking behavior when specifying this flag for regular files and block devices. FIFO (名前付きパイプ) を扱う場合には fifo (7) も参照すること。 強制ファイルロック (mandatory file ... ... します。 -h --help 簡単なへルプを表示します。 書体 ドライバは Dutch, Swiss, Swiss-Narrow スケーラブル書体それぞれに対して、 Regular, Bold, Italic, Bold-Italic スタイルをサポートしています。 さらに Courier 書体の 8, 12 ポイント、 等幅 Elite 書体の 8, 10 ポ ... イントそれぞれに対して Regular, Bold, Italic スタイルがサポートされています。 これらのフォントを使用するためのフォント名を以下の表にまとめます: 書体 Regu ... ... --------- inode# file type d_reclen d_off d_name 2 directory 16 12 . 2 directory 16 24 .. 11 directory 24 44 lost+found 12 regular 16 56 a 228929 directory 16 68 sub 16353 directory 16 80 sub2 130817 directory 16 4096 sub3 プログラムのソース #define _GN ... (buf + bpos); printf("%8ld ", d->d_ino); d_type = *(buf + bpos + d->d_reclen - 1); printf("%-10s ", (d_type == DT_REG) ? "regular" : (d_type == DT_DIR) ? "directory" : (d_type == DT_FIFO) ? "FIFO" : (d_type == DT_SOCK) ? "socket" : (d_type == DT_LNK) ? ... ... --------- inode# file type d_reclen d_off d_name 2 directory 16 12 . 2 directory 16 24 .. 11 directory 24 44 lost+found 12 regular 16 56 a 228929 directory 16 68 sub 16353 directory 16 80 sub2 130817 directory 16 4096 sub3 プログラムのソース #define _GN ... (buf + bpos); printf("%8ld ", d->d_ino); d_type = *(buf + bpos + d->d_reclen - 1); printf("%-10s ", (d_type == DT_REG) ? "regular" : (d_type == DT_DIR) ? "directory" : (d_type == DT_FIFO) ? "FIFO" : (d_type == DT_SOCK) ? "socket" : (d_type == DT_LNK) ? ... ... her transfer further bytes or may result in an error (e.g., if the disk is now full). count が 0 で、 fd が通常のファイル (regular file) を参照している場合、 write () は後述のエラーのいずれかを検出した場合、失敗を返すことがある。 エラーが検出されなかった ... ) was attempted should be considered inconsistent. バグ POSIX.1-2008/SUSv4 セクション XSI 2.9.7 ("Thread Interactions with Regular File Operations") によると、 以下のすべての関数では、 通常ファイルもしくはシンボリックリンクに対する操作では POSIX.1-2008 ... ... イルかどうかを検査するには、以下のようにすればよい。 stat(pathname, &sb); if ((sb.st_mode & S_IFMT) == S_IFREG) { /* Handle regular file */ } 上記の形の検査はよくあるので、 POSIX では以下のマクロが定義されており、 st_mode のファイル種別の検査をより簡単に ... にはない) 上で挙げたコードは以下のように書き換えることができる。 stat(pathname, &sb); if (S_ISREG(sb.st_mode)) { /* Handle regular file */ } 上記のほとんどのファイル種別検査マクロの定義は、 機能検査マクロ _BSD_SOURCE (glibc 2.19 以前の場合)、 _SVID_SOUR ... ry\n"); break; case S_IFIFO: printf("FIFO/pipe\n"); break; case S_IFLNK: printf("symlink\n"); break; case S_IFREG: printf("regular file\n"); break; case S_IFSOCK: printf("socket\n"); break; default: printf("unknown?\n"); break; } printf("I-node number: ... ... イルかどうかを検査するには、以下のようにすればよい。 stat(pathname, &sb); if ((sb.st_mode & S_IFMT) == S_IFREG) { /* Handle regular file */ } 上記の形の検査はよくあるので、 POSIX では以下のマクロが定義されており、 st_mode のファイル種別の検査をより簡単に ... にはない) 上で挙げたコードは以下のように書き換えることができる。 stat(pathname, &sb); if (S_ISREG(sb.st_mode)) { /* Handle regular file */ } 上記のほとんどのファイル種別検査マクロの定義は、 機能検査マクロ _BSD_SOURCE (glibc 2.19 以前の場合)、 _SVID_SOUR ... ry\n"); break; case S_IFIFO: printf("FIFO/pipe\n"); break; case S_IFLNK: printf("symlink\n"); break; case S_IFREG: printf("regular file\n"); break; case S_IFSOCK: printf("socket\n"); break; default: printf("unknown?\n"); break; } printf("I-node number: ... ... イルかどうかを検査するには、以下のようにすればよい。 stat(pathname, &sb); if ((sb.st_mode & S_IFMT) == S_IFREG) { /* Handle regular file */ } 上記の形の検査はよくあるので、 POSIX では以下のマクロが定義されており、 st_mode のファイル種別の検査をより簡単に ... にはない) 上で挙げたコードは以下のように書き換えることができる。 stat(pathname, &sb); if (S_ISREG(sb.st_mode)) { /* Handle regular file */ } 上記のほとんどのファイル種別検査マクロの定義は、 機能検査マクロ _BSD_SOURCE (glibc 2.19 以前の場合)、 _SVID_SOUR ... ry\n"); break; case S_IFIFO: printf("FIFO/pipe\n"); break; case S_IFLNK: printf("symlink\n"); break; case S_IFREG: printf("regular file\n"); break; case S_IFSOCK: printf("socket\n"); break; default: printf("unknown?\n"); break; } printf("I-node number: ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。