12#ifndef CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
13#define CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
30 int __attribute__ ((weak, alias (
"__posix_accept")))
37 chdir (const
char* path);
40 chmod (const
char* path, mode_t mode);
43 _chown (const
char* path, uid_t owner, gid_t group);
58 _execve (const
char* path,
char* const argv[],
char* const envp[]);
61 fcntl (
int fildes,
int cmd, ...);
67 _fstat (
int fildes, struct
stat* buf);
79 getcwd (
char* buf,
size_t size);
95 _gettimeofday (struct timeval* ptimeval,
void* ptimezone);
98 ioctl (
int fildes,
int request, ...);
101 _isatty (
int fildes);
104 _kill (pid_t pid,
int sig);
107 _link (const
char* existing, const
char* _new);
113 _lseek (
int fildes, off_t offset,
int whence);
116 mkdir (const
char* path, mode_t mode);
119 _open (const
char* path,
int oflag, ...);
128 _read (
int fildes,
void* buf,
size_t nbyte);
137 _readlink (const
char* path,
char* buf,
size_t bufsize);
140 recv (
int socket,
void* buffer,
size_t length,
int flags);
150 rename (const
char* oldfn, const
char* newfn);
156 rmdir (const
char* path);
159 select (
int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds,
160 struct timeval* timeout);
163 send (
int socket, const
void* buffer,
size_t length,
int flags);
166 sendmsg (
int socket, const struct msghdr* message,
int flags);
169 sendto (
int socket, const
void* message,
size_t length,
int flags,
173 setsockopt (
int socket,
int level,
int option_name, const
void* option_value,
183 socket (
int domain,
int type,
int protocol);
186 int __attribute__((weak, alias (
"__posix_socketpair")))
187 socketpair (
int domain,
int type,
int protocol,
int socket_vector[2]);
190 int __attribute__ ((weak, alias (
"__posix_stat")))
191 _stat (const
char* path, struct
stat* buf);
193#pragma GCC diagnostic push
194#if defined(__clang__)
195#elif defined(__GNUC__)
196#pragma GCC diagnostic ignored "-Wshadow"
199 int __attribute__ ((weak, alias (
"__posix_statvfs")))
202#pragma GCC diagnostic pop
204 void __attribute__ ((weak, alias (
"__posix_sync")))
208 _symlink (const
char* existing, const
char* _new);
211 system (const
char* command);
217 tcflush (
int fildes,
int queue_selector);
226 tcsetattr (
int fildes,
int optional_actions,
227 const struct
termios* termios_p);
230 _times (struct tms* buf);
233 truncate (const
char* path, off_t length);
236 _unlink (const
char* name);
239 utime (const
char* path, const struct utimbuf*
times);
242 _wait (
int* stat_loc);
245 _write (
int fildes, const
void* buf,
size_t nbyte);
248 writev (
int fildes, const struct
iovec* iov,
int iovcnt);
int shutdown(int socket, int how)
int chdir(const char *path)
int rename(const char *oldfn, const char *newfn)
int system(const char *command)
ssize_t recv(int socket, void *buffer, size_t length, int flags)
int tcsendbreak(int fildes, int duration)
int ioctl(int fildes, int request,...)
int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
int accept(int socket, struct sockaddr *address, socklen_t *address_len)
int ftruncate(int fildes, off_t length)
ssize_t recvmsg(int socket, struct msghdr *message, int flags)
ssize_t sendmsg(int socket, const struct msghdr *message, int flags)
int stat(const char *path, struct stat *buf)
int sockatmark(int socket)
int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len)
int mkdir(const char *path, mode_t mode)
int bind(int socket, const struct sockaddr *address, socklen_t address_len)
int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p)
int tcgetattr(int fildes, struct termios *termios_p)
int getpeername(int socket, struct sockaddr *address, socklen_t *address_len)
clock_t times(struct tms *buf)
ssize_t send(int socket, const void *buffer, size_t length, int flags)
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
struct dirent * readdir(DIR *dirp)
int truncate(const char *path, off_t length)
int getsockopt(int socket, int level, int option_name, void *option_value, socklen_t *option_len)
ssize_t sendto(int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len)
int listen(int socket, int backlog)
int rmdir(const char *path)
ssize_t writev(int fildes, const struct iovec *iov, int iovcnt)
ssize_t recvfrom(int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len)
int chmod(const char *path, mode_t mode)
char * getcwd(char *buf, size_t size)
int fcntl(int fildes, int cmd,...)
int fstatvfs(int fildes, struct statvfs *buf)
void rewinddir(DIR *dirp)
DIR * opendir(const char *dirname)
int utime(const char *path, const struct utimbuf *times)
int tcflush(int fildes, int queue_selector)
int getsockname(int socket, struct sockaddr *address, socklen_t *address_len)
int connect(int socket, const struct sockaddr *address, socklen_t address_len)
int socket(int domain, int type, int protocol)
int socketpair(int domain, int type, int protocol, int socket_vector[2])
#define __posix_sockatmark
#define __posix_getsockopt
#define __posix_rewinddir
#define __posix_readdir_r
#define __posix_getsockname
#define __posix_gettimeofday
#define __posix_setsockopt
#define __posix_ftruncate
#define __posix_getpeername
int __posix_tcgetattr(int fildes, struct termios *termios_p)
int __posix_tcflush(int fildes, int queue_selector)
int __posix_fstatvfs(int fildes, struct statvfs *buf)
int __posix_tcsetattr(int fildes, int optional_actions, const struct termios *termios_p)
int __posix_tcsendbreak(int fildes, int duration)