Sebastian Huber
2b5bd836ce
2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
CID 113/SECURE_CODING
* libblock/src/media-path.c: Avoid strcpy(). Style. Use assert() to
avoid dead code.
2010-08-25 08:26:21 +00:00
Sebastian Huber
69f2a078c8
2010-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
PR 1673/cpukit
* sapi/src/chainappendnotify.c, sapi/src/chaingetnotify.c,
sapi/src/chaingetwait.c, sapi/src/chainprependnotify.c: New files.
* sapi/Makefile.am: Reflect changes above.
* sapi/include/rtems/chain.h: Declare
rtems_chain_append_with_notification(),
rtems_chain_prepend_with_notification(),
rtems_chain_get_with_notification(), and rtems_chain_get_with_wait().
* sapi/inline/rtems/chain.inl: Define
rtems_chain_append_with_empty_check(),
rtems_chain_prepend_with_empty_check(), and
rtems_chain_get_with_empty_check().
2010-08-24 14:29:55 +00:00
Ralf Corsepius
b15fb6e065
2010-08-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libmisc/untar/untar.c: Return if open fails.
Use ssize_t for read() return value.
2010-08-24 13:06:24 +00:00
Ralf Corsepius
89dbb28bd4
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
2010-08-24 12:04:43 +00:00
Ralf Corsepius
e4522091c9
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_read.c: aio_nbytes is always >= 0.
2010-08-24 11:50:35 +00:00
Ralf Corsepius
7280e0a4a0
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_write.c: aio_nbytes is always >= 0.
Fix typo in comment.
2010-08-24 06:46:29 +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
3fc6b5651f
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libi2c/libi2c.c: Fix typo in va_end().
2010-08-23 23:18:27 +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
Joel Sherrill
64c2aa9ae0
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
CID 79/DEADCODE
CID 78/DEADCODE
CID 77/DEADCODE
CID 76/DEADCODE
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semtimedwait.c: Resolve various dead code issues identified
by Coverity scanner.
2010-08-23 21:31:27 +00:00
Joel Sherrill
85b9e7fd96
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
CID 99
CID 100
CID 101
CID 102
* libfs/src/dosfs/fat_file.c, libfs/src/dosfs/msdos.h,
libfs/src/dosfs/msdos_misc.c: Resolve invalid use of const identified
by Coverity scanner.
2010-08-23 21:29:31 +00:00
Sebastian Huber
a19ae9ec60
2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
PR 1673/cpukit
* score/src/chainappendempty.c, score/src/chaingetempty.c,
score/src/chainprependempty.c: New files.
* score/Makefile.am: Reflect changes above.
* score/include/rtems/score/chain.h: Declare
_Chain_Append_with_empty_check(), _Chain_Prepend_with_empty_check(),
and _Chain_Get_with_empty_check().
* score/inline/rtems/score/chain.inl: Define
_Chain_Append_with_empty_check_unprotected(),
_Chain_Prepend_with_empty_check_unprotected(), and
_Chain_Get_with_empty_check_unprotected().
2010-08-23 16:10:53 +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
229264b20d
2010-08-20 <yann.sionneau@telecom-sudparis.eu>
...
* libmisc/fb/fb.h: Add constants for buffer modes.
2010-08-20 21:24:44 +00:00
Joel Sherrill
b999676af0
2010-08-20 <yann.sionneau@telecom-sudparis.eu>
...
* rtems/score/lm32.h: Add lm32_read_interrupts().
2010-08-20 21:24:16 +00:00
Ralf Corsepius
6c22fa12cb
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/aio_misc.h: Add decl for aio_request_queue.
* posix/src/aio_misc.c: Add aio_request_queue.
2010-08-20 14:37:08 +00:00
Ralf Corsepius
0ca3af6b85
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/aio_misc.h: Remove rtems_aio_request_s,
rtems_aio_request_chain_s, rtems_aio_queue_s;
2010-08-20 13:32:28 +00:00
Ralf Corsepius
b27ec1e0d7
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From
freebsd).
2010-08-20 13:30:32 +00:00
Ralf Corsepius
b3263f57d2
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* sapi/include/rtems/chain.h: Move extern "C".
2010-08-20 13:26:55 +00:00
Ralf Corsepius
a45e501813
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/include/aio.h: Add LIO_SYNC.
* posix/include/rtems/posix/aio_misc.h: Add aio_request_queue,
Cosmetics.
* posix/src/aio_cancel.c, posix/src/aio_fsync.c, posix/src/aio_misc.c:
Rework.
2010-08-20 09:08:05 +00:00
Joel Sherrill
68309418cb
2010-08-19 Gedare Bloom <giddyup44@yahoo.com>
...
PR 1680/cpukit
* score/src/isr.c: Correct initialization of _CPU_Interrupt_stack_high
to properly do the alignment. This most likely only would have caused
a propblem on CPUs where the stack grows down and have strict
alignment.
2010-08-19 12:13:56 +00:00
Joel Sherrill
517d63f206
2010-08-19 Gedare Bloom <giddyup44@yahoo.com>
...
PR 1681/cpukit
* rtems/score/cpu.h: With the percpu patch, ASM uses
INTERRUPT_STACK_HIGH instead of _CPU_Interrupt_stack_high. The
sparc64 was still using the old variable, which was declared in its
cpu.h file. This patch comments out the declaration and switch to
using INTERRUPT_STACK_HIGH.
2010-08-19 12:11:42 +00:00
Chris Johns
2728f7e55c
2010-08-18 Chris Johns <chrisj@rtems.org>
...
PR 1677/filesystem
* libfs/src/imfs/imfs_creat.c: Fix creating of a file. Lost in the
change from a switch statement.
2010-08-18 09:58:15 +00:00
Ralf Corsepius
a218508230
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/aio_misc.h: Remove
rtems_aio_queue_s.size (Unused).
* posix/src/aio_misc.c: Remove aio_request_queue.size.
Cosmetics.
2010-08-16 14:09:38 +00:00
Ralf Corsepius
5175e5ee49
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/Makefile.am: Reflect aio-changes.
2010-08-16 05:47:30 +00:00
Ralf Corsepius
d8a7e18024
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/src/aio_misc.c: New.
* posix/src/aio_error.c, posix/src/aio_read.c,
* posix/src/aio_return.c, posix/src/aio_write.c:
New implementation.
2010-08-16 05:46:09 +00:00
Ralf Corsepius
a45d062026
Regenerate.
2010-08-16 05:40:29 +00:00
Ralf Corsepius
e501d79f46
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/include/aio.h: Extend struct aiocb.
* posix/include/rtems/posix/aio_misc.h: New.
2010-08-16 05:39:59 +00:00
Ralf Corsepius
b66c4acda5
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/include/aio.h: Extend struct aiocb.
* posix/include/rtems/posix/aio_misc.h: New.
2010-08-16 05:39:18 +00:00
Sebastian Huber
f6c33f3eef
2010-08-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libblock/src/media.c: Use unprotected chain extract.
2010-08-13 12:50:56 +00:00
Sebastian Huber
d91e3a71bb
2010-08-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libblock/include/rtems/media.h, libblock/src/media-desc.c,
libblock/src/media-dev-ident.c, libblock/src/media-path.c,
libblock/src/media-server.c, libblock/src/media.c: New files.
* Makefile.am, preinstall.am, libblock/Makefile.am: Reflect changes
above.
2010-08-13 12:40:16 +00:00
Chris Johns
c3367ade01
2010-08-13 Chris Johns <chrisj@rtems.org>
...
* libfs/src/imfs/imfs_eval.c: Add the missing ';' for the debug
case.
2010-08-13 04:49:31 +00:00
Sebastian Huber
a43befd923
Typo.
2010-08-11 12:17:49 +00:00
Sebastian Huber
58fa947101
2010-09-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* sapi/include/confdefs.h: Include <rtems.h> to resolve all
dependencies.
2010-08-11 12:16:11 +00:00
Joel Sherrill
7299818419
2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
...
PR 1658/cpukit
* sapi/src/exshutdown.c, score/include/rtems/score/interr.h: If the
system is not up, consider it a fatal error.
2010-08-10 22:56:35 +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
8f0b33466b
2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
...
PR 1660/filesystem
* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
int pipe_release to void pipe_release.
* libfs/src/imfs/imfs_fifo.c: Corresponding change to
IMFS_fifo_close since pipe_release does not return any error.
* libfs/src/imfs/imfs_initsupp.c: Changes to improve
IMFS_determine_bytes_per_block
2010-08-10 17:41: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
Sebastian Huber
5f1300a79e
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* score/inline/rtems/score/object.inl: Use attribute unused in
_Objects_Is_local_id().
2010-08-09 09:16:08 +00:00
Sebastian Huber
3b9d1aba5a
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* rtems/Makefile.am, rtems/preinstall.am: Install
<rtems/rtems/mainpage.h> to allow documentation generation.
2010-08-09 09:03:11 +00:00
Sebastian Huber
e5a2eb4d32
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* rtems/include/rtems.h, rtems/mainpage.h,
rtems/include/rtems/rtems/types.h: Documentation.
2010-08-09 08:59:57 +00:00
Sebastian Huber
93280b56fb
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
PR 1604/cpukit
* rtems/src/regioncreate.c: Removed superfluous parameter check.
2010-08-09 08:24:41 +00:00
Sebastian Huber
05d470a557
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
PR 1615/cpukit
* posix/src/keyrundestructors.c: Improved POSIX compliance. Now we may
have an unlimited number of iterations.
2010-08-09 08:13:21 +00:00
Sebastian Huber
b8af65a8f1
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* sapi/inline/rtems/chain.inl: Added
rtems_chain_extract_unprotected().
2010-08-09 07:38:51 +00:00
Ralf Corsepius
4685a5901f
2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/aio.h, posix/src/aio_return.c:
Let aio_return return ssize_t (Mandated by POSIX).
2010-08-09 07:33:58 +00:00
Joel Sherrill
561ab3bd83
2010-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libfs/src/imfs/imfs.h: Fix typo.
2010-08-08 20:25:00 +00:00
Ralf Corsepius
99bfef17cd
2010-08-03 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libcsupport/src/getegid.c, libcsupport/src/geteuid.c,
libcsupport/src/getpid.c, libcsupport/src/getppid.c,
libcsupport/src/getuid.c, libcsupport/src/setegid.c,
libcsupport/src/seteuid.c, libcsupport/src/setsid.c
libcsupport/src/setuid.c: Remove redundant includes.
2010-08-03 15:56:36 +00:00
Ralf Corsepius
ab13eeddb5
Remove redundant includes.
2010-08-03 15:56:25 +00:00