JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... なければならない。 返り値 成功した場合は 0 が返される。エラーの場合は -1 が返され、 errno が適切に設定される。 エラー EACCES pathname を含んでいるディレクトリへの書き込みアクセスが プロセスの実効 (effective) UID に対して許可されていないか、 pathname に含ま ... れているディレクトリのどれかに検索 (実行) 許可がないか、 pathname に至るまでのディレクトリのいずれかに対する検索許可がなかった。 ( path_resolution (7) も参照のこと) EBUSY pathname がシステ ... ムや別のプロセスにより使用中で削除することができない。 Linux では、 pathname がマウントポイントとして使用されているか、 呼び出したプロセスのルートディレクトリであることを意味する。 EFAULT pathname が ... ... < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mkdirat(int dirfd , const char * pathname , mode_t mode ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mkdirat (): glibc 2.10 以降: _POSIX_C_S ... OURCE >= 200809L glibc 2.10 より前: _ATFILE_SOURCE 説明 mkdir () は pathname で示される名前のディレクトリを作成しようとする。 The argument mode specifies the mode for the new directory (see inode (7) ... D ビットがセットされる。 mkdirat() mkdirat () システムコールは mkdir () と全く同様に動作するが、以下で説明する点が異なる。 pathname で指定されたパス名が相対パスの場合、このパス名はファイルディスクリプター dirfd が参照するディレクトリに対する相対パスと解釈 ... ... < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mkdirat(int dirfd , const char * pathname , mode_t mode ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mkdirat (): glibc 2.10 以降: _POSIX_C_S ... OURCE >= 200809L glibc 2.10 より前: _ATFILE_SOURCE 説明 mkdir () は pathname で示される名前のディレクトリを作成しようとする。 The argument mode specifies the mode for the new directory (see inode (7) ... D ビットがセットされる。 mkdirat() mkdirat () システムコールは mkdir () と全く同様に動作するが、以下で説明する点が異なる。 pathname で指定されたパス名が相対パスの場合、このパス名はファイルディスクリプター dirfd が参照するディレクトリに対する相対パスと解釈 ... ... clude < fcntl.h > /* AT_* 定数の定義 */ #include < unistd.h > int unlinkat(int dirfd , const char * pathname , int flags ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): unlinkat (): glibc 2.10 以降: _POSIX_C_SO ... じ動作をする (どちらと同じになるかは flags に AT_REMOVEDIR フラグが指定されたかにより決まる) が、以下で説明する点が異なる。 pathname で指定されたパス名が相対パスの場合、このパス名はファイルディスクリプター dirfd が参照するディレクトリに対する相対パスと解釈 ... rmdir (2) に相対パス名を渡した場合のように、呼び出したプロセスのカレントワーキングディレクトリに対する相対パスではない)。 pathname で指定されたパス名が相対パスで、 dirfd が特別な値 AT_FDCWD の場合、 ( unlink () や rmdir (2) と同様に) pathname は呼び出し ... ... clude < fcntl.h > /* AT_* 定数の定義 */ #include < unistd.h > int unlinkat(int dirfd , const char * pathname , int flags ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): unlinkat (): glibc 2.10 以降: _POSIX_C_SO ... じ動作をする (どちらと同じになるかは flags に AT_REMOVEDIR フラグが指定されたかにより決まる) が、以下で説明する点が異なる。 pathname で指定されたパス名が相対パスの場合、このパス名はファイルディスクリプター dirfd が参照するディレクトリに対する相対パスと解釈 ... rmdir (2) に相対パス名を渡した場合のように、呼び出したプロセスのカレントワーキングディレクトリに対する相対パスではない)。 pathname で指定されたパス名が相対パスで、 dirfd が特別な値 AT_FDCWD の場合、 ( unlink () や rmdir (2) と同様に) pathname は呼び出し ... ... thname , int flags ); int open(const char * pathname , int flags , mode_t mode ); int creat(const char * pathname , mode_t mode ); int openat(int dirfd , const char * pathname ... , int flags ); int openat(int dirfd , const char * pathname , int flags , mode_t mode ); /* Documented separately, in openat2 (2): */ int openat2(int dirfd , const char * pathname , ... 以降: _POSIX_C_SOURCE >= 200809L glibc 2.10 より前: _ATFILE_SOURCE 説明 The open () system call opens the file specified by pathname . If the specified file does not exist, it may optionally (if O_CREAT is specified in flags ) be created by open (). The r ... ... thname , int flags ); int open(const char * pathname , int flags , mode_t mode ); int creat(const char * pathname , mode_t mode ); int openat(int dirfd , const char * pathname ... , int flags ); int openat(int dirfd , const char * pathname , int flags , mode_t mode ); /* Documented separately, in openat2 (2): */ int openat2(int dirfd , const char * pathname , ... 以降: _POSIX_C_SOURCE >= 200809L glibc 2.10 より前: _ATFILE_SOURCE 説明 The open () system call opens the file specified by pathname . If the specified file does not exist, it may optionally (if O_CREAT is specified in flags ) be created by open (). The r ... ... thname , int flags ); int open(const char * pathname , int flags , mode_t mode ); int creat(const char * pathname , mode_t mode ); int openat(int dirfd , const char * pathname ... , int flags ); int openat(int dirfd , const char * pathname , int flags , mode_t mode ); /* Documented separately, in openat2 (2): */ int openat2(int dirfd , const char * pathname , ... 以降: _POSIX_C_SOURCE >= 200809L glibc 2.10 より前: _ATFILE_SOURCE 説明 The open () system call opens the file specified by pathname . If the specified file does not exist, it may optionally (if O_CREAT is specified in flags ) be created by open (). The r ... ... > int mknod(const char * pathname , mode_t mode , dev_t dev ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mknodat(int dirfd , co ... nst char * pathname , mode_t mode , dev_t dev ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mknod (): _XOPEN_SOURCE >= ... libc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE 説明 システムコール mknod () は pathname という名前のファイルシステムノード (ファイル、デバイススペシャルファイル、名前付きパイプ) を、 属性 mode と dev の指定にし ... ... > int mknod(const char * pathname , mode_t mode , dev_t dev ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < sys/stat.h > int mknodat(int dirfd , co ... nst char * pathname , mode_t mode , dev_t dev ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): mknod (): _XOPEN_SOURCE >= ... libc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE 説明 システムコール mknod () は pathname という名前のファイルシステムノード (ファイル、デバイススペシャルファイル、名前付きパイプ) を、 属性 mode と dev の指定にし ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。