Commit Graph

2705 Commits

Author SHA1 Message Date
Sebastian Huber
76da5fa89d 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1711/cpukit
	* score/inline/rtems/score/chain.inl, score/src/chain.c: New functions
	_Chain_Immutable_head(), _Chain_Immutable_tail(),
	_Chain_Immutable_first(), and _Chain_Immutable_last().  The
	Chain_Control is now a union to avoid casts.  The function
	_Chain_Is_empty() takes now a const pointer parameter.
2010-11-25 11:48:11 +00:00
Sebastian Huber
ce002b161d 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/fat_file.c, libfs/src/imfs/imfs_debug.c,
	libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_getchild.c,
	posix/src/killinfo.c, score/inline/rtems/score/schedulerpriority.inl,
	score/inline/rtems/score/watchdog.inl, score/src/apiext.c,
	score/src/chain.c, score/src/coremsgflushsupp.c,
	score/src/coremsginsert.c, score/src/objectshrinkinformation.c,
	score/src/schedulerpriorityyield.c,
	score/src/threadqdequeuepriority.c,
	score/src/threadqenqueuepriority.c,
	score/src/threadqextractpriority.c, score/src/threadqfirstfifo.c,
	score/src/threadqfirstpriority.c, score/src/threadyieldprocessor.c,
	score/src/userextthreadbegin.c, score/src/userextthreadcreate.c,
	score/src/userextthreaddelete.c, score/src/userextthreadrestart.c,
	score/src/userextthreadstart.c, score/src/userextthreadswitch.c,
	score/src/watchdogreportchain.c: Avoid chain API violations.
2010-11-25 09:27:06 +00:00
Joel Sherrill
0faa9dad07 2010-11-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1647/cpukit
	* posix/src/nanosleep.c, posix/src/sched_yield.c,
	rtems/src/taskwakeafter.c, sapi/include/confdefs.h,
	sapi/include/rtems/config.h, sapi/src/exinit.c, score/Makefile.am,
	score/preinstall.am, score/include/rtems/score/prioritybitmap.h,
	score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl, score/src/thread.c,
	score/src/threadchangepriority.c, score/src/threadclearstate.c,
	score/src/threadclose.c, score/src/threadinitialize.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,
	score/src/threadtickletimeslice.c: Refactor scheduler out of thread
	handler to facilitate alternate scheduler implementations.
	* score/src/threadyieldprocessor.c: Removed.
	* score/src/schedulerprioritythreadschedulerupdate.c,
	score/src/schedulerprioritythreadschedulerfree.c,
	score/src/schedulerpriorityblock.c, score/src/scheduler.c,
	score/src/schedulerprioritythreadschedulerallocate.c,
	score/src/schedulerpriorityunblock.c,
	score/src/schedulerpriority.c, score/src/schedulerpriorityyield.c,
	score/include/rtems/score/schedulerpriority.h,
	score/include/rtems/score/scheduler.h,
	score/inline/rtems/score/scheduler.inl,
	score/inline/rtems/score/schedulerpriority.inl: New files.
2010-11-24 15:51:28 +00:00
Joel Sherrill
505866a0d8 Remove duplicate entry. 2010-11-23 23:44:06 +00:00
Sebastian Huber
8720a3a509 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Avoid dead code if POSIX API is enabled.
2010-11-23 15:26:52 +00:00
Sebastian Huber
4e3d9b8a84 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Fixed NULL pointer access in case POSIX API is disabled.
2010-11-23 14:59:05 +00:00
Sebastian Huber
3ff9156f6b 2010-11-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/monitor/mon-monitor.c: Fixed broken monitor command list.
2010-11-19 09:44:21 +00:00
Joel Sherrill
db5f1341c2 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1718/cpukit
	* sapi/include/confdefs.h: POSIX threads are allocated twice the
	minimum stack space by default. confdefs.h only accounts for one
	minimum -- not the 2x factor.
2010-11-16 19:14:10 +00:00
Joel Sherrill
80675f0d64 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1717/cpukit
	* libcsupport/src/gxx_wrappers.c: Free memory on error.
2010-11-16 18:51:34 +00:00
Joel Sherrill
c8b3806d1a 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
	ifdef.
2010-11-16 17:51:02 +00:00
Joel Sherrill
16d7b65331 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectnametoid.c, score/src/objectnametoidstring.c:
	Remove useless variable pointed out by clang.
	* score/src/threadstackallocate.c: Remove useless variable
	initialization pointed out by clang.
2010-11-16 17:50:26 +00:00
Joel Sherrill
5290c5aeb8 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c:
	Remove unchecked return status pointed out by clang.
2010-11-16 17:48:06 +00:00
Joel Sherrill
fd83f1687d 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/putk.c: Remove useless variable initialization
	pointed out by clang.
2010-11-16 17:47:06 +00:00
Sebastian Huber
fc75117609 2010-11-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/userext.h: Documentation.
2010-11-11 13:37:03 +00:00
Sebastian Huber
42d6ed845a 2010-11-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/watchdoginsert.c: Removed superfluous cast and use
	appropriate API function.  This special case handling is obsolete
	since 2006 with the introduction of compiler memory barriers in the
	interrupt routines.  Removed obsolete comments.
2010-11-09 09:14:10 +00:00
Joel Sherrill
1123658086 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make compile again.
	* sapi/src/io.c, score/src/heap.c: Address dead assignment
	issues found by clang.
2010-11-04 23:00:04 +00:00
Joel Sherrill
16b1546e0b 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Address casting issue highlighted by clang.
	There was no need for an intermediate cast to a structure pointer.
2010-11-04 22:22:49 +00:00
Joel Sherrill
5f92568509 2010-11-01 Alin Rus <alin.codejunkie@gmail.com>
* posix/include/rtems/posix/aio_misc.h, posix/src/aio_misc.c: Small
	fixes.
2010-11-01 17:32:53 +00:00
Joel Sherrill
a5ba675808 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/psignalunblockthread.c: Formatting.
2010-10-21 22:27:16 +00:00
Joel Sherrill
ed553f0bcf 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/mutextimedlock.c: Check status local variable not
	lock_status.
2010-10-21 22:21:09 +00:00
Sebastian Huber
6366c2e2a6 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
	in case hostname was not specified.
2010-10-19 09:16:20 +00:00
Sebastian Huber
71a6a16fd0 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Fixed a special case with no username and
	password.
2010-10-19 07:38:53 +00:00
Chris Johns
6dd4853c48 2010-10-19 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in
        write. Return the error code in close.
2010-10-18 22:39:35 +00:00
Chris Johns
0a127c5591 2010-10-11 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-trace.c,
        libfs/src/rfs/rtems-rfs-trace.h: Add inode-delete.
        * libfs/src/rfs/rtems-rfs-shell.c: Fix formatting.
        * libfs/src/rfs/rtems-rfs-rtems-dir.c: Use ssize_t. Fix spelling.
        * libfs/src/rfs/rtems-rfs-block.c: Fix rtems_rfs_block_get_bpos to
        return the position correctly. A bpos does not have any special
        processing. Do no reset the buffer handle when shrinking
        indirectly.
        * libfs/src/rfs/rtems-rfs-inode.c: Add trace.
        * libfs/src/rfs/rtems-rfs-format.c: Fix comments.
        * libfs/src/rfs/rtems-rfs-group.c: Limit the inodes to the blocks
        in a group so the accounting works.
        * libfs/src/rfs/rtems-rfs-dir.c: PR 1705. Fix handling the offsets
        when deleting an entry.
        * libfs/src/rfs/rtems-rfs-buffer.h: Remove
        rtems_rfs_buffer_handle_reset. It is not needed and dangerous.
2010-10-11 04:34:48 +00:00
Ralf Corsepius
e76a4776a6 2010-10-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: pthread_attr* functions are in <pthread.h>, not in
	<pthreads.h>.
2010-10-08 09:44:44 +00:00
Ralf Corsepius
b2b13e8af2 2010-10-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-func.m4: Linearize checks.
	Add missing $2 to AC_CHECK_DECL.
2010-10-08 09:42:11 +00:00
Joel Sherrill
538453e3b7 2010-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Revert accident commit adding libdbm to
	build.
2010-10-04 17:45:32 +00:00
Joel Sherrill
9eb5c8ee80 *** empty log message *** 2010-10-04 15:33:09 +00:00
Joel Sherrill
21dd3ab8b6 2010-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, posix/Makefile.am, posix/src/pthread.c:
	* posix/src/pthreadattrgetguardsize.c, posix/src/pthreadattrgetstack.c,
	posix/src/pthreadattrsetguardsize.c, posix/src/pthreadattrsetstack.c:
	New files.
2010-10-04 15:32:36 +00:00
Sebastian Huber
6daba8105d 2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* posix/src/psignal.c: Fixed NULL pointer access.
2010-09-28 07:40:34 +00:00
Sebastian Huber
d62711f290 2010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/defaults/default_close.c: Return 0 instead of an error
	status.
2010-09-27 12:32:40 +00:00
Sebastian Huber
1e4d7b8835 2010-09-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmd/md5.h: C++ compatibility.
2010-09-13 13:57:32 +00:00
Ralf Corsepius
199296db19 2010-09-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add checks for pthread_attr_getguardsize,
	pthread_attr_setguardsize, pthread_attr_setstack,
	pthread_attr_getstack.
2010-09-08 10:19:25 +00:00
Sebastian Huber
3e5014891f 2010-09-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1698/cpukit
	* libcsupport/src/privateenv.c: Check return values of
	rtems_filesystem_evaluate_path().
2010-09-08 07:31:28 +00:00
Ralf Corsepius
deae980942 2010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1696/networking:
	* libnetworking/arpa/inet.h: Partial update from FreeBSD.
	#include <rtems/endian.h>.
	Remove addr2ascii, ascii2addr.
2010-09-01 11:12:37 +00:00
Ralf Corsepius
f4e5f2f6af 2010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/addr2ascii.c,
	libnetworking/libc/ascii2addr.c,
	libnetworking/libc/addr2ascii.3: Remove.
	* libnetworking/Makefile.am: Reflect changes above.
2010-09-01 11:08:30 +00:00
Ralf Corsepius
86f468142c 2010-08-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/include/devctl.h, posix/src/devctl.c: Remove.
	* posix/Makefile.am: Remove devctl.
2010-08-30 12:25:49 +00:00
Joel Sherrill
b003995151 2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
2010-08-29 19:50:33 +00:00
Joel Sherrill
a006af3153 2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libcsupport/src/privateenv.c: Add macro to test status when
	RTEMS_DEBUG is enabled. Note than evaluation of root directory should
	always work.
2010-08-29 19:49:52 +00:00
Joel Sherrill
fb90d67b2f 2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libcsupport/src/getlogin.c: Modify to use strncpy() on all paths.
2010-08-29 19:48:52 +00:00
Joel Sherrill
8cb97f594f 2010-08-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1694/shell
	* libmisc/shell/main_setenv.c: Address memory leak identified by
	Coverity.
2010-08-28 20:10:00 +00:00
Joel Sherrill
28ff5942a5 2010-08-28 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/pipe/pipe.c: Remove unreachable line flagged by Coverity as
	dead code.
2010-08-28 19:48:41 +00:00
Joel Sherrill
e78b10bd27 2010-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/ctermid.c: Add comment explaining that this use of
	strcpy() is a potential buffer overrun but because the API does not
	provide a way to know the length of the user provided buffer, there
	is nothing we can do about it.
2010-08-27 18:06:46 +00:00
Joel Sherrill
57cdf005bc 2010-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_date.c: Use snprintf() not sprintf().
2010-08-27 18:04:28 +00:00
Joel Sherrill
f70b79178f 2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1693/filesystem
	* libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was
	checking incorrect pointer and thus had dead code.
2010-08-27 17:43:26 +00:00
Joel Sherrill
9063a0e3c9 2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1692/filesystem
	* libcsupport/include/rtems/libio.h, libfs/src/devfs/devfs_eval.c,
	libfs/src/imfs/imfs_eval.c: Fix implementation and use of
	rtems_libio_is_valid_perms().
2010-08-27 17:32:59 +00:00
Sebastian Huber
225216358a 2010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/defaults/default_evalpath.c,
	libfs/src/defaults/default_evaluate_link.c: Removed superfluous
	assignment.
2010-08-27 06:42:46 +00:00
Sebastian Huber
f1e790d439 2010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c, libcsupport/src/mount-mgr.c: Avoid
	strcpy().
2010-08-27 06:41:08 +00:00
Sebastian Huber
e91cd60022 2010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c: Avoid strcpy().
2010-08-27 06:29:26 +00:00
Joel Sherrill
e6a92f85ed 2010-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/sync.c: Add comment explaining why the return value
	from fsync() and fdatasync() is not checked.
2010-08-26 21:42:21 +00:00