├── .version ├── ftp ├── .gitignore └── Makefile.am ├── .tarball-version ├── talk ├── .gitignore └── Makefile.am ├── talkd ├── .gitignore └── Makefile.am ├── telnet ├── .gitignore └── Makefile.am ├── ifconfig ├── .gitignore ├── COMPATIBILITY ├── system.c ├── system │ ├── Makefile.am │ ├── qnx.h │ └── solaris.h ├── if_index.h ├── Makefile.am └── ifconfig.h ├── man ├── .gitignore ├── rcp.h2m ├── tftp.h2m ├── tftpd.h2m ├── uucpd.h2m ├── whois.h2m ├── inetd.h2m ├── ping.h2m ├── ping6.h2m ├── hostname.h2m ├── ifconfig.h2m ├── traceroute.h2m ├── talk.h2m ├── talkd.h2m ├── rlogin.h2m ├── rsh.h2m ├── rshd.h2m ├── syslogd.h2m ├── telnetd.h2m ├── ftp.h2m ├── ftpd.h2m ├── rexec.h2m ├── rexecd.h2m ├── rlogind.h2m ├── telnet.h2m ├── logger.h2m ├── uucpd.8 ├── rexecd.8 ├── talk.1 ├── tftp.1 ├── tftpd.8 └── rshd.8 ├── telnetd ├── .gitignore └── Makefile.am ├── ftpd ├── .gitignore └── Makefile.am ├── ping ├── .gitignore ├── ping6.h ├── ping_impl.h ├── ping.h └── ping_router.c ├── tests ├── .gitignore ├── localhost.c ├── traceroute-localhost.sh └── ping-localhost.sh ├── lib ├── xgethostname.h ├── inttostr.c ├── offtostr.c ├── imaxtostr.c ├── math.c ├── umaxtostr.c ├── xsize.c ├── uinttostr.c ├── unistd.c ├── sys_socket.c ├── wctype-h.c ├── malloca.valgrind ├── rawmemchr.valgrind ├── strchrnul.valgrind ├── memchr.valgrind ├── exitfail.h ├── xgetcwd.h ├── isnand.c ├── isnanf.c ├── isnanl.c ├── exitfail.c ├── mbtowc.c ├── ref-del.sin ├── getline.c ├── argp-pin.c ├── dirfd.c ├── ref-add.sin ├── unistd--.h ├── mbsrtowcs.c ├── mempcpy.c ├── itold.c ├── frexpl.c ├── printf-frexp.h ├── filenamecat.h ├── fseek.c ├── xasprintf.c ├── printf-frexpl.h ├── unistd-safer.h ├── dup-safer.c ├── strndup.c ├── asnprintf.c ├── chdir-long.h ├── save-cwd.h ├── getpass.h ├── printf-frexpl.c ├── read-file.h ├── asprintf.c ├── btowc.c ├── strnlen.c ├── secure_getenv.c ├── argp-eexst.c ├── size_max.h ├── version-etc-fsf.c ├── ftell.c ├── stdarg.in.h ├── stdio-safer.h ├── isnand-nolibm.h ├── stdio--.h ├── isnanl-nolibm.h ├── xgetcwd.c ├── strnlen1.h ├── strnlen1.c ├── filemode.h ├── argp-version-etc.c ├── fseterr.h ├── xgetdomainname.h ├── float.c ├── localcharset.h ├── xalloc-die.c ├── argp-pvh.c ├── msvc-nothrow.c ├── netinet_in.in.h ├── argp-version-etc.h └── vasprintf.c ├── whois ├── .gitignore ├── as_del.h ├── as_del_list ├── make_tld_serv.pl ├── make_as_del.pl └── make_ip_del.pl ├── doc ├── .gitignore ├── stamp-vti ├── version.texi └── Makefile.am ├── README-hacking ├── README-prereq ├── confpaths.h.in ├── src └── .gitignore ├── m4 ├── xalloc.m4 ├── xgetcwd.m4 ├── xvasprintf.m4 ├── fseterr.m4 ├── msvc-nothrow.m4 ├── read-file.m4 ├── unistd-safer.m4 ├── save-cwd.m4 ├── filemode.m4 ├── xsize.m4 ├── readdir.m4 ├── rewinddir.m4 ├── sockets.m4 ├── mbtowc.m4 ├── filenamecat.m4 ├── fseek.m4 ├── ftell.m4 ├── off_t.m4 ├── tempname.m4 ├── dirname.m4 ├── malloca.m4 ├── localcharset.m4 ├── posix_openpt.m4 ├── localeconv.m4 ├── rawmemchr.m4 ├── sys_types_h.m4 ├── memrchr.m4 ├── msvc-inval.m4 ├── opendir.m4 ├── closedir.m4 ├── dup.m4 ├── mempcpy.m4 ├── secure_getenv.m4 ├── ssize_t.m4 ├── st_dm_mode.m4 ├── wchar_t.m4 ├── codeset.m4 ├── error.m4 ├── inttostr.m4 ├── glibc2.m4 ├── intldir.m4 ├── strnlen.m4 ├── glibc21.m4 ├── sys_uio_h.m4 ├── getusershell.m4 ├── eealloc.m4 ├── fstat.m4 ├── openat.m4 ├── strdup.m4 ├── stdint_h.m4 ├── d-type.m4 ├── inttypes_h.m4 ├── wint_t.m4 ├── autobuild.m4 ├── chdir-long.m4 ├── netinet_in_h.m4 ├── strcase.m4 ├── uintmax_t.m4 ├── close.m4 ├── intmax.m4 ├── vasprintf.m4 ├── version-etc.m4 ├── pathmax.m4 ├── mode_t.m4 ├── nls.m4 ├── printf-frexp.m4 ├── inttypes-pri.m4 ├── sysexits.m4 ├── 00gnulib.m4 ├── minmax.m4 └── lcmessage.m4 ├── .gitignore ├── AUTHORS ├── libtelnet ├── genget.h └── Makefile.am ├── libicmp ├── Makefile.am └── icmp_address.c ├── libls └── Makefile.am ├── libinetutils ├── defauthors.c ├── argcv.h └── Makefile.am ├── am └── flushleft.m4 └── Makefile.am /.version: -------------------------------------------------------------------------------- 1 | 1.9.1 2 | -------------------------------------------------------------------------------- /ftp/.gitignore: -------------------------------------------------------------------------------- 1 | ftp 2 | -------------------------------------------------------------------------------- /.tarball-version: -------------------------------------------------------------------------------- 1 | 1.9.1 2 | -------------------------------------------------------------------------------- /talk/.gitignore: -------------------------------------------------------------------------------- 1 | talk 2 | -------------------------------------------------------------------------------- /talkd/.gitignore: -------------------------------------------------------------------------------- 1 | talkd 2 | -------------------------------------------------------------------------------- /telnet/.gitignore: -------------------------------------------------------------------------------- 1 | telnet 2 | -------------------------------------------------------------------------------- /ifconfig/.gitignore: -------------------------------------------------------------------------------- 1 | ifconfig 2 | -------------------------------------------------------------------------------- /man/.gitignore: -------------------------------------------------------------------------------- 1 | *.1 2 | *.8 3 | -------------------------------------------------------------------------------- /telnetd/.gitignore: -------------------------------------------------------------------------------- 1 | telnetd 2 | -------------------------------------------------------------------------------- /ftpd/.gitignore: -------------------------------------------------------------------------------- 1 | ftpd 2 | ftpcmd.c 3 | -------------------------------------------------------------------------------- /ping/.gitignore: -------------------------------------------------------------------------------- 1 | ping 2 | ping6 3 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | localhost 2 | addrpeek 3 | -------------------------------------------------------------------------------- /man/rcp.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rcp \- Remote copy 3 | -------------------------------------------------------------------------------- /man/tftp.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | tftp \- TFTP client 3 | -------------------------------------------------------------------------------- /lib/xgethostname.h: -------------------------------------------------------------------------------- 1 | char *xgethostname (void); 2 | -------------------------------------------------------------------------------- /man/tftpd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | tftpd \- TFTP server 3 | -------------------------------------------------------------------------------- /man/uucpd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | uucpd \- Unix to Unix Copy 3 | -------------------------------------------------------------------------------- /man/whois.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | whois \- Whois user interface 3 | -------------------------------------------------------------------------------- /man/inetd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | inetd \- Interner super-server 3 | -------------------------------------------------------------------------------- /man/ping.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | ping \- Packets to network hosts 3 | -------------------------------------------------------------------------------- /man/ping6.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | ping6 \- Packets to network hosts 3 | -------------------------------------------------------------------------------- /whois/.gitignore: -------------------------------------------------------------------------------- 1 | whois 2 | as_del.h 3 | ip_del.h 4 | tld_serv.h 5 | -------------------------------------------------------------------------------- /man/hostname.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | hostname \- show or set system host name 3 | -------------------------------------------------------------------------------- /man/ifconfig.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | ifconfig \- configure network interfaces 3 | -------------------------------------------------------------------------------- /man/traceroute.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | traceroute \- Trace the route to a host 3 | -------------------------------------------------------------------------------- /man/talk.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | talk \- Talk client 3 | [SEE ALSO] 4 | talkd(1) 5 | -------------------------------------------------------------------------------- /man/talkd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | talkd \- Talk server 3 | [SEE ALSO] 4 | talk(1) 5 | -------------------------------------------------------------------------------- /man/rlogin.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rlogin \- Remote login 3 | [SEE ALSO] 4 | rlogind(1) 5 | -------------------------------------------------------------------------------- /man/rsh.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rsh \- Remote shell client 3 | [SEE ALSO] 4 | rshd(1) 5 | -------------------------------------------------------------------------------- /man/rshd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rshd \- Remote shell server 3 | [SEE ALSO] 4 | rsh(1) 5 | -------------------------------------------------------------------------------- /man/syslogd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | syslogd \- Syslog server 3 | [SEE ALSO] 4 | logger(1) 5 | -------------------------------------------------------------------------------- /man/telnetd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | telnetd \- Telnet server 3 | [SEE ALSO] 4 | telnet(1) 5 | -------------------------------------------------------------------------------- /man/ftp.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | ftp \- File Transfer Protocol client. 3 | [SEE ALSO] 4 | ftpd(1) 5 | -------------------------------------------------------------------------------- /man/ftpd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | ftpd \- File Transfer Protocol server. 3 | [SEE ALSO] 4 | ftp(1) 5 | -------------------------------------------------------------------------------- /man/rexec.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rexec \- Remote execution client 3 | [SEE ALSO] 4 | rexecd(1) 5 | -------------------------------------------------------------------------------- /man/rexecd.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rexecd \- Remote execution server 3 | [SEE ALSO] 4 | rexec(1) 5 | -------------------------------------------------------------------------------- /man/rlogind.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | rlogind \- Remote login server 3 | [SEE ALSO] 4 | rlogin(1) 5 | -------------------------------------------------------------------------------- /lib/inttostr.c: -------------------------------------------------------------------------------- 1 | #define anytostr inttostr 2 | #define inttype int 3 | #include "anytostr.c" 4 | -------------------------------------------------------------------------------- /lib/offtostr.c: -------------------------------------------------------------------------------- 1 | #define anytostr offtostr 2 | #define inttype off_t 3 | #include "anytostr.c" 4 | -------------------------------------------------------------------------------- /man/telnet.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | telnet \- User interface to TELNET 3 | [SEE ALSO] 4 | telnetd(1) 5 | -------------------------------------------------------------------------------- /lib/imaxtostr.c: -------------------------------------------------------------------------------- 1 | #define anytostr imaxtostr 2 | #define inttype intmax_t 3 | #include "anytostr.c" 4 | -------------------------------------------------------------------------------- /lib/math.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define _GL_MATH_INLINE _GL_EXTERN_INLINE 3 | #include "math.h" 4 | -------------------------------------------------------------------------------- /lib/umaxtostr.c: -------------------------------------------------------------------------------- 1 | #define anytostr umaxtostr 2 | #define inttype uintmax_t 3 | #include "anytostr.c" 4 | -------------------------------------------------------------------------------- /lib/xsize.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define XSIZE_INLINE _GL_EXTERN_INLINE 3 | #include "xsize.h" 4 | -------------------------------------------------------------------------------- /man/logger.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | logger \- Send messages to the system log 3 | [SEE ALSO] 4 | syslogd(1) 5 | -------------------------------------------------------------------------------- /lib/uinttostr.c: -------------------------------------------------------------------------------- 1 | #define anytostr uinttostr 2 | #define inttype unsigned int 3 | #include "anytostr.c" 4 | -------------------------------------------------------------------------------- /lib/unistd.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE 3 | #include "unistd.h" 4 | -------------------------------------------------------------------------------- /lib/sys_socket.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define _GL_SYS_SOCKET_INLINE _GL_EXTERN_INLINE 3 | #include "sys/socket.h" 4 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | /fdl-1.3.texi 2 | /gendocs_template 3 | fdl-1.3.texi 4 | gendocs_template 5 | inetutils.info* 6 | stamp-vti 7 | version.texi 8 | -------------------------------------------------------------------------------- /doc/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 25 October 2013 2 | @set UPDATED-MONTH October 2013 3 | @set EDITION 1.9.1-dirty 4 | @set VERSION 1.9.1-dirty 5 | -------------------------------------------------------------------------------- /doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 25 October 2013 2 | @set UPDATED-MONTH October 2013 3 | @set EDITION 1.9.1-dirty 4 | @set VERSION 1.9.1-dirty 5 | -------------------------------------------------------------------------------- /README-hacking: -------------------------------------------------------------------------------- 1 | Please see README-alpha. This file only exists for the sake of 2 | `bootstrap', and it only exists in the source control repository. 3 | -------------------------------------------------------------------------------- /README-prereq: -------------------------------------------------------------------------------- 1 | Please see README-alpha. This file only exists for the sake of 2 | `bootstrap', and it only exists in the source control repository. 3 | -------------------------------------------------------------------------------- /confpaths.h.in: -------------------------------------------------------------------------------- 1 | /* Define PATH_* macros from paths in $(top_srcdir)/paths. */ 2 | 3 | #ifdef HAVE_PATHS_H 4 | #include 5 | #endif 6 | 7 | @PATHS_DEFS@ 8 | -------------------------------------------------------------------------------- /lib/wctype-h.c: -------------------------------------------------------------------------------- 1 | /* Normally this would be wctype.c, but that name's already taken. */ 2 | #include 3 | #define _GL_WCTYPE_INLINE _GL_EXTERN_INLINE 4 | #include "wctype.h" 5 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | hostname 2 | inetd 3 | logger 4 | rcp 5 | rexec 6 | rexecd 7 | rlogin 8 | rlogind 9 | rsh 10 | rshd 11 | syslogd 12 | tftp 13 | tftpd 14 | traceroute 15 | uucpd 16 | -------------------------------------------------------------------------------- /lib/malloca.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in freea(). 2 | # This use is OK because it provides only a speedup. 3 | { 4 | freea 5 | Memcheck:Cond 6 | fun:freea 7 | } 8 | -------------------------------------------------------------------------------- /lib/rawmemchr.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in rawmemchr(). 2 | # This use is OK because it provides only a speedup. 3 | { 4 | rawmemchr-value4 5 | Memcheck:Value4 6 | fun:rawmemchr 7 | } 8 | { 9 | rawmemchr-value8 10 | Memcheck:Value8 11 | fun:rawmemchr 12 | } 13 | -------------------------------------------------------------------------------- /lib/strchrnul.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in strchrnul(). 2 | # This use is OK because it provides only a speedup. 3 | { 4 | strchrnul-value4 5 | Memcheck:Value4 6 | fun:strchrnul 7 | } 8 | { 9 | strchrnul-value8 10 | Memcheck:Value8 11 | fun:strchrnul 12 | } 13 | -------------------------------------------------------------------------------- /m4/xalloc.m4: -------------------------------------------------------------------------------- 1 | # xalloc.m4 serial 18 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_XALLOC], [:]) 8 | -------------------------------------------------------------------------------- /m4/xgetcwd.m4: -------------------------------------------------------------------------------- 1 | #serial 8 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_XGETCWD], 8 | [ 9 | : 10 | ]) 11 | -------------------------------------------------------------------------------- /m4/xvasprintf.m4: -------------------------------------------------------------------------------- 1 | # xvasprintf.m4 serial 2 2 | dnl Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl Prerequisites of lib/xvasprintf.c. 8 | AC_DEFUN([gl_XVASPRINTF], [:]) 9 | -------------------------------------------------------------------------------- /m4/fseterr.m4: -------------------------------------------------------------------------------- 1 | # fseterr.m4 serial 1 2 | dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_FSETERR], 8 | [ 9 | AC_CHECK_FUNCS_ONCE([__fseterr]) 10 | ]) 11 | -------------------------------------------------------------------------------- /m4/msvc-nothrow.m4: -------------------------------------------------------------------------------- 1 | # msvc-nothrow.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_MSVC_NOTHROW], 8 | [ 9 | AC_REQUIRE([gl_MSVC_INVAL]) 10 | ]) 11 | -------------------------------------------------------------------------------- /m4/read-file.m4: -------------------------------------------------------------------------------- 1 | # read-file.m4 serial 3 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | # Prerequisites of lib/read-file.c. 8 | AC_DEFUN([gl_PREREQ_READ_FILE], [:]) 9 | -------------------------------------------------------------------------------- /m4/unistd-safer.m4: -------------------------------------------------------------------------------- 1 | #serial 9 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_UNISTD_SAFER], 8 | [ 9 | AC_CHECK_FUNCS_ONCE([pipe]) 10 | ]) 11 | -------------------------------------------------------------------------------- /m4/save-cwd.m4: -------------------------------------------------------------------------------- 1 | # serial 10 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl Prerequisites for lib/save-cwd.c. 8 | AC_DEFUN([gl_SAVE_CWD], 9 | [ 10 | AC_CHECK_FUNCS_ONCE([fchdir]) 11 | ]) 12 | -------------------------------------------------------------------------------- /m4/filemode.m4: -------------------------------------------------------------------------------- 1 | # filemode.m4 serial 8 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FILEMODE], 8 | [ 9 | AC_REQUIRE([AC_STRUCT_ST_DM_MODE]) 10 | AC_CHECK_DECLS_ONCE([strmode]) 11 | ]) 12 | -------------------------------------------------------------------------------- /m4/xsize.m4: -------------------------------------------------------------------------------- 1 | # xsize.m4 serial 5 2 | dnl Copyright (C) 2003-2004, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_XSIZE], 8 | [ 9 | dnl Prerequisites of lib/xsize.h. 10 | AC_REQUIRE([gl_SIZE_MAX]) 11 | AC_CHECK_HEADERS([stdint.h]) 12 | ]) 13 | -------------------------------------------------------------------------------- /lib/memchr.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in memchr(). 2 | # POSIX states that when the character is found, memchr must not read extra 3 | # bytes in an overestimated length (for example, where memchr is used to 4 | # implement strnlen). However, we use a safe word read to provide a speedup. 5 | { 6 | memchr-value4 7 | Memcheck:Value4 8 | fun:rpl_memchr 9 | } 10 | { 11 | memchr-value8 12 | Memcheck:Value8 13 | fun:rpl_memchr 14 | } 15 | -------------------------------------------------------------------------------- /m4/readdir.m4: -------------------------------------------------------------------------------- 1 | # readdir.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_READDIR], 8 | [ 9 | AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) 10 | 11 | AC_CHECK_FUNCS([readdir]) 12 | if test $ac_cv_func_readdir = no; then 13 | HAVE_READDIR=0 14 | fi 15 | ]) 16 | -------------------------------------------------------------------------------- /m4/rewinddir.m4: -------------------------------------------------------------------------------- 1 | # rewinddir.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_REWINDDIR], 8 | [ 9 | AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) 10 | 11 | AC_CHECK_FUNCS([rewinddir]) 12 | if test $ac_cv_func_rewinddir = no; then 13 | HAVE_REWINDDIR=0 14 | fi 15 | ]) 16 | -------------------------------------------------------------------------------- /m4/sockets.m4: -------------------------------------------------------------------------------- 1 | # sockets.m4 serial 7 2 | dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_SOCKETS], 8 | [ 9 | AC_REQUIRE([AC_C_INLINE]) 10 | AC_REQUIRE([gl_SOCKETLIB]) 11 | gl_PREREQ_SOCKETS 12 | ]) 13 | 14 | # Prerequisites of lib/sockets.c. 15 | AC_DEFUN([gl_PREREQ_SOCKETS], [ 16 | : 17 | ]) 18 | -------------------------------------------------------------------------------- /m4/mbtowc.m4: -------------------------------------------------------------------------------- 1 | # mbtowc.m4 serial 2 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_MBTOWC], 8 | [ 9 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 10 | 11 | if false; then 12 | REPLACE_MBTOWC=1 13 | fi 14 | ]) 15 | 16 | # Prerequisites of lib/mbtowc.c. 17 | AC_DEFUN([gl_PREREQ_MBTOWC], [ 18 | : 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/filenamecat.m4: -------------------------------------------------------------------------------- 1 | # filenamecat.m4 serial 11 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FILE_NAME_CONCAT], 8 | [ 9 | AC_REQUIRE([gl_FILE_NAME_CONCAT_LGPL]) 10 | ]) 11 | 12 | AC_DEFUN([gl_FILE_NAME_CONCAT_LGPL], 13 | [ 14 | dnl Prerequisites of lib/filenamecat-lgpl.c. 15 | AC_CHECK_FUNCS_ONCE([mempcpy]) 16 | ]) 17 | -------------------------------------------------------------------------------- /m4/fseek.m4: -------------------------------------------------------------------------------- 1 | # fseek.m4 serial 4 2 | dnl Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_FSEEK], 8 | [ 9 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 10 | AC_REQUIRE([gl_FUNC_FSEEKO]) 11 | dnl When fseeko needs fixes, fseek needs them too. 12 | if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 13 | REPLACE_FSEEK=1 14 | fi 15 | ]) 16 | -------------------------------------------------------------------------------- /m4/ftell.m4: -------------------------------------------------------------------------------- 1 | # ftell.m4 serial 3 2 | dnl Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_FTELL], 8 | [ 9 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 10 | AC_REQUIRE([gl_FUNC_FTELLO]) 11 | dnl When ftello needs fixes, ftell needs them too. 12 | if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then 13 | REPLACE_FTELL=1 14 | fi 15 | ]) 16 | -------------------------------------------------------------------------------- /m4/off_t.m4: -------------------------------------------------------------------------------- 1 | # off_t.m4 serial 1 2 | dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl Check whether to override the 'off_t' type. 8 | dnl Set WINDOWS_64_BIT_OFF_T. 9 | 10 | AC_DEFUN([gl_TYPE_OFF_T], 11 | [ 12 | m4_ifdef([gl_LARGEFILE], [ 13 | AC_REQUIRE([gl_LARGEFILE]) 14 | ], [ 15 | WINDOWS_64_BIT_OFF_T=0 16 | ]) 17 | AC_SUBST([WINDOWS_64_BIT_OFF_T]) 18 | ]) 19 | -------------------------------------------------------------------------------- /m4/tempname.m4: -------------------------------------------------------------------------------- 1 | #serial 5 2 | 3 | # Copyright (C) 2006-2007, 2009-2013 Free Software Foundation, Inc. 4 | # This file is free software; the Free Software Foundation 5 | # gives unlimited permission to copy and/or distribute it, 6 | # with or without modifications, as long as this notice is preserved. 7 | 8 | # glibc provides __gen_tempname as a wrapper for mk[ds]temp. Expose 9 | # it as a public API, and provide it on systems that are lacking. 10 | AC_DEFUN([gl_FUNC_GEN_TEMPNAME], 11 | [ 12 | gl_PREREQ_TEMPNAME 13 | ]) 14 | 15 | # Prerequisites of lib/tempname.c. 16 | AC_DEFUN([gl_PREREQ_TEMPNAME], 17 | [ 18 | : 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/dirname.m4: -------------------------------------------------------------------------------- 1 | #serial 10 -*- autoconf -*- 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_DIRNAME], 8 | [ 9 | AC_REQUIRE([gl_DIRNAME_LGPL]) 10 | ]) 11 | 12 | AC_DEFUN([gl_DIRNAME_LGPL], 13 | [ 14 | dnl Prerequisites of lib/dirname.h. 15 | AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) 16 | 17 | dnl No prerequisites of lib/basename-lgpl.c, lib/dirname-lgpl.c, 18 | dnl lib/stripslash.c. 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/malloca.m4: -------------------------------------------------------------------------------- 1 | # malloca.m4 serial 1 2 | dnl Copyright (C) 2003-2004, 2006-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_MALLOCA], 9 | [ 10 | dnl Use the autoconf tests for alloca(), but not the AC_SUBSTed variables 11 | dnl @ALLOCA@ and @LTALLOCA@. 12 | dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies. 13 | AC_REQUIRE([gl_EEMALLOC]) 14 | AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) 15 | ]) 16 | -------------------------------------------------------------------------------- /whois/as_del.h: -------------------------------------------------------------------------------- 1 | { 1877, 1901, "whois.ripe.net" }, 2 | { 2043, 2043, "whois.ripe.net" }, 3 | { 2047, 2047, "whois.ripe.net" }, 4 | { 2057, 2136, "whois.ripe.net" }, 5 | { 2585, 2614, "whois.ripe.net" }, 6 | { 2773, 2822, "whois.ripe.net" }, 7 | { 2830, 2879, "whois.ripe.net" }, 8 | { 3154, 3353, "whois.ripe.net" }, 9 | { 4608, 4863, "whois.apnic.net" }, 10 | { 5377, 5631, "whois.ripe.net" }, 11 | { 5800, 5927, "whois.nic.mil" }, 12 | { 6656, 6911, "whois.ripe.net" }, 13 | { 7467, 7722, "whois.apnic.net" }, 14 | { 8192, 9215, "whois.ripe.net" }, 15 | { 9261, 10239, "whois.apnic.net" }, 16 | { 12288, 13311, "whois.ripe.net" }, 17 | { 15360, 16383, "whois.ripe.net" }, 18 | -------------------------------------------------------------------------------- /m4/localcharset.m4: -------------------------------------------------------------------------------- 1 | # localcharset.m4 serial 7 2 | dnl Copyright (C) 2002, 2004, 2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_LOCALCHARSET], 8 | [ 9 | dnl Prerequisites of lib/localcharset.c. 10 | AC_REQUIRE([AM_LANGINFO_CODESET]) 11 | AC_REQUIRE([gl_FCNTL_O_FLAGS]) 12 | AC_CHECK_DECLS_ONCE([getc_unlocked]) 13 | 14 | dnl Prerequisites of the lib/Makefile.am snippet. 15 | AC_REQUIRE([AC_CANONICAL_HOST]) 16 | AC_REQUIRE([gl_GLIBC21]) 17 | ]) 18 | -------------------------------------------------------------------------------- /m4/posix_openpt.m4: -------------------------------------------------------------------------------- 1 | # posix_openpt.m4 serial 2 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_POSIX_OPENPT], 8 | [ 9 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 10 | 11 | dnl Persuade Solaris to declare posix_openpt(). 12 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 13 | 14 | AC_CHECK_FUNCS_ONCE([posix_openpt]) 15 | if test $ac_cv_func_posix_openpt != yes; then 16 | dnl The system does not have posix_openpt. 17 | HAVE_POSIX_OPENPT=0 18 | fi 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/localeconv.m4: -------------------------------------------------------------------------------- 1 | # localeconv.m4 serial 1 2 | dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_LOCALECONV], 8 | [ 9 | AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) 10 | AC_REQUIRE([gl_LOCALE_H]) 11 | 12 | if test $REPLACE_STRUCT_LCONV = 1; then 13 | REPLACE_LOCALECONV=1 14 | fi 15 | ]) 16 | 17 | # Prerequisites of lib/localeconv.c. 18 | AC_DEFUN([gl_PREREQ_LOCALECONV], 19 | [ 20 | AC_CHECK_MEMBERS([struct lconv.decimal_point], [], [], 21 | [[#include ]]) 22 | ]) 23 | -------------------------------------------------------------------------------- /m4/rawmemchr.m4: -------------------------------------------------------------------------------- 1 | # rawmemchr.m4 serial 2 2 | dnl Copyright (C) 2003, 2007-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_RAWMEMCHR], 8 | [ 9 | dnl Persuade glibc to declare rawmemchr(). 10 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 11 | 12 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 13 | AC_CHECK_FUNCS([rawmemchr]) 14 | if test $ac_cv_func_rawmemchr = no; then 15 | HAVE_RAWMEMCHR=0 16 | fi 17 | ]) 18 | 19 | # Prerequisites of lib/strchrnul.c. 20 | AC_DEFUN([gl_PREREQ_RAWMEMCHR], [:]) 21 | -------------------------------------------------------------------------------- /m4/sys_types_h.m4: -------------------------------------------------------------------------------- 1 | # sys_types_h.m4 serial 5 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN_ONCE([gl_SYS_TYPES_H], 8 | [ 9 | AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) 10 | gl_NEXT_HEADERS([sys/types.h]) 11 | 12 | dnl Ensure the type pid_t gets defined. 13 | AC_REQUIRE([AC_TYPE_PID_T]) 14 | 15 | dnl Ensure the type mode_t gets defined. 16 | AC_REQUIRE([AC_TYPE_MODE_T]) 17 | 18 | dnl Whether to override the 'off_t' type. 19 | AC_REQUIRE([gl_TYPE_OFF_T]) 20 | ]) 21 | 22 | AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS], 23 | [ 24 | ]) 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.a 2 | *.cflow 3 | *.gcda 4 | *.gcno 5 | *.gcov 6 | *.la 7 | *.lo 8 | *.o 9 | *.sig 10 | *.so 11 | *~ 12 | .bootstrap 13 | .deps 14 | .emacs* 15 | .libs 16 | .sc-start-sc_bindtextdomain 17 | .sc-start-sc_prohibit_have_config_h 18 | .tarball-version 19 | .version 20 | /build-aux 21 | /m4 22 | ABOUT-NLS 23 | GNUmakefile 24 | INSTALL 25 | Makefile 26 | Makefile.in 27 | TAGS 28 | aclocal.m4 29 | autom4te.cache 30 | build-aux 31 | config.cache 32 | config.h 33 | config.h.in 34 | config.hin 35 | config.log 36 | config.status 37 | configure 38 | confpaths.h 39 | gnulib 40 | gnulib/ 41 | include 42 | inetutils-*.tar.gz 43 | inetutils-*/ 44 | lib/ 45 | libtool 46 | m4 47 | maint.mk 48 | pathdefs.make 49 | paths.defs 50 | stamp-h.in 51 | stamp-h1 52 | !lib/Makefile.am 53 | -------------------------------------------------------------------------------- /m4/memrchr.m4: -------------------------------------------------------------------------------- 1 | # memrchr.m4 serial 10 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_MEMRCHR], 9 | [ 10 | dnl Persuade glibc to declare memrchr(). 11 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 12 | 13 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 14 | AC_CHECK_DECLS_ONCE([memrchr]) 15 | if test $ac_cv_have_decl_memrchr = no; then 16 | HAVE_DECL_MEMRCHR=0 17 | fi 18 | 19 | AC_CHECK_FUNCS([memrchr]) 20 | ]) 21 | 22 | # Prerequisites of lib/memrchr.c. 23 | AC_DEFUN([gl_PREREQ_MEMRCHR], [:]) 24 | -------------------------------------------------------------------------------- /m4/msvc-inval.m4: -------------------------------------------------------------------------------- 1 | # msvc-inval.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_MSVC_INVAL], 8 | [ 9 | AC_CHECK_FUNCS_ONCE([_set_invalid_parameter_handler]) 10 | if test $ac_cv_func__set_invalid_parameter_handler = yes; then 11 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 12 | AC_DEFINE([HAVE_MSVC_INVALID_PARAMETER_HANDLER], [1], 13 | [Define to 1 on MSVC platforms that have the "invalid parameter handler" 14 | concept.]) 15 | else 16 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 17 | fi 18 | AC_SUBST([HAVE_MSVC_INVALID_PARAMETER_HANDLER]) 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/opendir.m4: -------------------------------------------------------------------------------- 1 | # opendir.m4 serial 2 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_OPENDIR], 8 | [ 9 | AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) 10 | 11 | AC_CHECK_FUNCS([opendir]) 12 | if test $ac_cv_func_opendir = no; then 13 | HAVE_OPENDIR=0 14 | fi 15 | dnl Replace opendir() for supporting the gnulib-defined fchdir() function, 16 | dnl to keep fchdir's bookkeeping up-to-date. 17 | m4_ifdef([gl_FUNC_FCHDIR], [ 18 | gl_TEST_FCHDIR 19 | if test $HAVE_FCHDIR = 0; then 20 | if test $HAVE_OPENDIR = 1; then 21 | REPLACE_OPENDIR=1 22 | fi 23 | fi 24 | ]) 25 | ]) 26 | -------------------------------------------------------------------------------- /lib/exitfail.h: -------------------------------------------------------------------------------- 1 | /* Failure exit status 2 | 3 | Copyright (C) 2002, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | extern int volatile exit_failure; 19 | -------------------------------------------------------------------------------- /lib/xgetcwd.h: -------------------------------------------------------------------------------- 1 | /* prototype for xgetcwd 2 | Copyright (C) 1995, 2001, 2003, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | extern char *xgetcwd (void); 18 | -------------------------------------------------------------------------------- /m4/closedir.m4: -------------------------------------------------------------------------------- 1 | # closedir.m4 serial 2 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_CLOSEDIR], 8 | [ 9 | AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) 10 | 11 | AC_CHECK_FUNCS([closedir]) 12 | if test $ac_cv_func_closedir = no; then 13 | HAVE_CLOSEDIR=0 14 | fi 15 | dnl Replace closedir() for supporting the gnulib-defined fchdir() function, 16 | dnl to keep fchdir's bookkeeping up-to-date. 17 | m4_ifdef([gl_FUNC_FCHDIR], [ 18 | gl_TEST_FCHDIR 19 | if test $HAVE_FCHDIR = 0; then 20 | if test $HAVE_CLOSEDIR = 1; then 21 | REPLACE_CLOSEDIR=1 22 | fi 23 | fi 24 | ]) 25 | ]) 26 | -------------------------------------------------------------------------------- /m4/dup.m4: -------------------------------------------------------------------------------- 1 | # dup.m4 serial 3 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_DUP], 8 | [ 9 | AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) 10 | AC_REQUIRE([gl_MSVC_INVAL]) 11 | if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 12 | REPLACE_DUP=1 13 | fi 14 | dnl Replace dup() for supporting the gnulib-defined fchdir() function, 15 | dnl to keep fchdir's bookkeeping up-to-date. 16 | m4_ifdef([gl_FUNC_FCHDIR], [ 17 | gl_TEST_FCHDIR 18 | if test $HAVE_FCHDIR = 0; then 19 | REPLACE_DUP=1 20 | fi 21 | ]) 22 | ]) 23 | 24 | # Prerequisites of lib/dup.c. 25 | AC_DEFUN([gl_PREREQ_DUP], [:]) 26 | -------------------------------------------------------------------------------- /m4/mempcpy.m4: -------------------------------------------------------------------------------- 1 | # mempcpy.m4 serial 11 2 | dnl Copyright (C) 2003-2004, 2006-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_MEMPCPY], 9 | [ 10 | dnl Persuade glibc to declare mempcpy(). 11 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 12 | 13 | dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'. 14 | AC_REQUIRE([AC_C_RESTRICT]) 15 | 16 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 17 | AC_CHECK_FUNCS([mempcpy]) 18 | if test $ac_cv_func_mempcpy = no; then 19 | HAVE_MEMPCPY=0 20 | fi 21 | ]) 22 | 23 | # Prerequisites of lib/mempcpy.c. 24 | AC_DEFUN([gl_PREREQ_MEMPCPY], [ 25 | : 26 | ]) 27 | -------------------------------------------------------------------------------- /lib/isnand.c: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2008-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Bruno Haible , 2008. */ 18 | 19 | #include "isnan.c" 20 | -------------------------------------------------------------------------------- /m4/secure_getenv.m4: -------------------------------------------------------------------------------- 1 | # Look up an environment variable more securely. 2 | dnl Copyright 2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_SECURE_GETENV], 8 | [ 9 | dnl Persuade glibc to declare secure_getenv(). 10 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 11 | 12 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 13 | AC_CHECK_FUNCS_ONCE([secure_getenv]) 14 | if test $ac_cv_func_secure_getenv = no; then 15 | HAVE_SECURE_GETENV=0 16 | fi 17 | ]) 18 | 19 | # Prerequisites of lib/secure_getenv.c. 20 | AC_DEFUN([gl_PREREQ_SECURE_GETENV], [ 21 | AC_CHECK_FUNCS([__secure_getenv]) 22 | if test $ac_cv_func___secure_getenv = no; then 23 | AC_CHECK_FUNCS([issetugid]) 24 | fi 25 | ]) 26 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | This is a partial list of people (in alphabetical order) who have 2 | contributed to inetutils, some utilities originate from BSB 4.4-Lite2, 3 | and might not have an author associated with them. 4 | 5 | Alain Malgoire 6 | Alfred M. Szmidt 7 | Arash Yadegarnia 8 | Bernhard Rosenkraenzer 9 | Dan Stromberg 10 | David O'Shea 11 | Debarshi Ray 12 | Edward Attfield 13 | Elian Gidoni 14 | Giuseppe Scrivano 15 | Guillem Jover 16 | Jakob Kaivo 17 | Jeff Bailey 18 | Jeff Smith 19 | Jeroen Dekkers 20 | Joachim Gabler 21 | Joel N. Weber II 22 | Karl Berry 23 | Kaveh R. Ghazi 24 | Ludovic Courtès 25 | Marcus Brinkmann 26 | Mats Erik Andersson 27 | Matt Roberds 28 | Michael Weiser 29 | Michal Svoboda 30 | Michael Vogt 31 | Miles Bader 32 | Pedro Alves 33 | Petr Salinger 34 | Philippe De Muyter 35 | Rakesh Pandit 36 | Roland McGrath 37 | Samuel Thibault 38 | Sergey Poznyakoff 39 | Simon Josefsson 40 | Winston Edmond 41 | -------------------------------------------------------------------------------- /m4/ssize_t.m4: -------------------------------------------------------------------------------- 1 | # ssize_t.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2001-2003, 2006, 2010-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether ssize_t is defined. 9 | 10 | AC_DEFUN([gt_TYPE_SSIZE_T], 11 | [ 12 | AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], 13 | [AC_COMPILE_IFELSE( 14 | [AC_LANG_PROGRAM( 15 | [[#include ]], 16 | [[int x = sizeof (ssize_t *) + sizeof (ssize_t); 17 | return !x;]])], 18 | [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) 19 | if test $gt_cv_ssize_t = no; then 20 | AC_DEFINE([ssize_t], [int], 21 | [Define as a signed type of the same size as size_t.]) 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /m4/st_dm_mode.m4: -------------------------------------------------------------------------------- 1 | # serial 6 2 | 3 | # Copyright (C) 1998-1999, 2001, 2009-2013 Free Software Foundation, Inc. 4 | # This file is free software; the Free Software Foundation 5 | # gives unlimited permission to copy and/or distribute it, 6 | # with or without modifications, as long as this notice is preserved. 7 | 8 | # Define HAVE_ST_DM_MODE if struct stat has an st_dm_mode member. 9 | 10 | AC_DEFUN([AC_STRUCT_ST_DM_MODE], 11 | [AC_CACHE_CHECK([for st_dm_mode in struct stat], [ac_cv_struct_st_dm_mode], 12 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 13 | #include 14 | #include ]], [[struct stat s; s.st_dm_mode;]])], 15 | [ac_cv_struct_st_dm_mode=yes], 16 | [ac_cv_struct_st_dm_mode=no])]) 17 | 18 | if test $ac_cv_struct_st_dm_mode = yes; then 19 | AC_DEFINE([HAVE_ST_DM_MODE], [1], 20 | [Define if struct stat has an st_dm_mode member. ]) 21 | fi 22 | ] 23 | ) 24 | -------------------------------------------------------------------------------- /m4/wchar_t.m4: -------------------------------------------------------------------------------- 1 | # wchar_t.m4 serial 4 (gettext-0.18.2) 2 | dnl Copyright (C) 2002-2003, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether has the 'wchar_t' type. 9 | dnl Prerequisite: AC_PROG_CC 10 | 11 | AC_DEFUN([gt_TYPE_WCHAR_T], 12 | [ 13 | AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], 14 | [AC_COMPILE_IFELSE( 15 | [AC_LANG_PROGRAM( 16 | [[#include 17 | wchar_t foo = (wchar_t)'\0';]], 18 | [[]])], 19 | [gt_cv_c_wchar_t=yes], 20 | [gt_cv_c_wchar_t=no])]) 21 | if test $gt_cv_c_wchar_t = yes; then 22 | AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) 23 | fi 24 | ]) 25 | -------------------------------------------------------------------------------- /lib/isnanf.c: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Bruno Haible , 2007. */ 18 | 19 | #define USE_FLOAT 20 | #include "isnan.c" 21 | -------------------------------------------------------------------------------- /m4/codeset.m4: -------------------------------------------------------------------------------- 1 | # codeset.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2000-2002, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | 9 | AC_DEFUN([AM_LANGINFO_CODESET], 10 | [ 11 | AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 12 | [AC_LINK_IFELSE( 13 | [AC_LANG_PROGRAM( 14 | [[#include ]], 15 | [[char* cs = nl_langinfo(CODESET); return !cs;]])], 16 | [am_cv_langinfo_codeset=yes], 17 | [am_cv_langinfo_codeset=no]) 18 | ]) 19 | if test $am_cv_langinfo_codeset = yes; then 20 | AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 21 | [Define if you have and nl_langinfo(CODESET).]) 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /lib/isnanl.c: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Bruno Haible , 2007. */ 18 | 19 | #define USE_LONG_DOUBLE 20 | #include "isnan.c" 21 | -------------------------------------------------------------------------------- /libtelnet/genget.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU Inetutils. 5 | 6 | GNU Inetutils is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or (at 9 | your option) any later version. 10 | 11 | GNU Inetutils is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 18 | 19 | int isprefix (register char *s1, register char *s2); 20 | char **genget (char *name, char **table, int stlen); 21 | -------------------------------------------------------------------------------- /m4/error.m4: -------------------------------------------------------------------------------- 1 | #serial 14 2 | 3 | # Copyright (C) 1996-1998, 2001-2004, 2009-2013 Free Software Foundation, Inc. 4 | # 5 | # This file is free software; the Free Software Foundation 6 | # gives unlimited permission to copy and/or distribute it, 7 | # with or without modifications, as long as this notice is preserved. 8 | 9 | AC_DEFUN([gl_ERROR], 10 | [ 11 | dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer 12 | dnl maintained in Autoconf and because it invokes AC_LIBOBJ. 13 | AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], 14 | [AC_LINK_IFELSE( 15 | [AC_LANG_PROGRAM( 16 | [[#include ]], 17 | [[error_at_line (0, 0, "", 0, "an error occurred");]])], 18 | [ac_cv_lib_error_at_line=yes], 19 | [ac_cv_lib_error_at_line=no])]) 20 | ]) 21 | 22 | # Prerequisites of lib/error.c. 23 | AC_DEFUN([gl_PREREQ_ERROR], 24 | [ 25 | AC_REQUIRE([AC_FUNC_STRERROR_R]) 26 | : 27 | ]) 28 | -------------------------------------------------------------------------------- /m4/inttostr.m4: -------------------------------------------------------------------------------- 1 | #serial 8 2 | dnl Copyright (C) 2004-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_INTTOSTR], 8 | [ 9 | gl_PREREQ_INTTOSTR 10 | gl_PREREQ_IMAXTOSTR 11 | gl_PREREQ_OFFTOSTR 12 | gl_PREREQ_UMAXTOSTR 13 | gl_PREREQ_UINTTOSTR 14 | ]) 15 | 16 | # Prerequisites of lib/inttostr.h. 17 | AC_DEFUN([gl_PREREQ_INTTOSTR], [ 18 | AC_REQUIRE([AC_TYPE_OFF_T]) 19 | : 20 | ]) 21 | 22 | # Prerequisites of lib/imaxtostr.c. 23 | AC_DEFUN([gl_PREREQ_IMAXTOSTR], [:]) 24 | 25 | # Prerequisites of lib/offtostr.c. 26 | AC_DEFUN([gl_PREREQ_OFFTOSTR], [:]) 27 | 28 | # Prerequisites of lib/umaxtostr.c. 29 | AC_DEFUN([gl_PREREQ_UMAXTOSTR], [:]) 30 | 31 | # Prerequisites of lib/uinttostr.c. 32 | AC_DEFUN([gl_PREREQ_UINTTOSTR], [:]) 33 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | # 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | info_TEXINFOS = inetutils.texi 21 | 22 | inetutils_TEXINFOS = fdl-1.3.texi 23 | -------------------------------------------------------------------------------- /lib/exitfail.c: -------------------------------------------------------------------------------- 1 | /* Failure exit status 2 | 3 | Copyright (C) 2002-2003, 2005-2007, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | #include "exitfail.h" 21 | 22 | #include 23 | 24 | int volatile exit_failure = EXIT_FAILURE; 25 | -------------------------------------------------------------------------------- /m4/glibc2.m4: -------------------------------------------------------------------------------- 1 | # glibc2.m4 serial 3 2 | dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | # Test for the GNU C Library, version 2.0 or newer. 9 | # From Bruno Haible. 10 | 11 | AC_DEFUN([gt_GLIBC2], 12 | [ 13 | AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], 14 | [ac_cv_gnu_library_2], 15 | [AC_EGREP_CPP([Lucky GNU user], 16 | [ 17 | #include 18 | #ifdef __GNU_LIBRARY__ 19 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 20 | Lucky GNU user 21 | #endif 22 | #endif 23 | ], 24 | [ac_cv_gnu_library_2=yes], 25 | [ac_cv_gnu_library_2=no]) 26 | ] 27 | ) 28 | AC_SUBST([GLIBC2]) 29 | GLIBC2="$ac_cv_gnu_library_2" 30 | ] 31 | ) 32 | -------------------------------------------------------------------------------- /m4/intldir.m4: -------------------------------------------------------------------------------- 1 | # intldir.m4 serial 2 (gettext-0.18) 2 | dnl Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | dnl 7 | dnl This file can can be used in projects which are not available under 8 | dnl the GNU General Public License or the GNU Library General Public 9 | dnl License but which still want to provide support for the GNU gettext 10 | dnl functionality. 11 | dnl Please note that the actual code of the GNU gettext library is covered 12 | dnl by the GNU Library General Public License, and the rest of the GNU 13 | dnl gettext package package is covered by the GNU General Public License. 14 | dnl They are *not* in the public domain. 15 | 16 | AC_PREREQ([2.52]) 17 | 18 | dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. 19 | AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) 20 | -------------------------------------------------------------------------------- /m4/strnlen.m4: -------------------------------------------------------------------------------- 1 | # strnlen.m4 serial 13 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_STRNLEN], 9 | [ 10 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 11 | 12 | dnl Persuade glibc to declare strnlen(). 13 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 14 | 15 | AC_CHECK_DECLS_ONCE([strnlen]) 16 | if test $ac_cv_have_decl_strnlen = no; then 17 | HAVE_DECL_STRNLEN=0 18 | else 19 | m4_pushdef([AC_LIBOBJ], [:]) 20 | dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). 21 | AC_FUNC_STRNLEN 22 | m4_popdef([AC_LIBOBJ]) 23 | if test $ac_cv_func_strnlen_working = no; then 24 | REPLACE_STRNLEN=1 25 | fi 26 | fi 27 | ]) 28 | 29 | # Prerequisites of lib/strnlen.c. 30 | AC_DEFUN([gl_PREREQ_STRNLEN], [:]) 31 | -------------------------------------------------------------------------------- /lib/mbtowc.c: -------------------------------------------------------------------------------- 1 | /* Convert multibyte character to wide character. 2 | Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2011. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | #include "mbtowc-impl.h" 27 | -------------------------------------------------------------------------------- /lib/ref-del.sin: -------------------------------------------------------------------------------- 1 | # Remove this package from a list of references stored in a text file. 2 | # 3 | # Copyright (C) 2000, 2009-2013 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 3, or (at your option) 8 | # any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program; if not, see . 17 | # 18 | # Written by Bruno Haible . 19 | # 20 | /^# Packages using this file: / { 21 | s/# Packages using this file:// 22 | s/ @PACKAGE@ / / 23 | s/^/# Packages using this file:/ 24 | } 25 | -------------------------------------------------------------------------------- /m4/glibc21.m4: -------------------------------------------------------------------------------- 1 | # glibc21.m4 serial 5 2 | dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | # Test for the GNU C Library, version 2.1 or newer, or uClibc. 9 | # From Bruno Haible. 10 | 11 | AC_DEFUN([gl_GLIBC21], 12 | [ 13 | AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc], 14 | [ac_cv_gnu_library_2_1], 15 | [AC_EGREP_CPP([Lucky], 16 | [ 17 | #include 18 | #ifdef __GNU_LIBRARY__ 19 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 20 | Lucky GNU user 21 | #endif 22 | #endif 23 | #ifdef __UCLIBC__ 24 | Lucky user 25 | #endif 26 | ], 27 | [ac_cv_gnu_library_2_1=yes], 28 | [ac_cv_gnu_library_2_1=no]) 29 | ] 30 | ) 31 | AC_SUBST([GLIBC21]) 32 | GLIBC21="$ac_cv_gnu_library_2_1" 33 | ] 34 | ) 35 | -------------------------------------------------------------------------------- /libicmp/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | # 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | noinst_LIBRARIES = libicmp.a 21 | 22 | libicmp_a_SOURCES = icmp_echo.c \ 23 | icmp_timestamp.c \ 24 | icmp_address.c \ 25 | icmp_cksum.c 26 | 27 | noinst_HEADERS = icmp.h 28 | -------------------------------------------------------------------------------- /lib/getline.c: -------------------------------------------------------------------------------- 1 | /* getline.c --- Implementation of replacement getline function. 2 | Copyright (C) 2005-2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 3, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . */ 16 | 17 | /* Written by Simon Josefsson. */ 18 | 19 | #include 20 | 21 | #include 22 | 23 | ssize_t 24 | getline (char **lineptr, size_t *n, FILE *stream) 25 | { 26 | return getdelim (lineptr, n, '\n', stream); 27 | } 28 | -------------------------------------------------------------------------------- /m4/sys_uio_h.m4: -------------------------------------------------------------------------------- 1 | # sys_uio_h.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_HEADER_SYS_UIO], 8 | [ 9 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) 10 | dnl is always overridden, because of GNULIB_POSIXCHECK. 11 | gl_CHECK_NEXT_HEADERS([sys/uio.h]) 12 | if test $ac_cv_header_sys_uio_h = yes; then 13 | HAVE_SYS_UIO_H=1 14 | else 15 | HAVE_SYS_UIO_H=0 16 | fi 17 | AC_SUBST([HAVE_SYS_UIO_H]) 18 | ]) 19 | 20 | AC_DEFUN([gl_SYS_UIO_MODULE_INDICATOR], 21 | [ 22 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. 23 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) 24 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) 25 | dnl Define it also as a C macro, for the benefit of the unit tests. 26 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) 27 | ]) 28 | 29 | AC_DEFUN([gl_SYS_UIO_H_DEFAULTS], 30 | [ 31 | ]) 32 | -------------------------------------------------------------------------------- /m4/getusershell.m4: -------------------------------------------------------------------------------- 1 | # getusershell.m4 serial 7 2 | dnl Copyright (C) 2002-2003, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_GETUSERSHELL], 8 | [ 9 | AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) 10 | 11 | dnl Persuade glibc to declare {get,set,end}usershell(). 12 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 13 | 14 | dnl Check whether the getusershell function exists. 15 | AC_CHECK_FUNCS_ONCE([getusershell]) 16 | if test $ac_cv_func_getusershell = yes; then 17 | HAVE_GETUSERSHELL=1 18 | dnl Check whether getusershell is declared. 19 | AC_CHECK_DECLS([getusershell]) 20 | if test $ac_cv_have_decl_getusershell = no; then 21 | HAVE_DECL_GETUSERSHELL=0 22 | fi 23 | else 24 | HAVE_GETUSERSHELL=0 25 | dnl Assume that on platforms which declare it, the function exists. 26 | HAVE_DECL_GETUSERSHELL=0 27 | fi 28 | ]) 29 | -------------------------------------------------------------------------------- /m4/eealloc.m4: -------------------------------------------------------------------------------- 1 | # eealloc.m4 serial 3 2 | dnl Copyright (C) 2003, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_EEALLOC], 8 | [ 9 | AC_REQUIRE([gl_EEMALLOC]) 10 | AC_REQUIRE([gl_EEREALLOC]) 11 | ]) 12 | 13 | AC_DEFUN([gl_EEMALLOC], 14 | [ 15 | _AC_FUNC_MALLOC_IF( 16 | [gl_cv_func_malloc_0_nonnull=1], 17 | [gl_cv_func_malloc_0_nonnull=0]) 18 | AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], 19 | [If malloc(0) is != NULL, define this to 1. Otherwise define this 20 | to 0.]) 21 | ]) 22 | 23 | AC_DEFUN([gl_EEREALLOC], 24 | [ 25 | _AC_FUNC_REALLOC_IF( 26 | [gl_cv_func_realloc_0_nonnull=1], 27 | [gl_cv_func_realloc_0_nonnull=0]) 28 | AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], 29 | [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this 30 | to 0.]) 31 | ]) 32 | -------------------------------------------------------------------------------- /lib/argp-pin.c: -------------------------------------------------------------------------------- 1 | /* Full and short program names for argp module 2 | Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifdef HAVE_CONFIG_H 18 | # include 19 | #endif 20 | 21 | #ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME 22 | char *program_invocation_short_name = 0; 23 | #endif 24 | #ifndef HAVE_PROGRAM_INVOCATION_NAME 25 | char *program_invocation_name = 0; 26 | #endif 27 | -------------------------------------------------------------------------------- /m4/fstat.m4: -------------------------------------------------------------------------------- 1 | # fstat.m4 serial 4 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_FSTAT], 8 | [ 9 | AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) 10 | 11 | AC_REQUIRE([gl_MSVC_INVAL]) 12 | if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 13 | REPLACE_FSTAT=1 14 | fi 15 | 16 | AC_REQUIRE([gl_HEADER_SYS_STAT_H]) 17 | if test $WINDOWS_64_BIT_ST_SIZE = 1; then 18 | REPLACE_FSTAT=1 19 | fi 20 | 21 | dnl Replace fstat() for supporting the gnulib-defined open() on directories. 22 | m4_ifdef([gl_FUNC_FCHDIR], [ 23 | gl_TEST_FCHDIR 24 | if test $HAVE_FCHDIR = 0; then 25 | case "$gl_cv_func_open_directory_works" in 26 | *yes) ;; 27 | *) 28 | REPLACE_FSTAT=1 29 | ;; 30 | esac 31 | fi 32 | ]) 33 | ]) 34 | 35 | # Prerequisites of lib/fstat.c. 36 | AC_DEFUN([gl_PREREQ_FSTAT], [:]) 37 | -------------------------------------------------------------------------------- /m4/openat.m4: -------------------------------------------------------------------------------- 1 | # serial 45 2 | # See if we need to use our replacement for Solaris' openat et al functions. 3 | 4 | dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. 5 | dnl This file is free software; the Free Software Foundation 6 | dnl gives unlimited permission to copy and/or distribute it, 7 | dnl with or without modifications, as long as this notice is preserved. 8 | 9 | # Written by Jim Meyering. 10 | 11 | AC_DEFUN([gl_FUNC_OPENAT], 12 | [ 13 | AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) 14 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 15 | AC_CHECK_FUNCS_ONCE([openat]) 16 | AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) 17 | case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in 18 | yes+*yes) 19 | ;; 20 | yes+*) 21 | # Solaris 9 has *at functions, but uniformly mishandles trailing 22 | # slash in all of them. 23 | REPLACE_OPENAT=1 24 | ;; 25 | *) 26 | HAVE_OPENAT=0 27 | ;; 28 | esac 29 | ]) 30 | 31 | # Prerequisites of lib/openat.c. 32 | AC_DEFUN([gl_PREREQ_OPENAT], 33 | [ 34 | AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T]) 35 | : 36 | ]) 37 | -------------------------------------------------------------------------------- /m4/strdup.m4: -------------------------------------------------------------------------------- 1 | # strdup.m4 serial 13 2 | 3 | dnl Copyright (C) 2002-2013 Free Software Foundation, Inc. 4 | 5 | dnl This file is free software; the Free Software Foundation 6 | dnl gives unlimited permission to copy and/or distribute it, 7 | dnl with or without modifications, as long as this notice is preserved. 8 | 9 | AC_DEFUN([gl_FUNC_STRDUP], 10 | [ 11 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 12 | AC_CHECK_FUNCS_ONCE([strdup]) 13 | AC_CHECK_DECLS_ONCE([strdup]) 14 | if test $ac_cv_have_decl_strdup = no; then 15 | HAVE_DECL_STRDUP=0 16 | fi 17 | ]) 18 | 19 | AC_DEFUN([gl_FUNC_STRDUP_POSIX], 20 | [ 21 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 22 | AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) 23 | AC_CHECK_FUNCS_ONCE([strdup]) 24 | if test $ac_cv_func_strdup = yes; then 25 | if test $gl_cv_func_malloc_posix != yes; then 26 | REPLACE_STRDUP=1 27 | fi 28 | fi 29 | AC_CHECK_DECLS_ONCE([strdup]) 30 | if test $ac_cv_have_decl_strdup = no; then 31 | HAVE_DECL_STRDUP=0 32 | fi 33 | ]) 34 | 35 | # Prerequisites of lib/strdup.c. 36 | AC_DEFUN([gl_PREREQ_STRDUP], [:]) 37 | -------------------------------------------------------------------------------- /m4/stdint_h.m4: -------------------------------------------------------------------------------- 1 | # stdint_h.m4 serial 9 2 | dnl Copyright (C) 1997-2004, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Paul Eggert. 8 | 9 | # Define HAVE_STDINT_H_WITH_UINTMAX if exists, 10 | # doesn't clash with , and declares uintmax_t. 11 | 12 | AC_DEFUN([gl_AC_HEADER_STDINT_H], 13 | [ 14 | AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], 15 | [AC_COMPILE_IFELSE( 16 | [AC_LANG_PROGRAM( 17 | [[#include 18 | #include ]], 19 | [[uintmax_t i = (uintmax_t) -1; return !i;]])], 20 | [gl_cv_header_stdint_h=yes], 21 | [gl_cv_header_stdint_h=no])]) 22 | if test $gl_cv_header_stdint_h = yes; then 23 | AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], 24 | [Define if exists, doesn't clash with , 25 | and declares uintmax_t. ]) 26 | fi 27 | ]) 28 | -------------------------------------------------------------------------------- /libls/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 3 | # 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | noinst_LIBRARIES = @libls_BUILD@ 21 | 22 | EXTRA_LIBRARIES = libls.a 23 | 24 | libls_a_SOURCES = cmp.c stat_flags.c ls.c print.c util.c fts.c 25 | 26 | noinst_HEADERS = extern.h ls.h fts.h 27 | 28 | INCLUDES = $(iu_INCLUDES) 29 | -------------------------------------------------------------------------------- /m4/d-type.m4: -------------------------------------------------------------------------------- 1 | # serial 11 2 | 3 | dnl From Jim Meyering. 4 | dnl 5 | dnl Check whether struct dirent has a member named d_type. 6 | dnl 7 | 8 | # Copyright (C) 1997, 1999-2004, 2006, 2009-2013 Free Software Foundation, Inc. 9 | # 10 | # This file is free software; the Free Software Foundation 11 | # gives unlimited permission to copy and/or distribute it, 12 | # with or without modifications, as long as this notice is preserved. 13 | 14 | AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE], 15 | [AC_CACHE_CHECK([for d_type member in directory struct], 16 | gl_cv_struct_dirent_d_type, 17 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 18 | #include 19 | #include 20 | ]], 21 | [[struct dirent dp; dp.d_type = 0;]])], 22 | [gl_cv_struct_dirent_d_type=yes], 23 | [gl_cv_struct_dirent_d_type=no]) 24 | ] 25 | ) 26 | if test $gl_cv_struct_dirent_d_type = yes; then 27 | AC_DEFINE([HAVE_STRUCT_DIRENT_D_TYPE], [1], 28 | [Define if there is a member named d_type in the struct describing 29 | directory headers.]) 30 | fi 31 | ] 32 | ) 33 | -------------------------------------------------------------------------------- /ifconfig/COMPATIBILITY: -------------------------------------------------------------------------------- 1 | Notes about the compatibility to various system's ifconfig program. 2 | 3 | all systems 4 | 5 | We don't support any protocol families but inet (version 4). 6 | The systems command line interface is not completely implemented. 7 | 8 | 9 | i386-gnu-linux (net-tools) 10 | 11 | Metric is reported as 1, we report it correctly as 0. 12 | (The metric is the number of additional hops, not the number of 13 | hops total -- the Linux kernel <= 2.4 returns the correct number 14 | 0, it's just net-tools that converts this to 1). 15 | 16 | Uses the output format `net-tools'. This does not report the 17 | statistics as recorded in /proc/net/dev. (The format of this file 18 | is unsatisfying). 19 | 20 | 21 | hpux10.20 22 | 23 | Uses the output format `unix'. This might include more information 24 | than is included in the output of the system ifconfig. The 25 | additional info is available with the system command lanscan 26 | on HP-UX. 27 | 28 | 29 | sparc-sun-solaris-2.7 30 | 31 | Uses the output format `unix'. 32 | 33 | 34 | alphaev56-dec-osf4.0g 35 | 36 | Uses the output format `osf'. 37 | -------------------------------------------------------------------------------- /lib/dirfd.c: -------------------------------------------------------------------------------- 1 | /* dirfd.c -- return the file descriptor associated with an open DIR* 2 | 3 | Copyright (C) 2001, 2006, 2008-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Jim Meyering. */ 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | 25 | int 26 | dirfd (DIR *dir_p) 27 | { 28 | int fd = DIR_TO_FD (dir_p); 29 | if (fd == -1) 30 | errno = ENOTSUP; 31 | return fd; 32 | } 33 | -------------------------------------------------------------------------------- /lib/ref-add.sin: -------------------------------------------------------------------------------- 1 | # Add this package to a list of references stored in a text file. 2 | # 3 | # Copyright (C) 2000, 2009-2013 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 3, or (at your option) 8 | # any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program; if not, see . 17 | # 18 | # Written by Bruno Haible . 19 | # 20 | /^# Packages using this file: / { 21 | s/# Packages using this file:// 22 | ta 23 | :a 24 | s/ @PACKAGE@ / @PACKAGE@ / 25 | tb 26 | s/ $/ @PACKAGE@ / 27 | :b 28 | s/^/# Packages using this file:/ 29 | } 30 | -------------------------------------------------------------------------------- /libinetutils/defauthors.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 3 | 4 | This file is part of GNU Inetutils. 5 | 6 | GNU Inetutils is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or (at 9 | your option) any later version. 10 | 11 | GNU Inetutils is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 18 | 19 | #include 20 | 21 | #include 22 | 23 | /* Sometimes we do not know exact author names for a given utility. In such 24 | cases we use the following "author list": */ 25 | const char *default_program_authors[] = 26 | { 27 | "many authors", 28 | NULL 29 | }; 30 | -------------------------------------------------------------------------------- /lib/unistd--.h: -------------------------------------------------------------------------------- 1 | /* Like unistd.h, but redefine some names to avoid glitches. 2 | 3 | Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Paul Eggert. */ 19 | 20 | #include 21 | #include "unistd-safer.h" 22 | 23 | #undef dup 24 | #define dup dup_safer 25 | 26 | #undef pipe 27 | #define pipe pipe_safer 28 | 29 | #if GNULIB_PIPE2_SAFER 30 | # undef pipe2 31 | # define pipe2 pipe2_safer 32 | #endif 33 | -------------------------------------------------------------------------------- /ifconfig/system.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include 21 | 22 | #if defined __linux__ 23 | # include "system/linux.c" 24 | #elif defined(__sun__) 25 | # include "system/solaris.c" 26 | #elif defined(__QNX__) 27 | # include "system/qnx.c" 28 | #else 29 | # include "system/generic.c" 30 | #endif 31 | -------------------------------------------------------------------------------- /lib/mbsrtowcs.c: -------------------------------------------------------------------------------- 1 | /* Convert string to wide string. 2 | Copyright (C) 2008-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2008. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #include "strnlen1.h" 28 | 29 | 30 | extern mbstate_t _gl_mbsrtowcs_state; 31 | 32 | #include "mbsrtowcs-impl.h" 33 | -------------------------------------------------------------------------------- /lib/mempcpy.c: -------------------------------------------------------------------------------- 1 | /* Copy memory area and return pointer after last written byte. 2 | Copyright (C) 2003, 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3, or (at your option) 7 | any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #include 21 | 22 | /* Copy N bytes of SRC to DEST, return pointer to bytes after the 23 | last written byte. */ 24 | void * 25 | mempcpy (void *dest, const void *src, size_t n) 26 | { 27 | return (char *) memcpy (dest, src, n) + n; 28 | } 29 | -------------------------------------------------------------------------------- /m4/inttypes_h.m4: -------------------------------------------------------------------------------- 1 | # inttypes_h.m4 serial 10 2 | dnl Copyright (C) 1997-2004, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Paul Eggert. 8 | 9 | # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, 10 | # doesn't clash with , and declares uintmax_t. 11 | 12 | AC_DEFUN([gl_AC_HEADER_INTTYPES_H], 13 | [ 14 | AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], 15 | [AC_COMPILE_IFELSE( 16 | [AC_LANG_PROGRAM( 17 | [[ 18 | #include 19 | #include 20 | ]], 21 | [[uintmax_t i = (uintmax_t) -1; return !i;]])], 22 | [gl_cv_header_inttypes_h=yes], 23 | [gl_cv_header_inttypes_h=no])]) 24 | if test $gl_cv_header_inttypes_h = yes; then 25 | AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], 26 | [Define if exists, doesn't clash with , 27 | and declares uintmax_t. ]) 28 | fi 29 | ]) 30 | -------------------------------------------------------------------------------- /lib/itold.c: -------------------------------------------------------------------------------- 1 | /* Replacement for 'int' to 'long double' conversion routine. 2 | Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2011. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include 22 | 23 | void 24 | _Qp_itoq (long double *result, int a) 25 | { 26 | /* Convert from 'int' to 'double', then from 'double' to 'long double'. */ 27 | *result = (double) a; 28 | } 29 | -------------------------------------------------------------------------------- /lib/frexpl.c: -------------------------------------------------------------------------------- 1 | /* Split a 'long double' into fraction and mantissa. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | 19 | #if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 20 | 21 | /* Specification. */ 22 | # include 23 | 24 | long double 25 | frexpl (long double x, int *expptr) 26 | { 27 | return frexp (x, expptr); 28 | } 29 | 30 | #else 31 | 32 | # define USE_LONG_DOUBLE 33 | # include "frexp.c" 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /ifconfig/system/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | # 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | # *.c probably shouldn't be in here as 'headers' 21 | # but I'm too tired to figure out the right way right now. -jb 22 | 23 | noinst_HEADERS = \ 24 | generic.h \ 25 | linux.h \ 26 | solaris.h \ 27 | qnx.h \ 28 | generic.c \ 29 | linux.c \ 30 | solaris.c \ 31 | qnx.c 32 | -------------------------------------------------------------------------------- /lib/printf-frexp.h: -------------------------------------------------------------------------------- 1 | /* Split a double into fraction and mantissa, for hexadecimal printf. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Write a finite, positive number x as 18 | x = mantissa * 2^exp 19 | where exp >= DBL_MIN_EXP - 1, 20 | mantissa < 2.0, 21 | if x is not a denormalized number then mantissa >= 1.0. 22 | Store exp in *EXPPTR and return mantissa. */ 23 | extern double printf_frexp (double x, int *expptr); 24 | -------------------------------------------------------------------------------- /lib/filenamecat.h: -------------------------------------------------------------------------------- 1 | /* Concatenate two arbitrary file names. 2 | 3 | Copyright (C) 1996-1997, 2003, 2005, 2007, 2009-2013 Free Software 4 | Foundation, Inc. 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | /* Written by Jim Meyering. */ 20 | 21 | #if GNULIB_FILENAMECAT 22 | char *file_name_concat (char const *dir, char const *base, 23 | char **base_in_result); 24 | #endif 25 | 26 | char *mfile_name_concat (char const *dir, char const *base, 27 | char **base_in_result); 28 | -------------------------------------------------------------------------------- /lib/fseek.c: -------------------------------------------------------------------------------- 1 | /* An fseek() function that, together with fflush(), is POSIX compliant. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #include 21 | 22 | /* Get off_t. */ 23 | #include 24 | 25 | int 26 | fseek (FILE *fp, long offset, int whence) 27 | { 28 | /* Use the replacement fseeko function with all its workarounds. */ 29 | return fseeko (fp, (off_t)offset, whence); 30 | } 31 | -------------------------------------------------------------------------------- /lib/xasprintf.c: -------------------------------------------------------------------------------- 1 | /* vasprintf and asprintf with out-of-memory checking. 2 | Copyright (C) 1999, 2002-2004, 2006, 2009-2013 Free Software Foundation, 3 | Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include "xvasprintf.h" 22 | 23 | char * 24 | xasprintf (const char *format, ...) 25 | { 26 | va_list args; 27 | char *result; 28 | 29 | va_start (args, format); 30 | result = xvasprintf (format, args); 31 | va_end (args); 32 | 33 | return result; 34 | } 35 | -------------------------------------------------------------------------------- /lib/printf-frexpl.h: -------------------------------------------------------------------------------- 1 | /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Write a finite, positive number x as 18 | x = mantissa * 2^exp 19 | where exp >= LDBL_MIN_EXP - 1, 20 | mantissa < 2.0, 21 | if x is not a denormalized number then mantissa >= 1.0. 22 | Store exp in *EXPPTR and return mantissa. */ 23 | extern long double printf_frexpl (long double x, int *expptr); 24 | -------------------------------------------------------------------------------- /lib/unistd-safer.h: -------------------------------------------------------------------------------- 1 | /* Invoke unistd-like functions, but avoid some glitches. 2 | 3 | Copyright (C) 2001, 2003, 2005, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Paul Eggert and Eric Blake. */ 19 | 20 | int dup_safer (int); 21 | int fd_safer (int); 22 | int pipe_safer (int[2]); 23 | 24 | #if GNULIB_FD_SAFER_FLAG 25 | int dup_safer_flag (int, int); 26 | int fd_safer_flag (int, int); 27 | #endif 28 | 29 | #if GNULIB_PIPE2_SAFER 30 | int pipe2_safer (int[2], int); 31 | #endif 32 | -------------------------------------------------------------------------------- /m4/wint_t.m4: -------------------------------------------------------------------------------- 1 | # wint_t.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2003, 2007-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether has the 'wint_t' type. 9 | dnl Prerequisite: AC_PROG_CC 10 | 11 | AC_DEFUN([gt_TYPE_WINT_T], 12 | [ 13 | AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], 14 | [AC_COMPILE_IFELSE( 15 | [AC_LANG_PROGRAM( 16 | [[ 17 | /* Tru64 with Desktop Toolkit C has a bug: must be included before 18 | . 19 | BSD/OS 4.0.1 has a bug: , and must be included 20 | before . */ 21 | #include 22 | #include 23 | #include 24 | #include 25 | wint_t foo = (wchar_t)'\0';]], 26 | [[]])], 27 | [gt_cv_c_wint_t=yes], 28 | [gt_cv_c_wint_t=no])]) 29 | if test $gt_cv_c_wint_t = yes; then 30 | AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) 31 | fi 32 | ]) 33 | -------------------------------------------------------------------------------- /lib/dup-safer.c: -------------------------------------------------------------------------------- 1 | /* Invoke dup, but avoid some glitches. 2 | 3 | Copyright (C) 2001, 2004-2006, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Paul Eggert. */ 19 | 20 | #include 21 | 22 | #include "unistd-safer.h" 23 | 24 | #include 25 | #include 26 | 27 | /* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or 28 | STDERR_FILENO. */ 29 | 30 | int 31 | dup_safer (int fd) 32 | { 33 | return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); 34 | } 35 | -------------------------------------------------------------------------------- /tests/localhost.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Free Software 3 | Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include 21 | 22 | #include "libinetutils.h" 23 | 24 | #include 25 | #include 26 | 27 | int 28 | main (int argc, char **argv) 29 | { 30 | const char *p = localhost (); 31 | set_program_name (argv[0]); 32 | if (!p) 33 | return 1; 34 | 35 | printf ("localhost: %s\n", p); 36 | 37 | return 0; 38 | } 39 | -------------------------------------------------------------------------------- /lib/strndup.c: -------------------------------------------------------------------------------- 1 | /* A replacement function, for systems that lack strndup. 2 | 3 | Copyright (C) 1996-1998, 2001-2003, 2005-2007, 2009-2013 Free Software 4 | Foundation, Inc. 5 | 6 | This program is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by the 8 | Free Software Foundation; either version 3, or (at your option) any 9 | later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, see . */ 18 | 19 | #include 20 | 21 | #include 22 | 23 | #include 24 | 25 | char * 26 | strndup (char const *s, size_t n) 27 | { 28 | size_t len = strnlen (s, n); 29 | char *new = malloc (len + 1); 30 | 31 | if (new == NULL) 32 | return NULL; 33 | 34 | new[len] = '\0'; 35 | return memcpy (new, s, len); 36 | } 37 | -------------------------------------------------------------------------------- /m4/autobuild.m4: -------------------------------------------------------------------------------- 1 | # autobuild.m4 serial 7 2 | dnl Copyright (C) 2004, 2006-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Simon Josefsson 8 | 9 | # Usage: AB_INIT([MODE]). 10 | AC_DEFUN([AB_INIT], 11 | [ 12 | AC_REQUIRE([AC_CANONICAL_BUILD]) 13 | AC_REQUIRE([AC_CANONICAL_HOST]) 14 | 15 | if test -z "$AB_PACKAGE"; then 16 | AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} 17 | fi 18 | AC_MSG_NOTICE([autobuild project... $AB_PACKAGE]) 19 | 20 | if test -z "$AB_VERSION"; then 21 | AB_VERSION=${PACKAGE_VERSION:-$VERSION} 22 | fi 23 | AC_MSG_NOTICE([autobuild revision... $AB_VERSION]) 24 | 25 | hostname=`hostname` 26 | if test "$hostname"; then 27 | AC_MSG_NOTICE([autobuild hostname... $hostname]) 28 | fi 29 | 30 | ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])]) 31 | 32 | date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` 33 | if test "$?" != 0; then 34 | date=`date` 35 | fi 36 | if test "$date"; then 37 | AC_MSG_NOTICE([autobuild timestamp... $date]) 38 | fi 39 | ]) 40 | -------------------------------------------------------------------------------- /man/uucpd.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH UUCPD "8" "October 2013" "GNU inetutils 1.9.1-dirty" "System Administration Utilities" 3 | .SH NAME 4 | uucpd \- Unix to Unix Copy 5 | .SH SYNOPSIS 6 | .B uucpd 7 | [\fIOPTION\fR...] 8 | .SH DESCRIPTION 9 | TCP/IP server for uucico 10 | .TP 11 | \-?, \fB\-\-help\fR 12 | give this help list 13 | .TP 14 | \fB\-\-usage\fR 15 | give a short usage message 16 | .TP 17 | \fB\-V\fR, \fB\-\-version\fR 18 | print program version 19 | .SH AUTHOR 20 | Written by many authors. 21 | .SH "REPORTING BUGS" 22 | Report bugs to . 23 | .SH COPYRIGHT 24 | Copyright \(co 2013 Free Software Foundation, Inc. 25 | License GPLv3+: GNU GPL version 3 or later . 26 | .br 27 | This is free software: you are free to change and redistribute it. 28 | There is NO WARRANTY, to the extent permitted by law. 29 | .SH "SEE ALSO" 30 | The full documentation for 31 | .B uucpd 32 | is maintained as a Texinfo manual. If the 33 | .B info 34 | and 35 | .B uucpd 36 | programs are properly installed at your site, the command 37 | .IP 38 | .B info uucpd 39 | .PP 40 | should give you access to the complete manual. 41 | -------------------------------------------------------------------------------- /lib/asnprintf.c: -------------------------------------------------------------------------------- 1 | /* Formatted output to strings. 2 | Copyright (C) 1999, 2002, 2006, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3, or (at your option) 7 | any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License along 15 | with this program; if not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #include "vasnprintf.h" 21 | 22 | #include 23 | 24 | char * 25 | asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) 26 | { 27 | va_list args; 28 | char *result; 29 | 30 | va_start (args, format); 31 | result = vasnprintf (resultbuf, lengthp, format, args); 32 | va_end (args); 33 | return result; 34 | } 35 | -------------------------------------------------------------------------------- /lib/chdir-long.h: -------------------------------------------------------------------------------- 1 | /* provide a chdir function that tries not to fail due to ENAMETOOLONG 2 | Copyright (C) 2004-2005, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Jim Meyering. */ 18 | 19 | #include 20 | #include 21 | 22 | #include "pathmax.h" 23 | 24 | /* On systems without PATH_MAX, presume that chdir accepts 25 | arbitrarily long directory names. */ 26 | #ifndef PATH_MAX 27 | # define chdir_long(Dir) chdir (Dir) 28 | #else 29 | int chdir_long (char *dir); 30 | #endif 31 | -------------------------------------------------------------------------------- /lib/save-cwd.h: -------------------------------------------------------------------------------- 1 | /* Save and restore current working directory. 2 | 3 | Copyright (C) 1995, 1997-1998, 2003, 2009-2013 Free Software Foundation, 4 | Inc. 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | /* Written by Jim Meyering. */ 20 | 21 | #ifndef SAVE_CWD_H 22 | # define SAVE_CWD_H 1 23 | 24 | struct saved_cwd 25 | { 26 | int desc; 27 | char *name; 28 | }; 29 | 30 | int save_cwd (struct saved_cwd *cwd); 31 | int restore_cwd (const struct saved_cwd *cwd); 32 | void free_cwd (struct saved_cwd *cwd); 33 | 34 | #endif /* SAVE_CWD_H */ 35 | -------------------------------------------------------------------------------- /m4/chdir-long.m4: -------------------------------------------------------------------------------- 1 | #serial 15 2 | 3 | # Use Gnulib's robust chdir function. 4 | # It can handle arbitrarily long directory names, which means 5 | # that when it is given the name of an existing directory, it 6 | # never fails with ENAMETOOLONG. 7 | # Arrange to compile chdir-long.c only on systems that define PATH_MAX. 8 | 9 | dnl Copyright (C) 2004-2007, 2009-2013 Free Software Foundation, Inc. 10 | dnl This file is free software; the Free Software Foundation 11 | dnl gives unlimited permission to copy and/or distribute it, 12 | dnl with or without modifications, as long as this notice is preserved. 13 | 14 | # Written by Jim Meyering. 15 | 16 | AC_DEFUN([gl_FUNC_CHDIR_LONG], 17 | [ 18 | AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ]) 19 | AC_CACHE_CHECK([whether this system has an arbitrary file name length limit], 20 | gl_cv_have_arbitrary_file_name_length_limit, 21 | [AC_EGREP_CPP([have_arbitrary_file_name_length_limit], 22 | gl_PATHMAX_SNIPPET[ 23 | #ifdef PATH_MAX 24 | have_arbitrary_file_name_length_limit 25 | #endif], 26 | gl_cv_have_arbitrary_file_name_length_limit=yes, 27 | gl_cv_have_arbitrary_file_name_length_limit=no)]) 28 | ]) 29 | 30 | AC_DEFUN([gl_PREREQ_CHDIR_LONG], [:]) 31 | -------------------------------------------------------------------------------- /lib/getpass.h: -------------------------------------------------------------------------------- 1 | /* getpass.h -- Read a password of arbitrary length from /dev/tty or stdin. 2 | Copyright (C) 2004, 2009-2013 Free Software Foundation, Inc. 3 | Contributed by Simon Josefsson , 2004. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, see . */ 17 | 18 | #ifndef GETPASS_H 19 | # define GETPASS_H 20 | 21 | /* Get getpass declaration, if available. */ 22 | # include 23 | 24 | # if !HAVE_DECL_GETPASS 25 | /* Read a password of arbitrary length from /dev/tty or stdin. */ 26 | char *getpass (const char *prompt); 27 | 28 | # endif 29 | 30 | #endif /* GETPASS_H */ 31 | -------------------------------------------------------------------------------- /m4/netinet_in_h.m4: -------------------------------------------------------------------------------- 1 | # netinet_in_h.m4 serial 5 2 | dnl Copyright (C) 2006-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_HEADER_NETINET_IN], 8 | [ 9 | AC_CACHE_CHECK([whether is self-contained], 10 | [gl_cv_header_netinet_in_h_selfcontained], 11 | [ 12 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], 13 | [gl_cv_header_netinet_in_h_selfcontained=yes], 14 | [gl_cv_header_netinet_in_h_selfcontained=no]) 15 | ]) 16 | if test $gl_cv_header_netinet_in_h_selfcontained = yes; then 17 | NETINET_IN_H='' 18 | else 19 | NETINET_IN_H='netinet/in.h' 20 | AC_CHECK_HEADERS([netinet/in.h]) 21 | gl_CHECK_NEXT_HEADERS([netinet/in.h]) 22 | if test $ac_cv_header_netinet_in_h = yes; then 23 | HAVE_NETINET_IN_H=1 24 | else 25 | HAVE_NETINET_IN_H=0 26 | fi 27 | AC_SUBST([HAVE_NETINET_IN_H]) 28 | fi 29 | AC_SUBST([NETINET_IN_H]) 30 | AM_CONDITIONAL([GL_GENERATE_NETINET_IN_H], [test -n "$NETINET_IN_H"]) 31 | ]) 32 | -------------------------------------------------------------------------------- /m4/strcase.m4: -------------------------------------------------------------------------------- 1 | # strcase.m4 serial 11 2 | dnl Copyright (C) 2002, 2005-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_STRCASE], 8 | [ 9 | gl_FUNC_STRCASECMP 10 | gl_FUNC_STRNCASECMP 11 | ]) 12 | 13 | AC_DEFUN([gl_FUNC_STRCASECMP], 14 | [ 15 | AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS]) 16 | AC_CHECK_FUNCS([strcasecmp]) 17 | if test $ac_cv_func_strcasecmp = no; then 18 | HAVE_STRCASECMP=0 19 | fi 20 | ]) 21 | 22 | AC_DEFUN([gl_FUNC_STRNCASECMP], 23 | [ 24 | AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS]) 25 | AC_CHECK_FUNCS([strncasecmp]) 26 | if test $ac_cv_func_strncasecmp = yes; then 27 | HAVE_STRNCASECMP=1 28 | else 29 | HAVE_STRNCASECMP=0 30 | fi 31 | AC_CHECK_DECLS([strncasecmp]) 32 | if test $ac_cv_have_decl_strncasecmp = no; then 33 | HAVE_DECL_STRNCASECMP=0 34 | fi 35 | ]) 36 | 37 | # Prerequisites of lib/strcasecmp.c. 38 | AC_DEFUN([gl_PREREQ_STRCASECMP], [ 39 | : 40 | ]) 41 | 42 | # Prerequisites of lib/strncasecmp.c. 43 | AC_DEFUN([gl_PREREQ_STRNCASECMP], [ 44 | : 45 | ]) 46 | -------------------------------------------------------------------------------- /man/rexecd.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH REXECD "8" "October 2013" "GNU inetutils 1.9.1-dirty" "System Administration Utilities" 3 | .SH NAME 4 | rexecd \- Remote execution server 5 | .SH SYNOPSIS 6 | .B rexecd 7 | [\fIOPTION\fR...] 8 | .SH DESCRIPTION 9 | remote execution daemon 10 | .TP 11 | \-?, \fB\-\-help\fR 12 | give this help list 13 | .TP 14 | \fB\-\-usage\fR 15 | give a short usage message 16 | .TP 17 | \fB\-V\fR, \fB\-\-version\fR 18 | print program version 19 | .SH AUTHOR 20 | Written by many authors. 21 | .SH "REPORTING BUGS" 22 | Report bugs to . 23 | .SH COPYRIGHT 24 | Copyright \(co 2013 Free Software Foundation, Inc. 25 | License GPLv3+: GNU GPL version 3 or later . 26 | .br 27 | This is free software: you are free to change and redistribute it. 28 | There is NO WARRANTY, to the extent permitted by law. 29 | .SH "SEE ALSO" 30 | rexec(1) 31 | .PP 32 | The full documentation for 33 | .B rexecd 34 | is maintained as a Texinfo manual. If the 35 | .B info 36 | and 37 | .B rexecd 38 | programs are properly installed at your site, the command 39 | .IP 40 | .B info rexecd 41 | .PP 42 | should give you access to the complete manual. 43 | -------------------------------------------------------------------------------- /m4/uintmax_t.m4: -------------------------------------------------------------------------------- 1 | # uintmax_t.m4 serial 12 2 | dnl Copyright (C) 1997-2004, 2007-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Paul Eggert. 8 | 9 | AC_PREREQ([2.13]) 10 | 11 | # Define uintmax_t to 'unsigned long' or 'unsigned long long' 12 | # if it is not already defined in or . 13 | 14 | AC_DEFUN([gl_AC_TYPE_UINTMAX_T], 15 | [ 16 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 17 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 18 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 19 | AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) 20 | test $ac_cv_type_unsigned_long_long_int = yes \ 21 | && ac_type='unsigned long long' \ 22 | || ac_type='unsigned long' 23 | AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], 24 | [Define to unsigned long or unsigned long long 25 | if and don't define.]) 26 | else 27 | AC_DEFINE([HAVE_UINTMAX_T], [1], 28 | [Define if you have the 'uintmax_t' type in or .]) 29 | fi 30 | ]) 31 | -------------------------------------------------------------------------------- /whois/as_del_list: -------------------------------------------------------------------------------- 1 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2 | # 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 3 | # 4 | # This file is part of GNU Inetutils. 5 | # 6 | # GNU Inetutils is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or (at 9 | # your option) any later version. 10 | # 11 | # GNU Inetutils is distributed in the hope that it will be useful, but 12 | # WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | # General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 18 | 19 | 1877 1901 ripe 20 | 2043 2043 ripe 21 | 2047 2047 ripe 22 | 2057 2136 ripe 23 | 2585 2614 ripe 24 | 2773 2822 ripe 25 | 2830 2879 ripe 26 | 3154 3353 ripe 27 | 4608 4863 apnic 28 | 5377 5631 ripe 29 | 5800 5927 whois.nic.mil 30 | 6656 6911 ripe 31 | 7467 7722 apnic 32 | 8192 9215 ripe 33 | 9261 10239 apnic 34 | 12288 13311 ripe 35 | 15360 16383 ripe 36 | -------------------------------------------------------------------------------- /libtelnet/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | INCLUDES = $(iu_INCLUDES) $(INCAUTH) 22 | 23 | noinst_LIBRARIES = libtelnet.a 24 | 25 | libtelnet_a_SOURCES = auth.c enc_des.c encrypt.c forward.c genget.c getent.c kerberos.c kerberos5.c misc.c read_passwd.c shishi.c 26 | 27 | noinst_HEADERS = auth-proto.h auth.h enc-proto.h encrypt.h genget.h key-proto.h misc-proto.h misc.h 28 | -------------------------------------------------------------------------------- /man/talk.1: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH TALK "1" "October 2013" "GNU inetutils 1.9.1-dirty" "User Commands" 3 | .SH NAME 4 | talk \- Talk client 5 | .SH SYNOPSIS 6 | .B talk 7 | [\fIOPTION\fR...] \fIperson \fR[\fIttyname\fR] 8 | .SH DESCRIPTION 9 | talk to another user 10 | .TP 11 | \-?, \fB\-\-help\fR 12 | give this help list 13 | .TP 14 | \fB\-\-usage\fR 15 | give a short usage message 16 | .TP 17 | \fB\-V\fR, \fB\-\-version\fR 18 | print program version 19 | .SH AUTHOR 20 | Written by Kipp Hickman, Clem Cole, and Peter Moore. 21 | .SH "REPORTING BUGS" 22 | Report bugs to . 23 | .SH COPYRIGHT 24 | Copyright \(co 2013 Free Software Foundation, Inc. 25 | License GPLv3+: GNU GPL version 3 or later . 26 | .br 27 | This is free software: you are free to change and redistribute it. 28 | There is NO WARRANTY, to the extent permitted by law. 29 | .SH "SEE ALSO" 30 | talkd(1) 31 | .PP 32 | The full documentation for 33 | .B talk 34 | is maintained as a Texinfo manual. If the 35 | .B info 36 | and 37 | .B talk 38 | programs are properly installed at your site, the command 39 | .IP 40 | .B info talk 41 | .PP 42 | should give you access to the complete manual. 43 | -------------------------------------------------------------------------------- /lib/printf-frexpl.c: -------------------------------------------------------------------------------- 1 | /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | 19 | #if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 20 | 21 | /* Specification. */ 22 | # include "printf-frexpl.h" 23 | 24 | # include "printf-frexp.h" 25 | 26 | long double 27 | printf_frexpl (long double x, int *expptr) 28 | { 29 | return printf_frexp (x, expptr); 30 | } 31 | 32 | #else 33 | 34 | # define USE_LONG_DOUBLE 35 | # include "printf-frexp.c" 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /talk/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | bin_PROGRAMS = @talk_BUILD@ 22 | 23 | EXTRA_PROGRAMS = talk 24 | 25 | talk_SOURCES = ctl.c ctl_transact.c display.c get_addrs.c get_names.c init_disp.c invite.c io.c look_up.c msgs.c talk.c 26 | 27 | noinst_HEADERS = talk.h talk_ctl.h 28 | 29 | INCLUDES = $(iu_INCLUDES) $(NCURSES_INCLUDE) 30 | 31 | LDADD = $(iu_LIBRARIES) $(LIBCURSES) 32 | -------------------------------------------------------------------------------- /lib/read-file.h: -------------------------------------------------------------------------------- 1 | /* read-file.h -- read file contents into a string 2 | Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. 3 | Written by Simon Josefsson. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, see . */ 17 | 18 | #ifndef READ_FILE_H 19 | #define READ_FILE_H 20 | 21 | /* Get size_t. */ 22 | #include 23 | 24 | /* Get FILE. */ 25 | #include 26 | 27 | extern char *fread_file (FILE * stream, size_t * length); 28 | 29 | extern char *read_file (const char *filename, size_t * length); 30 | 31 | extern char *read_binary_file (const char *filename, size_t * length); 32 | 33 | #endif /* READ_FILE_H */ 34 | -------------------------------------------------------------------------------- /am/flushleft.m4: -------------------------------------------------------------------------------- 1 | dnl 2 | dnl Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3 | dnl 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software 4 | dnl Foundation, Inc. 5 | dnl 6 | dnl This file is part of GNU Inetutils. 7 | dnl 8 | dnl GNU Inetutils is free software: you can redistribute it and/or modify 9 | dnl it under the terms of the GNU General Public License as published by 10 | dnl the Free Software Foundation, either version 3 of the License, or (at 11 | dnl your option) any later version. 12 | dnl 13 | dnl GNU Inetutils is distributed in the hope that it will be useful, but 14 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of 15 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | dnl General Public License for more details. 17 | dnl 18 | dnl You should have received a copy of the GNU General Public License 19 | dnl along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | dnl Written by Miles Bader. 22 | 23 | dnl IU_FLUSHLEFT -- remove all whitespace at the beginning of lines 24 | dnl This is useful for c-code which may include cpp statements 25 | dnl 26 | AC_DEFUN([IU_FLUSHLEFT], 27 | [m4_changequote(`,')dnl 28 | m4_bpatsubst(`$1', `^[ ]+') 29 | m4_changequote([,])])dnl 30 | -------------------------------------------------------------------------------- /ifconfig/if_index.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #ifndef IF_INDEX_H 21 | # define IF_INDEX_H 22 | 23 | # ifndef HAVE_STRUCT_IF_NAMEINDEX 24 | struct if_nameindex 25 | { 26 | char *if_name; 27 | int if_index; 28 | }; 29 | extern unsigned int if_nametoindex (const char *ifname); 30 | extern struct if_nameindex *if_nameindex (void); 31 | extern void if_freenameindex (struct if_nameindex *ptr); 32 | # endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /lib/asprintf.c: -------------------------------------------------------------------------------- 1 | /* Formatted output to strings. 2 | Copyright (C) 1999, 2002, 2006-2007, 2009-2013 Free Software Foundation, 3 | Inc. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License along 16 | with this program; if not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #ifdef IN_LIBASPRINTF 22 | # include "vasprintf.h" 23 | #else 24 | # include 25 | #endif 26 | 27 | #include 28 | 29 | int 30 | asprintf (char **resultp, const char *format, ...) 31 | { 32 | va_list args; 33 | int result; 34 | 35 | va_start (args, format); 36 | result = vasprintf (resultp, format, args); 37 | va_end (args); 38 | return result; 39 | } 40 | -------------------------------------------------------------------------------- /lib/btowc.c: -------------------------------------------------------------------------------- 1 | /* Convert unibyte character to wide character. 2 | Copyright (C) 2008, 2010-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2008. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include 22 | 23 | #include 24 | #include 25 | 26 | wint_t 27 | btowc (int c) 28 | { 29 | if (c != EOF) 30 | { 31 | char buf[1]; 32 | wchar_t wc; 33 | 34 | buf[0] = c; 35 | if (mbtowc (&wc, buf, 1) >= 0) 36 | return wc; 37 | } 38 | return WEOF; 39 | } 40 | -------------------------------------------------------------------------------- /m4/close.m4: -------------------------------------------------------------------------------- 1 | # close.m4 serial 8 2 | dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_CLOSE], 8 | [ 9 | AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) 10 | AC_REQUIRE([gl_MSVC_INVAL]) 11 | if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 12 | REPLACE_CLOSE=1 13 | fi 14 | m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [ 15 | gl_PREREQ_SYS_H_WINSOCK2 16 | if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 17 | dnl Even if the 'socket' module is not used here, another part of the 18 | dnl application may use it and pass file descriptors that refer to 19 | dnl sockets to the close() function. So enable the support for sockets. 20 | REPLACE_CLOSE=1 21 | fi 22 | ]) 23 | dnl Replace close() for supporting the gnulib-defined fchdir() function, 24 | dnl to keep fchdir's bookkeeping up-to-date. 25 | m4_ifdef([gl_FUNC_FCHDIR], [ 26 | if test $REPLACE_CLOSE = 0; then 27 | gl_TEST_FCHDIR 28 | if test $HAVE_FCHDIR = 0; then 29 | REPLACE_CLOSE=1 30 | fi 31 | fi 32 | ]) 33 | ]) 34 | -------------------------------------------------------------------------------- /lib/strnlen.c: -------------------------------------------------------------------------------- 1 | /* Find the length of STRING, but scan at most MAXLEN characters. 2 | Copyright (C) 2005-2007, 2009-2013 Free Software Foundation, Inc. 3 | Written by Simon Josefsson. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, see . */ 17 | 18 | #include 19 | 20 | #include 21 | 22 | /* Find the length of STRING, but scan at most MAXLEN characters. 23 | If no '\0' terminator is found in that many characters, return MAXLEN. */ 24 | 25 | size_t 26 | strnlen (const char *string, size_t maxlen) 27 | { 28 | const char *end = memchr (string, '\0', maxlen); 29 | return end ? (size_t) (end - string) : maxlen; 30 | } 31 | -------------------------------------------------------------------------------- /ping/ping6.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free 3 | Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include "ping_common.h" 21 | 22 | #define PING_MAX_DATALEN (65535 - sizeof (struct icmp6_hdr)) 23 | 24 | #define USE_IPV6 1 25 | 26 | static PING *ping_init (int type, int ident); 27 | static int ping_set_dest (PING * ping, char *host); 28 | static int ping_recv (PING * p); 29 | static int ping_xmit (PING * p); 30 | 31 | static int ping_run (PING * ping, int (*finish) ()); 32 | static int ping_finish (void); 33 | -------------------------------------------------------------------------------- /m4/intmax.m4: -------------------------------------------------------------------------------- 1 | # intmax.m4 serial 6 (gettext-0.18.2) 2 | dnl Copyright (C) 2002-2005, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether the system has the 'intmax_t' type, but don't attempt to 9 | dnl find a replacement if it is lacking. 10 | 11 | AC_DEFUN([gt_TYPE_INTMAX_T], 12 | [ 13 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 14 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 15 | AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], 16 | [AC_COMPILE_IFELSE( 17 | [AC_LANG_PROGRAM( 18 | [[ 19 | #include 20 | #include 21 | #if HAVE_STDINT_H_WITH_UINTMAX 22 | #include 23 | #endif 24 | #if HAVE_INTTYPES_H_WITH_UINTMAX 25 | #include 26 | #endif 27 | ]], 28 | [[intmax_t x = -1; 29 | return !x;]])], 30 | [gt_cv_c_intmax_t=yes], 31 | [gt_cv_c_intmax_t=no])]) 32 | if test $gt_cv_c_intmax_t = yes; then 33 | AC_DEFINE([HAVE_INTMAX_T], [1], 34 | [Define if you have the 'intmax_t' type in or .]) 35 | fi 36 | ]) 37 | -------------------------------------------------------------------------------- /man/tftp.1: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH TFTP "1" "October 2013" "GNU inetutils 1.9.1-dirty" "User Commands" 3 | .SH NAME 4 | tftp \- TFTP client 5 | .SH SYNOPSIS 6 | .B tftp 7 | [\fIOPTION\fR...] [\fIHOST \fR[\fIPORT\fR]] 8 | .SH DESCRIPTION 9 | Trivial file transfer protocol client 10 | .TP 11 | \fB\-v\fR, \fB\-\-verbose\fR 12 | verbose output 13 | .TP 14 | \-?, \fB\-\-help\fR 15 | give this help list 16 | .TP 17 | \fB\-\-usage\fR 18 | give a short usage message 19 | .TP 20 | \fB\-V\fR, \fB\-\-version\fR 21 | print program version 22 | .SH AUTHOR 23 | Written by many authors. 24 | .SH "REPORTING BUGS" 25 | Report bugs to . 26 | .SH COPYRIGHT 27 | Copyright \(co 2013 Free Software Foundation, Inc. 28 | License GPLv3+: GNU GPL version 3 or later . 29 | .br 30 | This is free software: you are free to change and redistribute it. 31 | There is NO WARRANTY, to the extent permitted by law. 32 | .SH "SEE ALSO" 33 | The full documentation for 34 | .B tftp 35 | is maintained as a Texinfo manual. If the 36 | .B info 37 | and 38 | .B tftp 39 | programs are properly installed at your site, the command 40 | .IP 41 | .B info tftp 42 | .PP 43 | should give you access to the complete manual. 44 | -------------------------------------------------------------------------------- /lib/secure_getenv.c: -------------------------------------------------------------------------------- 1 | /* Look up an environment variable more securely. 2 | 3 | Copyright 2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify it 6 | under the terms of the GNU General Public License as published 7 | by the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | #include 21 | 22 | #if !HAVE___SECURE_GETENV 23 | # if HAVE_ISSETUGID 24 | # include 25 | # else 26 | # undef issetugid 27 | # define issetugid() 1 28 | # endif 29 | #endif 30 | 31 | char * 32 | secure_getenv (char const *name) 33 | { 34 | #if HAVE___SECURE_GETENV 35 | return __secure_getenv (name); 36 | #else 37 | if (issetugid ()) 38 | return 0; 39 | return getenv (name); 40 | #endif 41 | } 42 | -------------------------------------------------------------------------------- /lib/argp-eexst.c: -------------------------------------------------------------------------------- 1 | /* Default definition for ARGP_ERR_EXIT_STATUS 2 | Copyright (C) 1997, 2009-2013 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | Written by Miles Bader . 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | #ifdef HAVE_CONFIG_H 20 | # include 21 | #endif 22 | 23 | #include 24 | 25 | #include "argp.h" 26 | 27 | /* The exit status that argp will use when exiting due to a parsing error. 28 | If not defined or set by the user program, this defaults to EX_USAGE from 29 | . */ 30 | error_t argp_err_exit_status = EX_USAGE; 31 | -------------------------------------------------------------------------------- /lib/size_max.h: -------------------------------------------------------------------------------- 1 | /* size_max.h -- declare SIZE_MAX through system headers 2 | Copyright (C) 2005-2006, 2009-2013 Free Software Foundation, Inc. 3 | Written by Simon Josefsson. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, see . */ 17 | 18 | #ifndef GNULIB_SIZE_MAX_H 19 | #define GNULIB_SIZE_MAX_H 20 | 21 | /* Get SIZE_MAX declaration on systems like Solaris 7/8/9. */ 22 | # include 23 | /* Get SIZE_MAX declaration on systems like glibc 2. */ 24 | # if HAVE_STDINT_H 25 | # include 26 | # endif 27 | /* On systems where these include files don't define it, SIZE_MAX is defined 28 | in config.h. */ 29 | 30 | #endif /* GNULIB_SIZE_MAX_H */ 31 | -------------------------------------------------------------------------------- /lib/version-etc-fsf.c: -------------------------------------------------------------------------------- 1 | /* Variable with FSF copyright information, for version-etc. 2 | Copyright (C) 1999-2006, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Jim Meyering. */ 18 | 19 | #include 20 | 21 | /* Specification. */ 22 | #include "version-etc.h" 23 | 24 | /* Default copyright goes to the FSF. */ 25 | 26 | const char version_etc_copyright[] = 27 | /* Do *not* mark this string for translation. %s is a copyright 28 | symbol suitable for this locale, and %d is the copyright 29 | year. */ 30 | "Copyright %s %d Free Software Foundation, Inc."; 31 | -------------------------------------------------------------------------------- /ping/ping_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #define PING_MAX_DATALEN (65535 - MAXIPLEN - MAXICMPLEN) 21 | 22 | extern unsigned options; 23 | extern PING *ping; 24 | extern unsigned char *data_buffer; 25 | extern size_t data_length; 26 | 27 | extern int ping_run (PING * ping, int (*finish) ()); 28 | extern int ping_finish (void); 29 | extern void print_icmp_header (struct sockaddr_in *from, 30 | struct ip *ip, icmphdr_t * icmp, int len); 31 | -------------------------------------------------------------------------------- /talkd/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | inetdaemondir = @inetdaemondir@ 22 | 23 | inetdaemon_PROGRAMS = @talkd_BUILD@ 24 | 25 | EXTRA_PROGRAMS = talkd 26 | 27 | talkd_SOURCES = \ 28 | acl.c\ 29 | announce.c\ 30 | print.c\ 31 | process.c\ 32 | table.c\ 33 | talkd.c\ 34 | intalkd.h 35 | 36 | @PATHDEFS_MAKE@ 37 | 38 | AM_CPPFLAGS = $(PATHDEF_DEV) 39 | INCLUDES = $(iu_INCLUDES) 40 | LDADD = $(iu_LIBRARIES) 41 | -------------------------------------------------------------------------------- /lib/ftell.c: -------------------------------------------------------------------------------- 1 | /* An ftell() function that works around platform bugs. 2 | Copyright (C) 2007-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #include 21 | 22 | #include 23 | #include 24 | 25 | long 26 | ftell (FILE *fp) 27 | { 28 | /* Use the replacement ftello function with all its workarounds. */ 29 | off_t offset = ftello (fp); 30 | if (LONG_MIN <= offset && offset <= LONG_MAX) 31 | return /* (long) */ offset; 32 | else 33 | { 34 | errno = EOVERFLOW; 35 | return -1; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/stdarg.in.h: -------------------------------------------------------------------------------- 1 | /* Substitute for and wrapper around . 2 | Copyright (C) 2008-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3, or (at your option) 7 | any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . */ 16 | 17 | #ifndef _@GUARD_PREFIX@_STDARG_H 18 | 19 | #if __GNUC__ >= 3 20 | @PRAGMA_SYSTEM_HEADER@ 21 | #endif 22 | @PRAGMA_COLUMNS@ 23 | 24 | /* The include_next requires a split double-inclusion guard. */ 25 | #@INCLUDE_NEXT@ @NEXT_STDARG_H@ 26 | 27 | #ifndef _@GUARD_PREFIX@_STDARG_H 28 | #define _@GUARD_PREFIX@_STDARG_H 29 | 30 | #ifndef va_copy 31 | # define va_copy(a,b) ((a) = (b)) 32 | #endif 33 | 34 | #endif /* _@GUARD_PREFIX@_STDARG_H */ 35 | #endif /* _@GUARD_PREFIX@_STDARG_H */ 36 | -------------------------------------------------------------------------------- /ftp/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | bin_PROGRAMS = @ftp_BUILD@ 22 | 23 | EXTRA_PROGRAMS = ftp 24 | 25 | ftp_SOURCES = cmds.c cmdtab.c domacro.c ftp.c main.c ruserpass.c 26 | 27 | noinst_HEADERS = extern.h ftp_var.h 28 | 29 | @PATHDEFS_MAKE@ 30 | 31 | INCLUDES = $(iu_INCLUDES) 32 | AM_CPPFLAGS = $(PATHDEF_TMP) $(PATHDEF_BSHELL) 33 | 34 | LDADD = $(iu_LIBRARIES) $(LIBGLOB) $(LIBREADLINE) $(LIBTERMCAP) $(LIBHISTORY) 35 | -------------------------------------------------------------------------------- /ifconfig/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | # 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | SUBDIRS = system 21 | 22 | bin_PROGRAMS = @ifconfig_BUILD@ 23 | 24 | EXTRA_PROGRAMS = ifconfig 25 | 26 | ifconfig_SOURCES = ifconfig.c flags.c changeif.c options.c printif.c system.c if_index.c 27 | 28 | noinst_HEADERS = ifconfig.h if_index.h flags.h options.h printif.h system.h 29 | 30 | @PATHDEFS_MAKE@ 31 | AM_CPPFLAGS = $(PATHDEF_PROCNET_DEV) 32 | INCLUDES = $(iu_INCLUDES) 33 | LDADD = $(iu_LIBRARIES) 34 | -------------------------------------------------------------------------------- /lib/stdio-safer.h: -------------------------------------------------------------------------------- 1 | /* Invoke stdio functions, but avoid some glitches. 2 | 3 | Copyright (C) 2001, 2003, 2006, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Paul Eggert. */ 19 | 20 | #include 21 | 22 | #if GNULIB_FOPEN_SAFER 23 | FILE *fopen_safer (char const *, char const *); 24 | #endif 25 | 26 | #if GNULIB_FREOPEN_SAFER 27 | FILE *freopen_safer (char const *, char const *, FILE *); 28 | #endif 29 | 30 | #if GNULIB_POPEN_SAFER 31 | FILE *popen_safer (char const *, char const *); 32 | #endif 33 | 34 | #if GNULIB_TMPFILE_SAFER 35 | FILE *tmpfile_safer (void); 36 | #endif 37 | -------------------------------------------------------------------------------- /m4/vasprintf.m4: -------------------------------------------------------------------------------- 1 | # vasprintf.m4 serial 6 2 | dnl Copyright (C) 2002-2003, 2006-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_VASPRINTF], 9 | [ 10 | AC_CHECK_FUNCS([vasprintf]) 11 | if test $ac_cv_func_vasprintf = no; then 12 | gl_REPLACE_VASPRINTF 13 | fi 14 | ]) 15 | 16 | AC_DEFUN([gl_REPLACE_VASPRINTF], 17 | [ 18 | AC_LIBOBJ([vasprintf]) 19 | AC_LIBOBJ([asprintf]) 20 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 21 | if test $ac_cv_func_vasprintf = yes; then 22 | REPLACE_VASPRINTF=1 23 | else 24 | HAVE_VASPRINTF=0 25 | fi 26 | gl_PREREQ_VASPRINTF_H 27 | gl_PREREQ_VASPRINTF 28 | gl_PREREQ_ASPRINTF 29 | ]) 30 | 31 | # Prerequisites of the vasprintf portion of lib/stdio.h. 32 | AC_DEFUN([gl_PREREQ_VASPRINTF_H], 33 | [ 34 | dnl Persuade glibc to declare asprintf() and vasprintf(). 35 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 36 | ]) 37 | 38 | # Prerequisites of lib/vasprintf.c. 39 | AC_DEFUN([gl_PREREQ_VASPRINTF], 40 | [ 41 | ]) 42 | 43 | # Prerequisites of lib/asprintf.c. 44 | AC_DEFUN([gl_PREREQ_ASPRINTF], 45 | [ 46 | ]) 47 | -------------------------------------------------------------------------------- /whois/make_tld_serv.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 | # 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | use strict; 22 | 23 | while (<>) { 24 | chomp; 25 | s/^\s*(.*)\s*$/$1/; 26 | s/\s*#.*$//; 27 | next if /^$/; 28 | die "format error: $_" unless 29 | (my ($a, $b) = /^([\w\d\.-]+)\s+([\w\d\.:-]+|[A-Z]+\s+.*)$/); 30 | $b =~ s/^W(?:EB)?\s+/\\001/; 31 | $b =~ s/^M(?:SG)?\s+/\\002/; 32 | $b = "\\003" if ($b eq 'NONE'); 33 | print " \"$a\",\t\"$b\",\n"; 34 | } 35 | -------------------------------------------------------------------------------- /whois/make_as_del.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 | # 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | use strict; 22 | 23 | while (<>) { 24 | chomp; 25 | s/^\s*(.*)\s*$/$1/; 26 | s/\s*#.*$//; 27 | next if /^$/; 28 | die "format error: $_" unless (/^([\d\.]+)\s+([\d\.]+)\s+([\w\.]+)$/); 29 | my $f=$1; my $l=$2; my $s=$3; 30 | print "{ ${f}, ${l}, \""; 31 | if ($s =~ /\./) { 32 | print "$s"; 33 | } else { 34 | print "whois.$s.net"; 35 | } 36 | print "\" },\n"; 37 | } 38 | -------------------------------------------------------------------------------- /lib/isnand-nolibm.h: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #if HAVE_ISNAND_IN_LIBC 18 | /* Get declaration of isnan macro. */ 19 | # include 20 | # if __GNUC__ >= 4 21 | /* GCC 4.0 and newer provides three built-ins for isnan. */ 22 | # undef isnand 23 | # define isnand(x) __builtin_isnan ((double)(x)) 24 | # else 25 | # undef isnand 26 | # define isnand(x) isnan ((double)(x)) 27 | # endif 28 | #else 29 | /* Test whether X is a NaN. */ 30 | # undef isnand 31 | # define isnand rpl_isnand 32 | extern int isnand (double x); 33 | #endif 34 | -------------------------------------------------------------------------------- /m4/version-etc.m4: -------------------------------------------------------------------------------- 1 | # version-etc.m4 serial 1 2 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. 3 | # This file is free software; the Free Software Foundation 4 | # gives unlimited permission to copy and/or distribute it, 5 | # with or without modifications, as long as this notice is preserved. 6 | 7 | dnl $1 - configure flag and define name 8 | dnl $2 - human readable description 9 | m4_define([gl_VERSION_ETC_FLAG], 10 | [dnl 11 | AC_ARG_WITH([$1], [AS_HELP_STRING([--with-$1], [$2])], 12 | [dnl 13 | case $withval in 14 | yes|no) ;; 15 | *) AC_DEFINE_UNQUOTED(AS_TR_CPP([PACKAGE_$1]), ["$withval"], [$2]) ;; 16 | esac 17 | ]) 18 | ]) 19 | 20 | AC_DEFUN([gl_VERSION_ETC], 21 | [dnl 22 | gl_VERSION_ETC_FLAG([packager], 23 | [String identifying the packager of this software]) 24 | gl_VERSION_ETC_FLAG([packager-version], 25 | [Packager-specific version information]) 26 | gl_VERSION_ETC_FLAG([packager-bug-reports], 27 | [Packager info for bug reports (URL/e-mail/...)]) 28 | if test "X$with_packager" = "X" && \ 29 | test "X$with_packager_version$with_packager_bug_reports" != "X" 30 | then 31 | AC_MSG_ERROR([The --with-packager-{bug-reports,version} options require --with-packager]) 32 | fi 33 | ]) 34 | -------------------------------------------------------------------------------- /ping/ping.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 3 | Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include "ping_common.h" 21 | 22 | #define USE_IPV6 0 23 | 24 | PING *ping_init (int type, int ident); 25 | void ping_reset (PING * p); 26 | void ping_set_type (PING * p, int type); 27 | void ping_set_packetsize (PING * ping, size_t size); 28 | int ping_set_dest (PING * ping, char *host); 29 | int ping_set_pattern (PING * p, int len, unsigned char * pat); 30 | void ping_set_event_handler (PING * ping, ping_efp fp, void *closure); 31 | int ping_recv (PING * p); 32 | int ping_xmit (PING * p); 33 | -------------------------------------------------------------------------------- /lib/stdio--.h: -------------------------------------------------------------------------------- 1 | /* Like stdio.h, but redefine some names to avoid glitches. 2 | 3 | Copyright (C) 2005-2006, 2009-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* Written by Paul Eggert. */ 19 | 20 | #include 21 | #include "stdio-safer.h" 22 | 23 | #if GNULIB_FOPEN_SAFER 24 | # undef fopen 25 | # define fopen fopen_safer 26 | #endif 27 | 28 | #if GNULIB_FREOPEN_SAFER 29 | # undef freopen 30 | # define freopen freopen_safer 31 | #endif 32 | 33 | #if GNULIB_TMPFILE_SAFER 34 | # undef tmpfile 35 | # define tmpfile tmpfile_safer 36 | #endif 37 | 38 | #if GNULIB_POPEN_SAFER 39 | # undef popen 40 | # define popen popen_safer 41 | #endif 42 | -------------------------------------------------------------------------------- /m4/pathmax.m4: -------------------------------------------------------------------------------- 1 | # pathmax.m4 serial 10 2 | dnl Copyright (C) 2002-2003, 2005-2006, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_PATHMAX], 9 | [ 10 | dnl Prerequisites of lib/pathmax.h. 11 | AC_CHECK_HEADERS_ONCE([sys/param.h]) 12 | ]) 13 | 14 | # Expands to a piece of C program that defines PATH_MAX in the same way as 15 | # "pathmax.h" will do. 16 | AC_DEFUN([gl_PATHMAX_SNIPPET], [[ 17 | /* Arrange to define PATH_MAX, like "pathmax.h" does. */ 18 | #if HAVE_UNISTD_H 19 | # include 20 | #endif 21 | #include 22 | #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN 23 | # include 24 | #endif 25 | #if !defined PATH_MAX && defined MAXPATHLEN 26 | # define PATH_MAX MAXPATHLEN 27 | #endif 28 | #ifdef __hpux 29 | # undef PATH_MAX 30 | # define PATH_MAX 1024 31 | #endif 32 | #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 33 | # undef PATH_MAX 34 | # define PATH_MAX 260 35 | #endif 36 | ]]) 37 | 38 | # Prerequisites of gl_PATHMAX_SNIPPET. 39 | AC_DEFUN([gl_PATHMAX_SNIPPET_PREREQ], 40 | [ 41 | AC_CHECK_HEADERS_ONCE([unistd.h sys/param.h]) 42 | ]) 43 | -------------------------------------------------------------------------------- /ifconfig/system/qnx.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | /* Written by Marcus Brinkmann. */ 21 | 22 | #ifndef IFCONFIG_SYSTEM_QNX_H 23 | # define IFCONFIG_SYSTEM_QNX_H 24 | 25 | # include "../printif.h" 26 | # include "../options.h" 27 | # include 28 | 29 | 30 | 31 | /* Option support. */ 32 | 33 | struct system_ifconfig 34 | { 35 | int valid; 36 | }; 37 | 38 | 39 | /* Output format support. */ 40 | 41 | # define SYSTEM_FORMAT_HANDLER \ 42 | {"qnx", fh_nothing}, 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /m4/mode_t.m4: -------------------------------------------------------------------------------- 1 | # mode_t.m4 serial 2 2 | dnl Copyright (C) 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | # For using mode_t, it's sufficient to use AC_TYPE_MODE_T and 8 | # include . 9 | 10 | # Define PROMOTED_MODE_T to the type that is the result of "default argument 11 | # promotion" (ISO C 6.5.2.2.(6)) of the type mode_t. 12 | AC_DEFUN([gl_PROMOTED_TYPE_MODE_T], 13 | [ 14 | AC_REQUIRE([AC_TYPE_MODE_T]) 15 | AC_CACHE_CHECK([for promoted mode_t type], [gl_cv_promoted_mode_t], [ 16 | dnl Assume mode_t promotes to 'int' if and only if it is smaller than 'int', 17 | dnl and to itself otherwise. This assumption is not guaranteed by the ISO C 18 | dnl standard, but we don't know of any real-world counterexamples. 19 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], 20 | [[typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];]])], 21 | [gl_cv_promoted_mode_t='int'], 22 | [gl_cv_promoted_mode_t='mode_t']) 23 | ]) 24 | AC_DEFINE_UNQUOTED([PROMOTED_MODE_T], [$gl_cv_promoted_mode_t], 25 | [Define to the type that is the result of default argument promotions of type mode_t.]) 26 | ]) 27 | -------------------------------------------------------------------------------- /m4/nls.m4: -------------------------------------------------------------------------------- 1 | # nls.m4 serial 5 (gettext-0.18) 2 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | dnl 8 | dnl This file can can be used in projects which are not available under 9 | dnl the GNU General Public License or the GNU Library General Public 10 | dnl License but which still want to provide support for the GNU gettext 11 | dnl functionality. 12 | dnl Please note that the actual code of the GNU gettext library is covered 13 | dnl by the GNU Library General Public License, and the rest of the GNU 14 | dnl gettext package package is covered by the GNU General Public License. 15 | dnl They are *not* in the public domain. 16 | 17 | dnl Authors: 18 | dnl Ulrich Drepper , 1995-2000. 19 | dnl Bruno Haible , 2000-2003. 20 | 21 | AC_PREREQ([2.50]) 22 | 23 | AC_DEFUN([AM_NLS], 24 | [ 25 | AC_MSG_CHECKING([whether NLS is requested]) 26 | dnl Default is enabled NLS 27 | AC_ARG_ENABLE([nls], 28 | [ --disable-nls do not use Native Language Support], 29 | USE_NLS=$enableval, USE_NLS=yes) 30 | AC_MSG_RESULT([$USE_NLS]) 31 | AC_SUBST([USE_NLS]) 32 | ]) 33 | -------------------------------------------------------------------------------- /lib/isnanl-nolibm.h: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #if HAVE_ISNANL_IN_LIBC 18 | /* Get declaration of isnan macro or (older) isnanl function. */ 19 | # include 20 | # if __GNUC__ >= 4 21 | /* GCC 4.0 and newer provides three built-ins for isnan. */ 22 | # undef isnanl 23 | # define isnanl(x) __builtin_isnanl ((long double)(x)) 24 | # elif defined isnan 25 | # undef isnanl 26 | # define isnanl(x) isnan ((long double)(x)) 27 | # endif 28 | #else 29 | /* Test whether X is a NaN. */ 30 | # undef isnanl 31 | # define isnanl rpl_isnanl 32 | extern int isnanl (long double x); 33 | #endif 34 | -------------------------------------------------------------------------------- /m4/printf-frexp.m4: -------------------------------------------------------------------------------- 1 | # printf-frexp.m4 serial 5 2 | dnl Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl Check how to define printf_frexp() without linking with libm. 8 | 9 | AC_DEFUN([gl_FUNC_PRINTF_FREXP], 10 | [ 11 | AC_REQUIRE([gl_CHECK_FREXP_NO_LIBM]) 12 | if test $gl_cv_func_frexp_no_libm = yes; then 13 | gl_FUNC_FREXP_WORKS 14 | case "$gl_cv_func_frexp_works" in 15 | *yes) 16 | AC_DEFINE([HAVE_FREXP_IN_LIBC], [1], 17 | [Define if the frexp function is available in libc.]) 18 | ;; 19 | esac 20 | fi 21 | 22 | AC_CACHE_CHECK([whether ldexp can be used without linking with libm], 23 | [gl_cv_func_ldexp_no_libm], 24 | [ 25 | AC_LINK_IFELSE( 26 | [AC_LANG_PROGRAM( 27 | [[#include 28 | double x; 29 | int y;]], 30 | [[return ldexp (x, y) < 1;]])], 31 | [gl_cv_func_ldexp_no_libm=yes], 32 | [gl_cv_func_ldexp_no_libm=no]) 33 | ]) 34 | if test $gl_cv_func_ldexp_no_libm = yes; then 35 | AC_DEFINE([HAVE_LDEXP_IN_LIBC], [1], 36 | [Define if the ldexp function is available in libc.]) 37 | fi 38 | ]) 39 | -------------------------------------------------------------------------------- /lib/xgetcwd.c: -------------------------------------------------------------------------------- 1 | /* xgetcwd.c -- return current directory with unlimited length 2 | 3 | Copyright (C) 2001, 2003-2004, 2006-2007, 2009-2013 Free Software 4 | Foundation, Inc. 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | /* Written by Jim Meyering. */ 20 | 21 | #include 22 | 23 | #include "xgetcwd.h" 24 | 25 | #include 26 | #include 27 | 28 | #include "xalloc.h" 29 | 30 | /* Return the current directory, newly allocated. 31 | Upon an out-of-memory error, call xalloc_die. 32 | Upon any other type of error, return NULL. */ 33 | 34 | char * 35 | xgetcwd (void) 36 | { 37 | char *cwd = getcwd (NULL, 0); 38 | if (! cwd && errno == ENOMEM) 39 | xalloc_die (); 40 | return cwd; 41 | } 42 | -------------------------------------------------------------------------------- /lib/strnlen1.h: -------------------------------------------------------------------------------- 1 | /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 2 | Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _STRNLEN1_H 18 | #define _STRNLEN1_H 19 | 20 | #include 21 | 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | 28 | /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 29 | If no '\0' terminator is found in that many characters, return MAXLEN. */ 30 | /* This is the same as strnlen (string, maxlen - 1) + 1. */ 31 | extern size_t strnlen1 (const char *string, size_t maxlen) 32 | _GL_ATTRIBUTE_PURE; 33 | 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | 40 | #endif /* _STRNLEN1_H */ 41 | -------------------------------------------------------------------------------- /whois/make_ip_del.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 | # 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | use strict; 22 | 23 | while (<>) { 24 | chomp; 25 | s/^\s*(.*)\s*$/$1/; 26 | s/\s*#.*$//; 27 | next if /^$/; 28 | die "format error: $_" unless (/^([\d\.]+)\/(\d+)\s+([\w\.]+)$/); 29 | my $m=$2; my $s=$3; 30 | my ($i1, $i2, $i3, $i4)=split(/\./, $1); 31 | print "{ ".(($i1<<24)+($i2<<16)+($i3<<8)+$i4)."UL, ". 32 | (0xffffffff^(0xffffffff>>$m))."UL, \""; 33 | if ($s =~ /\./) { 34 | print "$s"; 35 | } else { 36 | print "whois.$s.net"; 37 | } 38 | print "\" },\n"; 39 | } 40 | -------------------------------------------------------------------------------- /lib/strnlen1.c: -------------------------------------------------------------------------------- 1 | /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 2 | Copyright (C) 2005-2006, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #include "strnlen1.h" 21 | 22 | #include 23 | 24 | /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 25 | If no '\0' terminator is found in that many characters, return MAXLEN. */ 26 | /* This is the same as strnlen (string, maxlen - 1) + 1. */ 27 | size_t 28 | strnlen1 (const char *string, size_t maxlen) 29 | { 30 | const char *end = (const char *) memchr (string, '\0', maxlen); 31 | if (end != NULL) 32 | return end - string + 1; 33 | else 34 | return maxlen; 35 | } 36 | -------------------------------------------------------------------------------- /libinetutils/argcv.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #ifndef _ARGCV_H 21 | # define _ARGCV_H 1 22 | 23 | # include 24 | # include 25 | # include 26 | # include 27 | 28 | # ifdef __cplusplus 29 | extern "C" 30 | { 31 | # endif 32 | 33 | extern int argcv_get (const char *command, const char *delim, 34 | int *argc, char ***argv); 35 | extern int argcv_string (int argc, char **argv, char **string); 36 | extern int argcv_free (int argc, char **argv); 37 | 38 | # ifdef __cplusplus 39 | } 40 | # endif 41 | 42 | #endif /* _ARGCV_H */ 43 | -------------------------------------------------------------------------------- /lib/filemode.h: -------------------------------------------------------------------------------- 1 | /* Make a string describing file modes. 2 | 3 | Copyright (C) 1998-1999, 2003, 2006, 2009-2013 Free Software Foundation, 4 | Inc. 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | #ifndef FILEMODE_H_ 20 | 21 | # include 22 | # include 23 | 24 | /* Get the declaration of strmode. */ 25 | # if HAVE_DECL_STRMODE 26 | # include /* Mac OS X, FreeBSD, OpenBSD */ 27 | # include /* NetBSD */ 28 | # endif 29 | 30 | # ifdef __cplusplus 31 | extern "C" { 32 | # endif 33 | 34 | # if !HAVE_DECL_STRMODE 35 | extern void strmode (mode_t mode, char *str); 36 | # endif 37 | 38 | extern void filemodestring (struct stat const *statp, char *str); 39 | 40 | # ifdef __cplusplus 41 | } 42 | # endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /man/tftpd.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH TFTPD "8" "October 2013" "GNU inetutils 1.9.1-dirty" "System Administration Utilities" 3 | .SH NAME 4 | tftpd \- TFTP server 5 | .SH SYNOPSIS 6 | .B tftpd 7 | [\fIOPTION\fR...] \fIdirectory\fR... 8 | .SH DESCRIPTION 9 | Trivial File Transfer Protocol server 10 | .TP 11 | \fB\-l\fR, \fB\-\-logging\fR 12 | enable logging 13 | .TP 14 | \fB\-n\fR, \fB\-\-nonexistent\fR 15 | supress negative acknowledgement of requests for 16 | nonexistent relative filenames 17 | .TP 18 | \-?, \fB\-\-help\fR 19 | give this help list 20 | .TP 21 | \fB\-\-usage\fR 22 | give a short usage message 23 | .TP 24 | \fB\-V\fR, \fB\-\-version\fR 25 | print program version 26 | .SH AUTHOR 27 | Written by many authors. 28 | .SH "REPORTING BUGS" 29 | Report bugs to . 30 | .SH COPYRIGHT 31 | Copyright \(co 2013 Free Software Foundation, Inc. 32 | License GPLv3+: GNU GPL version 3 or later . 33 | .br 34 | This is free software: you are free to change and redistribute it. 35 | There is NO WARRANTY, to the extent permitted by law. 36 | .SH "SEE ALSO" 37 | The full documentation for 38 | .B tftpd 39 | is maintained as a Texinfo manual. If the 40 | .B info 41 | and 42 | .B tftpd 43 | programs are properly installed at your site, the command 44 | .IP 45 | .B info tftpd 46 | .PP 47 | should give you access to the complete manual. 48 | -------------------------------------------------------------------------------- /telnet/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | bin_PROGRAMS = @telnet_BUILD@ 22 | 23 | EXTRA_PROGRAMS = telnet 24 | 25 | telnet_SOURCES = authenc.c commands.c main.c network.c ring.c sys_bsd.c \ 26 | telnet.c terminal.c tn3270.c utilities.c 27 | 28 | noinst_HEADERS = defines.h externs.h general.h ring.h types.h 29 | 30 | INCLUDES = $(iu_INCLUDES) $(NCURSES_INCLUDE) 31 | AM_CPPFLAGS = -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK 32 | 33 | LDADD = $(iu_LIBRARIES) $(top_builddir)/libtelnet/libtelnet.a $(LIBTERMCAP) $(LIBCRYPT) $(LIBAUTH) $(LIBREADLINE) 34 | -------------------------------------------------------------------------------- /m4/inttypes-pri.m4: -------------------------------------------------------------------------------- 1 | # inttypes-pri.m4 serial 7 (gettext-0.18.2) 2 | dnl Copyright (C) 1997-2002, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | 9 | AC_PREREQ([2.53]) 10 | 11 | # Define PRI_MACROS_BROKEN if exists and defines the PRI* 12 | # macros to non-string values. This is the case on AIX 4.3.3. 13 | 14 | AC_DEFUN([gt_INTTYPES_PRI], 15 | [ 16 | AC_CHECK_HEADERS([inttypes.h]) 17 | if test $ac_cv_header_inttypes_h = yes; then 18 | AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], 19 | [gt_cv_inttypes_pri_broken], 20 | [ 21 | AC_COMPILE_IFELSE( 22 | [AC_LANG_PROGRAM( 23 | [[ 24 | #include 25 | #ifdef PRId32 26 | char *p = PRId32; 27 | #endif 28 | ]], 29 | [[]])], 30 | [gt_cv_inttypes_pri_broken=no], 31 | [gt_cv_inttypes_pri_broken=yes]) 32 | ]) 33 | fi 34 | if test "$gt_cv_inttypes_pri_broken" = yes; then 35 | AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], 36 | [Define if exists and defines unusable PRI* macros.]) 37 | PRI_MACROS_BROKEN=1 38 | else 39 | PRI_MACROS_BROKEN=0 40 | fi 41 | AC_SUBST([PRI_MACROS_BROKEN]) 42 | ]) 43 | -------------------------------------------------------------------------------- /ifconfig/ifconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | /* Written by Marcus Brinkmann. */ 21 | 22 | #ifndef IFCONFIG_IFCONFIG_H 23 | # define IFCONFIG_IFCONFIG_H 24 | 25 | # include "flags.h" 26 | # include "if_index.h" 27 | # include "options.h" 28 | # include "printif.h" 29 | # include "system.h" 30 | # include 31 | # include 32 | # include 33 | # define obstack_chunk_alloc malloc 34 | # define obstack_chunk_free free 35 | # include 36 | # include 37 | 38 | /* XXX */ 39 | extern int configure_if (int sfd, struct ifconfig *ifp); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | EXTRA_DIST = paths ChangeLog.0 22 | 23 | SUBDIRS = lib \ 24 | libinetutils libtelnet libicmp libls \ 25 | src telnet telnetd ftp ftpd talk talkd whois ping ifconfig \ 26 | doc man \ 27 | tests 28 | 29 | DISTCLEANFILES = pathdefs.make paths.defs $(PACKAGE)-$(VERSION).tar.gz 30 | 31 | BUILT_SOURCES = $(top_srcdir)/.version 32 | $(top_srcdir)/.version: 33 | echo $(VERSION) > $@-t && mv $@-t $@ 34 | dist-hook: 35 | echo $(VERSION) > $(distdir)/.tarball-version 36 | 37 | snapshot: 38 | $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"` 39 | -------------------------------------------------------------------------------- /lib/argp-version-etc.c: -------------------------------------------------------------------------------- 1 | /* Version hook for Argp. 2 | Copyright (C) 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | static const char *program_canonical_name; 23 | static const char * const *program_authors; 24 | 25 | static void 26 | version_etc_hook (FILE *stream, struct argp_state *state) 27 | { 28 | version_etc_ar (stream, program_canonical_name, PACKAGE_NAME, VERSION, 29 | program_authors); 30 | } 31 | 32 | void 33 | argp_version_setup (const char *name, const char * const *authors) 34 | { 35 | argp_program_version_hook = version_etc_hook; 36 | program_canonical_name = name; 37 | program_authors = authors; 38 | } 39 | -------------------------------------------------------------------------------- /lib/fseterr.h: -------------------------------------------------------------------------------- 1 | /* Set the error indicator of a stream. 2 | Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _FSETERR_H 18 | #define _FSETERR_H 19 | 20 | #include 21 | 22 | /* Set the error indicator of the stream FP. 23 | The "error indicator" is set when an I/O operation on the stream fails, and 24 | is cleared (together with the "end-of-file" indicator) by clearerr (FP). */ 25 | 26 | #if HAVE___FSETERR /* musl libc */ 27 | 28 | # include 29 | # define fseterr(fp) __fseterr (fp) 30 | 31 | #else 32 | 33 | # ifdef __cplusplus 34 | extern "C" { 35 | # endif 36 | 37 | extern void fseterr (FILE *fp); 38 | 39 | # ifdef __cplusplus 40 | } 41 | # endif 42 | 43 | #endif 44 | 45 | #endif /* _FSETERR_H */ 46 | -------------------------------------------------------------------------------- /telnetd/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | inetdaemondir = @inetdaemondir@ 22 | 23 | inetdaemon_PROGRAMS = @telnetd_BUILD@ 24 | 25 | EXTRA_PROGRAMS = telnetd 26 | 27 | telnetd_SOURCES = telnetd.c pty.c term.c utility.c state.c termstat.c slc.c 28 | noinst_HEADERS = telnetd.h 29 | 30 | @PATHDEFS_MAKE@ 31 | 32 | AM_CPPFLAGS = $(PATHDEF_DEV) $(PATHDEF_TTY) $(PATHDEF_LOGIN) 33 | INCLUDES = $(iu_INCLUDES) -I$(top_srcdir) $(INCAUTH) $(NCURSES_INCLUDE) 34 | 35 | LDADD = $(iu_LIBRARIES) $(top_builddir)/libtelnet/libtelnet.a $(LIBTERMCAP) $(LIBUTIL) $(LIBCRYPT) $(LIBAUTH) $(LIBREADLINE) 36 | -------------------------------------------------------------------------------- /tests/traceroute-localhost.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | TRACEROUTE=${TRACEROUTE:-../src/traceroute$EXEEXT} 21 | TARGET=${TARGET:-127.0.0.1} 22 | 23 | if [ $VERBOSE ]; then 24 | set -x 25 | $TRACEROUTE --version 26 | fi 27 | 28 | if [ `id -u` != 0 ]; then 29 | echo "traceroute needs to run as root" 30 | exit 77 31 | fi 32 | 33 | errno=0 34 | errno2=0 35 | 36 | $TRACEROUTE --type=udp $TARGET || errno=$? 37 | test $errno -eq 0 || echo "Failed at UDP tracing." >&2 38 | 39 | $TRACEROUTE --type=icmp $TARGET || errno2=$? 40 | test $errno2 -eq 0 || echo "Failed at ICMP tracing." >&2 41 | 42 | test $errno -eq 0 || exit $errno 43 | 44 | exit $errno2 45 | -------------------------------------------------------------------------------- /lib/xgetdomainname.h: -------------------------------------------------------------------------------- 1 | /* xgetdomainname.h -- Return the NIS domain name, without size limitations. 2 | Copyright (C) 1992, 1996, 2000-2001, 2003, 2009-2013 Free Software 3 | Foundation, Inc. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #ifndef _XGETDOMAINNAME_H 19 | #define _XGETDOMAINNAME_H 20 | 21 | /* Return the NIS domain name of the machine, in malloc'd storage. 22 | WARNING! The NIS domain name is unrelated to the fully qualified host name 23 | of the machine. It is also unrelated to email addresses. 24 | WARNING! The NIS domain name is usually the empty string or "(none)" when 25 | not using NIS. 26 | If malloc fails, exit. 27 | Upon any other failure, set errno and return NULL. */ 28 | extern char *xgetdomainname (void); 29 | 30 | #endif /* _XGETDOMAINNAME_H */ 31 | -------------------------------------------------------------------------------- /m4/sysexits.m4: -------------------------------------------------------------------------------- 1 | # sysexits.m4 serial 6 2 | dnl Copyright (C) 2003, 2005, 2007, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_SYSEXITS], 8 | [ 9 | AC_CHECK_HEADERS_ONCE([sysexits.h]) 10 | if test $ac_cv_header_sysexits_h = yes; then 11 | HAVE_SYSEXITS_H=1 12 | gl_CHECK_NEXT_HEADERS([sysexits.h]) 13 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], 14 | [[switch (0) 15 | { 16 | case EX_OK: 17 | case EX_USAGE: 18 | case EX_DATAERR: 19 | case EX_NOINPUT: 20 | case EX_NOUSER: 21 | case EX_NOHOST: 22 | case EX_UNAVAILABLE: 23 | case EX_SOFTWARE: 24 | case EX_OSERR: 25 | case EX_OSFILE: 26 | case EX_CANTCREAT: 27 | case EX_IOERR: 28 | case EX_TEMPFAIL: 29 | case EX_PROTOCOL: 30 | case EX_NOPERM: 31 | case EX_CONFIG: 32 | break; 33 | } 34 | ]])], 35 | [SYSEXITS_H=], 36 | [SYSEXITS_H=sysexits.h]) 37 | else 38 | HAVE_SYSEXITS_H=0 39 | SYSEXITS_H=sysexits.h 40 | fi 41 | AC_SUBST([HAVE_SYSEXITS_H]) 42 | AC_SUBST([SYSEXITS_H]) 43 | AM_CONDITIONAL([GL_GENERATE_SYSEXITS_H], [test -n "$SYSEXITS_H"]) 44 | ]) 45 | -------------------------------------------------------------------------------- /lib/float.c: -------------------------------------------------------------------------------- 1 | /* Auxiliary definitions for . 2 | Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2011. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include 22 | 23 | #if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ 24 | const union gl_long_double_union gl_LDBL_MAX = 25 | { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } }; 26 | #elif defined __i386__ 27 | const union gl_long_double_union gl_LDBL_MAX = 28 | { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } }; 29 | #else 30 | /* This declaration is solely to ensure that after preprocessing 31 | this file is never empty. */ 32 | typedef int dummy; 33 | #endif 34 | -------------------------------------------------------------------------------- /lib/localcharset.h: -------------------------------------------------------------------------------- 1 | /* Determine a canonical name for the current locale's character encoding. 2 | Copyright (C) 2000-2003, 2009-2013 Free Software Foundation, Inc. 3 | This file is part of the GNU CHARSET Library. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License along 16 | with this program; if not, see . */ 17 | 18 | #ifndef _LOCALCHARSET_H 19 | #define _LOCALCHARSET_H 20 | 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | 27 | /* Determine the current locale's character encoding, and canonicalize it 28 | into one of the canonical names listed in config.charset. 29 | The result must not be freed; it is statically allocated. 30 | If the canonical name cannot be determined, the result is a non-canonical 31 | name. */ 32 | extern const char * locale_charset (void); 33 | 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | 40 | #endif /* _LOCALCHARSET_H */ 41 | -------------------------------------------------------------------------------- /m4/00gnulib.m4: -------------------------------------------------------------------------------- 1 | # 00gnulib.m4 serial 2 2 | dnl Copyright (C) 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl This file must be named something that sorts before all other 8 | dnl gnulib-provided .m4 files. It is needed until such time as we can 9 | dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics. 10 | 11 | # AC_DEFUN_ONCE([NAME], VALUE) 12 | # ---------------------------- 13 | # Define NAME to expand to VALUE on the first use (whether by direct 14 | # expansion, or by AC_REQUIRE), and to nothing on all subsequent uses. 15 | # Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This 16 | # definition is slower than the version in Autoconf 2.64, because it 17 | # can only use interfaces that existed since 2.59; but it achieves the 18 | # same effect. Quoting is necessary to avoid confusing Automake. 19 | m4_version_prereq([2.63.263], [], 20 | [m4_define([AC][_DEFUN_ONCE], 21 | [AC][_DEFUN([$1], 22 | [AC_REQUIRE([_gl_DEFUN_ONCE([$1])], 23 | [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl 24 | [AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])]) 25 | 26 | # gl_00GNULIB 27 | # ----------- 28 | # Witness macro that this file has been included. Needed to force 29 | # Automake to include this file prior to all other gnulib .m4 files. 30 | AC_DEFUN([gl_00GNULIB]) 31 | -------------------------------------------------------------------------------- /lib/xalloc-die.c: -------------------------------------------------------------------------------- 1 | /* Report a memory allocation failure and exit. 2 | 3 | Copyright (C) 1997-2000, 2002-2004, 2006, 2009-2013 Free Software 4 | Foundation, Inc. 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . */ 18 | 19 | #include 20 | 21 | #include "xalloc.h" 22 | 23 | #include 24 | 25 | #include "error.h" 26 | #include "exitfail.h" 27 | 28 | #include "gettext.h" 29 | #define _(msgid) gettext (msgid) 30 | 31 | void 32 | xalloc_die (void) 33 | { 34 | error (exit_failure, 0, "%s", _("memory exhausted")); 35 | 36 | /* _Noreturn cannot be given to error, since it may return if 37 | its first argument is 0. To help compilers understand the 38 | xalloc_die does not return, call abort. Also, the abort is a 39 | safety feature if exit_failure is 0 (which shouldn't happen). */ 40 | abort (); 41 | } 42 | -------------------------------------------------------------------------------- /libinetutils/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | noinst_LIBRARIES = libinetutils.a 22 | 23 | noinst_HEADERS = argcv.h libinetutils.h tftpsubs.h shishi_def.h 24 | 25 | EXTRA_DIST = logwtmp.c 26 | 27 | libinetutils_a_SOURCES = \ 28 | argcv.c\ 29 | cleansess.c\ 30 | daemon.c\ 31 | defauthors.c\ 32 | des_rw.c\ 33 | kcmd.c\ 34 | krcmd.c\ 35 | localhost.c\ 36 | logwtmpko.c\ 37 | setsig.c\ 38 | shishi.c\ 39 | tftpsubs.c\ 40 | ttymsg.c\ 41 | utmp_init.c\ 42 | utmp_logout.c 43 | 44 | @PATHDEFS_MAKE@ 45 | 46 | AM_CPPFLAGS = $(PATHDEF_WTMPX) $(PATHDEF_TTY_PFX) $(PATHDEF_DEVNULL) $(PATHDEF_HEQUIV) 47 | 48 | INCLUDES = $(iu_INCLUDES) 49 | -------------------------------------------------------------------------------- /m4/minmax.m4: -------------------------------------------------------------------------------- 1 | # minmax.m4 serial 4 2 | dnl Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_PREREQ([2.53]) 8 | 9 | AC_DEFUN([gl_MINMAX], 10 | [ 11 | AC_REQUIRE([gl_PREREQ_MINMAX]) 12 | ]) 13 | 14 | # Prerequisites of lib/minmax.h. 15 | AC_DEFUN([gl_PREREQ_MINMAX], 16 | [ 17 | gl_MINMAX_IN_HEADER([limits.h]) 18 | gl_MINMAX_IN_HEADER([sys/param.h]) 19 | ]) 20 | 21 | dnl gl_MINMAX_IN_HEADER(HEADER) 22 | dnl The parameter has to be a literal header name; it cannot be macro, 23 | dnl nor a shell variable. (Because autoheader collects only AC_DEFINE 24 | dnl invocations with a literal macro name.) 25 | AC_DEFUN([gl_MINMAX_IN_HEADER], 26 | [ 27 | m4_pushdef([header], AS_TR_SH([$1])) 28 | m4_pushdef([HEADER], AS_TR_CPP([$1])) 29 | AC_CACHE_CHECK([whether <$1> defines MIN and MAX], 30 | [gl_cv_minmax_in_]header, 31 | [AC_COMPILE_IFELSE( 32 | [AC_LANG_PROGRAM( 33 | [[#include <$1> 34 | int x = MIN (42, 17);]], 35 | [[]])], 36 | [gl_cv_minmax_in_]header[=yes], 37 | [gl_cv_minmax_in_]header[=no])]) 38 | if test $gl_cv_minmax_in_[]header = yes; then 39 | AC_DEFINE([HAVE_MINMAX_IN_]HEADER, 1, 40 | [Define to 1 if <$1> defines the MIN and MAX macros.]) 41 | fi 42 | m4_popdef([HEADER]) 43 | m4_popdef([header]) 44 | ]) 45 | -------------------------------------------------------------------------------- /m4/lcmessage.m4: -------------------------------------------------------------------------------- 1 | # lcmessage.m4 serial 7 (gettext-0.18.2) 2 | dnl Copyright (C) 1995-2002, 2004-2005, 2008-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | dnl 8 | dnl This file can can be used in projects which are not available under 9 | dnl the GNU General Public License or the GNU Library General Public 10 | dnl License but which still want to provide support for the GNU gettext 11 | dnl functionality. 12 | dnl Please note that the actual code of the GNU gettext library is covered 13 | dnl by the GNU Library General Public License, and the rest of the GNU 14 | dnl gettext package package is covered by the GNU General Public License. 15 | dnl They are *not* in the public domain. 16 | 17 | dnl Authors: 18 | dnl Ulrich Drepper , 1995. 19 | 20 | # Check whether LC_MESSAGES is available in . 21 | 22 | AC_DEFUN([gt_LC_MESSAGES], 23 | [ 24 | AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], 25 | [AC_LINK_IFELSE( 26 | [AC_LANG_PROGRAM( 27 | [[#include ]], 28 | [[return LC_MESSAGES]])], 29 | [gt_cv_val_LC_MESSAGES=yes], 30 | [gt_cv_val_LC_MESSAGES=no])]) 31 | if test $gt_cv_val_LC_MESSAGES = yes; then 32 | AC_DEFINE([HAVE_LC_MESSAGES], [1], 33 | [Define if your file defines LC_MESSAGES.]) 34 | fi 35 | ]) 36 | -------------------------------------------------------------------------------- /man/rshd.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.13. 2 | .TH RSHD "8" "October 2013" "GNU inetutils 1.9.1-dirty" "System Administration Utilities" 3 | .SH NAME 4 | rshd \- Remote shell server 5 | .SH SYNOPSIS 6 | .B rshd 7 | [\fIOPTION\fR...] 8 | .SH DESCRIPTION 9 | Remote shell server 10 | .TP 11 | \fB\-a\fR, \fB\-\-verify\-hostname\fR 12 | ask hostname for verification 13 | .TP 14 | \fB\-l\fR, \fB\-\-no\-rhosts\fR 15 | ignore .rhosts file 16 | .TP 17 | \fB\-L\fR, \fB\-\-log\-sessions\fR 18 | log successfull logins 19 | .TP 20 | \fB\-n\fR, \fB\-\-no\-keepalive\fR 21 | do not set SO_KEEPALIVE 22 | .TP 23 | \-?, \fB\-\-help\fR 24 | give this help list 25 | .TP 26 | \fB\-\-usage\fR 27 | give a short usage message 28 | .TP 29 | \fB\-V\fR, \fB\-\-version\fR 30 | print program version 31 | .SH AUTHOR 32 | Written by many authors. 33 | .SH "REPORTING BUGS" 34 | Report bugs to . 35 | .SH COPYRIGHT 36 | Copyright \(co 2013 Free Software Foundation, Inc. 37 | License GPLv3+: GNU GPL version 3 or later . 38 | .br 39 | This is free software: you are free to change and redistribute it. 40 | There is NO WARRANTY, to the extent permitted by law. 41 | .SH "SEE ALSO" 42 | rsh(1) 43 | .PP 44 | The full documentation for 45 | .B rshd 46 | is maintained as a Texinfo manual. If the 47 | .B info 48 | and 49 | .B rshd 50 | programs are properly installed at your site, the command 51 | .IP 52 | .B info rshd 53 | .PP 54 | should give you access to the complete manual. 55 | -------------------------------------------------------------------------------- /lib/argp-pvh.c: -------------------------------------------------------------------------------- 1 | /* Default definition for ARGP_PROGRAM_VERSION_HOOK. 2 | Copyright (C) 1996-1997, 1999, 2004, 2009-2013 Free Software Foundation, 3 | Inc. 4 | This file is part of the GNU C Library. 5 | Written by Miles Bader . 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #ifdef HAVE_CONFIG_H 21 | # include 22 | #endif 23 | 24 | #include "argp.h" 25 | 26 | /* If set by the user program to a non-zero value, then a default option 27 | --version is added (unless the ARGP_NO_HELP flag is used), which calls 28 | this function with a stream to print the version to and a pointer to the 29 | current parsing state, and then exits (unless the ARGP_NO_EXIT flag is 30 | used). This variable takes precedent over ARGP_PROGRAM_VERSION. */ 31 | void (*argp_program_version_hook) (FILE *stream, struct argp_state *state) = NULL; 32 | -------------------------------------------------------------------------------- /lib/msvc-nothrow.c: -------------------------------------------------------------------------------- 1 | /* Wrappers that don't throw invalid parameter notifications 2 | with MSVC runtime libraries. 3 | Copyright (C) 2011-2013 Free Software Foundation, Inc. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License along 16 | with this program; if not, see . */ 17 | 18 | #include 19 | 20 | /* Specification. */ 21 | #include "msvc-nothrow.h" 22 | 23 | /* Get declarations of the native Windows API functions. */ 24 | #define WIN32_LEAN_AND_MEAN 25 | #include 26 | 27 | #include "msvc-inval.h" 28 | 29 | #undef _get_osfhandle 30 | 31 | #if HAVE_MSVC_INVALID_PARAMETER_HANDLER 32 | intptr_t 33 | _gl_nothrow_get_osfhandle (int fd) 34 | { 35 | intptr_t result; 36 | 37 | TRY_MSVC_INVAL 38 | { 39 | result = _get_osfhandle (fd); 40 | } 41 | CATCH_MSVC_INVAL 42 | { 43 | result = (intptr_t) INVALID_HANDLE_VALUE; 44 | } 45 | DONE_MSVC_INVAL; 46 | 47 | return result; 48 | } 49 | #endif 50 | -------------------------------------------------------------------------------- /ifconfig/system/solaris.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | /* Written by Marcus Brinkmann. */ 21 | 22 | #ifndef IFCONFIG_SYSTEM_SOLARIS_H 23 | # define IFCONFIG_SYSTEM_SOLARIS_H 24 | 25 | # include "../printif.h" 26 | # include "../options.h" 27 | # include 28 | 29 | 30 | /* XXX: Gross. Have autoconf check and put in system.h or so. 31 | The correctness is documented in Solaris 2.7, if_tcp(7p). */ 32 | 33 | # define ifr_mtu ifr_metric 34 | 35 | 36 | /* Option support. */ 37 | 38 | struct system_ifconfig 39 | { 40 | int valid; 41 | }; 42 | 43 | 44 | /* Output format support. */ 45 | 46 | # define SYSTEM_FORMAT_HANDLER \ 47 | {"solaris", fh_nothing}, 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /ftpd/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 | # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, 4 | # Inc. 5 | # 6 | # This file is part of GNU Inetutils. 7 | # 8 | # GNU Inetutils is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or (at 11 | # your option) any later version. 12 | # 13 | # GNU Inetutils is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 20 | 21 | inetdaemondir = @inetdaemondir@ 22 | 23 | inetdaemon_PROGRAMS = @ftpd_BUILD@ 24 | 25 | EXTRA_PROGRAMS = ftpd 26 | 27 | ftpd_SOURCES = ftpcmd.y ftpd.c popen.c pam.c auth.c \ 28 | conf.c server_mode.c 29 | 30 | noinst_HEADERS = extern.h 31 | 32 | @PATHDEFS_MAKE@ 33 | 34 | INCLUDES = $(iu_INCLUDES) 35 | AM_CPPFLAGS = $(PATHDEF_FTPWELCOME) $(PATHDEF_FTPUSERS) \ 36 | $(PATHDEF_FTPLOGINMESG) $(PATHDEF_FTPCHROOT) $(PATHDEF_FTPDPID) \ 37 | $(PATHDEF_DEVNULL) $(PATHDEF_NOLOGIN) $(PATHDEF_BSHELL) 38 | 39 | LDADD = $(LIBLS) $(LIBCRYPT) $(LIBWRAP) $(LIBPAM) $(iu_LIBRARIES) 40 | 41 | EXTRA_DIST = ftpcmd.c 42 | -------------------------------------------------------------------------------- /lib/netinet_in.in.h: -------------------------------------------------------------------------------- 1 | /* Substitute for . 2 | Copyright (C) 2007-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3, or (at your option) 7 | any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . */ 16 | 17 | #ifndef _@GUARD_PREFIX@_NETINET_IN_H 18 | 19 | #if __GNUC__ >= 3 20 | @PRAGMA_SYSTEM_HEADER@ 21 | #endif 22 | @PRAGMA_COLUMNS@ 23 | 24 | #if @HAVE_NETINET_IN_H@ 25 | 26 | /* On many platforms, assumes prior inclusion of 27 | . */ 28 | # include 29 | 30 | /* The include_next requires a split double-inclusion guard. */ 31 | # @INCLUDE_NEXT@ @NEXT_NETINET_IN_H@ 32 | 33 | #endif 34 | 35 | #ifndef _@GUARD_PREFIX@_NETINET_IN_H 36 | #define _@GUARD_PREFIX@_NETINET_IN_H 37 | 38 | #if !@HAVE_NETINET_IN_H@ 39 | 40 | /* A platform that lacks . */ 41 | 42 | # include 43 | 44 | #endif 45 | 46 | #endif /* _@GUARD_PREFIX@_NETINET_IN_H */ 47 | #endif /* _@GUARD_PREFIX@_NETINET_IN_H */ 48 | -------------------------------------------------------------------------------- /ping/ping_router.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | #include 28 | #include 29 | 30 | /*#include -- deliberately not including this */ 31 | #ifdef HAVE_NETINET_IP_VAR_H 32 | # include 33 | #endif 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | 43 | #include 44 | #include 45 | 46 | int 47 | ping_router (char *hostname) 48 | { 49 | return 0; 50 | } 51 | -------------------------------------------------------------------------------- /lib/argp-version-etc.h: -------------------------------------------------------------------------------- 1 | /* Version hook for Argp. 2 | Copyright (C) 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _ARGP_VERSION_ETC_H 18 | #define _ARGP_VERSION_ETC_H 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | /* Setup standard display of the version information for the '--version' 25 | option. NAME is the canonical program name, and AUTHORS is a NULL- 26 | terminated array of author names. At least one author name must be 27 | given. 28 | 29 | If NAME is NULL, the package name (as given by the PACKAGE macro) 30 | is assumed to be the name of the program. 31 | 32 | This function is intended to be called before argp_parse(). 33 | */ 34 | extern void argp_version_setup (const char *name, const char * const *authors); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif /* _ARGP_VERSION_ETC_H */ 41 | -------------------------------------------------------------------------------- /lib/vasprintf.c: -------------------------------------------------------------------------------- 1 | /* Formatted output to strings. 2 | Copyright (C) 1999, 2002, 2006-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3, or (at your option) 7 | any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License along 15 | with this program; if not, see . */ 16 | 17 | #include 18 | 19 | /* Specification. */ 20 | #ifdef IN_LIBASPRINTF 21 | # include "vasprintf.h" 22 | #else 23 | # include 24 | #endif 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #include "vasnprintf.h" 31 | 32 | int 33 | vasprintf (char **resultp, const char *format, va_list args) 34 | { 35 | size_t length; 36 | char *result = vasnprintf (NULL, &length, format, args); 37 | if (result == NULL) 38 | return -1; 39 | 40 | if (length > INT_MAX) 41 | { 42 | free (result); 43 | errno = EOVERFLOW; 44 | return -1; 45 | } 46 | 47 | *resultp = result; 48 | /* Return the number of resulting bytes, excluding the trailing NUL. */ 49 | return length; 50 | } 51 | -------------------------------------------------------------------------------- /tests/ping-localhost.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GNU Inetutils. 6 | # 7 | # GNU Inetutils is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or (at 10 | # your option) any later version. 11 | # 12 | # GNU Inetutils is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see `http://www.gnu.org/licenses/'. 19 | 20 | PING=${PING:-../ping/ping$EXEEXT} 21 | TARGET=${TARGET:-127.0.0.1} 22 | 23 | PING6=${PING6:-../ping/ping6$EXEEXT} 24 | TARGET6=${TARGET6:-::1} 25 | 26 | if [ $VERBOSE ]; then 27 | set -x 28 | $PING --version 29 | fi 30 | 31 | if [ `id -u` != 0 ]; then 32 | echo "ping needs to run as root" 33 | exit 77 34 | fi 35 | 36 | errno=0 37 | errno2=0 38 | 39 | $PING -c 1 $TARGET || errno=$? 40 | test $errno -eq 0 || echo "Failed at pinging $TARGET." >&2 41 | 42 | # Host might not have been built with IPv6 support.. 43 | test -x $PING6 && $PING6 -c 1 $TARGET6 || errno2=$? 44 | test $errno2 -eq 0 || echo "Failed at pinging $TARGET6." >&2 45 | 46 | test $errno -eq 0 || exit $errno 47 | 48 | exit $errno2 49 | -------------------------------------------------------------------------------- /libicmp/icmp_address.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3 | 2010, 2011, 2012 Free Software Foundation, Inc. 4 | 5 | This file is part of GNU Inetutils. 6 | 7 | GNU Inetutils is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or (at 10 | your option) any later version. 11 | 12 | GNU Inetutils is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | #include 27 | #include 28 | #include 29 | /*#include -- deliberately not including this */ 30 | #include 31 | #include 32 | 33 | int 34 | icmp_address_encode (unsigned char * buffer, size_t bufsize, int ident, int seqno) 35 | { 36 | icmphdr_t *icmp; 37 | 38 | if (bufsize < 12) 39 | return -1; 40 | 41 | icmp = (icmphdr_t *) buffer; 42 | icmp->icmp_mask = 0; 43 | icmp_generic_encode (buffer, bufsize, ICMP_ADDRESS, ident, seqno); 44 | return 0; 45 | } 46 | --------------------------------------------------------------------------------