Changeset 51cec29 in rtems


Ignore:
Timestamp:
Jul 22, 2009, 3:39:09 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
5c7c1ec
Parents:
17e3808
Message:

2009-07-22 Joel Sherrill <joel.sherrill@…>

  • posix/include/semaphore.h, posix/include/rtems/posix/semaphore.h: Move SEM_FAILED from private file to public file since it is defined by POSIX.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r17e3808 r51cec29  
     12009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/include/semaphore.h, posix/include/rtems/posix/semaphore.h:
     4        Move SEM_FAILED from private file to public file since it is defined
     5        by POSIX.
     6
    172009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/posix/include/rtems/posix/semaphore.h

    r17e3808 r51cec29  
    2727#include <semaphore.h>
    2828#include <rtems/score/coresem.h>
    29 
    30 #define SEM_FAILED (sem_t *) -1
    3129
    3230/*
  • cpukit/posix/include/semaphore.h

    r17e3808 r51cec29  
    3030 *  11.1 Semaphore Characteristics, P1003.1b-1993, p.219
    3131 */
     32typedef int sem_t;
    3233
    33 typedef int sem_t;
     34/*
     35 *  Bad semaphore Id
     36 */
     37#define SEM_FAILED (sem_t *) -1
    3438
    3539/*
    3640 *  11.2.1 Initialize an Unnamed Semaphore, P1003.1b-1993, p.219
    3741 */
    38 
    3942int sem_init(
    4043  sem_t         *sem,
     
    4649 *  11.2.2 Destroy an Unnamed Semaphore, P1003.1b-1993, p.220
    4750 */
    48 
    4951int sem_destroy(
    5052  sem_t *sem
     
    5658 *  NOTE: Follows open() calling conventions.
    5759 */
    58 
    5960sem_t *sem_open(
    6061  const char *name,
     
    6667 *  11.2.4 Close a Named Semaphore, P1003.1b-1993, p.224
    6768 */
    68 
    6969int sem_close(
    7070  sem_t *sem
     
    7474 *  11.2.5 Remove a Named Semaphore, P1003.1b-1993, p.225
    7575 */
    76 
    7776int sem_unlink(
    7877  const char *name
     
    8483 *  NOTE: P1003.4b/D8 adds sem_timedwait(), p. 27
    8584 */
    86 
    8785int sem_wait(
    8886  sem_t *sem
Note: See TracChangeset for help on using the changeset viewer.