自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(106)
  • 资源 (7)
  • 收藏
  • 关注

原创 (Android系统)android property浅析

android property,相信各位android平台的开发人员用到的不会少,但是property的具体机制大家可能知道的不多,这里利用空闲时间大致了解了一些,特此分享跟大家,如有谬误,欢迎指正android 1号进程进程init进程在开机的时候就会调用property_init函数,至于init是怎么起来的,这里不是重点,所以暂时先不介绍,property_init的具体flo

2014-06-30 19:34:05 4407

原创 (Android系统)android log机制浅析

在android下面debug,最主要的方式就是用logcat抓log了,我们可能有尝试过使用printf来打印,当然结果是不行的,这里有时间就看了一下android平台下log的flow,在此做个笔记以作记录我们一般使用ALOGD来打印log,所以这里就跟一下ALOGD的flowsystem/core/include/log/log.hsystem/core/include/

2014-06-26 16:57:04 5947

原创 (程序员面试题)二叉树的基本操作

本文只说二叉树的最基本操作,建树和遍历,其他的只是后续再讲testcase如下:#include #include typedef struct biTreeNode { int data; struct biTreeNode *lchild, *rchild;} *btNode;void preorder(btNode head) {

2014-04-01 16:21:02 658

原创 (程序员面试题)单链表的反转

只用一个额外的节点实现单链表的反转testcase如下:#include #include typedef struct num {    int data;    struct num *next;} *num_ptr;void print_num(num_ptr head) {      num_ptr tmp = head;      wh

2014-03-30 19:53:36 654

原创 (程序员面试题)链队列的基本操作

队列的基本操作跟栈类似,有如下几种:入队列,出队列,判断队列满,判断队列空,遍历队列。但是跟栈不一样的是:栈的入栈和出栈操作始终是在栈顶,但是队列的入队列是在队列尾部,出队列是在队列的头部。详情请见testcase:#include #include #include #define QUEUE_MAX 3typedef struct queue { char d

2014-03-30 16:49:34 700

原创 (程序员面试题)链栈的基本操作

链栈的基本操作有如下几种:入栈,出栈,判断栈满,判断栈空,遍历栈详情请见testcase:#include #include #include #define STACK_MAX 3typedef struct stack { char data[10]; struct stack *next;} *st_ptr;int is_stack_empty(st_p

2014-03-30 15:36:04 791

原创 (程序员面试题)链表的基本操作

链表的基本操作有四种:建立,插入,删除,遍历在程序里面如下:#include #include #include typedef struct student { char name[10]; struct student *next;}* st_ptr;void print_st(st_ptr head) { st_ptr tmp = head; while (tm

2014-03-30 14:47:45 505

转载 (work and tools)tcpdump的用法

此文转载于http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html简介用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。 tcpdump可以将网络中传送的数据包的“头”完全截获下来提供分析。它支持针对网络层、协议、

2014-03-11 21:23:35 698

转载 (work and tools)ubuntu中文输入法

Ubuntu 12.04中文输入法的安装 Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系统中,中文输入法的安装。第一步,是安装语言包。我们选择System Setti

2014-03-06 17:09:49 641

转载 (work and tools)ubuntu安装tftp

ubuntu安装tftp server 1、安装相关软件包apt-get install tftpd (服务端)apt-get install tftp (客户端)apt-get install xinetd2、建立配置文件cd /etc/xinetd.d/vi tftp                            (/etc/xinetd.d/tftp

2014-03-06 13:56:56 705

翻译 (wifi-display specification)RTSP交互信息详解

RTSP交互信息详解M1A WFD Source shall send an RTSP M1 request to a WFD Sink to begin the RTSP procedures and a WFD Capability Negotiation. The RTSP M1 request shall contain an RTSP OPTIONS request. A W

2014-03-01 16:05:08 4657

翻译 (standard c libraries translation )fileno

clearerr, feof, ferror, fileno - check and reset stream statusclearerr, feof, ferror, fileno - 检查和重置流状态所需头文件#include void clearerr(FILE *stream);int feof(FILE *stream);int ferror(FILE *s

2014-02-20 20:26:56 648

翻译 (standard c libraries translation )fcntl

fcntl - manipulate file descriptorfcntl - 操作文件描述符所需头文件#include #include int fcntl(int fd, int cmd, ... /* arg */ );fcntl() performs one of the operations described below on the ope

2014-02-20 11:34:03 1519

翻译 (standard c libraries translation )mkstemp

mkstemp, mkostemp, mkstemps, mkostemps - create a unique temporary filemkstemp, mkostemp, mkstemps, mkostemps - 创建一个唯一的临时文件所需头文件#include int mkstemp(char *template);int mkostemp(char *temp

2014-02-17 17:41:39 1195

翻译 (tandard c libraries translation )flock

flock - apply or remove an advisory lock on an open fileflock - 添加或者移除咨询性文件锁所需头文件#include int flock(int fd, int operation);Apply or remove an advisory lock on the open file specified b

2014-02-17 16:14:20 661

翻译 (standard c libraries translation )sync

sync, syncfs - commit buffer cache to disksync, syncfs - 提交buffer缓冲到磁盘所需头文件#include void sync(void);void syncfs(int fd);Feature Test Macro Requirements for glibc (see feature_test_

2014-02-15 15:25:22 960

翻译 (standard c libraries translation )lseek

lseek - reposition read/write file offsetlseek - 重定位读/写文件偏移量所需头文件#include #include off_t lseek(int fd, off_t offset, int whence);The  lseek()  function repositions the offset of the

2014-02-15 13:53:37 999

翻译 (standard c libraries translation )write

write - write to a file descriptorwrite - 写到一个文件描述符所需头文件#include ssize_t write(int fd, const void *buf, size_t count);write() writes up to count bytes from the buffer pointed buf to

2014-02-14 17:10:43 573

翻译 (standard c libraries translation )read

read - read from a file descriptorread - 从一个文件描述符中读所需头文件#include ssize_t read(int fd, void *buf, size_t count);read() attempts to read up to count bytes from file descriptor fd into

2014-02-14 15:03:10 641

翻译 ( standard c libraries translation )dup

dup, dup2, dup3 - duplicate a file descriptordup, dup2, dup3 - 复制一个文件描述符所需头文件#include int dup(int oldfd);int dup2(int oldfd, int newfd);#define _GNU_SOURCE             /* See feature

2014-02-14 11:55:34 643

翻译 ( standard c libraries translation )close

close - close a file descriptorclose - 关闭一个文件描述符所需头文件#include int close(int fd);close()  closes  a file descriptor, so that it no longer refers to any file and may be reused.  Any re

2014-02-13 19:41:38 523

翻译 (standard c libraries translation )open

open, creat - open and possibly create a file or deviceopen, creat - 打开和可能创建一个文件或者设备所需头文件#include #include #include int open(const char *pathname, int flags);int open(const char *pat

2014-02-13 17:57:41 838 1

原创 (about program)#if的使用

一般在写code时候会遇到需要使用宏来隔开的情况,最常见的就是使用:#ifdef XX    ...#else    ...#endif组合了,这个能隔开XX和非XX情况。但是如果是XX,YY和其他三种情况呢?就需要用下面方法来隔开:#if defined(XX)    ...#elif defined(YY)    ...#else

2014-02-11 15:44:30 546

翻译 (standard c libraries translation )getpass

getpass - get a passwordgetpass - 获取一个密码所需头文件:#include char *getpass( const char *prompt);This function is obsolete.  Do not use it.这个函数已经被废弃,请勿使用The  getpass()  function  opens 

2014-01-09 11:55:06 727

翻译 (standard c libraries translation )setuid

setgid - set group identitysetgid - 设置组id所需头文件#include #include int setgid(gid_t gid);setgid() sets the effective group ID of the calling process.  If the caller is the superuser, th

2014-01-07 20:28:41 626

翻译 (standard c libraries translation )setfsuid

setfsuid - set user identity used for file system checkssetfsuid - 为文件系统设置用户id所需头文件#include /* glibc uses */int setfsuid(uid_t fsuid);The system call setfsuid() sets the user ID that

2014-01-07 20:01:50 713

翻译 (standard c libraries translation )seteuid

seteuid, setegid - set effective user or group IDseteuid, setegid - 设置有效的用户和组id所需头文件#include #include int seteuid(uid_t euid);int setegid(gid_t egid);seteuid()  sets  the effective

2014-01-07 17:32:41 648

翻译 (standard c libraries translation )logwtmp

updwtmp, logwtmp - append an entry to the wtmp fileupdwtmp, logwtmp - 增加入口到wtmp文件尾部所需头文件#include void updwtmp(const char *wtmp_file, const struct utmp *ut);void logwtmp(const char *line,

2014-01-07 16:40:20 934

翻译 ( standard c libraries translation )fgetgrent

fgetpwent - get password file entryfgetpwent - 获取密码文件的入口所需头文件#include #include #include struct passwd *fgetpwent(FILE *stream);The  fgetpwent()  function returns a pointer to a str

2014-01-07 11:00:56 932

翻译 ( standard c libraries translation )getpwnam

getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entrygetpwnam, getpwnam_r, getpwuid, getpwuid_r - 获取password文件的入口所需头文件#include #include struct passwd *getpwnam(const char

2014-01-06 21:07:33 1166

翻译 (standard c libraries translation )getpw

getpw - reconstruct password line entrygetpw - 重建password行入口所需头文件#define _GNU_SOURCE             /* See feature_test_macros(7) */#include #include int getpw(uid_t uid, char *buf);T

2014-01-06 20:14:15 716

翻译 (standard c libraries translation )getgroups

getgroups, setgroups - get/set list of supplementary group IDsgetgroups, setgroups - 获取/设置附加组id的列表所需头文件#include #include int getgroups(int size, gid_t list[]);#include int setgroups(

2014-01-06 20:01:11 824

翻译 (standard c libraries translation )getgrgid

getgrnam, getgrnam_r, getgrgid, getgrgid_r - get group file entrygetgrnam, getgrnam_r, getgrgid, getgrgid_r - 获取group文件的入口所需头文件#include #include struct group *getgrnam(const char *name);

2014-01-06 17:50:34 950

翻译 ( standard c libraries translation )getuid

getuid, geteuid - get user identitygetuid, geteuid - 获取用户id所需头文件#include #include uid_t getuid(void);uid_t geteuid(void);getuid() returns the real user ID of the calling process.

2014-01-06 16:42:50 733

翻译 (standard c libraries translation )getutent

getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entriesgetutent, getutid, getutline, pututline, setutent, endutent, utmpname - 获取utmp文件的入口所需头文件#include

2014-01-04 16:34:17 775

翻译 (standard c libraries translation )getpwent

getpwent, setpwent, endpwent - get password file entrygetpwent, setpwent, endpwent - 获取密码文件入口所需头文件#include #include struct passwd *getpwent(void);void setpwent(void);void endpwent(vo

2014-01-04 15:38:31 711

翻译 ( standard c libraries translation )getgrent

getgrent, setgrent, endgrent - get group file entrygetgrent, setgrent, endgrent - 获取group文件的入口所需头文件#include #include struct group *getgrent(void);void setgrent(void);void endgrent(vo

2014-01-03 18:02:29 752

翻译 (standard c libraries translation )getlogin

getlogin, getlogin_r, cuserid - get usernamegetlogin, getlogin_r, cuserid-获取用户名所需头文件#include char *getlogin(void);int getlogin_r(char *buf, size_t bufsize);#include char *cuserid(cha

2014-01-03 16:11:39 1677

翻译 (standard c libraries translation )strtok

strtok, strtok_r - extract tokens from stringsstrtok,strtok_r-从字符串中提取标记所需头文件:#include char *strtok(char *str, const char *delim);char *strtok_r(char *str, const char *delim, char **savep

2014-01-03 14:49:51 751

翻译 (standard c libraries translation )strstr

strstr, strcasestr - locate a substring定位子串所需头文件#include char *strstr(const char *haystack, const char *needle);#define _GNU_SOURCE         /* See feature_test_macros(7) */#include

2014-01-02 20:58:08 684

编写高质量代码.pdf

C语言编写高质量代码,想学习规范C语言的可以看看。

2012-08-17

网络工程师历年考题

网络工程师历年考题 有考网工的同学必备经典,后附答案和讲解,绝对清晰

2011-08-27

phpMyAdmin-2.11.10.1-all-languages

搭建LAMP环境必须要的组件,从此数据库操作变的简单,需要的下载

2011-07-30

css开发文档(初学者必备!!!)

css属性大全,最好的chm文档,有了这个就不用在写css代码时还在为属性名称而苦恼了

2011-07-27

php学习手册(新手必备)

这个是一个php学习手册,新手学习应该用的上,一般的函数都可以查得到,很实用的说

2011-07-27

卸载旧版qq卸载旧版qq卸载旧版qq

卸载旧版本的qq,尤其是安装完系统之后自带的旧版qq,以及一些windows组件卸载旧版qq卸载旧版qq卸载旧版qq

2011-07-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除