summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+4
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-4/+0
|
* networking: socket to/from file descriptorSebastian Huber2012-04-032-5/+58
| | | | | | | | | | o Move rtems_bsdnet_fdToSocket() and rtems_bsdnet_makeFdForSocket() to "cpukit/libnetworking/rtems/rtems_syscall.c". o The rtems_bsdnet_makeFdForSocket() function is now static. o Check in rtems_bsdnet_fdToSocket() function that the file descriptor uses the socket handlers, otherwise an error status will be returned and errno set to ENOTSOCK. o New test libtests/syscall01.
* Filesystem: Rename definesSebastian Huber2012-03-131-2/+2
| | | | | | | | | | | | | | | o Removed RTEMS_LIBIO_PERMS_SEARCH. o Renamed RTEMS_LIBIO_PERMS_READ in RTEMS_FS_PERMS_READ. o Renamed RTEMS_LIBIO_PERMS_WRITE in RTEMS_FS_PERMS_WRITE. o Renamed RTEMS_LIBIO_PERMS_EXEC in RTEMS_FS_PERMS_EXEC. o Renamed RTEMS_LIBIO_FOLLOW_HARD_LINK in RTEMS_FS_FOLLOW_HARD_LINK. o Renamed RTEMS_LIBIO_FOLLOW_SYM_LINK in RTEMS_FS_FOLLOW_SYM_LINK. o Renamed RTEMS_LIBIO_MAKE in RTEMS_FS_MAKE. o Renamed RTEMS_LIBIO_EXCLUSIVE in RTEMS_FS_EXCLUSIVE. o Renamed RTEMS_LIBIO_ACCEPT_RESIDUAL_DELIMITERS in RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS. o Renamed RTEMS_LIBIO_REJECT_TERMINAL_DOT in RTEMS_FS_REJECT_TERMINAL_DOT.
* Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber2012-03-133-8/+8
| | | | | | | New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-134-259/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-021-182/+188
| | | | | * libnetworking/resolv.h: Partial sync with FreeBSD. Add decls for res_send_setqhook, res_send_setrhook.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-021-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.
* Fixed incorrect error pathSebastian Huber2012-02-151-2/+0
| | | | The inet_aton() function returns non-zero in case of success.
* Avoid buffer overflow and misaligned memory accessSebastian Huber2012-02-141-14/+24
|
* Removed fpathconf file system node handler.Sebastian Huber2012-02-023-4/+0
| | | | There existed no calling function for this handler.
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-082-3/+3
| | | | | | | * libnetworking/rtems/rtems_dhcp.c: Make format_ip, dhcp_init static. * libnetworking/nfs/bootp_subr.c: Make bootp_strdup_realloc static.
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-1/+1
| | | | | | PR 1983/networking * libnetworking/libc/gethostbyht.c (gethostent_r): Abort if (!hostf).
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-1/+1
| | | | | * libnetworking/libc/ns_parse.c (ns_parserr): Comment out if ( section < 0 ) (type is unsigned).
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-0/+2
| | | | | * libnetworking/libc/gethostbydns.c: Comment out __dns_getanswer (Unused).
* 2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-011-4/+4
| | | | | * libnetworking/rtems/mkrootfs.c: Use mode_t for modes, Use size_t for sizes.
* 2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-11-301-2/+1
| | | | | * libnetworking/rtems/rtems_dhcp.c (dhcp_init): Remove unused var "len".
* 2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-11-062-2/+2
| | | | | | | | PR1945/cpukit * libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c: Replace rtems_off64_t with off_t.
* 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-201-4/+1
| | | | | * libnetworking/net/if_ethersubr.c (ether_output): Remove unused vars "hlen", "off".
* 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-201-2/+1
| | | | | * libnetworking/libc/res_mkupdate.c (res_mkupdate): Remove unused var "sp1".
* 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-181-2/+0
| | | | | * libnetworking/rtems/rtems_dhcp.c: Remove unused var "disconnected".
* 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-021-2/+2
| | | | * libnetworking/libc/res_comp.c: Eliminate unused var "ppch".
* 2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-07-211-1/+6
| | | | * libnetworking/rtems/rtems_showipstat.c: Print IP input queue drops.
* 2011-07-18 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-07-181-103/+100
| | | | * libnetworking/lib/ftpfs.c: Fixed reply parsing.
* 2011-07-14 Gene Smith <gene.smith@siemens.com>Joel Sherrill2011-07-141-0/+9
| | | | | | | PR 1381/networking * libnetworking/netinet/ip_output.c: If a null or unreachable gateway is specified either statically in networkconfig.h or from dhcp/bootp, sendto() fails on multicast send with errno 118 Host
* 2011-07-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-07-072-3/+6
| | | | | * libnetworking/rtems/tftp.h, libnetworking/lib/tftpDriver.c: Fixed prototype.
* 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-241-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
* 2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-05-181-5/+9
| | | | | * libnetworking/sys/signalvar.h: Cosmetics from FreeBSD. Comment out psignal().
* 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-05-171-27/+84
| | | | | * libnetworking/Makefile.am: Reformat. * librpc/Makefile.am: Reformat.
* 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-05-161-2/+2
| | | | | * libnetworking/rtems/rtems_bsdnet_internal.h: Move #include <rtems.h> out of C++-guard.
* Make self-contained.Ralf Corsepius2011-05-131-0/+2
|
* Make self-contained.Ralf Corsepius2011-05-124-0/+12
|
* Make self-contained.Ralf Corsepius2011-05-1121-4/+59
|
* Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).Ralf Corsepius2011-03-2427-26/+30
|
* 2011-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-03-241-0/+16
| | | | | * libnetworking/sys/linker_set.h: Add local versions of __used and __CONCAT macros.
* Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h.Ralf Corsepius2011-03-0229-29/+29
|
* Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h.Ralf Corsepius2011-03-029-9/+9
|
* Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h.Ralf Corsepius2011-03-023-3/+3
|
* 2011-02-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-02-252-3/+7
| | | | | | | * libnetworking/rtems/rtems_mii_ioctl_kern.c: Do not use IFM_ACTIVE and IFM_AVALID in the media word. * libnetworking/net/if_media.h: Hack to get libbsdport interface drivers working.
* 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-243-19/+31
| | | | | | * libnetworking/netinet/ip_icmp.c, libnetworking/netinet/ip_icmp.h: Misc. changes from FreeBSD. * libnetworking/netinet/tcp_var.h: Include <netinet/tcp_timer.h>.
* 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-246-58/+43
| | | | | | | | * libnetworking/netinet/in_systm.h, libnetworking/netinet/tcp_debug.c, libnetworking/netinet/tcp_debug.h, libnetworking/netinet/tcp_seq.h, libnetworking/netinet/tcp_var.h, libnetworking/netinet/tcpip.h: Misc changes from FreeBSD.
* 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-231-0/+14
| | | | | * libnetworking/net/if_pppvar.h: Add "extern C++" guards. Add header guard.
* 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-231-0/+4
| | | | * libnetworking/sys/signalvar.h: Comment out unused code.
* 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-231-0/+1
| | | | * libnetworking/machine/in_cksum.h: Add missing includes.
* 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-231-0/+2
| | | | * libnetworking/vm/vm_kern.h: Comment out unused vars.
* 2011-02-21 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-02-211-30/+27
| | | | * libnetworking/lib/ftpfs.c: Workaround for some firewalls.
* 2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-12-083-74/+124
| | | | | | | * libnetworking/loop.h, libnetworking/net/if_loop.c, libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c: Initialize loop back interface during normal initialization via rtems_bsdnet_initialize_network().
* 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-10-191-4/+1
| | | | | * libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address in case hostname was not specified.
* 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-10-191-0/+7
| | | | | * libnetworking/lib/ftpfs.c: Fixed a special case with no username and password.