Commit Graph

664 Commits

Author SHA1 Message Date
Glenn Humphrey
dca9a825e4 2009-12-02 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagedata.c,
	libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemonreportstatistics.c, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Updated copyright line.
2009-12-02 18:22:19 +00:00
Glenn Humphrey
c6f7e060ea 2009-12-02 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* configure.ac, libcsupport/src/__times.c,
	libmisc/cpuuse/cpuusagedata.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c, rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c,
	score/include/rtems/score/thread.h, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Changed the configuration of statistics granularity to use just one
	define.
2009-12-02 18:15:16 +00:00
Joel Sherrill
1eb97ad840 2009-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Split no_posix.c so using sleep() does not
	pull in kill() stubs.
	* libcsupport/src/kill_noposix.c, libcsupport/src/sleep_noposix.c:
	New files.
	* libcsupport/src/no_posix.c: Removed.
2009-12-01 14:22:58 +00:00
Thomas Doerfler
0b0485ae7f Fixed usage of va_arg(). 2009-12-01 10:12:55 +00:00
Thomas Doerfler
42836e3f85 Obtain output semaphore before drain output during close to prevent an infinite output drain loop 2009-11-30 13:23:58 +00:00
Thomas Doerfler
9224a751b1 Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary(). 2009-11-30 13:06:21 +00:00
Thomas Doerfler
2feeb261d0 Fixed output of unsigned integers.
Changed type of boolean variables to bool.  Use unsigned integer type
for radix and width parameters.
2009-11-30 12:47:44 +00:00
Ralf Corsepius
18daff9b95 Whitespace removal. 2009-11-29 13:35:32 +00:00
Ralf Corsepius
88db141a5d 2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/malloc_boundary.c: Avoid implicit type cast
	(https://www.rtems.org/bugzilla/show_bug.cgi?id=1472#c1).
2009-11-19 13:51:40 +00:00
Joel Sherrill
0c116189aa 2009-11-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
	libcsupport/src/rtems_malloc.c: New function rtems_malloc().
2009-11-11 20:36:44 +00:00
Joel Sherrill
eecf752dc3 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/open_dev_console.c: Use constant numbers to avoid
	overflow when shifting on 16-bit targets.
2009-11-09 15:19:57 +00:00
Ralf Corsepius
4de1c9b731 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/no_libc.c: Remove.
	* libcsupport/Makefile.am: Remove no_libc.c.
2009-10-14 16:30:39 +00:00
Ralf Corsepius
f0ae08cf87 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/newlibc_reent.c: Eliminate RTEMS_UNIX.
2009-10-14 16:27:54 +00:00
Ralf Corsepius
435cf5a26b 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/newlibc_exit.c: Eliminate RTEMS_UNIX.
2009-10-14 16:26:22 +00:00
Ralf Corsepius
9839023a9b 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/base_fs.c: Eliminate RTEMS_UNIX.
2009-10-14 16:21:28 +00:00
Ralf Corsepius
c906b1ac9b 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/stat.c: Eliminate RTEMS_UNIX.
2009-10-14 16:19:47 +00:00
Ralf Corsepius
22eda66fa5 Remove. 2009-10-14 13:41:42 +00:00
Ralf Corsepius
68b0a2a8cf Reflect having introduced rtems_error_code_t. 2009-10-12 16:17:37 +00:00
Chris Johns
eb649786c8 2009-10-08 Chris Johns <chrisj@rtems.org>
* Makefile.am, preinstall.am: Added statvfs.h.
        * libcsupport/Makefile.am: Add statvfs.c.
        * libcsupport/include/sys/statvfs.h, libcsupport/src/statvfs.c:
        New.
        * libcsupport/include/rtems/libio.h: Add a file system handler for
        the statvfs call.
        * libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c,
        libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c: Set the
        statvfs handler to NULL.
        * include/rtems/fs.h: Add a second node access field for the RFS
        file system to hold a directory offset while the existing field
        holds the inode number. This save a rescan of the directory when
        working with directories.
        * libblock/include/rtems/bdbuf.h: Added references and user fields
        to the buffer descriptor.
        * libblock/src/bdbuf.c: Added dynamic buffer support for different
        block sizes. Fixed a number of bugs.
        * libblock/src/blkdev.c: Release the disk device on an error.
        * libblock/src/diskdevs.c: Set the block size to the media block
        size during initialisation of the disk device.
        * libblock/src/flashdisk.c, libblock/src/nvdisk.c,
        libblock/src/ramdisk.c: Updated the drivers to handle variable
        block sizes.
        * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Release any
        buffers when an error occurs. The FAT buffer layer hangs onto a
        single buffer while mounted. This should be fixed.
        * sapi/inline/rtems/chain.inl: Added rtems_chain_set_off_chain,
        rtems_chain_is_node_off_chain, and rtems_chain_previous.
        * score/inline/rtems/score/chain.inl: Added _Chain_Set_off_chain,
        and _Chain_Is_node_off_chain.
        * libmisc/shell/main_ln.c, libmisc/shell/main_mknod.c,
        libmisc/shell/mknod-pack_dev.c, libmisc/shell/mknod-pack_dev.h:
        New shell commands.
        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added ln and
        mknod commands.
        * libmisc/shell/hexdump-display.c: Fixed the reopen bug which
        showed up as a free with a bad pointer.
        * libmisc/shell/main_mount.c: List the user adding file system
        when listing the available file systems to mount.
        * libmisc/shell/utils-cp.c: Remove the fixed static copy buffer
        and use a large dynamic buffer.
        * score/inline/rtems/score/address.inl, score/src/coremsgsubmit.c,
        score/src/objectallocate.c, score/src/objectfree.c: Remove
        warnings.
2009-10-08 07:07:36 +00:00
Ralf Corsepius
346725cc9e Rework autoconf defines. 2009-09-30 08:20:32 +00:00
Ralf Corsepius
00da59e4f2 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/_rename_r.c: Rework autoconf defines.
	Remove unused includes.
2009-09-30 06:51:15 +00:00
Ralf Corsepius
cc9b81ea45 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/__gettod.c: Rework autoconf defines.
	Eliminate RTEMS_UNIX.
2009-09-30 06:45:38 +00:00
Ralf Corsepius
a13c3df9fa Rework autoconf defines. 2009-09-30 06:15:39 +00:00
Ralf Corsepius
1613c7e01f Remove unused includes. 2009-09-30 05:57:20 +00:00
Ralf Corsepius
80b381b598 Eliminate RTEMS_UNIX. 2009-09-30 05:51:18 +00:00
Ralf Corsepius
96c56e239e Rework autoconf defines. 2009-09-30 05:15:00 +00:00
Ralf Corsepius
dfa6882c5b Comment out checkMallocArena (unused). 2009-09-30 05:12:35 +00:00
Ralf Corsepius
c92b69c340 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/__assert.c: Rework autoconf defines.
2009-09-30 05:05:30 +00:00
Ralf Corsepius
e2e3ab8f89 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/__brk.c: Eliminate RTEMS_UNIX.
	Remove unused includes.
2009-09-30 04:51:56 +00:00
Ralf Corsepius
b300e72dd9 Remove unused includes. 2009-09-30 04:46:31 +00:00
Ralf Corsepius
0501d72b9d Remove stray whitespace. 2009-09-30 04:43:35 +00:00
Ralf Corsepius
363c7d83e7 Remove #include <inttypes.h>. 2009-09-30 04:39:46 +00:00
Ralf Corsepius
e1233892ad 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/termios_setinitialbaud.c:
	Include rtems/termiostypes.h.
	Rename termios_set_initial_baud into rtems_termios_set_initial_baud.
2009-09-30 02:56:20 +00:00
Ralf Corsepius
dc9e135b5b 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/termios_num2baud.c:
	Include rtems/termiostypes.h.
	Rename termios_number_to_baud into rtems_number_to_baud.
2009-09-30 02:55:06 +00:00
Ralf Corsepius
1e4eeb314e 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/termios_baud2num.c:
	Include rtems/termiostypes.h.
	Rename termios_baud_to_number into rtems_termios_baud_to_number.
2009-09-30 02:54:01 +00:00
Ralf Corsepius
add4185e1f 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/termios_baud2index.c:
	Include rtems/termiostypes.h.
	Rename termios_baud_to_index into rtems_termios_baud_to_index.
2009-09-30 02:53:05 +00:00
Joel Sherrill
62fbfe3734 2009-09-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libcsupport.h,
	libcsupport/src/newlibc_reent.c: Eliminate use of deprecated
	rtems_extension.
2009-09-26 15:48:43 +00:00
Joel Sherrill
d3b5fe3a2e 2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy
	of getpagesize() and make it return an int.
	* posix/src/getpagesize.c: Removed.
2009-09-24 11:14:12 +00:00
Ralf Corsepius
002ca54e49 Rely upon uintmax_t and PRIuMAX being provided. 2009-09-15 09:56:52 +00:00
Ralf Corsepius
79e028d34c Reflect rtems_libio_number_iops being uint32_t. 2009-09-15 09:53:01 +00:00
Ralf Corsepius
278fbfd66a Remove extern uint32_t rtems_libio_number_iops. 2009-09-15 09:46:54 +00:00
Ralf Corsepius
2e8737ad5e Add __attribute__((unused)) to function arguments. 2009-09-15 09:42:46 +00:00
Ralf Corsepius
9e14ca27ef Add __attribute__((unused)) to function arguments. 2009-09-15 09:29:55 +00:00
Ralf Corsepius
ead79688da 2009-09-15 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1441/cpukit
	* libcsupport/src/tcgetprgrp.c: Remove.
	* libcsupport/src/tcgetpgrp.c: New (Renamed from
	  libcsupport/src/tcgetprgrp.c).
	* libcsupport/Makefile.am: Add libcsupport/src/tcgetpgrp.c.
	  Remove libcsupport/src/tcgetprgrp.c.
2009-09-15 05:32:49 +00:00
Ralf Corsepius
37008d0686 2009-09-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/getpwent.c: Ansify.
2009-09-15 04:18:40 +00:00
Joel Sherrill
7c411bda5b 2009-09-14 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* score/src/wkspace.c: Removed work space area consistency checks.
	* libblock/include/rtems/ide_part_table.h: Functions are now
	deprecated.
	* libcsupport/include/rtems/libcsupport.h, libcsupport/src/calloc.c,
	libcsupport/src/malloc_boundary.c,
	libcsupport/src/malloc_initialize.c,
	libcsupport/src/malloc_report_statistics_plugin.c,
	libcsupport/src/malloc_statistics_helpers.c,
	libcsupport/src/malloc_walk.c, libcsupport/src/realloc.c,
	rtems/inline/rtems/rtems/region.inl: Update for heap API changes.

2009-09-14      Christian Mauderer <christian.mauderer@embedded-brains.de>

	* libcsupport/src/vprintk.c: Fixed warnings. Print nothing in case the
	pointer to the string is NULL.
2009-09-14 14:48:38 +00:00
Ralf Corsepius
98910dbd46 2009-09-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/issetugid.c: New (relocated from libnetworking).
	* libnetworking/rtems/issetugid.c: Remove.
	* libnetworking/Makefile.am: Reflect changes above.
	* libcsupport/Makefile.am: Reflect changes above.
2009-09-06 20:32:06 +00:00
Joel Sherrill
dea3eccb38 2009-09-06 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* libcsupport/src/free.c, libmisc/stackchk/check.c,
	rtems/include/rtems/rtems/region.h, rtems/src/regioncreate.c,
	rtems/src/regionextend.c, rtems/src/regiongetinfo.c,
	rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
	rtems/src/regionresizesegment.c, score/src/pheapallocate.c,
	score/src/pheapallocatealigned.c, score/src/pheapextend.c,
	score/src/pheapfree.c, score/src/pheapgetblocksize.c,
	score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c,
	score/src/pheapgetsize.c, score/src/pheapinit.c,
	score/src/pheapresizeblock.c, score/src/pheapwalk.c:
	Update for heap API changes.
	* score/include/rtems/score/apimutex.h,
	score/include/rtems/score/object.h: Documentation.
	* score/include/rtems/score/heap.h,
	score/include/rtems/score/protectedheap.h,
	score/inline/rtems/score/heap.inl, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapallocatealigned.c,
	score/src/heapextend.c, score/src/heapfree.c,
	score/src/heapgetfreeinfo.c, score/src/heapgetinfo.c,
	score/src/heapresizeblock.c, score/src/heapsizeofuserarea.c,
	score/src/heapwalk.c: Overall cleanup. Added boundary constraint to
	allocation function. More changes follow.
2009-09-06 15:24:08 +00:00
Joel Sherrill
b99a35a8fc 2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/malloc_initialize.c, sapi/src/exinit.c,
	score/src/threadstartmultitasking.c: Fix spacing.
	* libmisc/stackchk/check.c: Move variable into compiler specific conditional.
2009-08-28 18:26:05 +00:00
Joel Sherrill
8e582082e2 2009-08-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/termios_baud2num.c: B134 should return 134 not 135.
2009-08-15 20:59:23 +00:00