summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-07cpukit: Remove libnetworkingVijay Kumar Banerjee63-14740/+0
Update #3850
2020-04-16Canonicalize config.h includeSebastian Huber42-42/+42
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2018-10-22Remove strlcat(), strlcpy(), strsep(), readdir_r()Sebastian Huber1-88/+0
These functions are provided by Newlib since 2002. Update #3409.
2018-09-10network: Use kernel/user space header filesSebastian Huber50-0/+100
Add and use <machine/rtems-bsd-kernel-space.h> and <machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command line defines and defines scattered throught the code base. Simplify cpukit/libnetworking/Makefile.am. Update #3375.
2018-09-10network: Remove unused filesSebastian Huber7-1006/+0
2017-06-12network: Remove FreeBSD specific hackSebastian Huber4-0/+8
For whatever reason FreeBSD renames several functions provided by <arpa/inet.h> and uses weak references to provide the standard function names. This causes problems on targets lacking proper support for weak references. We do not need this function renaming on RTEMS.lk:x Update #2833.
2017-06-07network: Update <arpa/inet.h>Sebastian Huber5-102/+168
Update #2833.
2016-07-01net: Fix byte order issue for getnameinfo()Sebastian Huber1-4/+2
2016-06-28libnetworking: Add minimal getnameinfo()Christian Mauderer1-0/+61
This implementation just falls back to giving a string representation of the IP. It supports IPv4 only. Add test for getnameinfo().
2016-06-28libnetworking: Import current <netdb.h>Christian Mauderer5-18/+54
Import the <netdb.h> from current FreeBSD. This allows to build some current software (e.g. libressl). Add __h_errno(). Update gethostent_r() API. Linux and FreeBSD use a common API now. Adapt the RTEMS one to provide the same one. Match gethostbyname_r() with prototype.
2016-06-28libnetworking: Add <rtems/rtems_netdb.h>Christian Mauderer9-0/+9
Move prototypes of non-portable _get*by*name/addr and _set/end*ent functions. This makes it easier to update <netdb.h>.
2016-04-22network: Fix warningsSebastian Huber1-0/+2
2016-01-18Chase Newlib sys/types.h / sys/select.h changesNick Withers1-0/+3
2014-10-31libnetworking: Fix the sethostname decl to match newlib.Chris Johns1-1/+1
2012-05-11Remove CVS Id Strings (manual edits after script)Joel Sherrill1-3/+0
These modifications were required by hand after running the script. In some cases, the file names did not match patterns. In others, the format of the file did not match any common patterns.
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill32-57/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-03-022012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius1-1/+4
* configure.ac: Check for rcmd in unistd.h. * libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h. Change rcmd's decl to match with Linux/FreeBSD's decl.
2012-02-14Avoid buffer overflow and misaligned memory accessSebastian Huber1-14/+24
2011-12-072011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
PR 1983/networking * libnetworking/libc/gethostbyht.c (gethostent_r): Abort if (!hostf).
2011-12-072011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libnetworking/libc/ns_parse.c (ns_parserr): Comment out if ( section < 0 ) (type is unsigned).
2011-12-072011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+2
* libnetworking/libc/gethostbydns.c: Comment out __dns_getanswer (Unused).
2011-10-202011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+1
* libnetworking/libc/res_mkupdate.c (res_mkupdate): Remove unused var "sp1".
2011-10-022011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+2
* libnetworking/libc/res_comp.c: Eliminate unused var "ppch".
2011-03-24Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).Ralf Corsepius5-5/+5
2010-09-012010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius3-393/+0
* libnetworking/libc/addr2ascii.c, libnetworking/libc/ascii2addr.c, libnetworking/libc/addr2ascii.3: Remove. * libnetworking/Makefile.am: Reflect changes above.
2010-05-292010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libnetworking/libc/gethostnamadr.c: Cast addr to uintptr_t instead of size_t.
2010-05-272010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libnetworking/libc/gethostnamadr.c: Try to make crazy address arithmetic more portable.
2010-04-292010-04-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for better 16bit target compliance.
2010-04-142010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long for 16bit target compliance.
2010-03-28Add HAVE_STRINGS_H for better POSIX compliance.Ralf Corsepius1-0/+3
2010-03-28Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius3-0/+12
2010-03-27Add HAVE_STRINGS_H for better POSIX compliance.Ralf Corsepius10-0/+30
2010-03-122010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill9-50/+50
* ftpd/ftpd.c, httpd/asp.c, httpd/ejparse.c, httpd/emfdb.c, httpd/misc.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_misc.c, libfs/src/nfsclient/src/nfs.c, libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c, libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c, libmisc/shell/shell.c, libmisc/shell/shell_makeargs.c, libmisc/uuid/parse.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/inet_network.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_init.c, libnetworking/libc/res_query.c, libnetworking/rtems/rtems_mii_ioctl.c, score/src/objectgetnameasstring.c: Readdress use of ctype methods per recommendation from D.J. Delorie on the newlib mailing list. We should pass an unsigned char into these methods.
2010-03-112010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-9/+9
* ftpd/ftpd.c, httpd/uemf.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c, libblock/src/diskdevs.c, libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c, libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c, libmisc/uuid/parse.c, libnetworking/lib/ftpfs.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_network.c, libnetworking/rtems/rtems_mii_ioctl.c, score/src/objectgetnameasstring.c: Fix warnings for ctype methods.
2009-05-082009-05-08 Chris Johns <chrisj@rtems.org>Chris Johns1-13/+13
* cpukit/libblock/src/bdpart.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_rm.c, libnetworking/libc/gethostnamadr.c, score/include/rtems/score/bitfield.h, score/inline/rtems/score/priority.inl: Remove warnings.
2008-12-22Add missing initializers.Ralf Corsepius1-17/+17
2008-09-01Stop using old-style function definitions.Ralf Corsepius23-139/+131
2008-09-01Remove BSD "Add clause" (From FreeBSD).Ralf Corsepius1-4/+0
2008-08-27Stop using old-style function-definitions.Ralf Corsepius7-20/+24
2008-08-192008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+2
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/res_debug.c: Fix warnings.
2008-08-182008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-1/+2
* libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c, libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_malloc_mbuf.c, libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h: Fix some warnings.
2008-08-02Add missing prototypes.Ralf Corsepius10-103/+110
2008-08-01Add missing prototypes.Ralf Corsepius1-8/+9
2008-07-022008-07-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-0/+49
* libnetworking/Makefile.am, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getservbyname.c, libnetworking/libc/getservbyport.c: Add initial versions of getservbyport_r(), gethostbyaddr_r(), and getservbyport_r(). At this point they are just simple weappers for the version without the _r in the name.
2007-10-15Adjust to POSIX. Minor updates from FreeBSD.Ralf Corsepius2-7/+4
2007-10-04New (from FreeBSD)Ralf Corsepius3-0/+648
2007-09-242007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-4/+9
PR 1262/filesystem * libcsupport/Makefile.am, libnetworking/libc/herror.c, libnetworking/libc/res_send.c, libnetworking/sys/uio.h, telnetd/Makefile.am, telnetd/README, telnetd/preinstall.am, telnetd/pty.c, telnetd/telnetd.c: Add support for readv() and writev() including documentation and test case. * libcsupport/src/readv.c, libcsupport/src/writev.c: New files.
2007-05-10Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>.Ralf Corsepius2-2/+2
2007-05-08Eliminate __P.Ralf Corsepius3-5/+5
2007-03-30Remove (Unused).Ralf Corsepius2-230/+0