summaryrefslogtreecommitdiff
path: root/networking/nc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-1/+1
|
* *: fix fallout from -Wunused-parameterDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f busybox_unstripped
* mount: recognize "dirsync" (closes bug 835)Denis Vlasenko2008-02-181-7/+10
| | | | | | mount: sanitize environ if called by non-root *: adjust for slightly different sanitize routine
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-3/+3
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce and use close_on_exec_on(fd). -50 bytes.Denis Vlasenko2007-09-301-1/+1
|
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-5/+3
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* nc: port nc 1.10 to busyboxDenis Vlasenko2007-04-051-0/+5
|
* tcpsvd: new appletDenis Vlasenko2007-04-011-1/+1
| | | | | | | | | | It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
* EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko2007-02-061-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-9/+6
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* fixing bugs revealed by randomconfig runsDenis Vlasenko2007-01-201-1/+1
|
* next part of ipv6-ization. mostly netcat.Denis Vlasenko2007-01-121-54/+49
|
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-1/+5
|
* use xbind, xconnect where appropriate.Denis Vlasenko2006-12-231-2/+1
| | | | small edits to arping
* nc: add missing castDenis Vlasenko2006-12-181-1/+1
| | | | xfuncs: add dprintf for dietlibc
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-2/+1
| | | | | use them where appropriate. 200 bytes saved
* small ipv6 doc changes; nslookup a tiny bit smallerDenis Vlasenko2006-11-071-1/+1
|
* nc: fix 2 my own buglets, and few someone else's too.Denis Vlasenko2006-10-161-34/+61
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-10/+12
|
* whitespace cleanupDenis Vlasenko2006-09-171-6/+6
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-4/+4
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-7/+5
| | | | xlseek and fdlength() for the new mkswap.
* Upgrade netcat a lot. Make -e able to take the rest of the command line asRob Landley2006-07-101-100/+102
| | | | | | | what to exec. Add -f mode and a brief explanation of how to use it to replace minicom. Add -l -l mode so you can turn any command into a server. And group all of netcat's command line options under two CONFIG entries, so if you disable both it doesn't use getopt at all.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* Remove a pointless #define.Rob Landley2006-05-251-4/+5
|
* - patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()Bernhard Reutner-Fischer2006-04-121-5/+2
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-15/+2
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* just whitespaceTim Riker2006-01-251-2/+2
|
* common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"2005-10-151-1/+3
|
* applying fix for: Paul Fox2005-07-201-7/+0
| | | | | | 0000263: nc cannot use -e when initiating a tcp connection to something else
* fix for "0000027: patch: nc will spin if stdin closed"Paul Fox2005-07-181-2/+5
|
* use shared busybox error messages to save a few bytesMike Frysinger2005-05-071-5/+5
|
* make the exec (-e) an optional feature of netcatMike Frysinger2005-05-061-16/+11
|
* In bug 247, haveaniceday writes:Mike Frysinger2005-05-061-2/+21
| | | | | The option "-w secs" adds a timeout for writing.
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-1/+1
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Modify bb_lookup_port to allow the protocol to be specified, allowingGlenn L McGrath2004-01-171-3/+3
| | | | /etc/services support for inetd, netcat and tftp.
* Major coreutils update.Manuel Novoa III2003-03-191-12/+12
|
* Tom Oehser noticed that we were lacking the SO_REUSEADDR flag.Eric Andersen2002-05-051-2/+4
|
* Add netcat -i option, per patch from Cristian Ionescu-IdbohrnEric Andersen2002-04-261-2/+40
| | | | <cristian.ionescu-idbohrn@axis.com>
* Add xgethostbyname and herror_msg* functions.Matt Kraai2001-05-161-2/+1
|
* Fix incorrect length passed to accept noted by Larry Doolittle.Matt Kraai2001-05-151-1/+3
|
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-0/+1
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-2/+2
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Add listening support.Matt Kraai2001-02-071-12/+42
|
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-1/+1
|