Commit Graph

844 Commits

Author SHA1 Message Date
Joel Sherrill
4b72da419b 2011-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/malloc.h, libmisc/stackchk/stackchk.h,
	posix/include/rtems/posix/time.h, rtems/include/rtems/rtems/object.h,
	score/include/rtems/score/apiext.h,
	score/include/rtems/score/interr.h, score/include/rtems/score/mpci.h,
	score/include/rtems/score/objectmp.h,
	score/include/rtems/score/thread.h,
	score/include/rtems/score/threadmp.h,
	score/include/rtems/score/threadq.h,
	score/include/rtems/score/timespec.h,
	score/include/rtems/score/timestamp.h,
	score/include/rtems/score/timestamp64.h,
	score/include/rtems/score/tod.h,
	score/include/rtems/score/watchdog.h,
	score/include/rtems/score/wkspace.h: Make @brief formatting more
	consistent.
	* score/include/rtems/score/rbtree.h: Also reformat.
2011-06-17 14:55:27 +00:00
Sebastian Huber
18124551c3 2011-06-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/termios.c:
	Added const qualifier to rtems_termios_enqueue_raw_characters().
	Removed superfluous cast.
2011-06-17 12:34:37 +00:00
Ralf Corsepius
fc432589d1 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/Makefile.am: Reformat.
2011-05-16 14:30:23 +00:00
Jennifer Averett
d7c388321a 2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com
PR 1777/cpukit
	* libcsupport/src/malloc_deferred.c, libcsupport/src/realloc.c,
	score/Makefile.am, score/cpu/lm32/irq.c, score/cpu/nios2/irq.c,
	score/include/rtems/score/coremutex.h,
	score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl, score/src/heapfree.c,
	score/src/pheapwalk.c, score/src/smp.c, score/src/threaddispatch.c:
	Consolidated access to _Thread_Dispatch_disable_level.
	* score/src/threaddisabledispatch.c, score/src/threadenabledispatch.c:
	New files.
2011-04-21 19:05:15 +00:00
Sebastian Huber
3d2044481e 2011-04-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/ioctl.c: Fixed integer type.
2011-04-15 10:27:10 +00:00
Ralf Corsepius
ee613aa252 Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h). 2011-03-24 09:36:14 +00:00
Chris Johns
9a65833c1e 2011-03-03 Chris Johns <chrisj@rtems.org>
* libcsupport/src/mknod.c, libfs/src/rfs/rtems-rfs-inode.c: PR
        1749. Fix the incorrect handling of the file type in the mode
        value to reject invalid types as per the standard.
2011-03-03 06:22:48 +00:00
Ralf Corsepius
f154804273 2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/sleep_noposix.c: Remove.
	* libcsupport/Makefile.am: Reflect changes above.
	* posix/src/sleep.c, posix/src/usleep.c: Remove.
	* posix/Makefile.am: Reflect changes above.
	* configure.ac: Error out if libc doesn't provide sleep, usleep.
2011-02-25 10:20:02 +00:00
Ralf Corsepius
0111c50d8e 2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/creat.c: Remove.
	* libcsupport/Makefile.am: Reflect changes above.
	* configure.ac: Error out if libc doesn't provide creat.
2011-02-25 02:52:54 +00:00
Ralf Corsepius
bbc1a10935 2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/opendir.c, libcsupport/src/closedir.c,
	libcsupport/src/readdir.c, libcsupport/src/rewinddir.c,
	libcsupport/src/scandir.c, libcsupport/src/seekdir.c,
	libcsupport/src/telldir.c: Remove.
	* libcsuppport/Makefile.am: Reflect changes above.
	* configure.ac: Error out if libc doesn't provide
	opendir, closedir, readdir, rewinddir, scandir, seekdir,
	telldir.
2011-02-25 02:13:21 +00:00
Ralf Corsepius
e530f72f73 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/sys/statvfs.h: Remove include <sys/cdefs.h>
	(unused). Add C++ guards. Declare functions extern.
2011-02-24 15:48:06 +00:00
Ralf Corsepius
253dde08b8 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/clockdrv.h, libcsupport/include/console.h,
	libcsupport/include/spurious.h, libcsupport/include/rtems/error.h,
	libcsupport/include/rtems/libcsupport.h: Add missing includes.
2011-02-23 14:27:15 +00:00
Sebastian Huber
ddb29e37c9 2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/rtems_heap_extend.c: New file.
	* libcsupport/Makefile.am: Reflect change from above.
	* libcsupport/include/rtems/malloc.h: Declare rtems_heap_extend().
	* score/include/rtems/score/heap.h: Documentation.
2011-02-17 14:17:09 +00:00
Ralf Corsepius
46d6e7a9f1 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/btimer.h: New.
	* Makefile.am: Add rtems/btimer.h
	* libcsupport/include/timerdrv.h: Reflect having split out functions
	  to rtems/btimer.h.
2011-02-09 06:15:53 +00:00
Ralf Corsepius
c14db0a302 2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/src/printk.c: Fix typo.
2011-02-01 06:36:00 +00:00
Joel Sherrill
3030975ab6 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/error.c: Scheduler Simulator compilation always
	defines __RTEMS_VIOLATE_KERNEL_VISIBILITY__. So avoid redefinition
	warning.
2011-01-04 19:53:14 +00:00
Sebastian Huber
10ace498cb 2010-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Revert
	previous commit due to too many broken linker command files.  The
	HAVE_INITFINI_ARRAY is defined for nearly all targets by Newlib, but
	only few linker command files respect this.
2010-11-30 08:15:35 +00:00
Sebastian Huber
d6a72fff81 2010-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Added
	support for .preinit_array, .init_array and .fini_array sections.
2010-11-29 14:14:27 +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
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
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
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
293554ae2c Update date. 2010-08-27 18:07:03 +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
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
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
Joel Sherrill
030ab087ef 2010-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/eval.c: Make some filesystem implementation
	correctness checks conditional on RTEMS_DEBUG.
2010-08-26 19:57:19 +00:00
Joel Sherrill
4cce3f97c5 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 93/NO_EFFECT
	Coverity Id 94/NO_EFFECT
	* libcsupport/src/readv.c, libcsupport/src/writev.c: size_t is unsigned
	so it is useless to check for < 0.
2010-08-25 22:25:18 +00:00
Sebastian Huber
1b5a0ecef7 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/free.c, libcsupport/src/malloc.c,
	libcsupport/src/malloc_initialize.c: Remove heap walks in case
	RTEMS_DEBUG is defined.
2010-08-25 14:30:01 +00:00
Ralf Corsepius
823a26fc22 2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/sys/utsname.h: Remove times().
	Remove unnecessary includes.
	Introduce SYS_NMLN (From freebsd).
	* libcsupport/src/utsname.c: Rework uname().
2010-08-24 05:51:51 +00:00
Joel Sherrill
0b4222f7cc 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/read.c, libcsupport/src/write.c: Remove redundant
	check for 0 size request.
2010-08-23 23:19:31 +00:00
Joel Sherrill
5f1ad30d54 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/open.c: Spacing.
2010-08-23 23:19:07 +00:00
Joel Sherrill
bf4766fe69 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
	libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
2010-08-23 23:17:42 +00:00
Sebastian Huber
4b9ddca40c 2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1671/cpukit
	* libcsupport/include/rtems/gxx_wrappers.h: New file.
	* libcsupport/Makefile.am, libcsupport/preinstall.am: Reflect change
	above.
	* libcsupport/src/gxx_wrappers.c: Include <rtems/gxx_wrappers.h>.  Use
	_Internal_error_Occurred() instead of rtems_panic().
	* score/include/rtems/score/interr.h: Added
	INTERNAL_ERROR_GXX_KEY_ADD_FAILED and
	INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED.
2010-08-23 07:59:38 +00:00
Joel Sherrill
6e7ee0bd25 2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
PR 1662/filesystem
	* libcsupport/src/termios.c: osem is now released before attempt
	to delete in rtems_termios_close.
2010-08-10 22:15:32 +00:00
Joel Sherrill
bad55939df 2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
	* libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h: Add
	public methods to get/set malloc heap pointer so the tests do not
	have to peer behind the API.
	* libcsupport/src/mallocgetheapptr.c,
	libcsupport/src/mallocsetheapptr.c: New files.
2010-08-10 13:15:30 +00:00
Ralf Corsepius
ab13eeddb5 Remove redundant includes. 2010-08-03 15:56:25 +00:00
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
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
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
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
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
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
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