2.2.1 _close_r—Reentrant version of close

Synopsis

#include <reent.h>
int _close_r(struct _reent *ptr, int fd);

Description
This is a reentrant version of close. It takes a pointer to the global data block, which holds errno.