6#ifndef ZEPHYR_INCLUDE_POSIX_UNISTD_H_
7#define ZEPHYR_INCLUDE_POSIX_UNISTD_H_
11#ifdef CONFIG_NETWORKING
16#ifdef CONFIG_POSIX_API
24#ifdef CONFIG_POSIX_API
26extern int close(
int file);
29extern off_t lseek(
int file, off_t offset,
int whence);
32extern int rename(
const char *old,
const char *newp);
33extern int unlink(
const char *path);
34extern int stat(
const char *path,
struct stat *buf);
35extern int mkdir(
const char *path,
mode_t mode);
37#ifdef CONFIG_NETWORKING
38static inline int gethostname(
char *buf,
size_t len)
46unsigned sleep(
unsigned int seconds);
ZTEST_BMEM int count
Definition: main.c:33
int zsock_gethostname(char *buf, size_t len)
Get local host name.
static ZTEST_BMEM char buffer[8]
Test mailbox enhance capabilities.
Definition: test_mbox_api.c:566
__SIZE_TYPE__ ssize_t
Definition: types.h:28
unsigned int mode_t
Definition: types.h:14
BSD Sockets compatible API definitions.
unsigned long useconds_t
Definition: posix_types.h:21
int usleep(useconds_t useconds)
unsigned sleep(unsigned int seconds)
NMI_API sint8 close(SOCKET sock)