| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* posix/include/aio.h, posix/include/devctl.h,
posix/include/intr.h, posix/include/mqueue.h,
posix/include/sched.h, posix/include/semaphore.h,
posix/src/ptimer.c, posix/src/ptimer1.c:
Include <unistd.h> instead of <sys/features.h> to pick up
_POSIX_* defines (Mandated by POSIX).
|
|
|
|
|
|
|
|
| |
* posix/src/mqueueunlink.c, posix/src/semunlink.c,
score/inline/rtems/score/object.inl,
score/macros/rtems/score/object.inl: _Objects_Is_local_id() should be
avoided in single CPU configurations but always available in the
Objects Handlers API.
|
|
|
|
|
|
| |
PR 294/rtems
* posix/src/pthread.c: POSIX thread exit handler now confirms that it
created the executing thread before implicitly exitting it.
|
|
|
|
|
|
|
|
|
| |
PR 628/rtems
* posix/src/killinfo.c, posix/src/pthreadkill.c, posix/src/ptimer1.c,
posix/src/sigaction.c, posix/src/sigaddset.c, posix/src/sigsuspend.c:
Signal set of 0 is supposed to return EINVAL. In addition
timer_create needed to return an error if the clock was not
CLOCK_REALTIME.
|
|
|
|
|
|
| |
PR 629/rtems
* cpukit/src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is
<= 0, not <.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/cond.h,
posix/include/rtems/posix/intr.h, posix/include/rtems/posix/key.h,
posix/include/rtems/posix/mqueue.h,
posix/include/rtems/posix/mutex.h,
posix/include/rtems/posix/pthread.h,
posix/include/rtems/posix/semaphore.h,
posix/include/rtems/posix/threadsup.h,
posix/include/rtems/posix/timer.h, posix/src/cond.c,
posix/src/intr.c, posix/src/key.c, posix/src/keycreate.c,
posix/src/keydelete.c, posix/src/keygetspecific.c,
posix/src/keyrundestructors.c, posix/src/keysetspecific.c,
posix/src/killinfo.c, posix/src/mqueue.c,
posix/src/mqueuerecvsupp.c, posix/src/mqueuesendsupp.c,
posix/src/mqueuetranslatereturncode.c, posix/src/mutex.c,
posix/src/posixintervaltotimespec.c,
posix/src/posixtimespecsubtract.c, posix/src/psignal.c,
posix/src/pthread.c, posix/src/ptimer1.c, posix/src/semaphore.c,
posix/src/sysconf.c: Convert to using c99 fixed size types.
|
| |
|
|
|
|
|
|
|
|
|
| |
PR 582/core
* posix/src/mqueue.c, posix/src/mqueuecreatesupp.c,
posix/src/mqueuedeletesupp.c, posix/src/mqueueunlink.c: Use memory
from workspace to avoid use of mutex during dispatch disable critical
section. Besides memory for object names should come from the
Workspace anyway.
|
|
|
|
|
|
| |
* src/config.h: Remove.
* Makefile.am: Remove src/config.h
AM_CPPFLAGS += -I$(top_builddir).
|
|
|
|
|
|
| |
* src/cancelrun.c, src/pthreadexit.c, src/pthreadjoin.c,
src/sigtimedwait.c: Remove unnecessary typecasts in assignments to
thread->Wait.return_argument.
|
|
|
|
|
| |
* src/cleanuppop.c, src/cleanuppush.c: Protect use of
_Workspace_Allocate and _Workspec_Free.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/rtems/posix/cond.h, include/rtems/posix/condmp.h,
include/rtems/posix/config.h, include/rtems/posix/intr.h,
include/rtems/posix/key.h, include/rtems/posix/mqueue.h,
include/rtems/posix/mqueuemp.h, include/rtems/posix/mutex.h,
include/rtems/posix/mutexmp.h, include/rtems/posix/posixapi.h,
include/rtems/posix/pthread.h, include/rtems/posix/pthreadmp.h,
include/rtems/posix/ptimer.h, include/rtems/posix/semaphore.h,
include/rtems/posix/semaphoremp.h, inline/rtems/posix/cond.inl,
inline/rtems/posix/intr.inl, inline/rtems/posix/key.inl,
inline/rtems/posix/mqueue.inl, inline/rtems/posix/mutex.inl,
inline/rtems/posix/pthread.inl, inline/rtems/posix/semaphore.inl,
inline/rtems/posix/timer.inl, 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/pthread.inl, macros/rtems/posix/semaphore.inl,
macros/rtems/posix/timer.inl, src/alarm.c, src/kill.c,
src/killinfo.c, src/mqueuetranslatereturncode.c, src/pause.c,
src/pthreadattrdestroy.c, src/pthreadattrgetdetachstate.c,
src/pthreadattrgetinheritsched.c, src/pthreadattrgetschedparam.c,
src/pthreadattrgetschedpolicy.c, src/pthreadattrgetscope.c,
src/pthreadattrgetstackaddr.c, src/pthreadattrgetstacksize.c,
src/pthreadattrinit.c, src/pthreadattrsetdetachstate.c,
src/pthreadattrsetinheritsched.c, src/pthreadattrsetschedparam.c,
src/pthreadattrsetschedpolicy.c, src/pthreadattrsetscope.c,
src/pthreadattrsetstackaddr.c, src/pthreadattrsetstacksize.c,
src/pthreadcreate.c, src/pthreaddetach.c, src/pthreadequal.c,
src/pthreadexit.c, src/pthreadgetcpuclockid.c,
src/pthreadgetcputime.c, src/pthreadgetschedparam.c,
src/pthreadjoin.c, src/pthreadkill.c, src/pthreadonce.c,
src/pthreadself.c, src/pthreadsetcputime.c,
src/pthreadsetschedparam.c, src/pthreadsigmask.c, src/sigaction.c,
src/sigaddset.c, src/sigdelset.c, src/sigemptyset.c,
src/sigfillset.c, src/sigismember.c, src/signal_2.c,
src/sigpending.c, src/sigprocmask.c, src/sigqueue.c,
src/sigsuspend.c, src/sigtimedwait.c, src/sigwait.c,
src/sigwaitinfo.c, src/ualarm.c: URL for license changed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 449/rtems:
* src/getegid.c: Remove (Moved to ../libcsupport/src).
* src/geteuid.c: Remove (Moved to ../libcsupport/src).
* src/getgid.c: Remove (Moved to ../libcsupport/src).
* src/getgroups.c: Remove (Moved to ../libcsupport/src).
* src/getlogin.c: Remove (Moved to ../libcsupport/src).
* src/getpgrp.c: Remove (Moved to ../libcsupport/src).
* src/getpid.c: Remove (Moved to ../libcsupport/src).
* src/getppid.c: Remove (Moved to ../libcsupport/src).
* src/getuid.c: Remove (Moved to ../libcsupport/src).
* src/setpgid.c: Remove (Moved to ../libcsupport/src).
* src/setsid.c: Remove (Moved to ../libcsupport/src).
* Makefile.am: Reflect changes above
|
|
|
|
|
|
|
| |
* src/mqueuenametoid.c, src/semaphorenametoid.c: Added ID to name
lookup service and changed name of id/name translation status code.
This propagated to multiple functions. The user API service added was
rtems_object_id_to_name()
|
|
|
|
|
|
| |
PR 92/rtems
* Makefile.am, src/alarm.c, src/psignal.c: Added ualarm() and usleep().
* src/ualarm.c, src/usleep.c: New files.
|
|
|
|
|
|
|
| |
* configure.ac: Remove (Merged-in into ../configure.ac)
* Makefile.am:
Reflect having merged configure.ac into ../configure.ac.
* src/config.h: New.
|
|
|
|
|
| |
* src/ptimer1.c: Correct problem which could lead to overflow in time
math.
|
|
|
|
|
| |
* src/mqueueopen.c: Actually open the message queue descriptor
so it is available for others to use.
|
|
|
|
|
| |
* src/cancelrun.c, src/cleanuppop.c: Get the last real node not the
permanent null last node.
|
|
|
|
|
|
|
|
|
| |
* include/Makefile.am: Remove.
* inline/Makefile.am: Remove.
* macros/Makefile.am: Remove.
* src/Makefile.am: Remove.
* Makefile.am: Merge-in removed Makefile.ams.
* configure.ac: Reflect changes above.
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
| |
* src/psignal.c: Fix counting problem which resulted in too many
entries being in the POSIX signals default behavior table.
|
| |
|
|
|
|
| |
* src/psignal.c: Remove duplication from rtems/posix/psignal.h.
|
|
|
|
|
|
| |
* src/adjtime.c: New file -- adjtime() support required by the
Network Time Protocol (NTP) port to RTEMS.
* src/Makefile.am: Modified to reflect above.
|
|
|
|
|
| |
* src/cancelrun.c: Remove check for PTHREAD_CANCELED not being defined
to ensure that newlib patch includes it.
|
|
|
|
| |
* src/mqueuecreatesupp.c: #include <stdlib.h> (malloc).
|
|
|
|
| |
* src/Makefile.am: Use .$(OBJEXT) instead of .o.
|
|
|
|
| |
* src/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* configure.ac: Remove references to RTEMS_BSP.
* src/Makefile.am: Add libposix.a.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* include/sys/utsname.h: Remove.
* include/Makefile.am: Reflect changes above.
* src/utsname.c: Remove.
* src/Makefile.am: Reflect changes above.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* src/psignal.c: Include <stdlib.h>.
|
|
|
|
|
| |
* Per PR142, make task switch extension its own list.
* src/pthread.c (_POSIX_Threads_User_extensions): Reflect above.
|
|
|
|
|
|
|
|
| |
* src/getegid.c: Remove <errno.h>.
* src/geteuid.c: Ditto.
* src/getgid.c: Ditto.
* src/getuid.c: Ditto.
* src/getlogin.c: Move <errno.h>.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* configure.ac: AC_CONFIG_SRCDIR([src/pthreads.c])
* src/psignal.c: #include <string.h>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* optman/Makefile.am: Add multilib support. Remove ASM4FLAGS.
* src/Makefile.am: Add multilib support.
|
|
|
|
| |
* src/mqueueopen.c, src/semopen.c: Clarify type on va_arg.
|
|
|
|
|
| |
* optman/Makefile.am: Adapt ASM4FLAGS to automake-1.5 happy.
* src/Makefile.am: Adapt INCLUDES to make automake-1.5 happy.
|
|
|
|
| |
* src/sysconf.c: Fix typo syntax error accidentally committed.
|