Skip to Content
LINUX系統程式設計 第二版
book

LINUX系統程式設計 第二版

by Robert Love
December 2013
Intermediate to advanced
496 pages
8h 57m
Chinese
GoTop Information, Inc.
Content preview from LINUX系統程式設計 第二版
檔案與目錄的管理
|
273
EBADF
fd
是無效的(僅適用於
flistxattr()
)。
EFAULT
path
list
是一個無效的指標。
ELOOP
path
中包含了太多的符號連結(僅適用於
listxattr()
llistxattr()
)。
ENAMETOOLONG
path
太長(僅適用於
listxattr()
llistxattr()
)。
ENOENT
path
中的一個元件並不存在(僅適用於
listxattr()
llistxattr()
)。
ENOMEM
記憶體的可用空間不足以完成此項要求。
ENOTDIR
path
中的一個元件並非目錄(僅適用於
listxattr()
llistxattr()
)。
ENOTSUPP
path
fd
所在的檔案系統並不支援延伸屬性。
ERANGE
size
為非零值,但是大小不足以保存整份清單。應用程式可以再進行一次系統呼
叫,但是這次要把
size
設成
0
,以便取得清單的實際大小。然後程式可以調整
value
的大小,以便再進行一次系統呼叫。
移除一個延伸屬性
最後這三類系統呼叫可用於從特定的檔案移除所指定的鍵:
#include <sys/types.h>
#include <attr/xattr.h>
int removexattr (const char *path, const char *key);
int lremovexattr (const char *path, const char *key);
int fremovexattr (int fd, const char *key); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

優雅的SciPy|Python科學研究的美學

優雅的SciPy|Python科學研究的美學

Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9789862769812