Welcome![Sign In][Sign Up]
Location:
Search - unix stat

Search list

[Linux-UnixLinuxUART

Description: 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*/
Platform: | Size: 5289 | Author: Edward | Hits:

[WEB Codephp_stat0210

Description: ::软件简介:: 一个基于文本的PHP网站流量多用户统计系统,极容易调试,有四种显示方式,COOL! 主要功能及特色: (加**的地方为特色功能): + 基于PHP+文本,多用户,防止刷新,速度快,适用广泛 + * 提供本年度详细统计,时段统计,访客详情统计(包括referer数据和基于IP的地理位置信 息),访客pageview统计,客户端软件统计等等 + * 可设置是否打开多用户申请 + * 可设置是否防止刷新(切换基于访客人数和基于流览量的统计) + * 简洁存储方式,每个用户占用空间不超过4K + * 智能化的安装向导及用户申请向导 + * 方便完善的管理员/用户后台程序支持 + * 批量及逐个数据数据备份/恢复功能 + 使用javascript代码调用统计程序 + 可识别包括WinXP,MacOS,UNIX/LINUX/BSD,Opera,NetCaptor等多种软件 + 自建函数支持数据柱状图显示,不需GD绘图库 + 精致的统计界面和多种统计图标显示方案供选择 + 程序算法优化,程序及输出代码规范化 + 提供最新IP数据包-: : Software Introduction : : a text-based PHP Web traffic statistics multi-user system, it is easy debugging, there are four shows, COOL! the main functions and characteristics : (** increases for the local features) : Based on PHP version, multi-user, to prevent high speed, wide applicability* provide detailed statistics this year, time statistics, visitors details of Statistics (including referer data and IP-based geographic information), visitors pageview statistics, Statistics client software, etc.* can be set on whether to open up multi-user applications* settings to prevent refresh (switch-based visitors who Based on the number and volume of flow in relation to the Statistics)* concise storage, each user occupy a space no more than 4K* intelligent installation wizard applicatio
Platform: | Size: 263168 | Author: yi | Hits:

[Linux-Unixlinux

Description: 本程序通过系统调用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
Platform: | Size: 2048 | Author: qiufengy | Hits:

[Linux-UnixLinuxUART

Description: 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
Platform: | Size: 5120 | Author: Edward | Hits:

[Communication-Mobileserial

Description: 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> /*错误号定义*/ #define TRUE 1 #define FALSE 0 /***@brief 设置串口通信速率 *@-include <stdio.h>/* Standard input and output definitions* /# include <stdlib.h>/* Standard function library definition* /# include <unistd.h>/* Unix standard function definition* /# include <sys/types.h>/** /# Include <sys/stat.h>/** /# Include <fcntl.h>/* File control definition* /# include <termios.h>/* PPSIX terminal control definitions* /# include <errno.h>/* Error number definitions* /# define TRUE 1# define FALSE 0 /***brief set of serial communication rate* @
Platform: | Size: 9216 | Author: nameblue | Hits:

[Linux-UnixUNIXCcode

Description: 用C语言编写的Unix代码实例 供大家参考 -#include <sys/sem.h> #include <sys/types.h> #include <sys/ipc.h> #include <stdio.h> #include <sys/stat.h> #define VERIFYERR(a, b) if (a) fprintf(stderr, " s failed.\n", b) else fprintf(stderr, " s success.\n", b) void main(int argc, char*argv[]) { int semid, index, i struct semid_ds ds unsigned short array[100] if (argc != 4) return semid = atoi(argv[1]) index = atoi(argv[2]) if (argv[3][0] == c ) { /* 创建信号量*/ VERIFYERR(semget(semid, index, 0666|IPC_CREAT|IPC_EXCL) < 0, "Create sem") } else if (argv[3][0] == d ) { /* 删除消息队列*/ VERIFYERR(semctl(semid, 0, IPC_RMID, NULL) < 0, "Delete sem") } else if (argv[3][0] == v ) { /* 查看信号量信息*/ fprintf(stderr, "T ID INDEX SEMVAL SEMPID SEMNCNT SEMZCNT\n") fprintf(stderr, "s 6d 6d 10d 10d 10d 10d\n", semid, /* 标识号*/ index, /* 信号量序号*/ semctl(semid, index, GETVAL), /* 信号量值*/ semct > Downloads > 源码/资料
Platform: | Size: 150528 | Author: netdavid | Hits:

[Linux-Unixmydu.tar

Description: 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 }
Platform: | Size: 1024 | Author: aasdf | Hits:

[Linux-Unixls

Description: 使用opendir、readdir、closedir等函数来操作目录,使用stat函数来获取文件信息。编写一个功能完整的实现Unix/Linux下ls命令的程序,并且该程序实现了-l(长格式)选项功能,并能在Unix/Linux环境下正确地运行。-Use opendir, readdir, close to operate functions such as directory, use the stat function to get file information. Write a full-featured implementation of programs Unix/Linux under the ls command, and the program implements the-l (long format) option function, and can run correctly under Unix/Linux environment.
Platform: | Size: 1024 | Author: Selena Wang | Hits:

CodeBus www.codebus.net