13#ifndef CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
14#define CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
31 int __attribute__((weak, alias (
"__posix_accept")))
38 chdir (const
char* path);
41 chmod (const
char* path, mode_t mode);
44 _chown (const
char* path, uid_t owner, gid_t group);
59 _execve (const
char* path,
char* const argv[],
char* const envp[]);
62 fcntl (
int fildes,
int cmd, ...);
68 _fstat (
int fildes, struct
stat* buf);
81 getcwd (
char* buf,
size_t size);
97 _gettimeofday (struct timeval* ptimeval,
void* ptimezone);
100 ioctl (
int fildes,
int request, ...);
103 _isatty (
int fildes);
106 _kill (pid_t pid,
int sig);
109 _link (const
char* existing, const
char* _new);
115 _lseek (
int fildes, off_t offset,
int whence);
118 mkdir (const
char* path, mode_t mode);
121 _open (const
char* path,
int oflag, ...);
131 _read (
int fildes,
void* buf,
size_t nbyte);
141 _readlink (const
char* path,
char* buf,
size_t bufsize);
144 recv (
int socket,
void* buffer,
size_t length,
int flags);
154 rename (const
char* oldfn, const
char* newfn);
160 rmdir (const
char* path);
163 select (
int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds,
164 struct timeval* timeout);
167 send (
int socket, const
void* buffer,
size_t length,
int flags);
170 sendmsg (
int socket, const struct msghdr* message,
int flags);
173 sendto (
int socket, const
void* message,
size_t length,
int flags,
177 setsockopt (
int socket,
int level,
int option_name, const
void* option_value,
187 socket (
int domain,
int type,
int protocol);
190 int __attribute__((weak, alias (
"__posix_socketpair")))
191 socketpair (
int domain,
int type,
int protocol,
int socket_vector[2]);
194 int __attribute__((weak, alias (
"__posix_stat")))
195 _stat (const
char* path, struct
stat* buf);
197#pragma GCC diagnostic push
198#if defined(__clang__)
199#elif defined(__GNUC__)
200#pragma GCC diagnostic ignored "-Wshadow"
203 int __attribute__((weak, alias (
"__posix_statvfs")))
206#pragma GCC diagnostic pop
208 void __attribute__((weak, alias (
"__posix_sync")))
212 _symlink (const
char* existing, const
char* _new);
215 system (const
char *command);
221 tcflush (
int fildes,
int queue_selector);
230 tcsetattr (
int fildes,
int optional_actions, const struct
termios *termios_p);
233 _times (struct tms* buf);
236 truncate (const
char* path, off_t length);
239 _unlink (const
char* name);
242 utime (const
char* path, const struct utimbuf*
times);
245 _wait (
int* stat_loc);
248 _write (
int fildes, const
void* buf,
size_t nbyte);
251 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)