linux application
文章平均质量分 79
yang_rong_yong
这个作者很懒,什么都没留下…
展开
-
Linux 动态链接库编程基础
Linux动态链接库编程入门 动态链接库是一种通用的软件组件技术,是多种操作系统中提供基本服务的方式。比如Win32内核就是3个DLL文件构成。这种技术在Linux操作系统下也有对应的实现,就是Linux标准对象Standard Ojbect,对应的文件扩展名为.so。 下面通过一个简单的例子开始介绍Linux标准对象。 我们的标准对象文件含有一个函数,不需要声明export导出符原创 2008-10-17 10:28:00 · 3167 阅读 · 0 评论 -
linux 下从文件内容来识别一个文件类型的实例
file-4.26.tar.gz 这是包 可以从http://www.sfr-fresh.com/unix/misc/file-4.26.tar.gz/ 网上下载可以确定一个文件的类型但要安装上面的包// example #include #include #include #include #include #include #include #include us原创 2008-10-21 17:16:00 · 1127 阅读 · 0 评论 -
inotify例程
#include #include #include char * monitored_files[] = { "./tmp_file", "./tmp_dir", "/mnt/sda3/windows_file" }; struct wd_name { int wd; char * nam转载 2008-10-22 10:56:00 · 1351 阅读 · 0 评论 -
inotify example
#include #include #include #include #include #include #include static void_inotify_event_handler(struct inotify_event *event ,int fd){ const char* action = NULL; puts("*原创 2008-10-23 11:31:00 · 999 阅读 · 0 评论 -
搭建本地yum源(http方式) on Red Hat Enterprise Linux Server
1)install httpd yum install httpd 2) start httpd service start service httpd 3)config file /etc/httpd/conf/httpd.conf care the line DocumentRoot"/var/www/html" which is the config root t原创 2016-04-27 09:40:40 · 1881 阅读 · 0 评论 -
如何使用yum来下载RPM包而不进行安装
方法一:yum yum命令本身就可以用来下载一个RPM包,标准的yum命令提供了--downloadonly(只下载)的选项来达到这个目的。 $ sudo yum install --downloadonly package-name> 默认情况下,一个下载的RPM包会保存在下面的目录中: /var/cache/yum/x86_64/[centos/fedora-version]/[re转载 2016-04-27 10:55:12 · 495 阅读 · 0 评论