- 博客(19)
- 资源 (2)
- 收藏
- 关注
原创 ping to find hosts in current local network
ping to find hosts in current local network
2016-02-28 21:22:14 518
原创 we must recreate the epoll after fork
we must recreate the epoll after fork
2016-02-28 16:53:08 568
转载 how to tell if a library contain debug symbols or not
gcc write_test.c -o w.d -g $objdump -h w.d | grep debug 26 .debug_aranges 00000020 00000000 00000000 0000104e 2**0 27 .debug_info 00000101 00000000 00000000 0000106e 2**0 28 .debu
2016-02-25 19:47:28 436
原创 Linux C socket 编程常用函数
/* * Linux C socket 编程常用函数 */#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<errno.h>#include<netdb.h>#include<fcntl.h>#include<string.h>#include<sys/types.h>#include<sys/socke
2016-02-25 17:15:48 1618
转载 2 Types of Linux File Locking (Advisory, Mandatory Lock Examples)
http://www.thegeekstuff.com/2012/04/linux-file-locking-types/File locking is a mechanism which allows only one process to access a file at any specific time. By using file locking mechanism, many
2016-02-16 21:46:25 795
原创 linux 64位系统的指针为8字节
如果没有gcc在编译时认为函数返回int类型,而在64为系统中,int占4个字节,而指针占8字节,如果原函数返回指针,则会导致数据阶段,从而导致程序访问错误的内存空间。
2016-02-15 21:35:44 5116
转载 舍身喂虎
“师叔,肃观师弟已到。请您开关吧。”晨间薄雾,水气弥漫,灵智站在山门前合十说话,任他宝相庄严,方丈之尊,那大门不曾应声开启,仍是紧紧闭锁。众僧面面相觑,不知高低。灵定躬身上前,正要再问,忽然一阵山风徐徐吹来,达摩院前水雾飘散,现出了柔和曙光。咩……咩……佛光暖和,黎明曙曦中,众人彷佛置身梦境,伴随着远处的咩咩低叫,一群山羊缓缓而来,这是少室山野生的羊只。晨光中十来只大小白羊相互依偎
2016-02-12 17:05:15 1328
转载 libecb.h
/* * libecb - http://software.schmorp.de/pkg/libecb * * Copyright (©) 2009-2015 Marc Alexander Lehmann * Copyright (©) 2011 Emanuele Giaquinta * All rights reserved. * * Redistribution and use
2016-02-09 16:27:38 1058 2
转载 epoll example
#include #include #include #include #include #include #include #include #include #include #define MAXEVENTS 64static intmake_socket_non_blocking (int sfd){ int flags, s; flags = fc
2016-02-09 15:53:47 674
转载 Linux C TCP Programming example
//server.c#include #include #include #include #include #include #include void error(const char *msg){ perror(msg); exit(1);}int main(int argc, char *argv[]){ int sockfd, ne
2016-02-09 15:25:47 733
lq51--自己写的基于51单片机的嵌入式实时操作系统
2009-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人