Commit Graph
719 Commits
Author SHA1 Message Date
Joel Sherrill 60bf9c0ef6 2005-08-18 Andrew Sinclair <Andrew.Sinclair@elprotech.com>
PR 807/rtems
	* rtems/src/timerfireafter.c, rtems/src/timerserverfireafter.c: First
	patch returned without exitting dispatching critical section.
2005-08-18 13:46:38 +00:00
Joel Sherrill 49b7b17cfb 2005-08-17 Nuno Costa <nuno-costa@iol.pt>
PR 805/rtems
	* posix/include/rtems/posix/timer.h: Due to bad choice of error
	constants by original submitter, it was impossible to create more
	than 10 POSIX timers.
2005-08-17 22:57:41 +00:00
Joel Sherrill 55e012993c 2005-08-17 Andrew Sinclair <Andrew.Sinclair@elprotech.com>
PR 807/rtems
	* rtems/src/timerfireafter.c, rtems/src/timerserverfireafter.c,
	score/src/watchdoginsert.c: Tighten critical section checks on an ISR
	using the same timer being inserted by a lower priority ISR or
	interupt task.
2005-08-17 22:49:56 +00:00
Joel Sherrill b3b78ecffe 2005-08-17 Nickolay Semyonov <snob@oktetlabs.ru>
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-17 19:11:46 +00:00
Ralf Corsepius ba0e55a96e 2005-08-15 Ralf Corsepius <ralf.corsepius@rtems.org>
* posix/include/mqueue.h, posix/src/mqueuetimedreceive.c:
	ssize_t mq_timedreceive() (POSIX compliance).
2005-08-15 15:13:04 +00:00
Ralf Corsepius 61d1060b80 2005-08-15 Ralf Corsepius <ralf.corsepius@rtems.org>
* wrapup/Makefile.am: Use librtemscpu_a_LIBRARIES.
2005-08-15 08:47:20 +00:00
Joel Sherrill c949d6b0d3 2005-08-12 Chris Johns <chrisj@rtems.org>
PR 808/rtems_misc
	* libcsupport/src/printk.c: Fix bug where specifying field width
	crashed on pc386 BSP.
2005-08-12 23:56:16 +00:00
Ralf Corsepius a605cecde3 2005-08-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/nfs/bootp_subr.c: Don't include
	nfs/nfs.h, nfs/krpc.h.
2005-08-06 03:28:49 +00:00
Ralf Corsepius da6d75f6c2 2005-08-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_create.c,
	libfs/src/dosfs/msdos_eval.c, libfs/src/dosfs/msdos_file.c,
	libfs/src/dosfs/msdos_free.c, libfs/src/dosfs/msdos_fsunmount.c,
	libfs/src/dosfs/msdos_init.c, libfs/src/dosfs/msdos_misc.c,
	libfs/src/dosfs/msdos_mknod.c:
	Introduce msdos_status_t (dosfs statii are at least 32bit, not int).
2005-08-05 10:38:41 +00:00
Ralf Corsepius 66e365f258 2005-08-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* Makefile.am: Add libnetworking/memory.h
	* libnetworking/Makefile.am: Remove memory.h
2005-08-05 10:32:53 +00:00
Ralf Corsepius 6d1e301a09 2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 817/rtems
	* libcsupport/src/gxx_wrappers.c: Rename
	rtems_gxx_recursive_mutex_init_function to
	rtems_gxx_recursive_mutex_init.
2005-08-02 12:37:14 +00:00
Ralf Corsepius bebda1d751 2005-08-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/sys/syslog.h: Partial update from FreeBSD.
2005-08-01 06:30:26 +00:00
Eric Norum 51c1867659 Pass along errno from failed ftruncate(). 2005-07-13 02:19:30 +00:00
Joel Sherrill e9b4f29a40 Add PR. 2005-07-06 18:07:11 +00:00
Ralf Corsepius 707a733a1b 2005-07-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/lib/syslog.c: Fix spelling mistake.
	* libnetworking/sys/uio.h: Partial update from FreeBSD.
	* libnetworking/kern/kern_subr.c: Reflect changes above.
2005-07-06 09:57:10 +00:00
Ralf Corsepius f1397380bb 2005-07-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* libblock/include/rtems/ide_part_table.h: Add C++ guards.
2005-07-05 09:25:37 +00:00
Joel Sherrill 91683dc04d 2005-06-17 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Avoid use of struct mbuf to avoid unintended
	dependencies added by the RTEMS specific tap interface.
2005-06-17 14:37:24 +00:00
Joel Sherrill e36865dbaf 2005-06-09 Jacques Seronie Vivien <jacques.seronievivien@astrium.eads.net>
PR 790/rtems
	* sapi/src/extensioncreate.c, sapi/src/extensionident.c: Correct use of
	name. This was missed when the other ident services in rtems/src
	where changed.
2005-06-09 14:13:35 +00:00
Ralf Corsepius b9ad541486 2005-05-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/if.h: Partial update from FreeBSD.
	* libnetworking/netinet/if_ether.h: Remove BYTE_PACK.
	* libnetworking/netinet/ip_var.h: Remove BYTE_PACK.
2005-05-27 15:22:41 +00:00
Ralf Corsepius a8d7bab3a9 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/clnt.h: Partial update from FreeBSD.
2005-05-27 15:05:37 +00:00
Joel Sherrill 9d16b9c3f0 2005-05-26 Joel Sherrill <joel@OARcorp.com>
* libnetworking/lib/ftpfs.c, librpc/include/rpc/svc.h,
	librpc/src/rpc/get_myaddress.c, librpc/src/rpc/pmap_getmaps.c,
	librpc/src/rpc/pmap_getport.c: Remove warnings.
2005-05-27 00:37:13 +00:00
Ralf Corsepius 5e15693729 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/clnt.h, librpc/include/rpc/svc.h,
	src/rpc/pmap_rmt.c: Use void* instead of caddr_t.
	Cosmetics from FreeBSD.
2005-05-25 17:18:24 +00:00
Ralf Corsepius c8f1b2122d 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/auth_des.h: Remove (Unused, unsupported).
	* librpc/include/rpc/rpc.h, librpc/Makefile.am: Reflect removing
	auth_des.h.
2005-05-25 15:24:57 +00:00
Ralf Corsepius f48dc9acee 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rpc/rpc_com.h, include/rpc/rpc_msg.h,
	src/rpc/svc_simple.c: Minor fixes.
2005-05-25 15:07:58 +00:00
Ralf Corsepius c11cb9a5a9 More updates from FreeBSD. 2005-05-25 13:56:50 +00:00
Ralf Corsepius 984d922477 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/clnt.h, librpc/include/rpc/clnt_soc.h,
	src/rpc/clnt_perror.c: More updates from FreeBSD.
2005-05-25 13:03:15 +00:00
Ralf Corsepius b3da5b17a1 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/svc.h: Partial update from FreeBSD.
2005-05-25 12:25:50 +00:00
Ralf Corsepius 50e3b3f065 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/clnt.h: Partial update from FreeBSD.
2005-05-25 11:33:47 +00:00
Ralf Corsepius e9e2469ca5 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/clnt_soc.h, librpc/include/rpc/svc_soc.h:
	New (Partial update from FreeBSD).
	* librpc/Makefile.am: Reflect changes above.
2005-05-25 10:15:22 +00:00
Ralf Corsepius 4fe67294a1 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/des_crypt.h: Remove (Unused, unsupported).
	* librpc/Makefile.am: Reflect changes above.
2005-05-25 09:50:52 +00:00
Ralf Corsepius 351b0a18c3 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/des.h: Remove (Unused, unsupported).
	* librpc/Makefile.am: Reflect changes above.
2005-05-25 09:41:55 +00:00
Ralf Corsepius fc2d29de0a 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/src/rpc/auth_des.c,
	librpc/src/rpc/auth_time.c,
	librpc/src/rpc/authdes_prot.c,
	librpc/src/rpc/clnt_unix.c,
	librpc/src/rpc/crypt_client.c,
	librpc/src/rpc/des_crypt.c,
	librpc/src/rpc/des_soft.c,
	librpc/src/rpc/getpublickey.c,
	librpc/src/rpc/key_call.c,
	librpc/src/rpc/key_prot_xdr.c,
	librpc/src/rpc/svc_auth_des.c,
	librpc/src/rpc/svc_unix.c: Remove (Unused, obsolete).
	* librpc/Makefile.am: Reflect changes above.
2005-05-25 08:58:09 +00:00
Ralf Corsepius f724f4f4dc 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/src/rpc/PSD.doc/rpc.prog.ms,
	librpc/src/rpc/PSD.doc/rpcgen.ms,
	librpc/src/rpc/PSD.doc/nfs.rfc.ms,
	librpc/src/rpc/PSD.doc/xdr.rfc.ms,
	librpc/src/rpc/PSD.doc/rpc.rfc.ms,
	librpc/src/rpc/PSD.doc/xdr.nts.ms:
	Remove (Unused, obsolete).
	* librpc/Makefile.am: Reflect changes above.
2005-05-25 08:24:10 +00:00
Ralf Corsepius c2db91ed53 Fix typos 2005-05-24 05:10:00 +00:00
Ralf Corsepius 34d4a8199f 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/arpa/telnet.h: Remove (Unused, Non-POSIX/SUSV3).
	* libnetworking/Makefile.am: Reflect removing arpa/telnet.h.
2005-05-24 05:09:16 +00:00
Ralf Corsepius fb51b73b22 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/arpa/nameser.h: Update from FreeBSD.
	* libnetworking/libc/ns_parse.c: Reflect changes above.
2005-05-24 04:49:38 +00:00
Ralf Corsepius d35f18c6b9 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip.h: Remove BYTE_PACK.
	Add __packed. Partial update from FreeBSD.
	* libnetworking/netinet/ip_divert.c: Cosmetics from FreeBSD.
2005-05-24 04:25:49 +00:00
Eric Norum 2a94c85420 Add "ICMP panic avoided" diagnostic counter. 2005-05-24 00:36:35 +00:00
Ralf Corsepius 33e9ef06a5 2005-05-23 Ralf Corsepius <ralf.corsepius@rtems.org>
* Makefile.am: Remove ada.
	* configure.ac: Remove ada.
2005-05-23 07:29:56 +00:00
Ralf Corsepius c45aa34c38 2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip_icmp.c: Partial update from FreeBSD.
	* libnetworking/sys/mbuf.h: Partial update from FreeBSD.
2005-05-21 16:32:47 +00:00
Ralf Corsepius 3641cf08d0 2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip_icmp.h: Update from FreeBSD.
	Abandon BYTE_PACK.
2005-05-21 13:44:25 +00:00
Ralf Corsepius 8b77a1308b 2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/netdb.h: Update from FreeBSD.
2005-05-21 13:37:57 +00:00
Joel Sherrill 182813e164 2005-05-20 Sergei Organov <osv@javad.ru>
PR networking/772.
	* libnetworking/rtems/rtems_select.c (socket_select): fixed bug
	setting SB_WAIT flag of so_rcv instead of so_snd when FWRITE.
2005-05-20 19:58:32 +00:00
Joel Sherrill 15113c45ca Added PR775. 2005-05-20 19:25:33 +00:00
Joel Sherrill 5c1af4caf0 2005-05-20 Sergei Organov <osv@topconrd.ru>
PR 749/networking
	* libnetworking/rtems/rtems_showroute.c: Avoid NULL dereference.
2005-05-20 19:18:55 +00:00
Joel Sherrill 80f2885b70 2005-05-14 Sergei Organov <osv@topconrd.ru>
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.
2005-05-20 19:15:41 +00:00
Joel Sherrill 4e8c729f7f 2005-05-20 Eric Norum <norume@aps.anl.gov>
PR 793/networking
	* libnetworking/netinet/ip_icmp.c: Malicious ICMP packet causes panic.
	Just ignore it.
2005-05-20 18:56:42 +00:00
Chris Johns a4ad7597d1 2005-05-18 Chris Johns <chrisj@rtems.org>
* libmisc/capture/capture-cli.c: Fix the output of ctload when
	there exists a large number of tasks.
2005-05-18 00:04:17 +00:00
Jennifer Averett 6d03c94463 2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com>
* Makefile.am, preinstall.am: Added a common irq.h
	* include/rtems/irq.h: New file.
2005-05-17 14:53:01 +00:00
Jennifer Averett 81346bae50 2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com>
* Makefile.am, preinstall.am: Added a common irq.h
	* include/rtems/irq.h: New file.
2005-05-17 14:52:10 +00:00