Changeset c38f5f16 in rtems


Ignore:
Timestamp:
11/18/99 19:55:28 (24 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
97d7eaf8
Parents:
8c5cc6b2
Message:

Added EINVAL for passing a NULL pointer in.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/seminit.c

    r8c5cc6b2 rc38f5f16  
    3131  POSIX_Semaphore_Control   *the_semaphore;
    3232
     33  if ( !*sem )
     34    set_errno_and_return_minus_one( EINVAL );
     35   
     36
    3337  status = _POSIX_Semaphore_Create_support(
    3438    NULL,
  • cpukit/posix/src/seminit.c

    r8c5cc6b2 rc38f5f16  
    3131  POSIX_Semaphore_Control   *the_semaphore;
    3232
     33  if ( !*sem )
     34    set_errno_and_return_minus_one( EINVAL );
     35   
     36
    3337  status = _POSIX_Semaphore_Create_support(
    3438    NULL,
Note: See TracChangeset for help on using the changeset viewer.