Commit Graph

6500 Commits

Author SHA1 Message Date
Joel Sherrill
51276d205e 2010-08-03 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1649/cpukit
	* libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get
	and set gid and egid routines are present and in their own files.
	* libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
2010-08-03 15:46:52 +00:00
Ralf Corsepius
2f797d07b2 2010-08-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Apply RTEMS_CHECK_FUNC for set/get*id family of
	functions. Extend set/get*id family of checks.
2010-08-03 15:44:05 +00:00
Ralf Corsepius
26c6706cfc 2010-08-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-func.m4: New.
2010-08-03 15:42:44 +00:00
Ralf Corsepius
8682da3937 2010-08-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add checks for [get|set][e][uid,gid] family of
	functions.
2010-08-03 05:29:16 +00:00
Joel Sherrill
8851c0a5ef 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_eval.c,
	libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_readlink.c,
	libfs/src/pipe/fifo.c: Clean up for coverage improvements and
	formatting.
2010-08-02 18:27:23 +00:00
Joel Sherrill
5114d3ffd2 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: If this port does not allocate the
	interrupt stack, then it must always be a thread stack. Do not
	include code to print the interrupt stack information.
2010-08-02 18:26:30 +00:00
Joel Sherrill
2d08be11dd 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/base_fs.c, libcsupport/src/rtems_mkdir.c: Formatting.
2010-08-02 18:24:15 +00:00
Joel Sherrill
4c782c26ac 2010-07-30 Bharath Suri <bharath.s.jois@gmail.com>
PR 1645/cpukit
	* libcsupport/src/getuid.c: Moved setuid() routine to its own
	file.
	* libcsupport/src/setuid.c: New file with setuid() routine.
	* libcsupport/src/seteuid.c: New file with seteuid() routine.
2010-08-02 18:10:10 +00:00
Joel Sherrill
0aea082fe0 2010-07-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/fstat.c, libcsupport/src/rmdir.c,
	libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_creat.c,
	libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_getchild.c,
	libfs/src/imfs/memfile.c: Add IMFS_assert. Clean up and remove all
	checks which are redundant with system call layer. Formatting.
2010-07-30 22:36:32 +00:00
Joel Sherrill
4b1d26142c 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* posix/src/psignalunblockthread.c, posix/src/pthreadkill.c,
	rtems/src/signalsend.c, score/include/rtems/score/percpu.h,
	score/inline/rtems/score/thread.inl, score/src/thread.c,
	score/src/threadchangepriority.c, score/src/threadclearstate.c,
	score/src/threaddispatch.c, score/src/threadready.c,
	score/src/threadresume.c, score/src/threadsetstate.c,
	score/src/threadstartmultitasking.c, score/src/threadsuspend.c,
	score/src/threadyieldprocessor.c: Rename _Context_Switch_necessary to
	_Thread_Dispatch_necessary to more properly reflect the intent.
2010-07-30 18:53:06 +00:00
Joel Sherrill
2f49bcfb01 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* cpu_asm.c: Rename _Context_Switch_necessary to
	_Thread_Dispatch_necessary to more properly reflect the intent.
2010-07-30 18:52:16 +00:00
Joel Sherrill
f2edf67da7 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* irq.c: Rename _Context_Switch_necessary to _Thread_Dispatch_necessary
	to more properly reflect the intent.
2010-07-30 18:52:14 +00:00
Joel Sherrill
bfc76f9e1b 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* cpu_asm.S: Rename _Context_Switch_necessary to
	_Thread_Dispatch_necessary to more properly reflect the intent.
2010-07-30 18:52:12 +00:00
Joel Sherrill
a46e6b6d91 2010-07-30 Vinu Rajashekhar <vinutheraj@gmail.com>
* sapi/include/confdefs.h: Add configuration macros for Go
	requirements.
2010-07-30 18:44:46 +00:00
Joel Sherrill
3993ecfafa 2010-07-29 Bharath Suri <bharath.s.jois@gmail.com>
PR 1620/cpukit
	* libcsupport/src/privateenv.c: Significant clean up and rework to
	improve testability.
2010-07-29 22:27:12 +00:00
Joel Sherrill
a55e305ed3 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
	* sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
	score/include/rtems/score/bitfield.h,
	score/include/rtems/score/priority.h,
	score/include/rtems/score/thread.h,
	score/inline/rtems/score/priority.inl,
	score/inline/rtems/score/thread.inl,
	score/src/threadchangepriority.c, score/src/threadclearstate.c,
	score/src/threadready.c, score/src/threadresume.c,
	score/src/threadsetpriority.c, score/src/threadsetstate.c,
	score/src/threadsettransient.c, score/src/threadsuspend.c:
	Refactoring of priority handling, to isolate the bitmap
	implementation of priorities in the supercore so that priority
	management is a little more modular. This change is in anticipation
	of scheduler implementations that can select how they manage tracking
	priority levels / finding the highest priority ready task. Note that
	most of the changes here are simple renaming, to clarify the use of
	the bitmap-based priority management.
	* score/include/rtems/score/prioritybitmap.h,
	score/inline/rtems/score/prioritybitmap.inl: New files.
2010-07-29 17:52:10 +00:00
Joel Sherrill
a44edd152f 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
	* rtems/score/types.h: Refactoring of priority handling, to isolate the
	bitmap implementation of priorities in the supercore so that priority
	management is a little more modular. This change is in anticipation
	of scheduler implementations that can select how they manage tracking
	priority levels / finding the highest priority ready task. Note that
	most of the changes here are simple renaming, to clarify the use of
	the bitmap-based priority management.
2010-07-29 17:52:00 +00:00
Joel Sherrill
4ef13360d6 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
	* rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
	handling, to isolate the bitmap implementation of priorities in the
	supercore so that priority management is a little more modular. This
	change is in anticipation of scheduler implementations that can
	select how they manage tracking priority levels / finding the highest
	priority ready task. Note that most of the changes here are simple
	renaming, to clarify the use of the bitmap-based priority management.
2010-07-29 17:51:56 +00:00
Joel Sherrill
53eafcb0d2 2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignalunblockthread.c: Clean up and simplify.
2010-07-29 17:49:30 +00:00
Joel Sherrill
c838e2f437 2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
* posix/src/condinit.c, posix/src/condwaitsupp.c,
	posix/src/psignalunblockthread.c: Clean up some signal interruption
	code.
2010-07-28 20:39:48 +00:00
Joel Sherrill
5b507811d8 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/keycreate.c: Fix typo.
2010-07-27 21:22:52 +00:00
Joel Sherrill
4f3d72fb53 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.c: Now supports
	both pax and GNU tar created tar files.
2010-07-27 18:11:42 +00:00
Joel Sherrill
234a36c996 2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
2010-07-27 17:37:54 +00:00
Joel Sherrill
c9bc2cf62f 2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
PR 1629/cpukit
	* posix/src/sigsuspend.c: sigsuspend() was not completely following the
	POSIX specification.
2010-07-27 16:38:15 +00:00
Joel Sherrill
1102485cbb 2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
PR 1630/cpukit
	* posix/src/psignalchecksignal.c, posix/src/sigtimedwait.c:
	sigtimedwait() was not completely following the POSIX specification.
2010-07-27 16:34:26 +00:00
Sebastian Huber
4ac56fbbd1 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Assembler compatibility fixes.
2010-07-27 11:03:38 +00:00
Sebastian Huber
6ff1925393 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Assembler compatibility fixes.
2010-07-27 10:57:31 +00:00
Sebastian Huber
8bd26f1695 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/asm.h: Fixed header guard.
	* rtems/score/cpu.h: Assembler compatibility fixes.
2010-07-27 10:51:12 +00:00
Joel Sherrill
56e135a1a2 2010-07-26 Joel Sherrill <joel.sherrilL@OARcorp.com>
* score/src/threadget.c: Conditionalize a check that can only occur
	when POSIX is disabled.
2010-07-27 02:17:31 +00:00
Joel Sherrill
37d6e55b98 2010-07-26 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/src/taskmode.c, score/inline/rtems/score/thread.inl: Rework a
	bit to eliminate unreachable path for task blocked while calling
	rtems_task_mode() on itself.
2010-07-27 01:48:46 +00:00
Joel Sherrill
9bd0258dae 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Spelling.
2010-07-26 22:20:43 +00:00
Joel Sherrill
77c330ce3d 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c,
	posix/Makefile.am, posix/include/rtems/posix/key.h,
	posix/src/keycreate.c, posix/src/keydelete.c,
	score/src/iterateoverthreads.c: Since removing ITRON, the loop over
	all APIs for tasks has a path that cannot be reached. Either modify
	the code or mark tests for NULL as RTEMS_DEBUG.
	* posix/src/keyfreememory.c: New file.
2010-07-26 22:03:18 +00:00
Joel Sherrill
bc3fe3c7f0 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs_load_tar.c: Formatting.
2010-07-26 21:29:24 +00:00
Joel Sherrill
80c1577382 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Do not cover up user configuation mistakes
	on filesystems -- cite them as errors.
2010-07-26 21:28:06 +00:00
Joel Sherrill
04323c98d2 2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonperiod.c: Remove tabs.
2010-07-26 20:27:04 +00:00
Joel Sherrill
7eef54e1ff 2010-07-26 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/src/ratemonperiod.c: Use if not switch since all cases of enum
	are not valid and switch was generating dead code.
2010-07-26 13:49:01 +00:00
Joel Sherrill
39d3f8de54 2010-07-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/init.h: Mark rtems_shutdown_executive as a
	noreturn method.
2010-07-25 15:13:35 +00:00
Joel Sherrill
cb87694407 2010-07-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/gxx_wrappers.c: Free contents of key not key itself.
	Kye pointer will never be malloc'ed.
2010-07-25 14:52:27 +00:00
Joel Sherrill
a5bbb06141 2010-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/src/termios_baud2num.c,
	libcsupport/src/termios_num2baud.c: Use RTEMS associations to
	simplify code and make easier for coverage.
	* libcsupport/src/termios_baudtable.c: New file.
2010-07-24 16:12:49 +00:00
Joel Sherrill
3364576344 2010-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1627/testing
	* libfs/src/devfs/devstat.c:
2010-07-23 00:11:32 +00:00
Sebastian Huber
b8e7e2f623 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/link.c: Do not overwrite errno with return status.
2010-07-16 09:24:51 +00:00
Sebastian Huber
89b85e5100 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
	* rtems/score/types.h: Use <rtems/score/basedefs.h> header file.
2010-07-16 08:46:29 +00:00
Sebastian Huber
af16a7d29a 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/new-exceptions/cpu.h: Removed file.
	* Makefile.am, preinstall.am: Reflect change above.
	* rtems/score/cpu.h: Include <rtems/score/types.h> first.  Added
	contents of <rtems/new-exceptions/cpu.h>.
	* rtems/score/types.h: Use <rtems/score/basedefs.h> header file.
2010-07-16 08:45:02 +00:00
Sebastian Huber
9f9a82bdce 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/basedefs.h: New file.
	* score/Makefile.am, score/preinstall.am: Reflect change above.
	* score/include/rtems/score/percpu.h: Include <rtems/score/cpu.h>.
	* score/include/rtems/system.h: Moved definition of SCORE_EXTERN,
	SAPI_EXTERN, RTEMS_EXTERN, POSIX_EXTERN, RTEMS_INLINE_ROUTINE,
	RTEMS_COMPILER_MEMORY_BARRIER, RTEMS_COMPILER_NO_RETURN_ATTRIBUTE,
	RTEMS_COMPILER_DEPRECATED_ATTRIBUTE, TRUE, and FALSE to
	<rtems/score/basedefs.h>.
	Removed include of <rtems/score/cpu.h>, <stdint.h> and <stddef.h>.
2010-07-16 08:31:34 +00:00
Sebastian Huber
17ecd5a06f 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmd/md4.c: Removed definition of TRUE and FALSE.
2010-07-16 07:45:18 +00:00
Joel Sherrill
e77a193482 2010-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/privateenv.c: Fix bug.
2010-07-15 21:31:10 +00:00
Joel Sherrill
bbe6a5fe81 2010-07-15 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
PR 1607/cpukit
	* score/src/coremutexsurrender.c: Clean up and split out helper
	routines.
2010-07-15 15:44:40 +00:00
Sebastian Huber
f4dea06bab 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/imfs/imfs.h: Changed IMFS_jnode_types_t to an enum.
	Removed IMFS_NUMBER_OF_TYPES define.
	* libfs/src/imfs/imfs_debug.c: Removed IMFS_types.
2010-07-15 08:59:46 +00:00
Sebastian Huber
de39b5127d 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers.
	* libcsupport/src/fs_null_handlers.c: Removed file.
	* libcsupport/Makefile.am: Reflect change above.
	* libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c,
	libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use
	rtems_filesystem_handlers_default instead of
	rtems_filesystem_null_handlers.
	* libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c:
	Initialize handler and operations table with proper defaults.
2010-07-15 08:46:06 +00:00
Sebastian Huber
fd2b1634bb 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio.h: Removed file_info and handlers
	fields in rtems_libio_t.
	* libcsupport/src/close.c, libcsupport/src/fcntl.c,
	libcsupport/src/fdatasync.c, libcsupport/src/fstat.c,
	libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
	libcsupport/src/getdents.c, libcsupport/src/ioctl.c,
	libcsupport/src/libio_sockets.c, libcsupport/src/lseek.c,
	libcsupport/src/open.c, libcsupport/src/read.c,
	libcsupport/src/readv.c, libcsupport/src/write.c,
	libcsupport/src/writev.c, libfs/src/devfs/devclose.c,
	libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c,
	libfs/src/devfs/devread.c, libfs/src/devfs/devwrite.c
	libfs/src/dosfs/msdos_dir.c libfs/src/dosfs/msdos_file.c
	libfs/src/imfs/deviceio.c libfs/src/imfs/imfs_directory.c
	libfs/src/imfs/imfs_fifo.c libfs/src/imfs/memfile.c
	libfs/src/nfsclient/src/nfs.c libfs/src/rfs/rtems-rfs-rtems-file.c
	libfs/src/rfs/rtems-rfs-rtems.h libnetworking/lib/ftpfs.c: Reflect
	changes above.
2010-07-15 08:10:48 +00:00