| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR 1268/cpukit
* libcsupport/include/rtems/assoc.h: There is no
rtems_assoc_ptr_by_value method.
|
|
|
|
|
|
|
| |
* libcsupport/src/newlibc.c: Add __ATTRIBUTE_IMPURE_PTR__
(Fixes "relocation truncated to fit: R_MIPS_GPREL16" against
_impure_ptr bug).
Fix abuse of _REENT_INIT().
|
|
|
|
| |
* libcsupport/src/printk.c: Add %p support.
|
|
|
|
|
|
|
| |
PR 1234/cpukit
* libcsupport/Makefile.am: Provide printk() based implementation of
__assert() to reduce dependencies in executables.
* libcsupport/src/__assert.c: New file.
|
|
|
|
|
|
| |
PR 1234/cpukit
* libcsupport/Makefile.am: Provide printk() based implementation of
__assert() to reduce dependencies in executables.
|
|
|
|
|
| |
* libcsupport/src/assocnamebad.c: Remove dead code. Use PRI* macros
to fix warnings.
|
|
|
|
|
| |
* libcsupport/Makefile.am: Move getpagesize.c to newlib-only
compiled files.
|
|
|
|
|
| |
Cherrypick from master 2007-02-21 18:10:50 UTC Ralf Corsepius <ralf.corsepius@rtems.org> 'Misc. hacks':
Makefile.maint
cpukit/libcsupport/src/getpagesize.c
|
|
|
|
|
|
| |
* libcsupport/src/gxx_wrappers.c: fix PR#690. Supply
taskvar dtor to plug memory leak. Applied patch attached
to PR#690.
|
| |
|
| |
|
| |
|
|
|
|
| |
* libcsupport/src/sync.c: Do not dereference NULL reent.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/termios.c: Change attribute of semaphore. It was
counting interrupts not acting as a condition synchronization mutex.
Since the caller did not always need to obtain the semaphore, it was
not being decremented until there was no data. This could occur after
hours of running a system and thousands of interrupts. The code in
fillBufferQueue would spin until it had consumed all of those
semaphore counts.
|
| |
|
|
|
|
|
|
| |
* libcsupport/src/malloc.c, libnetworking/rtems/rtems_glue.c,
libnetworking/sys/mbuf.h: Remove warnings -- use uintptr_t or
properly sized integers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* libcsupport/include/rtems/cdefs.h: Partial update from freebsd.
|
|
|
|
| |
* libcsupport/src/base_fs.c: Remove extra endif.
|
|
|
|
|
|
| |
PR 1101/rtems
* libcsupport/src/base_fs.c, rtems/src/taskcreate.c, rtems/src/tasks.c,
score/src/coremutex.c: Remove dead code.
|
|
|
|
| |
* libcsupport/include/rtems/libio.h: Add extern "C" {}.
|
|
|
|
| |
Patch from Steven Johnson <sjohnson@sakuraindustries.com>
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
PR 886/filesystem
* libcsupport/src/libio.c: fcntl(fd,F_GETFL) fails to set O_NONBLOCK if
the descriptor is in non-blocking mode.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* libcsupport/src/unixlibc.c, libfs/src/imfs/ioman.c: Change
rtems_io_register_name to take a const char *.
|
|
|
|
|
|
|
| |
PR 819/filesystem
* libcsupport/src/ttyname_r.c: Remove.
* libcsupport/src/ttyname.c: Partial update from FreeBSD.
* libcsupport/Makefile.am: Reflect changes above.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
PR 808/rtems_misc
* libcsupport/src/printk.c: Fix bug where specifying field width
crashed on pc386 BSP.
|
|
|
|
|
|
|
| |
PR 817/rtems
* libcsupport/src/gxx_wrappers.c: Rename
rtems_gxx_recursive_mutex_init_function to
rtems_gxx_recursive_mutex_init.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
* libcsupport/src/termios.c: Removed warnings.
|
|
|
|
|
| |
* libcsupport/include/ringbuf.h: Use uint8_t instead of char for raw
data buffer.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* libcsupport/include/inttypes.h: New header guard.
Fix doxygen preamble.
|
| |
|