summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Joel Sherrill2006-09-011-1/+2
|
* 2006-09-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-09-011-9/+9
| | | | | | * libcsupport/src/malloc.c, libnetworking/rtems/rtems_glue.c, libnetworking/sys/mbuf.h: Remove warnings -- use uintptr_t or properly sized integers.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-312-2/+7
| | | | | | | | | | | | | | | * ftpd/ftpd.c, libcsupport/include/sys/ioccom.h, libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c, libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h, libnetworking/net/if.c, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c, libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings due to improper use of int which shows up on 16 bit targets. Added ioctl_command_t since IOCTL command argument does not reliably fit into 16 bits.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-301-1/+1
| | | | | | | | | | | | | | * libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c, libnetworking/net/ethernet.h, libnetworking/net/if.h, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c, libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c, libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c, libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h, libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove warnings. Most of the warnings were 16/32 bit integer sizing issues. Some constants had L appended, some had casts add, some types were changed to reflect a bit width requirement.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-301-1/+1
| | | | | | * libcsupport/src/utsname.c, libnetworking/libc/res_debug.c, libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c, librpc/src/rpc/svc_simple.c: Remove printf format warnings.
* applied patches for PR1117/1118/1119/1120Thomas Doerfler2006-07-091-0/+4
|
* 2006-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2006-06-231-8/+10
| | | | * libcsupport/include/rtems/cdefs.h: Partial update from freebsd.
* PR 1101/rtemsJoel Sherrill2006-06-221-1/+0
| | | | * libcsupport/src/base_fs.c: Remove extra endif.
* 2006-06-22 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-06-221-21/+4
| | | | | | PR 1101/rtems * libcsupport/src/base_fs.c, rtems/src/taskcreate.c, rtems/src/tasks.c, score/src/coremutex.c: Remove dead code.
* 2006-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2006-06-181-0/+8
| | | | * libcsupport/include/rtems/libio.h: Add extern "C" {}.
* Provide customisable mbuf allocation.Eric Norum2006-05-251-0/+123
| | | | Patch from Steven Johnson <sjohnson@sakuraindustries.com>
* 2006-03-07 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill2006-03-071-1/+6
| | | | | | | PR 830/filesystem * libcsupport/src/termios.c: termios ioctl(FIONREAD) reported wrong number of characters. So add chars in low-level/raw buffer to total count.
* 2006-03-07 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill2006-03-071-11/+16
| | | | | | PR 886/filesystem * libcsupport/src/libio.c: fcntl(fd,F_GETFL) fails to set O_NONBLOCK if the descriptor is in non-blocking mode.
* Regenerate.Ralf Corsepius2006-01-141-2/+4
|
* Remove all-local.Ralf Corsepius2006-01-121-4/+0
|
* CleanupsRalf Corsepius2006-01-121-4/+0
|
* include and use inttypes.h.Ralf Corsepius2006-01-101-2/+2
|
* 2006-01-08 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-01-081-3/+3
| | | | | * libcsupport/src/unixlibc.c, libfs/src/imfs/ioman.c: Change rtems_io_register_name to take a const char *.
* 2005-08-31 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-08-313-125/+40
| | | | | | | PR 819/filesystem * libcsupport/src/ttyname_r.c: Remove. * libcsupport/src/ttyname.c: Partial update from FreeBSD. * libcsupport/Makefile.am: Reflect changes above.
* 2005-08-17 Nickolay Semyonov <snob@oktetlabs.ru>Joel Sherrill2005-08-171-1/+1
| | | | | | | | PR 744/filesystem * libcsupport/src/unlink.c, libfs/src/dosfs/msdos_eval.c: DOSFS did not support permissions on directories so the check performed by unlink would always fail. The unlink code was modified to support a not supported status being returned.
* 2005-08-12 Chris Johns <chrisj@rtems.org>Joel Sherrill2005-08-121-4/+2
| | | | | | PR 808/rtems_misc * libcsupport/src/printk.c: Fix bug where specifying field width crashed on pc386 BSP.
* 2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-08-021-1/+1
| | | | | | | PR 817/rtems * libcsupport/src/gxx_wrappers.c: Rename rtems_gxx_recursive_mutex_init_function to rtems_gxx_recursive_mutex_init.
* Pass along errno from failed ftruncate().Eric Norum2005-07-131-0/+1
|
* 2005-05-14 Sergei Organov <osv@topconrd.ru>Joel Sherrill2005-05-201-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 746/rtems Optimize realloc(). The problem is that realloc() can neither grow nor shrink efficiently the current memory region without support from underlying heap/region modules. The patch introduces one new routine for each of heap and region modules, _Heap_Resize_block(), and rtems_region_resize_segment(), respectively, and uses the latter to optimize realloc(). The implementation of _Heap_Resize_block() lead to changing of the heap allocation strategy: now the heap manager, when splits larger free block into used and new free parts, makes the first part of the block used, not the last one as it was before. Due to this new strategy, _Heap_Resize_block() never needs to change the user pointer. Caveat: unlike previous heap implementation, first few bytes of the contents of the memory allocated from the heap are now almost never all zero. This can trigger bugs in client code that have not been visible before this patch. * libcsupport/src/malloc.c (realloc): try to resize segment in place using new rtems_region_resize_segment() routine before falling back to the malloc()/free() method. * score/src/heap.c: (_Heap_Initialize): change initial heap layout to reflect new allocation strategy of using of the lower part of a previously free block when splitting it for the purpose of allocation. (_Heap_Block_allocate): when split, make the lower part used, and leave the upper part free. Return type changed from Heap_Block* to uint32_t. * score/include/rtems/score/heap.h: (Heap_Statistics): added 'resizes' field. (Heap_Resize_status): new enum. (_Heap_Resize_block): new routine. (_Heap_Block_allocate): return type changed from Heap_Block* to uint32_t. * score/src/heapwalk.c: reflect new heap layout in checks. * score/src/heapsizeofuserarea.c: more assertions added. * score/src/heapresizeblock.c: new file. (_Heap_Resize_block): new routine. * score/src/heapfree.c: reverse the checks _Heap_Is_block_in() and _Heap_Is_prev_used() on entry to be in this order. * score/src/heapallocate.c, score/src/heapallocatealigned.c: ignore return value of _Heap_Block_allocate(). * score/Makefile.am (HEAP_C_FILES): added src/heapresizeblock.c. * rtems/include/rtems/rtems/region.h: (rtems_region_resize_segment): new interface routine. (_Region_Process_queue): new internal routine called from rtems_region_resize_segment() and rtems_region_return_segment(). * rtems/src/regionreturnsegment.c: move queue management code into the new internal routine _Region_Process_queue() and call it. * rtems/src/regionresizesegment.c: new file. (rtems_region_resize_segment): new interface routine. * rtems/src/regionprocessqueue.c: new file. (_Region_Process_queue): new internal routine containing queue management code factored out from 'regionreturnsegment.c'. * rtems/Makefile.am (REGION_C_FILES): Added src/regionresizesegment.c, and src/regionprocessqueue.c. * ada/rtems.adb, ada/rtems.ads: Added Region_Resize_Segment.
* Partial update from FreeBSD.Ralf Corsepius2005-05-091-6/+5
|
* 2005-05-06 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-05-061-2/+2
| | | | * libcsupport/src/termios.c: Removed warnings.
* 2005-05-03 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-05-031-1/+1
| | | | | * libcsupport/include/ringbuf.h: Use uint8_t instead of char for raw data buffer.
* Auto-generated update.Ralf Corsepius2005-02-191-1/+1
|
* Cosmetics.Ralf Corsepius2005-02-081-2/+0
|
* Split preinstallation rules in to separate files (preinstall.am).Ralf Corsepius2005-02-081-134/+6
|
* New.Ralf Corsepius2005-02-081-0/+112
|
* 2005-02-04 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-02-041-2/+2
| | | | | | | * libcsupport/include/rtems/libio.h: Use rtems_id for semaphores. Use char* for buffer. * backward/ftpd.h: New. * Makefile.am: Reflect having added backward/ftpd.h.
* 2005-02-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-02-022-9/+11
| | | | | | | | * libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings.
* 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-281-4/+4
| | | | | * libcsupport/include/inttypes.h: New header guard. Fix doxygen preamble.
* New header guards.Ralf Corsepius2005-01-2819-38/+38
|
* 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-281-2/+0
| | | | | | | * itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am: Remove AM_CPPFLAGS += -I$(top_builddir).
* 2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-272-0/+8
| | | | | * libcsupport/src/lstat.c, libcsupport/src/readdir_r.c: Include config.h.
* 2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-272-79/+47
| | | | | | | * libcsupport/include/tar.h: New (SUSv3). * Makefile.am: Integrate newlib-specific headers. Add libcsupport/include/tar.h. * libcsupport/Makefile.am: Remove newlib-specific headers.
* 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-241-0/+10
| | | | * libcsupport/include/stdint.h: Use __PTRDIFF_TYPE for intptr_t.
* 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-181-3/+3
| | | | * libcsupport/src/termios.c: Remove unnecessary type casts.
* Fix typos.Ralf Corsepius2005-01-141-2/+2
|
* 2005-01-13 Joel Sherrill <joel@oarcorp.com>Ralf Corsepius2005-01-131-1/+28
| | | | | | Ralf Corsepius <ralf.corsepius@rtems.org> * libcsupport/src/gxx_wrapper.c: Reflect GCC-4.0's gthr-rtems.h.
* 2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-071-1/+1
| | | | | | | | * httpd/Makefile.am, itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am, libnetworking/Makefile.am, librpc/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am, score/Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
* 2005-01-01 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-011-10/+3
| | | | | | | | | * automake/compile.am, httpd/Makefile.am, itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am, libnetworking/Makefile.am, librpc/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am, score/Makefile.am, wrapup/Makefile.am: Remove build-variant support.
* Remove (Obsolete).Ralf Corsepius2004-12-291-4/+0
|
* Add doxygen preamble.Ralf Corsepius2004-12-0221-27/+95
|
* 2004-11-29 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-11-291-2/+2
| | | | | | | | | | | | * libcsupport/src/mallocfreespace.c, rtems/Makefile.am, rtems/include/rtems/rtems/region.h, score/Makefile.am, score/include/rtems/score/heap.h, score/src/heapgetinfo.c: Add capability to return information about just the free blocks in a region or heap. Also changed the semantics of free space available to be the largest block of memory that can be allocated. * rtems/src/regiongetfreeinfo.c, score/src/heapgetfreeinfo.c: New files. : score/include/rtems/score/object.h, score/src/objectinitializeinformation.c: Remove warning.
* 2004-11-22 Joel Sherrill <joel@OARcorp.com>Jennifer Averett2004-11-221-1/+1
| | | | * libcsupport/src/ttyname_r.c: Remove warning for using _fstat.
* 2004-11-20 Ralf Corsepius <ralf.corsepiu@rtems.org>Ralf Corsepius2004-11-201-4/+3
| | | | * libcsupport/include/stdint.h: Move mal-placed comment.
* 2004-11-09 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-11-091-1/+1
| | | | * libcsupport/include/stdint.h: Fixed name in @file.