#ifndef _UNISTD_H_
#define _UNISTD_H_

# include <sys/unistd.h>

#ifdef __cplusplus
extern "C" {
#endif
#if defined(__USE_FIXED_PROTOTYPES__) || (defined(__cplusplus) \
    ? (!defined(__STRICT_ANSI__) || defined(_POSIX_SOURCE)) \
    : (defined(__STRICT_ANSI__) && defined(_POSIX_SOURCE)))
extern int getopt (int, char *const *, const char *);
#endif /* defined(__USE_FIXED_PROTOTYPES__) || ... */
#if defined(__USE_FIXED_PROTOTYPES__) \
   || (defined(__STRICT_ANSI__) && defined(_XOPEN_EXTENDED_SOURCE))
extern int lockf (int, int, long );
extern int gethostid (void);
extern int gethostname (char *, __SIZE_TYPE__ );
extern long readlink (const char *, char *, __SIZE_TYPE__ );
#endif /* defined(__USE_FIXED_PROTOTYPES__) || ... */
#ifdef __cplusplus
}
#endif
#endif /* _UNISTD_H_ */
