28#ifndef CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
29#define CMSIS_PLUS_POSIX_IO_C_POSIX_SYSCALLS_ALIASES_NEWLIB_H_
46 int __attribute__((weak, alias (
"__posix_accept")))
53 chdir (const
char* path);
56 chmod (const
char* path, mode_t mode);
59 _chown (const
char* path, uid_t owner, gid_t group);
74 _execve (const
char* path,
char* const argv[],
char* const envp[]);
77 fcntl (
int fildes,
int cmd, ...);
83 _fstat (
int fildes, struct
stat* buf);
96 getcwd (
char* buf,
size_t size);
112 _gettimeofday (struct timeval* ptimeval,
void* ptimezone);
115 ioctl (
int fildes,
int request, ...);
118 _isatty (
int fildes);
121 _kill (pid_t pid,
int sig);
124 _link (const
char* existing, const
char* _new);
130 _lseek (
int fildes, off_t offset,
int whence);
133 mkdir (const
char* path, mode_t mode);
136 _open (const
char* path,
int oflag, ...);
146 _read (
int fildes,
void* buf,
size_t nbyte);
156 _readlink (const
char* path,
char* buf,
size_t bufsize);
159 recv (
int socket,
void* buffer,
size_t length,
int flags);
169 rename (const
char* oldfn, const
char* newfn);
175 rmdir (const
char* path);
178 select (
int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds,
179 struct timeval* timeout);
182 send (
int socket, const
void* buffer,
size_t length,
int flags);
185 sendmsg (
int socket, const struct msghdr* message,
int flags);
188 sendto (
int socket, const
void* message,
size_t length,
int flags,
192 setsockopt (
int socket,
int level,
int option_name, const
void* option_value,
202 socket (
int domain,
int type,
int protocol);
205 int __attribute__((weak, alias (
"__posix_socketpair")))
206 socketpair (
int domain,
int type,
int protocol,
int socket_vector[2]);
209 int __attribute__((weak, alias (
"__posix_stat")))
210 _stat (const
char* path, struct
stat* buf);
212#pragma GCC diagnostic push
213#pragma GCC diagnostic ignored "-Wshadow"
215 int __attribute__((weak, alias (
"__posix_statvfs")))
218#pragma GCC diagnostic pop
220 void __attribute__((weak, alias (
"__posix_sync")))
224 _symlink (const
char* existing, const
char* _new);
227 system (const
char *command);
233 tcflush (
int fildes,
int queue_selector);
242 tcsetattr (
int fildes,
int optional_actions, const struct
termios *termios_p);
245 _times (struct tms* buf);
248 truncate (const
char* path, off_t length);
251 _unlink (const
char* name);
254 utime (const
char* path, const struct utimbuf*
times);
257 _wait (
int* stat_loc);
260 _write (
int fildes, const
void* buf,
size_t nbyte);
263 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)