码迷,mamicode.com
首页 >  
搜索关键字:stat函数    ( 77个结果
【转】windows c++获取文件信息——_stat函数的使用
_stat函数的功能_stat函数用来获取指定路径的文件或者文件夹的信息。函数声明int _stat( const char *path, struct _stat *buffer );参数:path——文件或者文件夹的路径buffer——获取的信息保存在内存中返回值:正确——返回0错误——...
分类:编程语言   时间:2015-07-27 11:02:44    阅读次数:854
【转】linux C++ 获取文件信息 stat函数详解
stat函数讲解表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值: 执行成功则返回0,失败返....
分类:编程语言   时间:2015-07-27 10:48:27    阅读次数:161
linux stat系统调用,获取文件信息。
stat 函数原型:int stat(const char *path, struct stat *buf);struct stat 说明struct stat { mode_t st_mode; //文件对应的模式,文件,目录等 ino_t st_ino; //inode节点号 dev_t st_d...
分类:系统相关   时间:2015-07-08 16:28:14    阅读次数:142
C语言:stat,fstat和lstat函数
这三个函数的功能是一致的,都用于获取文件相关信息,但应用于不同的文件对象。对于函数中给出pathname参数,stat函数返回与此命名文件有关的信息结构,fstat函数获取已在描述符fields上打开文件的有关信息,lstat函数类似于stat但是当命名的文件是一个符号链接时,lstat返回该符号链...
分类:编程语言   时间:2015-06-24 14:12:16    阅读次数:171
Unix环境之文件和目录
文件结构stat——下面三个函数可以获取文件的状态信息:#include int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf);stat函数指定文件路径,fstat指定文件...
分类:其他好文   时间:2015-06-19 11:57:24    阅读次数:177
(转)linux stat函数讲解
Linux stat函数讲解:表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值: 执行成功则....
分类:系统相关   时间:2015-06-01 16:05:36    阅读次数:151
UNIX文件的权限之“设置用户ID位”
用stat函数可以获取一个文件的状态信息,原型是这样的:int stat(const char *path, struct stat *buf); 其中结构体stat的结构:struct stat { dev_t st_dev; /* ID of ...
分类:其他好文   时间:2015-04-29 21:26:52    阅读次数:191
通过DBMS_STAT函数关闭执行任务
通过以下语句查看到发生物理读较大的SQL语句selectexecutions, disk_reads, buffer_gets, round((buffer_gets-disk_reads)/buffer_gets,2)Hit_radio, round(disk_reads/executions,2)reads_per_run, sql_text, sql_id, last_load_time Fromv$sqlarea Whereexecutions>0 andb..
分类:数据库   时间:2015-04-20 19:01:49    阅读次数:237
stat 函数讲解
表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf); 函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值: 执行成功则返回0,失败返回-1,错误代码...
分类:其他好文   时间:2015-03-10 00:06:46    阅读次数:199
UNIX高级环境编程(3)Files And Directories - stat函数,文件类型,和各种ID
在前面的两篇,我们了解了IO操作的一些基本操作函数,包括open、read和write。 在本篇我们来学习一下文件系统的其他特性和一个文件的属性,涉及的函数功能包括:查看文件的所有属性;改变文件所有者;改变文件权限;操作文件夹。 我们还会了解一些文件系统相关的数据结构和符号链接(symbol...
分类:其他好文   时间:2015-02-17 23:34:24    阅读次数:170
77条   上一页 1 ... 5 6 7 8 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!