
基于Linux系统的web迅雷下载器
yy_msdn
这个作者很懒,什么都没留下…
展开
-
三个阶段
1.多线程拷贝2.通过解析url,得到文件信息3.在firefox中添加插件原创 2009-03-28 08:54:00 · 693 阅读 · 0 评论 -
tellwait.c
#include "apue.h"static volatile sig_atomic_t sigflag; /* set nonzero by sig handler */static sigset_t newmask, oldmask, zeromask;static voidsig_usr(int signo) /* one signal handler for SI原创 2009-03-28 15:25:00 · 894 阅读 · 0 评论 -
mulTdCpfile.c
#include "apue.h"#include #include void * copyFile(void *);// 创建空的文件int createFile(int fd, int size);/** 确定文件所属的大小范围,根据这个大小范围确定拷贝子进程的数目 * * 返回值 1 ------- 文件大小小于10K, 1个拷贝子进程原创 2009-03-28 15:09:00 · 695 阅读 · 0 评论 -
apue.h
/* Our own header, to be included before all standard system headers */#ifndef _APUE_H#define _APUE_H#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */#include原创 2009-03-28 15:19:00 · 2216 阅读 · 1 评论 -
prexit.c
#include "apue.h"#include voidpr_exit(int status){ if (WIFEXITED(status)) printf("normal termination, exit status = %d/n", WEXITSTATUS(status)); else if (WIFSIGNALED(status))原创 2009-03-28 15:23:00 · 846 阅读 · 0 评论