Commit Graph

6500 Commits

Author SHA1 Message Date
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
Joel Sherrill
a3bb1addc1 2010-09-26 Yann Sionneau <yann@minet.net>
PR 1697/cpukit
	* rtems/score/cpu.h: lm32 really needs aligned stack. Recent changes
	highlighted that this macro was incorrect.
2010-09-26 23:43:47 +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
Ralf Corsepius
d28b259c79 Regenerate. 2010-08-30 12:25:37 +00:00
Ralf Corsepius
7bcae3d888 Remove devctl. 2010-08-30 12:25:23 +00:00
Ralf Corsepius
ec34180ff4 Remove. 2010-08-30 12:25:10 +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
c188f8e7f2 Just comment out line. 2010-08-28 19:49:47 +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
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
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
Joel Sherrill
6b9886bbac 2010-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-symbols.c: Fix length of buffer passed to
	strncpy() so there is room for a NULL terminator.
2010-08-26 21:41:41 +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
Chris Johns
6ed22abde2 2010-08-26 Chris Johns <chrisj@rtems.org>
* libfs/src/defaults/default_evaluate_link.c: Remove assignment.

        * libfs/src/rfs/rtems-rfs-file.c: Check then load the inode is not
        present on the close.

        * libfs/src/rfs/rtems-rfs-format.c: Initialise the buffer chain.
2010-08-26 06:31:15 +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
Joel Sherrill
39aa5cfae0 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 125
	Coverity Id 126
	* libi2c/libi2c.c: Use strncpy and snprintf.
2010-08-25 21:17:03 +00:00
Joel Sherrill
49460dc6d4 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/coremsginsert.c: Fix typo.
2010-08-25 20:48:43 +00:00
Joel Sherrill
f8b7c83d37 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 148/STRAY_SEMICOLON
	* score/src/coremsginsert.c: Slightly modify macro.
2010-08-25 20:47:33 +00:00
Joel Sherrill
21e3de112c 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 169
	* libmisc/stackchk/check.c: Readd line accidentally deleted between
	1.67 and 1.68.
2010-08-25 20:29:41 +00:00
Joel Sherrill
d4a97df3fd 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 163
	* libmisc/stackchk/check.c: Adjust conditional compilation.
2010-08-25 20:15:56 +00:00
Joel Sherrill
4b556660f1 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 164/UNINIT
	Coverity Id 165/UNINIT
	* posix/src/prwlockinit.c, posix/src/pspininit.c,
	score/include/rtems/score/corespinlock.h,
	score/inline/rtems/score/corerwlock.inl,
	score/inline/rtems/score/corespinlock.inl: Add initialization helpers
	for score rwlock and spinlock. Use them from POSIX.
2010-08-25 20:01:47 +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
Sebastian Huber
4d73c382ab 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1672/cpukit
	* score/include/rtems/score/heap.h, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapextend.c,
	score/src/heapfree.c, score/src/heapresizeblock.c,
	score/src/heapsizeofuserarea.c: Added heap protection in case
	RTEMS_DEBUG is defined.
2010-08-25 12:35:52 +00:00
Sebastian Huber
9788279237 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/imfs/imfs_fcntl.c: Removed file.
	* libfs/Makefile.am: Reflect change from above.
	* libfs/src/defaults/default_fcntl.c: Return 0 instead of -1 and errno.
	* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_fifo.c,
	libfs/src/imfs/imfs_handlers_directory.c,
	libfs/src/imfs/imfs_handlers_memfile.c, libfs/src/nfsclient/src/nfs.c,
	libfs/src/rfs/rtems-rfs-rtems-dir.c,
	libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-rtems.c,
	libfs/src/rfs/rtems-rfs-rtems.h: Use default file system handlers.
2010-08-25 09:37:49 +00:00
Sebastian Huber
d4d6bd813f 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/include/rtems/media.h, libblock/src/media-server.c: Use
	chains instead of a message queue.
2010-08-25 08:44:14 +00:00
Sebastian Huber
6ef96da17e 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
CID 114/SECURE_CODING
	* libblock/src/media.c: Avoid strcpy().
2010-08-25 08:31:43 +00:00