RTEMS Logo

RTEMS 4.10.2 On-Line Library


Semaphore Manager sem_close - Close a named semaphore

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

9.4.4: sem_close - Close a named semaphore

CALLING SEQUENCE:

int sem_close(
  sem_t *sem_close
);

STATUS CODES:

EACCES
The semaphore argument is not a valid semaphore descriptor.
ENOSYS
The function sem_close is not supported by this implementation.

DESCRIPTION:

The sem_close() function is used to indicate that the calling process is finished using the named semaphore indicated by sem. The function sem_close deallocates any system resources that were previously allocated by a sem_open system call. If sem_close() completes successfully it returns a 1, otherwise a value of -1 is return and errno is set.

NOTES:


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation