1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Japanese Version Copyright (c) 2006-2007 Yuichi SATO
26 .\" all rights reserved.
27 .\" Translated 2006-10-14 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
28 .\" Updated & Modified 2007-01-08 by Yuichi SATO, LDP v2.43
29 .\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
31 .TH FACCESSAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
33 faccessat \- ディレクトリファイルディスクリプタから相対的な位置にある
37 .B #include <fcntl.h> /* AT_* 定数の定義 */
38 .B #include <unistd.h>
40 .BI "int faccessat(int " dirfd ", const char *" pathname ", int " \
41 mode ", int " flags );
46 .RB ( feature_test_macros (7)
56 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
65 システムコールは、この man ページで説明している違いがある以外は、
73 で参照されるディレクトリからの相対パス名として解釈される
75 では、相対パスは呼び出し元プロセスのカレントワーキングディレクトリからの
88 カレントワーキングディレクトリからの相対パス名として解釈される。
96 は以下の値を 0 個以上 OR して作られる。
99 実効 (effective) ユーザ ID と実効グループ ID を使って、
107 .B AT_SYMLINK_NOFOLLOW
109 がシンボリックリンクの場合は、それを辿るのではなく、
112 成功した場合 (全ての要求された許可が得られたら)、
138 がディレクトリ以外のファイルを参照するファイルディスクリプタである。
141 は Linux カーネル 2.6.16 で追加された。
152 .B AT_SYMLINK_NOFOLLOW
155 の glibc ラッパー関数で実際に実装されている。
156 これらのフラグのいずれかが指定された場合、
165 .BR path_resolution (7),