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

Search list

[Linux-Unixlinux

Description: 本程序通过系统调用stat读出文件大小属性,并显示输出。 linux文件系统调用 编译命令:cc dir.c 运行命令:./a.out
Platform: | Size: 2031 | 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*/
Platform: | Size: 5289 | Author: Edward | Hits:

[Linux-Unixstat

Description: linux性能统计的源代码,包括CPU、内存和文件系统的利用率的统计。
Platform: | Size: 1560 | Author: zhubo | Hits:

[PHP商家点评插件有地图版插件for UCHome 1.5

Description: 将文件拷贝到UCH安装目录(不会覆盖任何UCH文件). 其中config.shop.inc.php文件需要有写权限(linux). 运行shop_install.php 打开shop.php文件。将 $_SC['GoogleAPI']='ABQIAAAAIl6BzjiDCz90JrLDCFco6xRsRMjB2wv1Y7bZb-CPY4a_zZ8tAhQljtAew1TctFXLCYxRjkaGoD8jzA';替换成您的Google KYE。如您在本地调试,可以直接用以上KEY。如您还没有google KEY 请到 http://code.google.com/intl/zh-CN/apis/maps/signup.html 免费申请! 地图显示您想要的地方的方法: 首先打开Google地图,在上面寻找一个地址,然后上下左右移动地图,让这个地址正好处于地图的正中心位置,当您想寻找坐标位置已经处于地图的中心位置的时候,拷贝并粘贴以下代码到你的浏览器地址栏:   javascript:void(prompt('',gApplication.getMap().getCenter())); 然后回车一下。这时,你将得到一个弹出式的坐标,这个坐标就是你需要找的经度和纬度。 1 在admincp.php: 第一处: $acs = array( array('index','config','privacy', 'spam', 'network', 'usergroup', 'credit', 'profilefield', 'profield', 'ad', 'sitefeed', 'userapp', 'app'), array('tag', 'mtag', 'space', 'name', 'report'), array('cache', 'task', 'censor', 'stat', 'block', 'cron'), array('blog','album', 'pic', 'comment', 'thread', 'post', 'doing', 'feed', 'share') ); 修改成(最后一行array('base','pingdao','neirong','shop','reviews','shoptags')为增加的。同时记得在上一行'share')后加个逗号 ) $acs = array( array('index','config', 'privacy', 'spam', 'network', 'usergroup', 'credit', 'profilefield', 'profield', 'ad', 'sitefeed', 'userapp', 'app'), array('tag', 'mtag', 'space', 'name', 'report'), array('cache', 'task', 'censor', 'stat', 'block', 'cron'), array('blog', 'album', 'pic', 'comment', 'thread', 'post', 'doing', 'feed', 'share'), array('base','pingdao','neirong','shop','reviews','shoptags') ); 第二处: for($i=0; $i<5; $i++) {//由原来的3改成现在的5,其他不用修改 foreach ($acs[$i] as $value) { if($isfounder || $megroup['manage'.$value]) { $menus[$i][$value] = 1; $_SGLOBAL['usergroup'][$_SGLOBAL['member']['groupid']]['manage'.$value] = 1; } } } 第三处: if(empty($_GET['ac']) || (!in_array($_GET['ac'], $acs[0]) && !in_array($_GET['ac'], $acs[1]) && !in_array($_GET['ac'], $acs[2]) && !in_array($_GET['ac'], $acs[3]) && !in_array($_GET['ac'], $acs[4]) && !in_array($_GET['ac'], $acs[5]))) { //加上 && !in_array($_GET['ac'], $acs[4] && !in_array($_GET['ac'], $acs[5]),注意修改完后$acs[5]后面应有三个 ) 符号 3 admin/tp/header.htm: <!--{eval $_TPL['menunames'] = array( 'config' => '站点设置', 后加上: 'base' => '积分与审核', 'pingdao' => '频道设置', 'shoptags' => '标签管理', 'shop' => '商铺管理', 'neirong' => '点评内容', 'reviews' => '回应内容', 4 admin/tpl/side.htm开始处加入: <!--{if $menus[3]}--> <div class="block style1"> <h2>点评系统</h2> <ul class="folder"> <!--{loop $acs[4] $value}--> <!--{if $menus[4][$value]}--> <!--{if $ac==$value}--><li class="active"><!--{else}--><li><!--{/if}--><a href="admincp.php?ac=$value">{$_TPL[menunames][$value]}</a></li> <!--{/if}--> <!--{/loop}--> </ul> </div> <!--{/if}--> 5 在侧栏增加链接。 template/default/header.htm中找到 <li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li> 加上 <li><img src="image/icon/shop.gif"><a href="shop.php">商家点评</a><em><a href="shop.php?ac=new">发布</a></em></li> 更新缓存。 如果安装后出现白屏现象,请重新检查所安装文件是否有语法错误。然后通过删除UCH安装目录下的data/tpl_cache/目录下的文件,此功能相当于更新缓存。 运行shopinstall.php 在header.htm相应的位置加上<li><img src="image/icon/shop.gif" alt="通讯录" /><a href="shop.php">通讯录</a></li> admin/tpl/config.htm 找到<tr> <th>未认证实名权限</th> <td> <table> <tr> <td width="120">允许加好友</td> <td> <input type="radio" name="config[name_allowfriend]" value="1"<!--{if $configs[name_allowfriend] == 1}--> checked<!--{/if}-->>是 <input type="radio" name="config[name_allowfriend]" value="0"<!--{if $configs[name_allowfriend] != '1'}--> checked<!--{/if}-->>否 </td></tr> 在其下面添加 <tr> <td width="120">允许商铺点评</td> <td> <input type="radio" name="config[name_allowshop]" value="1"<!--{if $configs[name_allowshop] == 1}--> checked<!--{/if}-->>是 <input type="radio" name="config[name_allowshop]" value="0"<!--{if $configs[name_allowshop] != '1'}--> checked<!--{/if}-->>否 </td></tr>
Platform: | Size: 111029 | Author: tianfuo@sina.com | 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:

[Linux-Unixstat

Description: linux性能统计的源代码,包括CPU、内存和文件系统的利用率的统计。-linux source code performance statistics, including CPU, memory and file system utilization statistics.
Platform: | Size: 1024 | Author: zhubo | Hits:

[Web ServerWebServer

Description: 一个多线程的WEB服务器,能够迅速的架设简单WEB服务,可自定义端口,显示连接状态,统计数据流量。但功能还有待加强,如添加日志功能,过滤访问IP等.-A Multithread WEB Server, It Could span simple WEB server quickly. You can defined port for youself, it s can show the state of network connected.it also stat. the data-stream.
Platform: | Size: 1165312 | Author: 马跃 | Hits:

[Linux-UnixFTPService

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

[Linux-Unixcpu_linux

Description: linux 下编程获取系统的cpu使用情况,主要读取proc文件下的stat文件 -access programming under linux system cpu usage, the main proc file read the stat file
Platform: | Size: 6144 | Author: 李密 | Hits:

[Graph programANewMethodofHybridModelingBasedonMultipleRangeImag

Description: 为了快速精确地对一个实体进行的三维重建, 提出了一种新的混合建模方法. 该方法利用同一实体在不同视 点下的多幅深度图像, 根据它们之间颜色和纹理的相关性, 通过逆投影变换, 可将图像中象素点映射到三维空间中的正 确位置. 然后再经模型重建和重投影, 可获取实体在任意视点下的图像. 实验结果表明, 这种建模方法具有复杂度恒定、 获取图像真实感强等优点, 适用于形状、 结构复杂的物体的重建.-: In o rder to reconst ruct th ree di mensi on model of an object, a new method of hybr id modeling is p resented . Th is method use mut i p le range i mage of different viewpo int, acco rding to the co lo r and texture, the p ixel po int can be mapped to co r rect po sit i on in th ree di mensi on space by the backp ro ject t ransfo rmat i on. Then the i mage can be go t in any viewpo int by modeling reconst ruct i on and rep ro ject i on. Exper i ments has p roved that th is method can acquire h igh realist ic i mage and has stat ic comp lexit i on. It can be used to reconst ruct some objects w ith comp licated shape and topo logies
Platform: | Size: 129024 | Author: christine | Hits:

[Linux-Unixstatfs

Description: Linux 环境下,利用statfs结构里面的成员去计算当前可用的磁盘空间-Linux environment, the use of which members of the statfs structure to calculate the current available disk space
Platform: | Size: 4096 | Author: 小球 | Hits:

[Embeded LinuxlinuxShellCode

Description: Linux shell 中多个命令的源代码,如:CP,RM,SU ,UNAME ,mv ,pwd ,ln ,cut ,touch ,unlink, stat ,rmdir ,mkdir等终端命令的源代码-Linux shell commands in multiple source code, such as: CP, RM, SU, UNAME, mv, pwd, ln, cut, touch, unlink, stat, rmdir, mkdir and other terminal command source code
Platform: | Size: 220160 | Author: 李工 | 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-Unixfilesystem

Description: 使用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
Platform: | Size: 80896 | Author: yu | Hits:

[Linux-Unixstat

Description: stat -- display file or file system status for Linux.
Platform: | Size: 5120 | Author: zingjinvie | Hits:

[Linux-Unixstat

Description: stddev stats for Linux v2.13.6.
Platform: | Size: 1024 | Author: gerlersao | Hits:

[Linux-Unixstat

Description: clk lookup clkdev alloc for Linux v2.13.6.
Platform: | Size: 1024 | Author: xjfunjon | Hits:

[Linux-Unixstat

Description: Linux Device Driver: return(vroot result == 0) .
Platform: | Size: 1024 | Author: yenyongtai | Hits:
« 12 »

CodeBus www.codebus.net