Commit Graph
165 Commits
Author SHA1 Message Date
Joel Sherrill d40da79b04 2008-09-17 Miao Yan <yanmiaobest@gmail.com>
* Makefile.am, preinstall.am, libcsupport/Makefile.am,
	libcsupport/include/rtems/libcsupport.h,
	libcsupport/include/rtems/libio.h, libcsupport/src/base_fs.c,
	libcsupport/src/libio_init.c, libcsupport/src/newlibc_exit.c,
	libcsupport/src/newlibc_init.c, libcsupport/src/sync.c,
	libfs/Makefile.am, libfs/src/imfs/deviceio.c,
	sapi/include/confdefs.h: Merge GSOC project code to add simple device
	only filesystem (devfs), optionally completely drop out filesystem,
	and to clean up disabling newlib reentrancy support. This dropped 17K
	from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K
	code space.
	* libcsupport/src/__usrenv.c, libcsupport/src/newlibc_reent.c,
	libfs/src/devfs/devclose.c, libfs/src/devfs/devfs.h,
	libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devfs_init.c,
	libfs/src/devfs/devfs_mknod.c, libfs/src/devfs/devfs_node_type.c,
	libfs/src/devfs/devfs_show.c, libfs/src/devfs/devioctl.c,
	libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c,
	libfs/src/devfs/devstat.c, libfs/src/devfs/devwrite.c,
	libfs/src/imfs/deviceerrno.c: New files.
	* libcsupport/src/newlibc.c: Removed.
2008-09-17 16:12:04 +00:00
Joel Sherrill a5b6cdda58 2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libio_.h, libcsupport/src/libio_sockets.c,
	libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos.h,
	libfs/src/imfs/deviceio.c, libmisc/monitor/mon-monitor.c,
	libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c,
	libmisc/monitor/monitor.h, libmisc/stackchk/internal.h,
	rtems/inline/rtems/rtems/part.inl, score/include/rtems/system.h,
	score/include/rtems/score/bitfield.h, score/src/mpci.c,
	score/src/objectextendinformation.c, score/src/threadmp.c: Remove
	extraneous spaces.
2008-09-08 15:19:34 +00:00
Ralf Corsepius d7001e476b Convert to Unix file format. 2008-09-06 04:25:51 +00:00
Joel Sherrill cf594ad7c0 2008-09-05 Eric Norum <norume@aps.anl.gov>
* libfs/src/nfsclient/src/rpcio.c: Correct breakage introduced by Joel
	removing asserts with side-effects.
2008-09-05 13:42:31 +00:00
Ralf Corsepius 0a896eb9ce Use "bool" instead of "rtems_boolean|boolean". 2008-09-04 08:33:06 +00:00
Ralf Corsepius 88d1c65935 Change "done" to bool. 2008-09-04 08:16:49 +00:00
Ralf Corsepius 92ba0a51e6 Stop using old-style definitions. 2008-09-04 08:15:10 +00:00
Joel Sherrill 14d1db6cdb 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/rpcio.c:
	Remove some warnings. Using ASSERT/assert macros confuses gcc who is
	unsure actions take place. More importantly if you ever compiled with
	NDEBUG set wrong, intended actions would not occur. Likely I did not
	catch all of these.
2008-08-19 18:18:54 +00:00
Joel Sherrill f73fc29d66 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
	itron/src/task.c, libcsupport/src/newlibc_exit.c,
	libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c,
	posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
	posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h,
	rtems/src/tasks.c, score/include/rtems/score/stack.h,
	score/inline/rtems/score/stack.inl,
	score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix
	various nested-externs warnings.
2008-08-18 19:18:52 +00:00
Ralf Corsepius 252da9cccd Add missing prototype. 2008-08-16 04:04:42 +00:00
Ralf Corsepius 9b7fafe827 Add prototypes. 2008-08-01 17:14:19 +00:00
Ralf Corsepius 5742e5e278 Add missing prototype. 2008-08-01 05:13:02 +00:00
Chris Johns 3899a5379f 2008-07-29 Chris Johns <chrisj@rtems.org>
* libblock/Makefile.am: Removed src/show_bdbuf.c.

	* libblock/src/show_bdbuf.c: Removed.

	* libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c:
	Rewritten the bdbuf code. Remove pre-emption disable, score
	access, fixed many bugs and increased performance.

	* libblock/include/rtems/blkdev.h: Added
	RTEMS_BLKDEV_CAPABILITIES block device request. Cleaned up
	comments. Added block and user fields to the sg buffer
	request. Move to rtems_* namespace.

	* libblock/include/rtems/diskdevs.h,
	cpukit/libblock/src/diskdevs.c: Move to rtems_* namespace. Add a
	capabilities field for drivers. Change rtems_disk_lookup to
	rtems_disk_obtain to match the release call. You do not lookup and
	release a disk, you obtain and release a disk.

	* libblock/include/rtems/ide_part_table.h,
	libblock/include/rtems/ramdisk.h, libblock/src/ide_part_table.c:
	Move to rtems_* namespace.

	* libblock/include/rtems/nvdisk.h: Formatting change.

	* libblock/src/blkdev.c: Move to rtems_* namespace. Change
	rtems_disk_lookup to rtems_disk_obtain

	* libblock/src/flashdisk.c: Move to rtems_* namespace. Use the new
	support for the block number in the scatter/grather request
	struct. This allows non-continuous buffer requests for those
	drivers that can support increasing performance.

	* libblock/src/nvdisk.c: Move to rtems_* namespace. Removed
	warnings. Added better error checking. Fixed some comments.

	* libblock/src/ramdisk.c: Move to rtems_* namespace. Added some
	trace functions to help debugging upper layers. Use the new
	support for the block number in the scatter/grather request
	struct. This allows non-continuous buffer requests for those
	drivers that can support increasing performance.

	* libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Use new chains
	API. Removed temporary hack and changed
	set_errno_and_return_minus_one to
	rtems_set_errno_and_return_minus_one. Move fat_buf_access from
	header and stopped it being inlined. Updated to libblock changes.

	* libfs/src/dosfs/fat_fat_operations.c,
	libfs/src/dosfs/fat_file.c, libfs/src/dosfs/msdos_create.c,
	libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
	libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
	libfs/src/dosfs/msdos_free.c, libfs/src/dosfs/msdos_initsupp.c,
	libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Use
	new chains API. Removed temporary hack and changed
	set_errno_and_return_minus_one to
	rtems_set_errno_and_return_minus_one. Updated to libblock changes.

	* libmisc/Makefile.am: Add new ls and rm command files.

	* libmisc/shell/cmp-ls.c, libmisc/shell/extern-ls.h,
	libmisc/shell/filemode.c, libmisc/shell/print-ls.c,
	libmisc/shell/pwcache.c, libmisc/shell/utils-ls.c,
	libmisc/shell/vis.c, shell/vis.h: New.

	* libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c: Fixed the usage call bug.

	* libmisc/shell/main_blksync.c: Updated to the new block IO ioctl
	command.

	* libmisc/shell/main_ls.c, libmisc/shell/main_rm.c: Updated to BSD
	commands with more features.

	* score/src/coremutex.c: Fix the strick order mutex code.

	* libmisc/shell/shell.c: Change shell tasks mode to be timeslice
	and no ASR.

	* sapi/include/confdefs.h: Change ata_driver_task_priority to
	rtems_ata_driver_task_priority. Add the new BD buf cache
	parameters with defaults.

	* score/src/interr.c: Do not return if the CPU halt call returns.
2008-07-29 02:21:15 +00:00
Thomas Doerfler 7c007cfe32 Added S_IRWXU, S_IRWXG and S_IRWXO to file mode. 2008-07-10 06:03:51 +00:00
Chris Johns 72d2ec4da4 2008-07-03 Chris Johns <chrisj@rtems.org>
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI
	interface that is supported.

	* cpukit/libcsupport/Makefile.am,
	cpukit/libcsupport/preinstall.am: Remove chain.h header
	references.

	* cpukit/sapi/include/rtems/chain.h,
	cpukit/sapi/inline/rtems/chain.inl: New. A supported chains
	interface.

	* cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to
	include the new chains interface.

	* cpukit/libfs/src/imfs/imfs.h,
	cpukit/libfs/src/imfs/imfs_creat.c,
	cpukit/libfs/src/imfs/imfs_debug.c,
	cpukit/libfs/src/imfs/imfs_directory.c,
	cpukit/libfs/src/imfs/imfs_fsunmount.c,
	cpukit/libfs/src/imfs/imfs_getchild.c,
	cpukit/libfs/src/imfs/imfs_load_tar.c,
	cpukit/libfs/src/imfs/imfs_rmnod.c,
	cpukit/libfs/src/imfs/memfile.c,
	cpukit/libfs/src/nfsclient/src/nfs.c,
	cpukit/libcsupport/include/rtems/libio.h,
	cpukit/libcsupport/src/malloc_deferred.c,
	cpukit/libcsupport/src/mount.c,
	cpukit/libcsupport/src/privateenv.c,
	cpukit/libcsupport/src/unmount.c: Change to the new chains
	interface.

	* cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
2008-07-03 01:37:38 +00:00
Till Straumann 9cf3432cc4 2008-05-30 Till Straumann <strauman@slac.stanford.edu>
* libfs/src/nfsclient/src/nfs.c:BUGFIX: must not attempt to
	release node if rtems_filesystem_evaluate_path() fails
	in nfs_eval_link() since pathloc contains no valid node.
2008-05-30 23:21:06 +00:00
Thomas Doerfler bf95ccb506 Added const qualifier to various pointers and data tables to
reduce size of data area.
	IMFS: Fixed creation of symbolic links to avoid a compiler warning.
	DOSFS: Use LibBlock instead of read() to read the boot record.
2008-05-27 10:34:15 +00:00
Eric Norum eae4a193d3 Handle cluster servers better. 2008-04-25 17:00:48 +00:00
Eric Norum 88f8f2fd6c Clean up error handling. 2008-04-24 21:50:57 +00:00
Chris Johns ea90df234a 2008-04-03 Chris Johns <chrisj@rtems.org>
* libfs/src/nfsclient/src/librtemsNfs.h,
	libfs/src/nfsclient/src/nfs.c: Remove CEXP references. CEXP is
	external to RTEMS and even if in the cpukit it should not cross
	reference in this way.
	* libmisc/shell/shell_getchar.c: New. Taken from the monitor.
	* libmisc/Makefile.am: Add shell_getchar.c and clean up a little
	in the shell area.
	* libmisc/shell/shell.c, libmisc/shell/shell.h: Add line editting
	support.
2008-04-03 03:13:24 +00:00
Joel Sherrill 58d38a0c76 2008-02-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, libfs/Makefile.am: Add nfsclient to cpukit. Although
	the use of RPC/XDR could be an issue, the code does build multilib
	across all targets. There are a few remaining warnings to deal with.
	* libfs/src/nfsclient/.cvsignore, libfs/src/nfsclient/ChangeLog.slac,
	libfs/src/nfsclient/LICENSE, libfs/src/nfsclient/Makefile.am,
	libfs/src/nfsclient/README, libfs/src/nfsclient/preinstall.am,
	libfs/src/nfsclient/rfc1094.txt,
	libfs/src/nfsclient/proto/mount_prot.h,
	libfs/src/nfsclient/proto/mount_prot.x,
	libfs/src/nfsclient/proto/mount_prot_xdr.c,
	libfs/src/nfsclient/proto/nfs_prot.h,
	libfs/src/nfsclient/proto/nfs_prot.x,
	libfs/src/nfsclient/proto/nfs_prot_xdr.c,
	libfs/src/nfsclient/src/cexphelp.c,
	libfs/src/nfsclient/src/dirutils.c,
	libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/nfsclient/src/nfs.c,
	libfs/src/nfsclient/src/nfs.modini.c,
	libfs/src/nfsclient/src/nfsTest.c, libfs/src/nfsclient/src/rpcio.c,
	libfs/src/nfsclient/src/rpcio.h,
	libfs/src/nfsclient/src/rpcio.modini.c,
	libfs/src/nfsclient/src/sock_mbuf.c,
	libfs/src/nfsclient/src/xdr_mbuf.c: New files.
2008-02-26 19:23:53 +00:00
Joel Sherrill 029c1fd8e3 2007-04-16 Joel Sherrill <joel@OARcorp.com>
PR 1240/filesystem
	* libfs/src/imfs/imfs_rmnod.c: Fix link when removing a symlink. Memory
	for filename was not being freed.
2007-04-16 19:04:47 +00:00
Joel Sherrill 6c7928bba3 2007-03-08 Joel Sherrill <joel@OARcorp.com>
* libfs/src/imfs/imfs.h: Fix comment.
2007-03-08 21:44:02 +00:00
Ralf Corsepius 74393f7178 2006-12-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs.h: Remove
	increment_and_check_linkcounts (unused),
	decrement_linkcounts (unused, broken).
2006-12-12 03:37:40 +00:00
Ralf Corsepius 7192476f7a Use size_t instead of uint32_t for read/write count-args. 2006-12-08 07:18:27 +00:00
Joel Sherrill e197621ce8 2006-08-29 Joel Sherrill <joel@OARcorp.com>
* libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos.h,
	libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_eval.c,
	libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_free.c,
	libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_init.c,
	libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c,
	libfs/src/imfs/imfs_debug.c: Remove warnings.
2006-08-29 19:38:08 +00:00
Thomas Doerfler c9b005a9d2 applied patches for PR1117/1118/1119/1120 2006-07-09 10:05:27 +00:00
Joel Sherrill 580f024177 2006-01-08 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/unixlibc.c, libfs/src/imfs/ioman.c: Change
	rtems_io_register_name to take a const char *.
2006-01-08 17:58:43 +00:00
Ralf Corsepius 48d2477815 2005-10-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos_misc.c: Revert to vers. 1.9.
2005-10-17 09:30:38 +00:00
Joel Sherrill 9a72334444 2005-10-06 Joel Sherrill <joel@OARcorp.com>
PR 828/filesystems
	* libfs/src/dosfs/msdos_misc.c: Problem retracted. Revert patch.
2005-10-06 12:13:50 +00:00
Joel Sherrill b3b78ecffe 2005-08-17 Nickolay Semyonov <snob@oktetlabs.ru>
PR 744/filesystem
	* libcsupport/src/unlink.c, libfs/src/dosfs/msdos_eval.c: DOSFS did not
	support permissions on directories so the check performed by unlink
	would always fail. The unlink code was modified to support a not
	supported status being returned.
2005-08-17 19:11:46 +00:00
Ralf Corsepius a72c454eed Introduce msdos_status_t. 2005-08-05 10:38:05 +00:00
Joel Sherrill b17ff4913c 2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
	libfs/src/dosfs/fat_file.h, libfs/src/dosfs/msdos.h,
	libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c,
	libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c:
	Removed warnings.
2005-05-06 14:57:43 +00:00
Joel Sherrill eb12bf41fb 2005-05-03 Joel Sherrill <joel@OARcorp.com>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Use uint8_t
	instead of char for raw data buffer.
2005-05-03 22:17:27 +00:00
Jennifer Averett 3eb7118310 2005-05-02 Jennifer Averett <jennifer.averett@oarcorp.com>
* libfs/src/dosfs/msdos_format.c, librpc/src/xdr/xdr.c: Added
	initialization to remove warnings.
2005-05-02 16:32:12 +00:00
Eric Norum 624867bc09 Add copy-on-write semantics to rtems_tarfs_load(). 2005-02-08 17:12:54 +00:00
Ralf Corsepius 1996aee7f0 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c,
	libmisc/untar/untar.c, libmisc/untar/untar.h:
	Various generalizations and fixes.
2005-02-07 13:25:14 +00:00
Ralf Corsepius a6f5d896f3 New header guard. 2005-01-28 08:44:51 +00:00
Ralf Corsepius adc829ed5f 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_misc.c:
	Eliminate warnings.
2005-01-19 05:10:38 +00:00
Ralf Corsepius 0247c6ce22 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/fat.c (fat_init_volume_info): Reflect
	fs_info->sec_buf being a uint8_t.
2005-01-19 04:54:12 +00:00
Ralf Corsepius fb8f0bcc49 Cosmetics. 2005-01-19 03:44:36 +00:00
Ralf Corsepius e7b1b05def 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos_misc.c
	(msdos_get_dotdot_dir_info_cluster_num_and_offset):
        Remove cur_node (Unused).
2005-01-19 02:36:57 +00:00
Ralf Corsepius c3bb06192e Fix typos in comment. 2005-01-19 02:31:15 +00:00
Ralf Corsepius a3f1b54b6d 2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
	* libfs/src/dosfs/msdos.h: Remove RC_OK.
	* libfs/src/dosfs/msdos_format.c: Remove unnecessary casts.
2004-11-20 03:16:12 +00:00
Ralf Corsepius c36f885aa7 2004-11-20 Ralf Corsepius <ralf.corsepiu@rtems.org>
PR 720/filesystem:
	* libfs/src/dosfs/dosfs.h, libfs/src/dosfs/fat.c,
	libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos_format.c:
	Adaptations to msdos_format.
	(From Thomas Doerfler <Thomas.Doerfler@imd-systems.de>).

	* libfs/src/dosfs/dosfs.h, libfs/src/dosfs/fat.c,
	libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos_format.c:
	Adaptations to RTEMS-4.7.
2004-11-20 03:11:41 +00:00
Ralf Corsepius b34665f8e8 2004-11-20 Ralf Corsepius <ralf.corsepiu@rtems.org>
PR 720/filesystem:
	* libfs/src/dosfs/msdos_format.c: New
	(From Thomas Doerfler <Thomas.Doerfler@imd-systems.de>).
	* libfs/Makefile.am: Reflect changes above:
2004-11-20 03:02:54 +00:00
Ralf Corsepius 8c14432d10 2004-10-26 Ralf Corsepius <ralf_corsepius@rtems.org>
* libfs/src/dosfs/msdos_conv.c:
	Replace BSD fixed-size types with POSIX fixed-size types.
	Replace SECONDSTO1980 with DAYSTO1980.
	Make macros 16bit clean.
2004-10-26 09:48:53 +00:00
Ralf Corsepius 3b2c47300a 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org>
* libfs/src/imfs/imfs_debug.c, libfs/src/imfs/memfile.c:
	Use fprintf(stdout,...) instead of printf.
2004-04-17 08:39:22 +00:00
Ralf Corsepius a5305f6b33 Remove stray white spaces. 2004-04-17 08:34:41 +00:00
Ralf Corsepius 3239698d1f Remove stray white spaces. 2004-04-15 13:26:21 +00:00