From: Ben Gras Date: Thu, 1 Jul 2010 00:05:48 +0000 (+0000) Subject: libfetch - move fetch.3 to man and fetch.h to include X-Git-Tag: v3.1.8~312 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=65be30daed662d860b265a85cb6d74c5484e8984;p=minix.git libfetch - move fetch.3 to man and fetch.h to include --- diff --git a/include/Makefile b/include/Makefile index 5bbf34020..18f23aae4 100644 --- a/include/Makefile +++ b/include/Makefile @@ -9,7 +9,7 @@ INCS= alloca.h ansi.h a.out.h ar.h assert.h configfile.h ctype.h \ stdint.h stdbool.h stdio.h stdlib.h string.h strings.h sysexits.h \ syslog.h tar.h termcap.h termios.h time.h timers.h tools.h \ ttyent.h ucontext.h unistd.h utime.h utmp.h wchar.h wctype.h \ - hgfs.h tzfile.h util.h + hgfs.h tzfile.h util.h fetch.h INCS+= arpa/inet.h INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \ minix/com.h minix/config.h minix/const.h minix/cpufeature.h \ diff --git a/lib/libfetch/fetch.h b/include/fetch.h similarity index 100% rename from lib/libfetch/fetch.h rename to include/fetch.h diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile index c2cd739d2..c726485dc 100644 --- a/lib/libfetch/Makefile +++ b/lib/libfetch/Makefile @@ -3,9 +3,6 @@ LIB= fetch SRCS= fetch.c common.c ftp.c http.c file.c #DPSRCS= ftperr.h httperr.h -INCSDIR= /usr/include -INCS= fetch.h -MAN= fetch.3 # CLEANFILES= ftperr.h httperr.h MKLINT= no MKPIC= no diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index b3552a818..72988e5eb 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -66,7 +66,6 @@ #include #endif -#include "fetch.h" #include "common.h" /*** Local data **************************************************************/ diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index d9ce647c8..3949253c7 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -32,6 +32,8 @@ #ifndef _COMMON_H_INCLUDED #define _COMMON_H_INCLUDED +#include + #define FTP_DEFAULT_PORT 21 #define HTTP_DEFAULT_PORT 80 #define FTP_DEFAULT_PROXY_PORT 21 diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c index b18bb2c08..9acd135fe 100644 --- a/lib/libfetch/fetch.c +++ b/lib/libfetch/fetch.c @@ -43,7 +43,6 @@ #include #include -#include "fetch.h" #include "common.h" auth_t fetchAuthMethod; diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index 553464fda..7b2c2233b 100644 --- a/lib/libfetch/file.c +++ b/lib/libfetch/file.c @@ -47,7 +47,6 @@ #include #include -#include "fetch.h" #include "common.h" static int fetch_stat_file(int, struct url_stat *); diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 3bc995deb..3f181d627 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -94,7 +94,6 @@ #include #include -#include "fetch.h" #include "common.h" #include "ftperr.h" diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 3c472878e..a60ac86c0 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -106,7 +106,6 @@ #include -#include "fetch.h" #include "common.h" #include "httperr.h" diff --git a/man/man3/Makefile b/man/man3/Makefile index 2c9ac6b7b..456b48bb8 100644 --- a/man/man3/Makefile +++ b/man/man3/Makefile @@ -12,7 +12,7 @@ MAN= abort.3 abs.3 assert.3 atof.3 bstring.3 configfile.3 \ readv.3 realpath.3 regex.3 remainder.3 resolver.3 scanf.3 \ servxcheck.3 setbuf.3 setjmp.3 sigset.3 sleep.3 stdarg.3 \ stdio.3 string.3 strtol.3 syslog.3 system.3 termcap.3 \ - termios.3 time2posix.3 ttyname.3 ttyslot.3 ungetc.3 + termios.3 time2posix.3 ttyname.3 ttyslot.3 ungetc.3 fetch.3 .include .include diff --git a/lib/libfetch/fetch.3 b/man/man3/fetch.3 similarity index 100% rename from lib/libfetch/fetch.3 rename to man/man3/fetch.3