/******************************************************/
/* Copyright (C) 2008 Arch Rock Corporation 2008      */
/* License Agreement: refer to LICENSE.txt            */
/*                                                    */
/******************************************************/

#ifndef _UNISTD_H
#define _UNISTD_H   1
/*! A system call that closes a resource identifier (e.g socket, timerid,
 *  or a resource id) so that it may be reused.
 *  \return 0 on success.  On error, -1 is returned and errno is 
 *          set appropriately.
 *  \par Errors:
 *     EINVAL bad identifier
 *  \par 
 *     EBUSY resource may require closing sessions before
 *           freeing resource identifier.
 */
int16_t close(int16_t id);

#endif // _UNISTD_H
