glibc源码分析之chmod系列函数
来源:互联网 发布:mac开机后怎么换系统 编辑:程序博客网 时间:2024/05/18 16:35
glibc中关于chmod系列的函数有chmod,fchmod。它们都是用于改变文件的属性。
在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)
阅读全文
1 0
- glibc源码分析之chmod系列函数
- glibc源码分析之stat系列函数
- glibc源码分析之stat64系列函数
- glibc源码分析之truncate系列函数
- glibc源码分析之chown系列函数
- glibc源码分析之utime系列函数
- glibc源码分析之statfs系列函数
- glibc源码分析之access函数
- glibc源码分析之rename函数
- glibc函数exit源码分析
- glibc源码分析之普通文件读写
- glibc源码分析之getpriority,setpriority,nice
- glibc源码分析之用户管理
- glibc 系列之strlen()函数
- [glibc源码分析] bzero
- strlen glibc 源码分析
- glibc--memcpy源码分析
- glibc--strcpy源码分析
- 浅谈大型分布式系统Redis内存数据库实践
- HDU 6130 Kolakoski
- 极值问题-(斐波那契数列)
- 2017-8-15
- ZOJ 3432 Find the Lost Sock(模拟)
- glibc源码分析之chmod系列函数
- nmcli中的几种模式
- java后端学习流程
- 数据库不允许保存更改
- POJ 1383 Labyrinth (技巧BFS)
- 大小端
- leetcode --16. 3Sum Closest
- 数据结构-树
- HDUOJ 2011 多项式求和