Commit Graph
596 Commits
Author SHA1 Message Date
Ralf Corsepius b9292646dc 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
2002-07-22 09:36:10 +00:00
Joel Sherrill f845e96e7b 2002-07-05 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/cancel.h, src/cancel.c, src/cancelrun.c,
	src/mqueue.c, src/pthread.c, src/semaphore.c, src/setcancelstate.c,
	src/setcanceltype.c, src/testcancel.c:  Per PR164, corrected the
	behavior of thread cancellation and did some cleanup as a side-effect.
2002-07-05 18:13:18 +00:00
Ralf Corsepius 705a070160 2002-07-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: RTEMS_TOP(../..).
2002-07-05 15:55:09 +00:00
Joel Sherrill 3c46587833 2002-07-01 Joel Sherrill <joel@OARcorp.com>
* Mega patch merge to change the format of the object IDs to
	loosen the dependency between the SCORE and the various APIs.
	There was considerable work to simplify the object name management
        and it appears that the name_table field is no longer needed.
	This patch also includes the addition of the internal mutex
	which is currently only used to protect some types of allocation
	and deallocation.  This significantly can reduce context
	switch latency under certain circumstances.  In particular,
	some heap/region operations were O(n) and had dispatching
	disabled.  This should help enormously.  With this merge,
	the patch is not as clean as it should be.  In particular,
	the documentation has not been modified to reflect the new object
	ID layout, the IDs in the test screens are not updated, and
	_Objects_Get_information needs to be a real routine not inlined.
	As part of this patch a lot of MP code for thread/proxy blocking
	was made conditional and cleaned up.
	* include/rtems/posix/key.h, src/cond.c, src/condinit.c, src/intr.c,
	src/key.c, src/keycreate.c, src/keydelete.c, src/killinfo.c,
	src/mqueue.c, src/mqueuecreatesupp.c, src/mutex.c, src/mutexinit.c,
	src/psignal.c, src/pthread.c, src/semaphore.c,
	src/semaphorecreatesupp.c:  Modified as part of above.
2002-07-01 22:33:47 +00:00
Ralf Corsepius 8c746fe197 2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove RTEMS_PROJECT_ROOT.
2002-07-01 09:59:55 +00:00
Ralf Corsepius da8f88a23e 2002-06-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use AC_CONFIG_AUX_DIR(../..).
	Add AC_PROG_RANLIB.
2002-06-27 04:00:20 +00:00
Ralf Corsepius a7c1897395 2002-06-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove references to RTEMS_BSP.
	* src/Makefile.am: Add libposix.a.
2002-06-26 12:52:38 +00:00
Ralf Corsepius 78c2a97196 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* Makefile.am: Include $(top_srcdir)/../automake/*.am.
	Use ../aclocal.
	* inline/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* macros/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* src/Makefile.am: Include $(top_srcdir)/../automake/*.am.
2002-06-17 09:07:32 +00:00
Joel Sherrill 6a3a81c830 2001-05-17 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Implemented missing routines
	to support message queue FDs.
2002-05-17 17:59:21 +00:00
Joel Sherrill dc7fb59bb7 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/utsname.h: Remove.
	* include/Makefile.am: Reflect changes above.
	* src/utsname.c: Remove.
	* src/Makefile.am: Reflect changes above.
2002-05-14 18:45:34 +00:00
Joel Sherrill 53092d1921 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/mqueue.h, inline/rtems/posix/mqueue.inl,
	src/mqueue.c, src/mqueueclose.c, src/mqueuecreatesupp.c,
	src/mqueuegetattr.c, src/mqueuenotify.c, src/mqueueopen.c,
	src/mqueuerecvsupp.c, src/mqueuesendsupp.c, src/mqueuesetattr.c:
	Per PR81 reworked to add a message queue descriptor separate from
	the underlying message queue.  This allows non-blocking to follow
	the "open" not the underlying queue.
2002-04-26 23:39:01 +00:00
Joel Sherrill 72d4273782 2002-04-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/psignal.c: Include <stdlib.h>.
2002-04-08 18:27:37 +00:00
Joel Sherrill aa08739a84 2002-04-08 Chris Johns <ccj@acm.org>
* Per PR142, make task switch extension its own list.
	* src/pthread.c (_POSIX_Threads_User_extensions): Reflect above.
2002-04-08 17:02:03 +00:00
Joel Sherrill 8eb825ef71 2002-04-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/getegid.c: Remove <errno.h>.
	* src/geteuid.c: Ditto.
	* src/getgid.c: Ditto.
	* src/getuid.c: Ditto.
	* src/getlogin.c: Move <errno.h>.
2002-04-03 14:21:44 +00:00
Joel Sherrill 58c3d04eb7 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* src/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* include/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* inline/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* macros/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:45:34 +00:00
Joel Sherrill b04ee63e3d 2002-03-01 Eric Norum <eric.norum@usask.ca>
* src/pthreadonce.c: Task is not preemptable while running a
	pthread_once init function.  This is slightly less heavy handed
	than disabling dispatching and seems better than consuming a mutex.
2002-03-01 17:49:57 +00:00
Joel Sherrill 089abb6d6b 2002-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/getegid.c: Add #include <rtems/userenv.h>.
	Remove #include <rtems/libio_.h>.
	* src/geteuid.c: Ditto.
	* src/getgid.c: Ditto.
	* src/getlogin.c: Ditto.
	* src/getuid.c: Ditto.
2002-01-16 22:52:27 +00:00
Joel Sherrill b736beb508 2001-01-16 Joel Sherrill <joel@OARcorp.com>
* inline/rtems/posix/mutex.inl (_POSIX_Mutex_Get_support): Corrected
	name of routine in header.
2002-01-16 22:01:19 +00:00
Joel Sherrill 8e9accfe59 2002-01-07 Joel Sherrill <joel@OARcorp.com>
* optman/, optman/.cvsignore, optman/Makefile.am: Removed entire
	contents of optman/ directory since it has been moved.
2002-01-07 14:15:09 +00:00
Joel Sherrill 7d9ec2d10c 2002-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_CONFIG_SRCDIR([src/pthreads.c])
	* src/psignal.c: #include <string.h>.
2002-01-06 20:10:04 +00:00
Joel Sherrill e180a77edd 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/clockgetres.c: Apply rtems_set_errno_and_return_minus_one.
	* src/clockgettime.c: Apply rtems_set_errno_and_return_minus_one.
	* src/clocksettime.c: Apply rtems_set_errno_and_return_minus_one.
	* src/killinfo.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueclose.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuecreatesupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuegetattr.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuenotify.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueopen.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuerecvsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuesendsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuesetattr.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueunlink.c: Apply rtems_set_errno_and_return_minus_one.
	* src/nanosleep.c: Apply rtems_set_errno_and_return_minus_one.
	* src/pthreadkill.c: Apply rtems_set_errno_and_return_minus_one.
	* src/pthreadsigmask.c: Apply rtems_set_errno_and_return_minus_one.
	* src/ptimer1.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sched.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semaphorecreatesupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semaphorewaitsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semclose.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semdestroy.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semgetvalue.c: Apply rtems_set_errno_and_return_minus_one.
	* src/seminit.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semopen.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sempost.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semunlink.c: Apply rtems_set_errno_and_return_minus_one.
	* src/setpgid.c: Apply rtems_set_errno_and_return_minus_one.
	* src/setsid.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigaction.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigaddset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigdelset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigemptyset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigfillset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigismember.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigpending.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigtimedwait.c: Apply rtems_set_errno_and_return_minus_one.
	* src/utsname.c: Apply rtems_set_errno_and_return_minus_one.
2002-01-04 18:28:24 +00:00
Joel Sherrill 46ea78a08c 2001-12-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove optman/Makefile from CONFIG_FILES.
	* Makefile.am: Remove optman from SUBDIRS.
2002-01-04 17:55:57 +00:00
Joel Sherrill 9201e6bdaf 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* optman/Makefile.am: Add multilib support. Remove ASM4FLAGS.
	* src/Makefile.am: Add multilib support.
2001-12-19 14:34:59 +00:00
Joel Sherrill 5be35eecb4 2001-10-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/Makefile.am: Remove.
	* include/rtems/Makefile.am: Remove.
	* include/rtems/posix/Makefile.am: Remove.
	* include/Makefile.am: Handle subdirs.
	* inline/rtems/Makefile.am: Remove.
	* inline/rtems/posix/Makefile.am: Remove.
	* inline/Makefile.am: Handle subdirs.
	* macros/rtems/Makefile.am: Remove.
	* macros/rtems/posix/Makefile.am: Remove.
	* macros/Makefile.am: Handle subdirs.
	* configure.ac: Reflect changes above.
2001-10-16 13:30:22 +00:00
Joel Sherrill 6638798649 2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
	* configure.in: Remove.
	* configure.ac: New file, generated from configure.in by autoupdate.
2001-10-11 19:07:37 +00:00
Joel Sherrill 194b5c708d 2001-09-28 Joel Sherrill <joel@OARcorp.com>
* src/mqueueopen.c, src/semopen.c: Clarify type on va_arg.
2001-09-28 23:14:08 +00:00
Joel Sherrill 614e671bde 2001-09-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/Makefile.am: Use 'PREINSTALL_FILES ='.
	* include/rtems/posix/Makefile.am: Use 'PREINSTALL_FILES ='.
	* include/Makefile.am: Use 'PREINSTALL_FILES ='.
	* inline/rtems/posix/Makefile.am: Use 'PREINSTALL_FILES ='.
	* macros/rtems/posix/Makefile.am: Use 'PREINSTALL_FILES ='.
2001-09-27 13:21:14 +00:00
Joel Sherrill 586a31b300 2001-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* optman/Makefile.am: Adapt ASM4FLAGS to automake-1.5 happy.
	* src/Makefile.am: Adapt INCLUDES to make automake-1.5 happy.
2001-09-24 18:20:22 +00:00
Joel Sherrill c8d66913ee 2001-09-13 Joel Sherrill <joel@OARcorp.com>
* src/sysconf.c: Fix typo syntax error accidentally committed.
2001-09-13 21:04:21 +00:00
Joel Sherrill bc51d7e98f 2001-09-13 Joel Sherrill <joel@OARcorp.com>
* src/mprotect.c: New file. Stub required by some gcc's to pass tests.
	In particular, about 350 ACATS tests fail if this is not present.
	* src/getpagesize.c: Ditto.
	* src/sysconf.c: Addition of Solaris value for _SC_STACK_PROT required
	to pass about 350 ACATS test cases.
	* src/Makefile.am: Added new files.
2001-09-13 13:23:37 +00:00
Joel Sherrill 856a44e4b6 2001-08-30 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Add cast so negation works.
2001-08-30 13:29:38 +00:00
Joel Sherrill 6fe68fc250 2001-08-16 Joel Sherrill <joel@OARcorp.com>
* src/mqueuesendsupp.c: Account for possibly blocking during the
	core send operation.
2001-08-16 19:55:13 +00:00
Joel Sherrill aed5ae00ee 2001-08-16 Joel Sherrill <joel@OARcorp.com>
* src/mqueuesendsupp.c: Account for possibly blocking during the
	core send operation.
2001-08-16 19:30:59 +00:00
Joel Sherrill a781bbffb4 2001-08-09 Joel Sherrill <joel@OARcorp.com>
* src/mqueuesendsupp.c: Unblocking message queue operations should
	NOT use _Thread_Executing for return status since it is permissible
	to invoke message send operations from an ISR.  This was reported
	by Suvrat Gupta <suvrat@utstar.com>.
2001-08-09 20:48:20 +00:00
Joel Sherrill aaf6063737 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* src/getegid.c, src/geteuid.c, src/getgid.c, src/getlogin.c,
	src/getuid.c: Now save their values in private user environment.
2001-05-24 21:38:10 +00:00
Joel Sherrill 53c3a2c6dc 2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add [-ansi -fasm] to RTEMS_PROG_CC_FOR_TARGET.
2001-05-07 13:16:57 +00:00
Joel Sherrill ab6d08ffc1 2001-03-19 Joel Sherrill <joel@OARcorp.com>
* sys/utsname.h: Added C++ wrapper.
2001-03-19 13:08:20 +00:00
Joel Sherrill 890f07cb83 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/rtems/posix/Makefile.am,
	include/sys/Makefile.am, inline/rtems/posix/Makefile.am,
	macros/rtems/posix/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:31:28 +00:00
Joel Sherrill f42b726174 2001-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add src/config.h
	* src/Makefile.am: Add INCLUDES += -I. to pickup config.h
	* src/.cvsignore: Add config.h and stamp-h
	* src/*.c: Add config.h support.
2001-01-24 14:17:28 +00:00
Joel Sherrill b978374039 2001-01-23 Joel Sherrill <joel@OARcorp.com>
* src/alarm.c: Eliminated use of C++ style comments.
2001-01-23 22:42:58 +00:00
Joel Sherrill a93baa4383 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/clockgetres.c: Fixed match problem.  We are not converting
	an interval to a timespec -- it is actually a real number of
	microseconds.
2001-01-22 14:19:05 +00:00
Joel Sherrill 32ba727717 2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
	src/ptimer1.c, include/rtems/posix/semaphore.h,
	inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
	src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
	Modifications to make CodeWarrior happy.
2001-01-22 13:46:28 +00:00
Joel Sherrill d9f61654c7 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/README.mqueue: Enhanced example.
2001-01-12 13:34:24 +00:00
Joel Sherrill 8f4bddd9c0 2000-12-19 Joel Sherrill <joel@OARcorp.com>
* src/pthreadgetschedparam.c: Do not set output parameters if
	the pointers are NULL.
2000-12-19 16:42:15 +00:00
Joel Sherrill 57fe91f8db 2000-12-06 Joel Sherrill <joel@OARcorp.com>
* src/pthreadgetcpuclockid.c: Add include of <rtems/system.h> to
	eliminate warning.
2000-12-06 15:30:58 +00:00
Joel Sherrill eb33fa5495 2000-12-01 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/cond.h: #if 0'ed out prototype of
	_POSIX_Condition_variables_Get to avoid conflict with macro
	implementation.
2000-12-01 22:05:32 +00:00
Joel Sherrill 2b2bda48c1 2000-12-01 Joel Sherrill <joel@OARcorp.com>
* Added macro support to POSIX API.  This is known to compile.
	* macros/rtems/posix/cond.inl, macros/rtems/posix/intr.inl,
	macros/rtems/posix/key.inl, macros/rtems/posix/mqueue.inl,
	macros/rtems/posix/mutex.inl, macros/rtems/posix/priority.inl,
	macros/rtems/posix/pthread.inl, macros/rtems/posix/semaphore.inl,
	macros/rtems/posix/timer.inl: New files.
	* configure.in: Removed error check for enabling macros.
	* rtems/posix/mutex.h: #if 0'ed out prototypes for inlined routines
	since you cannot have prototypes for macros.
	* macros/rtems/posix/Makefile.am: Added files.
2000-12-01 18:57:36 +00:00
Joel Sherrill 40b0597434 2000-11-30 Joel Sherrill <joel@OARcorp.com>
* inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
2000-11-30 14:32:56 +00:00
Joel Sherrill a3cdac302f 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
2000-11-27 16:58:41 +00:00
Joel Sherrill feead22618 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
2000-11-09 16:43:05 +00:00