# unistd.h File Reference

This graph shows which files directly or indirectly include this file:

## Defines
#define | _UNISTD_H 1
## Functions
int16_t | close (int16_t id)

## Define Documentation

#define _UNISTD_H 1

## Function Documentation

int16_t close | ( | int16_t | id | ) |

A system call that closes a resource identifier (e.g socket, timerid, or a resource id) so that it may be reused.

Returns:
  0 on success. On error, -1 is returned and errno is set appropriately.

Errors:
  EINVAL bad identifier

  EBUSY resource may require closing sessions before freeing resource identifier.