Commit Graph
1288 Commits
Author SHA1 Message Date
Joel Sherrill 8d37343a5d Directive rtems_task_variable_get() added by Eric Norum. 2000-01-23 19:07:02 +00:00
Joel Sherrill f13b1c4e4a Removing unused file accidentally left in CVS. Discovered by
Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
2000-01-23 18:22:02 +00:00
Joel Sherrill 4a9b897304 Patch from Eric Norum <eric@cls.usask.ca> at the request of Jake
Janovetz <janovetz@tempest.ece.uiuc.edu> to return a status from
network initialization rather than panic'ing.  It changes a bunch
of rtems_panics to printfs and returns a status from
rtems_bsdnet_initialize_network().
2000-01-21 15:11:40 +00:00
Joel Sherrill c941a980cc Patch from Eric Norum <eric@cls.usask.ca> to implement this:
I'd like to propose a change to RTEMS task variables that I think would
    make them more useful.  I think that it is early enough in their
    existence to still make changes to their API.

    1) Change type from `int' to `void *'.
    2) Add extra argument to task_variable_add -- if non-NULL, a pointer to
    a `destructor' function to be called when the task exits.  This function
    would be called with that task's value of the task variable as its
    argument.  In many cases, the `dtor' function could be `free'.

    rtems_status_code rtems_task_variable_add (
      rtems_id tid, void **ptr, void (*dtor)(void *));
    rtems_status_code rtems_task_variable_delete (rtems_id tid, void **ptr);

    This would be all we'd need to cleanly and efficiently support C++
    per-thread exception information without dragging in all that POSIX API
    stuff.
2000-01-21 15:07:55 +00:00
Joel Sherrill e570c7617d Patch from Eric Norum <eric@cls.usask.ca> to remove warnings. 2000-01-21 14:49:31 +00:00
Joel Sherrill e49ebbfa1d Removed unused variable warning. 2000-01-14 18:37:59 +00:00
Joel Sherrill 4d1af2095e Removed no prototype of kill() warning. 2000-01-14 18:37:30 +00:00
Joel Sherrill 752badac5a Removed warning. 2000-01-14 14:55:37 +00:00
Joel Sherrill 53fb837afc POSIX message queues now include complete functionality including
blocking sends when the queue is full.  The SuperCore was enhanced
to support blocking on send.  The existing POSIX API was debugged
and numerous test cases were added to psxmsgq01 by Jennifer Averett.
SuperCore enhancements and resulting modifications to other APIs
were done by Joel.

There is one significant point of interpretation for the POSIX API.
What happens to threads already blocked on a message queue when the
mode of that same message queue is changed from blocking to non-blocking?
We decided to unblock all waiting tasks with an EAGAIN error just
as if a non-blocking version of the same operation had returned
unsatisfied.  This case is not discussed in the POSIX standard and
other implementations may have chosen differently.
2000-01-13 19:25:15 +00:00
Jennifer Averett 9c1c778d56 + Added comments 2000-01-13 18:32:38 +00:00
Jennifer Averett d65c376845 + Added and yellow line tested _CORE_message_queue_Flush_waiting_threads
and _CORE_message_queue_Insert_message for posix message queues.
+ Yellow line tested new source
2000-01-13 18:32:09 +00:00
Jennifer Averett e7d76dc8a9 Added comment. 2000-01-13 18:23:42 +00:00
Jennifer Averett d78c6fe3d3 + Comment cleanup 2000-01-13 18:22:32 +00:00
Jennifer Averett 661ff9a7f6 Removed referance to rtems error.
Added correct include file.
2000-01-13 18:22:09 +00:00
Jennifer Averett b0461cd4b4 Added comment to indicate this path does not occur. 2000-01-13 17:13:12 +00:00
Jennifer Averett ea2c1d6301 + Added code for waiting send
+ Yellow lined tested routine with Posix message queue test (01)
2000-01-12 20:22:04 +00:00
Jennifer Averett e38cb52d2d Debugged and yellow line tested routines. 2000-01-12 18:47:22 +00:00
Jennifer Averett 68b0569430 + Modified return codes
+ Added messsage size check
+ Debugged and yellowed out routine
2000-01-12 18:46:54 +00:00
Jennifer Averett bcbc50a81c + Added signal processing.
+ Yellow line tested source.
2000-01-12 18:44:19 +00:00
Jennifer Averett 352d01e0d3 + Modified to correct return codes.
+ Removed extra flag attribute from message queue structure.
+ Yellow-lined all posix message queue routines.
2000-01-12 18:43:21 +00:00
Jennifer Averett 70329c80ea + Changed call from core flush to core close routine. This flushes waiting
queues as well as the messages.
2000-01-12 18:41:14 +00:00
Jennifer Averett 399ba0690c + Removed name validation code (this was already done in nametoid. 2000-01-12 18:40:18 +00:00
Joel Sherrill 75582835c7 Fixed spacing. 2000-01-11 15:43:16 +00:00
Joel Sherrill 4fa5eaee52 This code did not return properly when a process oriented signal
was pending.  Reported by Wayne Bullaughey <wayneb@cacdsp.com>.
2000-01-11 15:42:05 +00:00
Joel Sherrill 19642e2cab Removed definition of USHRT_MAX to remove lots of redefinition warnings. 2000-01-10 21:22:23 +00:00
Joel Sherrill 70af0ea116 Don't look at the object information structure for threads/tasks
for APIs that are not configured.  This resulted in weird behavior
when ITRON was disabled on some targets.
2000-01-10 18:47:58 +00:00
Joel Sherrill 89184f94db Corrected spacing. 2000-01-06 15:31:24 +00:00
Joel Sherrill 0312d81f38 Fixed comment thanks to John M. Mills <jmills@tga.com>. 2000-01-05 23:01:05 +00:00
Joel Sherrill 5870ac5567 Added support for simple binary semaphores in addition to the high
power binary/mutex style semaphores already supported by RTEMS.  This
was done at the request of Eric Norum <eric@cls.usask.ca> in support
of his effort to port EPICS to RTEMS.  This change consisted of
changing the nesting_allowed boolean into a lock_nesting_behavior
enumerated value as well as allowing the core mutex object to optionally
support ensuring that the holder of a binary semaphore released it.
Finally, a more subtle enhancement was to allow the non-holder to release
a priority inheritance/ceiling mutex and still allow the holding task
to return to its original priority.
2000-01-05 22:19:21 +00:00
Joel Sherrill 28adcfd9ec Added message priority parameter returned by core support routine. 2000-01-05 22:14:09 +00:00
Joel Sherrill c0d405ca01 Added new message priority parameter as returned by core support routine. 2000-01-05 22:13:15 +00:00
Joel Sherrill 3a8b95e207 Spacing corrected. 2000-01-05 21:32:57 +00:00
Joel Sherrill db6ec79e6c Fixed recursive release for mutexes with nesting allowed. 2000-01-05 18:30:09 +00:00
Jennifer Averett b302d527c7 + Added return priority from message seize.
+ Changed priority to be based off of min and max int.
2000-01-05 17:20:07 +00:00
Jennifer Averett 466b8882ce Added the recording of the submit type. 2000-01-05 17:18:51 +00:00
Jennifer Averett 58243b42f5 + Added return of the message priority. 2000-01-05 17:18:08 +00:00
Jennifer Averett 65800393f6 Added priority conversion between POSIX and core. 2000-01-05 17:16:48 +00:00
Jennifer Averett c5858efa68 Added priority conversion between POSIX and core priorities. 2000-01-05 17:16:02 +00:00
Jennifer Averett 3ebd4c1254 + Changed priority to the POSIX priority type.
+ Added priority validation
+ Changed to call correct core routine.
+ Added priority conversion
+ Resolved return type problems.
2000-01-05 17:13:50 +00:00
Jennifer Averett fcd0c90630 + Added check for reading from a write only queue.
+ Added ability to return message priority from the core.
2000-01-05 17:11:36 +00:00
Jennifer Averett cecd206a65 + Added check for name greater than PATH_MAX. 2000-01-05 17:09:36 +00:00
Jennifer Averett e015106f68 + Changed to resonable default values for maxmsg and msgsize.
+ Added oflag tracking.
2000-01-05 17:08:56 +00:00
Jennifer Averett f602eebd64 Added mqueuetranslatereturncode.c. 2000-01-05 17:07:52 +00:00
Jennifer Averett 864ac98aa7 Added routines to translate to and from the core message queue return codes. 2000-01-05 17:06:45 +00:00
Joel Sherrill 590eb87d7e Added this file to contain an example program. 2000-01-04 17:08:16 +00:00
Joel Sherrill a148f561c2 Removed warnings. 2000-01-04 14:00:38 +00:00
Joel Sherrill 1dfc188ef5 Removed unitialized variable warning. 2000-01-04 13:58:47 +00:00
Joel Sherrill e065e8ae8b Increased stack size to 4K per Eric Norum. 2000-01-03 16:52:50 +00:00
Joel Sherrill 203859574c Increased minimum stack size so all tests will run. 2000-01-03 14:01:02 +00:00
Jennifer Averett 2e97c01e38 + Added routine to remove from namespace. 1999-12-23 22:11:01 +00:00