summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2002-12-02 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-12-024-4/+6
| | | | | | * include/rtems/posix/timer.h, src/keygetspecific.c, src/posixtimespecsubtract.c, src/ptimer1.c, src/semunlink.c: Added casts to eliminate warnings on 16-bit targets like the h8300.
* Return error rather than panic if argument is unsupported.Eric Norum2002-11-291-1/+6
|
* 2002-10-30 Eric Norum <eric.norum@usask.ca>Joel Sherrill2002-11-051-2/+1
| | | | | * src/psignal.c: Fix counting problem which resulted in too many entries being in the POSIX signals default behavior table.
* Reflect changes to signal names in newlib sys/signal.h.Eric Norum2002-10-311-11/+11
|
* 2002-09-14 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-09-141-13/+0
| | | | * src/psignal.c: Remove duplication from rtems/posix/psignal.h.
* 2002-08-21 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-08-212-4/+64
| | | | | | * src/adjtime.c: New file -- adjtime() support required by the Network Time Protocol (NTP) port to RTEMS. * src/Makefile.am: Modified to reflect above.
* 2002-08-09 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-08-091-5/+0
| | | | | * src/cancelrun.c: Remove check for PTHREAD_CANCELED not being defined to ensure that newlib patch includes it.
* 2002-07-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-07-311-5/+1
| | | | * src/mqueuecreatesupp.c: #include <stdlib.h> (malloc).
* 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-07-221-1/+1
| | | | * src/Makefile.am: Use .$(OBJEXT) instead of .o.
* 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-07-221-3/+1
| | | | * src/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
* 2002-07-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-07-058-26/+82
| | | | | | | * 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-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-07-0115-108/+127
| | | | | | | | | | | | | | | | | | | | | | | | * 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-06-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-06-261-1/+5
| | | | | * configure.ac: Remove references to RTEMS_BSP. * src/Makefile.am: Add libposix.a.
* 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-06-171-4/+4
| | | | | | | | | * 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-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-05-141-1/+1
| | | | | | | * include/sys/utsname.h: Remove. * include/Makefile.am: Reflect changes above. * src/utsname.c: Remove. * src/Makefile.am: Reflect changes above.
* 2001-04-26 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-04-269-70/+107
| | | | | | | | | | * 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-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-04-081-0/+1
| | | | * src/psignal.c: Include <stdlib.h>.
* 2002-04-08 Chris Johns <ccj@acm.org>Joel Sherrill2002-04-081-0/+1
| | | | | * Per PR142, make task switch extension its own list. * src/pthread.c (_POSIX_Threads_User_extensions): Reflect above.
* 2002-04-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-04-035-5/+1
| | | | | | | | * 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-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-03-281-1/+0
| | | | | | | | | | | * 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-01 Eric Norum <eric.norum@usask.ca>Joel Sherrill2002-03-011-7/+9
| | | | | | * 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-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-01-165-12/+10
| | | | | | | | | * 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-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-01-061-0/+1
| | | | | * configure.ac: AC_CONFIG_SRCDIR([src/pthreads.c]) * src/psignal.c: #include <string.h>.
* 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-01-0437-108/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2001-12-191-1/+1
| | | | | * optman/Makefile.am: Add multilib support. Remove ASM4FLAGS. * src/Makefile.am: Add multilib support.
* 2001-09-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-09-282-2/+2
| | | | * src/mqueueopen.c, src/semopen.c: Clarify type on va_arg.
* 2001-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2001-09-241-1/+1
| | | | | * optman/Makefile.am: Adapt ASM4FLAGS to automake-1.5 happy. * src/Makefile.am: Adapt INCLUDES to make automake-1.5 happy.
* 2001-09-13 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-09-131-1/+1
| | | | * src/sysconf.c: Fix typo syntax error accidentally committed.
* 2001-09-13 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-09-134-5/+58
| | | | | | | | | * 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-08-16 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-08-161-1/+12
| | | | | * src/mqueuesendsupp.c: Account for possibly blocking during the core send operation.
* 2001-08-09 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-08-091-3/+4
| | | | | | | * 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>.
* 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>Joel Sherrill2001-05-245-1/+38
| | | | | * src/getegid.c, src/geteuid.c, src/getgid.c, src/getlogin.c, src/getuid.c: Now save their values in private user environment.
* 2001-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2001-01-24181-0/+682
| | | | | | | * 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-23 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-01-231-1/+1
| | | | * src/alarm.c: Eliminated use of C++ style comments.
* 2001-01-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-01-221-2/+5
| | | | | | * 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 Michael Hamel <mhamel@adi.co.nz>Joel Sherrill2001-01-225-8/+8
| | | | | | | | * 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-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-01-121-1/+12
| | | | * src/README.mqueue: Enhanced example.
* 2000-12-19 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-12-191-4/+7
| | | | | * src/pthreadgetschedparam.c: Do not set output parameters if the pointers are NULL.
* 2000-12-06 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-12-061-0/+2
| | | | | * src/pthreadgetcpuclockid.c: Add include of <rtems/system.h> to eliminate warning.
* 2000-11-27 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-11-271-0/+15
| | | | * src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
* 2000-10-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-10-317-7/+7
| | | | | | | | | | | | | | | | | | | * include/Makefile.am: Updated to reflect files merged into newlib. This resulted in some definitions moving to other files and thus some secondary effects in RTEMS source code. * include/unistd.h: Removed. Now use newlib's. * include/rtems/posix/mqueue.h: Add include of <signal.h>. * include/rtems/posix/threadsup.h: Add include of <sys/signal.h> * src/execv.c: Corrected prototype to agree with newlib. * src/execve.c: Corrected prototype to agree with newlib. * src/execvp.c: Corrected prototype to agree with newlib. * src/psignal.c: Rewrote reference to <siginfo.h> in comment since that file no longer exists. * src/pthreadkill.c: Added include of <signal.h>. * src/sigaction.c: Added include of <signal.h>. * src/sigtimedwait.c: Rewrote reference to <siginfo.h> in comment since that file no longer exists. *
* 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2000-09-051-0/+1
| | | | * src/Makefile.am, optman/Makefile.am: Include compile.am.
* 2000-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-08-3076-76/+76
| | | | | | * Many files: Moved posix/include/rtems/posix/seterr.h to score/include/rtems/seterr.h so it would be available within all APIs.
* 2000-08-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2000-08-251-43/+5
| | | | | | | | * inline/rtems/posix/timer.inl, include/rtems/posix/timer.h, inline/rtems/posix/Makefile.am, src/ptimer1.c: Redid the style of src/ptimer1.c. Continued effort to make the POSIX Timer implementation match that of other managers. Added data structures required to use SuperCore Object Handler.
* 2000-08-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-08-151-12/+1
| | | | * src/ptimer1.c: Minor formatting fixes.
* 2000-08-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-08-152-43/+14
| | | | | | | | * src/ptimer1.c: Removed unused routine PRINT_ERRNO_S. * src/ptimer1.c: Removed unnecessary routine COPY_ITIMERSPEC_S and used structure copy instead. * src/ptimer1.c: Renamed timer_alive_t to POSIX_Timer_Control. * include/rtems/posix/timer.h: Ditto.
* 2000-08-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-08-151-48/+20
| | | | | * posix/src/ptimer1.c: Switched to using set_errno_and_return_minus_one() to ensure that errno was always set.
* 2000-08-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-08-151-10/+5
| | | | | * posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get to use SuperCore _TOD_Current variable.
* Port of RTEMS to the Texas Instruments C3x/C4x DSP families includingJoel Sherrill2000-07-261-1/+6
| | | | | | | | | | | a BSP (c4xsim) supporting the simulator included with gdb. This port was done by Joel Sherrill and Jennifer Averett of OAR Corporation. Also included with this port is a space/time optimization to eliminate FP context switch management on CPUs without hardware or software FP. An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8) on this CPU. This required addressing alignment checks and assumptions as well as fixing code that assumed sizeof(unsigned32) == 4.
* Fixed problem reported by Victor V. Vengerov <Victor.Vengerov@oktet.ru>Joel Sherrill2000-07-071-1/+7
| | | | | | where alarm() did not correctly account for the watchdog start_time and stop_time fields being based on ticks not seconds. This resulted in alarm() returning a bogus number of seconds remaining.