Commit Graph
693 Commits
Author SHA1 Message Date
Chris Johns 7baa484300 2009-06-12 Chris Johns <chrisj@rtems.org>
* libblock/src/bdbuf.c: Update comments.
        * libblock/src/bdpart.c, libblock/src/ide_part_table.c: Get the
        device from the rdev field of the stat buf.
        * libcsupport/include/rtems/libio.h: Add a path length to evalpath
        handler. Add parent locations to rmmod and unlink handlers.
        * libcsupport/include/rtems/libio_.h: Add a path length to
        rtems_filesystem_evaluate_path. Add
        rtems_filesystem_evaluate_relative_path, rtems_filesystem_dirname,
        and rtems_filesystem_prefix_separators. Remove
        rtems_filesystem_evaluate_parent.
        * libcsupport/src/base_fs.c, libcsupport/src/chdir.c,
        libcsupport/src/chmod.c, libcsupport/src/chown.c,
        libcsupport/src/chroot.c, libcsupport/src/fchdir.c,
        libcsupport/src/link.c, libcsupport/src/mount.c,
        libcsupport/src/open.c, libcsupport/src/privateenv.c,
        libcsupport/src/readlink.c, libcsupport/src/unmount.c,
        libcsupport/src/utime.c, libcsupport/src/unmount.c,
        libcsupport/src/utime.c, libfs/src/devfs/devfs.h,
        libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devstat.c,
        libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_misc.c,
        libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c,
        libfs/src/imfs/imfs_load_tar.c, libfs/src/imfs/ioman.c,
        libfs/src/pipe/pipe.c, libmisc/fsmount/fsmount.c,
        libnetworking/lib/ftpfs.c: Add the length parameter to the eval
        call.
        * libcsupport/src/eval.c: Add rtems_filesystem_prefix_separators,
        rtems_filesystem_dirname,
        rtems_filesystem_evaluate_relative_path. Add the length parameter
        to the eval call.
        * libcsupport/src/rmdir.c: Find the parent pathloc then the node
        pathloc from that node. Remove the call to find the parent given
        the node pathloc.
        * libcsupport/src/stat.c: Add the length parameter to the eval
        call. Set the device into the rdev field.
        * libcsupport/src/unlink.c: Find the parent pathloc then the node
        pathloc from that node. Remove the call to find the parent given
        the node pathloc.
        * libfs/src/dosfs/fat.c, libfs/src/dosfs/msdos_format.c: Get the
        disk device number from the stat rdev field.
        * libfs/src/dosfs/msdos.h: Add the length parameter to the eval
        call. Add the parent pathloc to the rmnod handler.
        * libfs/src/dosfs/msdos_dir.c: Add the parent pathloc to the rmnod
        handler.
        * libfs/src/dosfs/msdos_eval.c: Add the length parameter to the
        eval and token call.
        * libfs/src/imfs/imfs_directory.c: Add the parent pathloc to the
        rmnod handler.
        * libfs/src/imfs/imfs_fchmod.c: Do not test the mode flags for
        only the allowed flags. Add the missing flags spec'ed in the POSIX
        standard.
        * libfs/src/imfs/imfs_fsunmount.c, libfs/src/imfs/imfs_rmnod.c,
        libfs/src/imfs/imfs_unlink.c, libfs/src/imfs/memfile.c: Add the
        parent node. Currently ignored in the IMFS.
        * libfs/src/imfs/imfs_stat.c: Return the device number in the rdev
        field.
        * libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_symlink.c : Add
        the length parameter to the token call.
        * libfs/src/nfsclient/src/nfs.c: Add the length parameter to the
        eval call and parent node to the rmnod and unlink command.
        * libmisc/shell/internal.h: Remove the libc mounter decl to make
        public.
        * libmisc/shell/main_mount.c: Add support for hooking external
        mount support for new file systems.
        * libmisc/shell/shell.h: Add helper functions for the mount
        command.
2009-06-12 01:53:33 +00:00
Chris Johns 199ccded5d 2009-05-08 Chris Johns <chrisj@rtems.org>
* 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.
2009-05-08 04:55:53 +00:00
Thomas Doerfler d2ec6433fa libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h: Added
timeouts.  Options are now per file system instance.
2009-05-07 14:40:55 +00:00
Joel Sherrill 430f6ffa61 2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/uuid/gen_uuid.c, libnetworking/lib/syslog.c,
	telnetd/telnetd.c: Fixed warnings.
2009-05-06 16:36:46 +00:00
Thomas Doerfler 1b5089817b Added timeout for active data connection
accept.  Return EIO for close() errors.  Changed PORT format string.
	Fixed connection termination after store errors on passive connections.
	Added magic device identifier for stat().
2009-05-05 12:51:09 +00:00
Chris Johns 07d6fd513f 2009-04-29 Chris Johns <chrisj@rtems.org>
* libcsupport/include/rtems/libio.h: Add rtems_off64_t for
        internal use. Update the internal off_t to the 64bit offset.

        * libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c,
        libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_fifo.c,
        libfs/src/imfs/memfile.c, libfs/src/imfs/imfs_directory.c,
        libfs/src/imfs/imfs.h, libfs/src/imfs/deviceio.c: Change off_t to
        rtems_off64_t.

        * libmisc/shell/main_msdosfmt.c: Add an info level so the format
        code can tell the user what is happening. Add more options to
        control the format configuration.

        * libfs/src/dosfs/msdos_format.c: Add a print function to display
        the format progress and print statements. Select a better default
        cluster size depending on the size of the disk. This lowers the
        size of the FAT on large disks. Read and maintain the MRB
        partition information.

        * libfs/src/dosfs/dosfs.h, libfs/src/dosfs/fat.h,
        libfs/src/dosfs/fat_file.c, libfs/src/dosfs/fat_file.h,
        libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_conv.c,
        libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_file.c,
        libfs/src/dosfs/msdos_handlers_dir.c,
        libfs/src/dosfs/msdos_handlers_file.c,
        libfs/src/dosfs/msdos_init.c, libfs/src/dosfs/msdos_initsupp.c,
        libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Add
        long file name support. Change off_t to rtems_off64_t.
2009-04-29 08:31:27 +00:00
Chris Johns 046fe12b33 2009-04-28 Chris Johns <chrisj@rtems.org>
* libnetworking/nfs/bootp_subr.c: Fixed PR1384. The route set in
        the initialise pass is not deleted so an exists error is
        returned. Ignore the error. Print the server address as an IP
        address not hex digits.

        * libnetworking/rtems/rtems_dhcp.c: Fixed
        PR1338. Close the socket, handle the returned event flags.
2009-04-28 11:12:03 +00:00
Till Straumann db93c2ffe0 2009-04-14 Till Straumann <strauman@slac.stanford.edu>
* libnetworking/rtems/rtems_mii_ioctl_kern.c: poll BMSR twice
	to clear latched link-status low.
2009-04-15 03:44:41 +00:00
Thomas Doerfler 1cb5aa1483 Fixed return codes of open handler.
Request reply after data write connection close.
2009-04-14 08:49:12 +00:00
Joel Sherrill 9eab99a82c 2009-03-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/symlink.c: Check if path evaluation handler exists.
	* libnetworking/lib/ftpfs.c: Cleanup.
2009-03-30 17:05:23 +00:00
Joel Sherrill 8a775c27fc 2009-03-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* Makefile.am, preinstall.am, libmisc/Makefile.am,
	libmisc/shell/shell.c, libmisc/shell/shell.h, telnetd/check_passwd.c,
	telnetd/telnetd.c, telnetd/telnetd.h:
	Generalized login check.
	* libmisc/shell/login.h, libmisc/shell/login_check.c,
	libmisc/shell/login_prompt.c: New files.
	* libmisc/stackchk/check.c: Changed format for blown stack message.
	* libcsupport/src/libio_sockets.c: Removed superfluous cast.
	* libnetworking/rtems/ftpfs.h: Documentation.
2009-03-27 13:45:31 +00:00
Thomas Doerfler 8916bdc71b * libmisc/shell/shell.h: Pointer to
oparations table for mount command is now const.
        * libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h: Rewrite of
        the FTP file system which implements now the trivial command state
        machines of RFC 959.  For the data transfer passive (= default) and
        active (= fallback) modes are now supported.
        * libmisc/shell/main_mount_ftp.c: Update for FTP file system changes.
2009-03-26 14:11:53 +00:00
Joel Sherrill 78fe9589ad 2009-02-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/rtems/rtems_bsdnet_internal.h: Re-add boolean when
	building BSD code. This is used by at least one of the BSD NIC
	drivers I am currently porting. I am trying out
2009-02-19 19:27:58 +00:00
Ralf Corsepius b34eb570d3 Partial update from FreeBSD. 2009-02-11 13:21:10 +00:00
Ralf Corsepius dce90eae64 Remove PSEUDO_* (Unused, not in FreeBSD). 2009-02-11 03:39:59 +00:00
Ralf Corsepius 781c7d9c49 Remove struct linker_set (Unused). 2009-02-11 03:37:21 +00:00
Ralf Corsepius 2dc5992dee Remove PSEUDO_SET (Unused). 2009-02-11 03:36:07 +00:00
Ralf Corsepius fb1ff66d64 Remove domain_set (Unused). 2009-02-11 03:07:33 +00:00
Ralf Corsepius 8eca7190ba 2009-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/kernel.h: Remove execsw_set,
	si_elem_t (Unused, not in FreeBSD).
	#include <sys/linker_set.h>.
	Add #ifdef _KERNEL guards (From FreeBSD).
2009-02-11 02:58:27 +00:00
Ralf Corsepius 5d4976285e 2009-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/kernel.h: Remove hostnamelen, domainnamelen,
	lbolt, tickdelta, timedelta (Unused, not in FreeBSD).
2009-02-11 01:48:41 +00:00
Ralf Corsepius 7931bbb220 Cosmetics from FreeBSD. 2009-02-10 09:10:51 +00:00
Ralf Corsepius b9c4861148 Remove struct vm_page, vm_page_t, boolean_t (Unused). 2009-02-10 08:51:33 +00:00
Ralf Corsepius 0d37bf16e5 Cosmetics from FreeBSD. 2009-02-10 08:25:06 +00:00
Ralf Corsepius 282e6fd079 Remove struct file (Unused). 2009-02-10 08:21:44 +00:00
Ralf Corsepius d239d9866a Remove struct file, soo_ioctl, soo_select, soo_stat, getsock (Unused). 2009-02-09 22:18:30 +00:00
Ralf Corsepius bcf8ee282f 2009-02-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Enable write and mount filesystem
	with read-write access.
2009-02-05 05:45:55 +00:00
Ralf Corsepius 02be07f8ee Eliminate pppattach, pppintr (Unused). 2009-02-04 15:47:39 +00:00
Ralf Corsepius a02cdc860d Eliminate pppintr (Unused). 2009-02-04 15:47:09 +00:00
Ralf Corsepius a0fac2eee3 Remove #define KERNEL. 2009-02-04 13:34:34 +00:00
Ralf Corsepius 0eb5b37cd2 Remove -D_COMPILING_BSD_KERNEL_ (Unused). 2009-02-04 13:32:53 +00:00
Ralf Corsepius 245a9cef7c Remove -D_COMPILING_BSD_KERNEL_. 2009-02-04 13:31:15 +00:00
Ralf Corsepius ca0a7d53ee Remove -DKERNEL. 2009-02-04 13:17:22 +00:00
Ralf Corsepius 0d454b2ed5 Remove #undef KERNEL. 2009-02-04 13:00:59 +00:00
Ralf Corsepius e8a837d6e1 #include <sys/ucred.h>. 2009-02-04 12:54:28 +00:00
Ralf Corsepius f13eedec0c Regenerate. 2009-01-05 06:05:11 +00:00
Ralf Corsepius 6291885cdc Remove installation of libnetworking/sys/uio.h. 2009-01-05 06:03:55 +00:00
Ralf Corsepius 722bdd8f8c Add __attribute__((unused)) to unused function args. 2009-01-03 08:31:25 +00:00
Ralf Corsepius 0b8706452a Use INADDR_ANY/INADDR_BROADCAST. 2009-01-03 08:28:02 +00:00
Ralf Corsepius 004092e893 Cosmetics from FreeBSD. 2009-01-03 08:05:59 +00:00
Ralf Corsepius af20d0e1a5 Add in_addr_t.
Re-base "struct in_addr" on in_addr_t (mandated by POSIX).
2009-01-03 08:01:24 +00:00
Ralf Corsepius df197f7d0a Remove struct ip_opts (unused). 2009-01-03 07:55:57 +00:00
Ralf Corsepius 87b4896c01 Add missing initializers. 2008-12-23 05:32:27 +00:00
Ralf Corsepius b7cfd627b3 Add missing initializers. 2008-12-23 05:00:57 +00:00
Ralf Corsepius 404b1fb473 Add missing initializers. 2008-12-22 17:47:57 +00:00
Ralf Corsepius ff31d9a52e Add missing initializers. 2008-12-22 12:56:06 +00:00
Ralf Corsepius 300c071cbf Add missing initializers. 2008-12-22 12:45:53 +00:00
Ralf Corsepius 9b17fb61db Add missing initializers. 2008-12-22 12:29:57 +00:00
Ralf Corsepius b3f8c9e15b Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism). 2008-12-22 07:47:28 +00:00
Ralf Corsepius fc2f722ac9 Include <sys/socket.h> to make header self contained. 2008-12-11 17:28:33 +00:00
Ralf Corsepius 1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00