Changeset 568ebf3 in rtems


Ignore:
Timestamp:
May 24, 1996, 7:32:37 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
86fc81e
Parents:
abd604a
Message:

updates to fix typos

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/base/pthread.h

    rabd604a r568ebf3  
    1717/*
    1818 *  3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
    19  */
    20 
    21 int pthread_atfork(
    22   void (*prepare)(void),
    23   void (*parent)(void),
    24   void (*child)(void)
    25 );
     19 *
     20 *  RTEMS does not support processes, so we fall under this and do not
     21 *  provide this routine:
     22 *
     23 *  "Either the implementation shall support the pthread_atfork() function
     24 *   as described above or the pthread_atfork() funciton shall not be
     25 *   provided."
     26 */
    2627
    2728/*
     
    183184);
    184185
    185 #define PTHREAD_INHERIT_SCHED  0      /* scheduling policy and associated */
     186#define PTHREAD_INHERIT_SCHED  1      /* scheduling policy and associated */
    186187                                      /*   attributes are inherited from */
    187188                                      /*   the calling thread. */
    188 #define PTHREAD_EXPLICIT_SCHED 0      /* set from provided attribute object */
     189#define PTHREAD_EXPLICIT_SCHED 2      /* set from provided attribute object */
    189190
    190191int pthread_attr_setinheritsched(
     
    396397 *  This is used to statically initialize a pthread_once_t. Example:
    397398 *
    398  *  pthread_once_t once = PTHREAD_ONCE_INITIALIZER;
    399  */
    400  
    401 #define PTHREAD_ONCE_INITIALIZER  { TRUE, FALSE }
     399 *  pthread_once_t once = PTHREAD_ONCE_INIT;
     400 *
     401 *  NOTE:  This is named inconsistently -- it should be INITIALIZER.
     402 */
     403 
     404#define PTHREAD_ONCE_INIT  { 1, 0 }  /* is initialized and not run */
    402405 
    403406int pthread_once(
     
    486489 
    487490int pthread_getcpuclockid(
    488   pthread_t      pid,
     491  pthread_t  thread_id,
    489492  clockid_t *clock_id
    490493);
  • c/src/exec/posix/include/pthread.h

    rabd604a r568ebf3  
    1717/*
    1818 *  3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
    19  */
    20 
    21 int pthread_atfork(
    22   void (*prepare)(void),
    23   void (*parent)(void),
    24   void (*child)(void)
    25 );
     19 *
     20 *  RTEMS does not support processes, so we fall under this and do not
     21 *  provide this routine:
     22 *
     23 *  "Either the implementation shall support the pthread_atfork() function
     24 *   as described above or the pthread_atfork() funciton shall not be
     25 *   provided."
     26 */
    2627
    2728/*
     
    183184);
    184185
    185 #define PTHREAD_INHERIT_SCHED  0      /* scheduling policy and associated */
     186#define PTHREAD_INHERIT_SCHED  1      /* scheduling policy and associated */
    186187                                      /*   attributes are inherited from */
    187188                                      /*   the calling thread. */
    188 #define PTHREAD_EXPLICIT_SCHED 0      /* set from provided attribute object */
     189#define PTHREAD_EXPLICIT_SCHED 2      /* set from provided attribute object */
    189190
    190191int pthread_attr_setinheritsched(
     
    396397 *  This is used to statically initialize a pthread_once_t. Example:
    397398 *
    398  *  pthread_once_t once = PTHREAD_ONCE_INITIALIZER;
    399  */
    400  
    401 #define PTHREAD_ONCE_INITIALIZER  { TRUE, FALSE }
     399 *  pthread_once_t once = PTHREAD_ONCE_INIT;
     400 *
     401 *  NOTE:  This is named inconsistently -- it should be INITIALIZER.
     402 */
     403 
     404#define PTHREAD_ONCE_INIT  { 1, 0 }  /* is initialized and not run */
    402405 
    403406int pthread_once(
     
    486489 
    487490int pthread_getcpuclockid(
    488   pthread_t      pid,
     491  pthread_t  thread_id,
    489492  clockid_t *clock_id
    490493);
  • c/src/exec/posix/src/pthread.c

    rabd604a r568ebf3  
    6363}
    6464
    65 #ifdef NOT_IMPLEMENTED_YET
    66 
    6765/*PAGE
    6866 *
    6967 *  3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
    70  */
    71 
    72 int pthread_atfork(
    73   void (*prepare)(void),
    74   void (*parent)(void),
    75   void (*child)(void)
    76 )
    77 {
    78   return POSIX_NOT_IMPLEMENTED();
    79 }
    80 
    81 #endif
     68 *
     69 *  RTEMS does not support processes, so we fall under this and do not
     70 *  provide this routine:
     71 *
     72 *  "Either the implementation shall support the pthread_atfork() function
     73 *   as described above or the pthread_atfork() funciton shall not be
     74 *   provided."
     75 */
    8276
    8377/*PAGE
  • cpukit/posix/src/pthread.c

    rabd604a r568ebf3  
    6363}
    6464
    65 #ifdef NOT_IMPLEMENTED_YET
    66 
    6765/*PAGE
    6866 *
    6967 *  3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
    70  */
    71 
    72 int pthread_atfork(
    73   void (*prepare)(void),
    74   void (*parent)(void),
    75   void (*child)(void)
    76 )
    77 {
    78   return POSIX_NOT_IMPLEMENTED();
    79 }
    80 
    81 #endif
     68 *
     69 *  RTEMS does not support processes, so we fall under this and do not
     70 *  provide this routine:
     71 *
     72 *  "Either the implementation shall support the pthread_atfork() function
     73 *   as described above or the pthread_atfork() funciton shall not be
     74 *   provided."
     75 */
    8276
    8377/*PAGE
Note: See TracChangeset for help on using the changeset viewer.