glibc源码分析之chmod系列函数
2017-08-15 19:39
1356 查看
glibc中关于chmod系列的函数有chmod,fchmod。它们都是用于改变文件的属性。
在glibc中chmod和fchmod两个函数都是使用脚本生成的系统调用的封装函数。
它们生成的.S文件内容分别为:
在glibc中chmod和fchmod两个函数都是使用脚本生成的系统调用的封装函数。
它们生成的.S文件内容分别为:
#define SYSCALL_NAME chmod #define SYSCALL_NARGS 2 #define SYSCALL_SYMBOL __chmod #define SYSCALL_CANCELLABLE 0 #define SYSCALL_NOERRNO 0 #define SYSCALL_ERRVAL 0 #include <syscall-template.S> weak_alias (__chmod, chmod) hidden_weak (chmod)
#define SYSCALL_NAME fchmod #define SYSCALL_NARGS 2 #define SYSCALL_SYMBOL __fchmod #define SYSCALL_CANCELLABLE 0 #define SYSCALL_NOERRNO 0 #define SYSCALL_ERRVAL 0 #include <syscall-template.S> weak_alias (__fchmod, fchmod) hidden_weak (fchmod)
相关文章推荐
- glibc源码分析之stat系列函数
- glibc源码分析之chown系列函数
- glibc源码分析之utime系列函数
- glibc源码分析之stat64系列函数
- glibc源码分析之statfs系列函数
- glibc源码分析之truncate系列函数
- Nginx源码分析系列3:根据时间转化成年月日时分秒的函数
- Linux-0.11内核源码分析系列:内存管理get_empty_page()与put_page()函数分析
- Linux-0.11内核源码分析系列:内存管理get_empty_page()与put_page()函数分析
- Linux-0.11内核源码分析系列:内存管理try_to_share()与share_page()函数分析
- jQuery-1.9.1源码分析系列(十六)ajax——ajax处理流程以及核心函数
- Muduo网络库源码分析(三)线程间使用eventfd通信和EventLoop::runInLoop系列函数
- Linux-0.11内核源码分析系列:内存管理free_page()与free_page_tables()函数分析
- Linux-0.11内核源码分析系列:内存管理try_to_share()与share_page()函数分析
- Linux-0.11内核源码分析系列:内存管理copy_page_tables()函数分析
- Linux-0.11内核源码分析系列:内存管理up_wp_page()与do_wp_page()函数分析
- Linux-0.11内核源码分析系列:内存管理free_page()与free_page_tables()函数分析
- Linux-0.11内核源码分析系列:进程调度sleep_on()函数分析
- Linux-0.11内核源码分析系列:内存管理get_free_page()函数分析
- Linux下库函数动态链接过程分析-结合glibc-2.11源码