摘要: 阅读android的init代码中uevent部分时,发现openat系统调用。小记一下: #include int openat(int dirfd, const char *pathname, int flags); int openat(int dirfd, const char *pathname, int flags, mode_t mode);openat系统调用与open功能类似,但用法上有以下不同:1. 如果pathname是相对地址,以dirfd作为相对地址寻址目录。而open是从当前目录开始寻址的。2. 如果pathname是相对地址,且dirfd的值是AT_... 阅读全文
posted @ 2013-01-28 20:49 sammei 阅读(675) 评论(0) 推荐(0) 编辑