Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1113667
  • 博文数量: 254
  • 博客积分: 1242
  • 博客等级: 少尉
  • 技术积分: 1581
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-03 21:49
文章分类

全部博文(254)

文章存档

2017年(16)

2016年(4)

2013年(94)

2012年(140)

发布时间:2012-12-17 16:49:34

  Book DescriptionEverything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins — people with years of active participation in the Linux community — Linux in a Nutshell, Sixth Edition, thoroughly covers programming tools, s......【阅读全文】

阅读(1040) | 评论(0) | 转发(0)

发布时间:2012-12-17 09:33:19

对多个输入文件进行链接得到一个输出文件节:节名称,大小,节数据 输入节:输入文件中的节输出节:输出文件中的节加载节:节内数据,在运行时,被加载到内存重加载节:节内无数据,在内存中要预留一个空间调试节:含调试信息的节 符号名:带双引号, 不带双引号(不能同已有的关键字冲突)在输入节中,未处理的孤儿节,被链接器放置在具有相同属性节的后面,若放不下,则放在文件尾部 ALIGN(align)  按指定数据对齐ALIGN(exp,align)  按指定数据对齐 等同于ALIGN(.,align) ORIGIN(ram) 计算内存区域的起址地址LENGTH(ram) 计算内存区域......【阅读全文】

阅读(1008) | 评论(0) | 转发(0)

发布时间:2012-12-14 16:19:48

简单的测试脚本: #!/bin/sh dirnum=3 dirfree=`df -k | awk '{if (NR == $dirnum) print $4}'` echo $dirfree 运行返回结果为空: [root@nginx2 100]# ./4 [root@nginx2 100]# 修改脚本为: #!/bin/sh dirnum=3 dirfree=`df -k | awk '{if (NR == "'$dirnum'") print $4}'` echo $dirfree 执行返回正确结果......【阅读全文】

阅读(886) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:41:29

预备知识:1.     strerror- return string describing error number          #include <string.h>       char *strerror(int errnum);       The  strerror() function returns a string describing th......【阅读全文】

阅读(608) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:40:09

#include <stdio.h> // void perror(const char *msg);#include <string.h> // char *strerror(int errnum);#include <errno.h> //errnoerrno 是错误代码,在 errno.h头文件中;perror用来将上一个函数发生错误的原因输出到标准错误(stderr)。参数s所指的字符串会先打印出,后面再加上错误原因字符串。此错误原因依照全局变量errno的值来决定要输出的字符串。strerror 是通过参数 errnum (就是errno),返回对......【阅读全文】

阅读(599) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册