linux
john_crash
这个作者很懒,什么都没留下…
展开
-
squid3配置与使用
squid代理服务器加密码在配置文件中加入auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/squid_passwd其中squid_passwd使用passwd产生的密码文件。acl ncsa_users prox_auth REQUIREDhttp_access allow ncsa_us原创 2015-01-20 10:03:47 · 2346 阅读 · 0 评论 -
编写configure.ac
configure.ac由一些宏组成 最基本的组成可以是下面的AC_INIT([PACKAGE], [VERSION], [BUG-REPORT-ADDRESS])# Checks for programs.# Checks for libraries.# Checks for header les.# Checks for typedefs, structures, and compi原创 2015-11-17 17:52:03 · 11559 阅读 · 0 评论 -
execl,execv说明
int execl(char * cmdfile,char *cmd,...);第一个参数是命令文件,第二个可以和第一参数相同也可以是命令的文件名,后面是字符串参数,最后一个一定要是NULL结束。 例如:execl("/usr/bin/hello","hello","arg1","arg2",NULL);int execv(char * cmdfile,char *arg[]);arg[0]是命令原创 2015-11-18 22:05:38 · 987 阅读 · 0 评论 -
编写Makefile.am
Makefile.am将指明工程需要哪些源文件,建造的是什么,如何安装它们。 具体语法如下: option_where_PRIMARY = targets … targets是要建造的目标 PRIMARY可以是下面的一个: 可能值 解释 PROGRAMS 目标是可执行程序 LIBRARIES 目标是静态库 LTLIBRARIES 目标是动态库 HEADERS原创 2015-11-17 22:57:55 · 3781 阅读 · 0 评论 -
autotools例子1
建造中原创 2015-11-17 23:11:40 · 488 阅读 · 1 评论 -
autotools 使用二
产生configure需要三个文件 configure.ac Makefile.am src/Makefile.am (参考我的另外两篇文章编写configure.ac和编写Makefile.am) 编辑好这几个文件就可以产生configure脚本,和config.h.in,Makefile.in,src/Makefile.in configure.ac主要初始化一些信息,检查编译器,检原创 2015-11-17 16:52:16 · 779 阅读 · 0 评论 -
怎么在程序内部确定程序自己的绝对路径(windows,linux)
在linux下可以这么实现char * get_process_path( ){ char arg1[20]; char exepath[1024 + 1] = {0}; sprintf( arg1, "/proc/%d/exe", getpid() ); readlink( arg1, exepath, 1024 ); return strdup(exepa原创 2015-11-19 10:55:49 · 369 阅读 · 0 评论 -
autotool 交叉编译
等待建造。。。原创 2015-11-26 11:47:40 · 812 阅读 · 0 评论