CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - linux stat
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - linux stat - List
[
Linux-Unix
]
linux
DL : 0
本程序通过系统调用stat读出文件大小属性,并显示输出。 linux文件系统调用 编译命令:cc dir.c 运行命令:./a.out
Date
: 2008-10-13
Size
: 1.98kb
User
:
qiufengy
[
Linux-Unix
]
LinuxUART
DL : 0
linux 下串口编程 #include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #include <unistd.h> /*Unix标准函数定义*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定义*/ #include <termios.h> /*PPSIX终端控制定义*/ #include <errno.h> /*错误号定义*/ /***@brief 设置串口通信速率 *@param fd 类型 int 打开串口的文件句柄 *@param speed 类型 int 串口速度 *@return void*/
Date
: 2008-10-13
Size
: 5.17kb
User
:
Edward
[
Linux-Unix
]
stat
DL : 0
linux性能统计的源代码,包括CPU、内存和文件系统的利用率的统计。
Date
: 2008-10-13
Size
: 1.52kb
User
:
zhubo
[
Linux-Unix
]
linux
DL : 0
本程序通过系统调用stat读出文件大小属性,并显示输出。 linux文件系统调用 编译命令:cc dir.c 运行命令:./a.out-This procedure stat through the system call to read out the file size attribute, and display output. linux file system commands invoke the compiler: cc dir.c run the command:./a.out
Date
: 2026-01-10
Size
: 2kb
User
:
qiufengy
[
Linux-Unix
]
LinuxUART
DL : 0
linux 下串口编程 #include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #include <unistd.h> /*Unix标准函数定义*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定义*/ #include <termios.h> /*PPSIX终端控制定义*/ #include <errno.h> /*错误号定义*/ /***@brief 设置串口通信速率 *@param fd 类型 int 打开串口的文件句柄 *@param speed 类型 int 串口速度 *@return void*/ -linux serial port programming under# include
Date
: 2026-01-10
Size
: 5kb
User
:
Edward
[
Linux-Unix
]
stat
DL : 0
linux性能统计的源代码,包括CPU、内存和文件系统的利用率的统计。-linux source code performance statistics, including CPU, memory and file system utilization statistics.
Date
: 2026-01-10
Size
: 1kb
User
:
zhubo
[
Linux-Unix
]
FTPService
DL : 0
ftp服务器的主要功能是上传下载文件以达到数据共享的目的。在linux底下开发ftp服务器旨在帮助学员综合运用linux初级编程与linux高级编程所学到的知识。如:守护进程的编写,进程间通讯, 管道,socket编程,文件I/O标准库函数与系统调用,以及文件权限管理等等。具体操作详见压缩包里面的文档有操作服务手册,可以控制上传和下载的速度。-USER PASS CWD,XCWD CDUP REIN QUIT PORT PASV TYPE MODE RETR STOR APPE REST RNFR,RNTO ABOR DELE RMD,XRMD MKD,XMKD PWD,XPWD LIST NLST SYST STAT SIZE HELP NOOP
Date
: 2026-01-10
Size
: 286kb
User
:
[
Linux-Unix
]
cpu_linux
DL : 0
linux 下编程获取系统的cpu使用情况,主要读取proc文件下的stat文件 -access programming under linux system cpu usage, the main proc file read the stat file
Date
: 2026-01-10
Size
: 6kb
User
:
李密
[
Linux-Unix
]
statfs
DL : 0
Linux 环境下,利用statfs结构里面的成员去计算当前可用的磁盘空间-Linux environment, the use of which members of the statfs structure to calculate the current available disk space
Date
: 2026-01-10
Size
: 4kb
User
:
小球
[
Linux-Unix
]
mydu.tar
DL : 0
unix du命令的简单实现,主要可以学习glob函数的使用-static int64_t mydu_getblocks(const char*path) { int i int64_t sum=0 static struct stat stat_result glob_t glob_result static int ret static char fullpath[PATHMAX] if (lstat(path, &stat_result)<0) { perror("lstat()") return 0 } if (!S_ISDIR(stat_result.st_mode)) { return stat_result.st_blocks } /************************************************/ snprintf(fullpath, PATHMAX, " s/*", path) ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT, NULL, &glob_result) if (ret!=0) { perror("glob()") return 0 } snprintf(fullpath, PATHMAX, " s/.*", path) ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT|GLOB_APPEND, NULL, &glob_result) if (ret!=0) { perror("glob()") return 0 } sum+= stat_result.st_blocks for (i=0 i<glob_result.gl_pathc ++i) { if (isvalid(glob_result.gl_pathv[i])) { sum+= mydu_getblocks(glob_result.gl_pathv[i]) } } globfree(&glob_result) return sum }
Date
: 2026-01-10
Size
: 1kb
User
:
aasdf
[
Linux-Unix
]
hw2
DL : 0
1:用mmap映射方法复制文件 2:显示linux系统中该文件的状态(group/stat/..)-1: copy files with mmap mapping 2: linux system displays the status of the file (group/stat/..)
Date
: 2026-01-10
Size
: 1kb
User
:
林速度
[
Linux-Unix
]
filesystem
DL : 0
使用ftw函数对目录进行遍历,函数原型是: int ftw(const char*dirpath, int(*fn)(const char*fpath, const struct stat *sb, int typeflag), int nopenfd) ftw函数遍历位于dirpath目录下的目录树,往下一层层地递归式遍历子目录 -Deepen the understanding of linux file system
Date
: 2026-01-10
Size
: 79kb
User
:
yu
[
Linux-Unix
]
ADTest
DL : 0
6410 ADC测试 #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/fs.h> #include <errno.h> #include <string.h> #include <qlineedit.h> #include <qmessagebox.h> -6410 test #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/fs.h> #include <errno.h> #include <string.h> #include <qlineedit.h> #include <qmessagebox.h>
Date
: 2026-01-10
Size
: 63kb
User
:
xiankongyijue
[
Linux-Unix
]
led-test
DL : 0
6410 led测试 include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/ioctl.h> /* 瀹氫箟骞绘暟 */ #define MEMDEV_IOC_MAGIC k -include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/ioctl.h> /* 瀹氫箟骞绘暟*/ #define MEMDEV_IOC_MAGIC k
Date
: 2026-01-10
Size
: 3kb
User
:
xiankongyijue
[
Linux-Unix
]
td1
DL : 0
Linux编程 查看文件属性 实现ls -il命令 opendir操作 关键函数:stat(2), opendir(3), getgrgid(3), getpwuid(3), ctime(3).-Linux programming Properties files Discution the links Access to Records stat(2), opendir(3), getgrgid(3), getpwuid(3), ctime(3).
Date
: 2026-01-10
Size
: 51kb
User
:
The king C
[
Linux-Unix
]
stat
DL : 0
stat -- display file or file system status for Linux.
Date
: 2026-01-10
Size
: 5kb
User
:
zingjinvie
[
Linux-Unix
]
NetStatService
DL : 0
Net Stat Service Source Code for Linux.
Date
: 2026-01-10
Size
: 1kb
User
:
ceimuivue
[
Linux-Unix
]
stat
DL : 0
stddev stats for Linux v2.13.6.
Date
: 2026-01-10
Size
: 1kb
User
:
gerlersao
[
Linux-Unix
]
stat
DL : 0
clk lookup clkdev alloc for Linux v2.13.6.
Date
: 2026-01-10
Size
: 1kb
User
:
xjfunjon
[
Linux-Unix
]
stat
DL : 0
Linux Device Driver: return(vroot result == 0) .
Date
: 2026-01-10
Size
: 1kb
User
:
yenyongtai
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.