Changed function names
This commit is contained in:
parent
339f69073b
commit
77bbae984a
@ -1,5 +1,5 @@
|
||||
#ifndef FIO_INCLUDED
|
||||
#define FIO_INCLUDED
|
||||
#ifndef EXT_INCLUDED
|
||||
#define EXT_INCLUDED
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@ -15,32 +15,32 @@
|
||||
#define MAX_EVENTS 10
|
||||
|
||||
|
||||
int fio_open(const char *path, int flags);
|
||||
int fio_close(int fd);
|
||||
int fio_invalidate(int *fd);
|
||||
int ext_open(const char *path, int flags);
|
||||
int ext_close(int fd);
|
||||
int ext_invalidate(int *fd);
|
||||
|
||||
FILE* fio_fopen(const char *path, const char *mode);
|
||||
FILE* fio_fdopen(int fd, const char *mode);
|
||||
int fio_fclose(FILE *stream);
|
||||
FILE* ext_fopen(const char *path, const char *mode);
|
||||
FILE* ext_fdopen(int fd, const char *mode);
|
||||
int ext_fclose(FILE *stream);
|
||||
|
||||
pid_t fio_fork(void);
|
||||
int fio_dup2(int oldfd, int newfd);
|
||||
int fio_pipe(int fds[2]);
|
||||
pid_t ext_fork(void);
|
||||
int ext_dup2(int oldfd, int newfd);
|
||||
int ext_pipe(int fds[2]);
|
||||
|
||||
int bi_popen(const char* const command, FILE** const in, FILE** const out);
|
||||
int bi_pclose(FILE** const in, FILE** const out, const int to_child[2], const int to_parent[2]);
|
||||
int execute_job(const char *path, char *const argv[], char *const envp[]);
|
||||
|
||||
int fio_socket(int domain, int type, int protocol);
|
||||
int fio_bind(int sockfd, const SA *addr,socklen_t addrlen);
|
||||
int fio_listen(int sockfd, int backlog);
|
||||
int fio_connect(int sockfd,const SA *addr, socklen_t addrlen);
|
||||
int fio_accept(int socket, SA *addr,socklen_t *addrlen);
|
||||
int ext_socket(int domain, int type, int protocol);
|
||||
int ext_bind(int sockfd, const SA *addr,socklen_t addrlen);
|
||||
int ext_listen(int sockfd, int backlog);
|
||||
int ext_connect(int sockfd,const SA *addr, socklen_t addrlen);
|
||||
int ext_accept(int socket, SA *addr,socklen_t *addrlen);
|
||||
|
||||
// Epoll or Fail
|
||||
int fio_epoll_create(int flags);
|
||||
int fio_epoll_ctl(int epfd, int op, int fd, uint32_t events);
|
||||
int fio_setnonblocking(int fd);
|
||||
int fio_epoll_wait(int epfd, struct epoll_event *events,int maxevents, int timeout);
|
||||
int ext_epoll_create(int flags);
|
||||
int ext_epoll_ctl(int epfd, int op, int fd, uint32_t events);
|
||||
int ext_setnonblocking(int fd);
|
||||
int ext_epoll_wait(int epfd, struct epoll_event *events,int maxevents, int timeout);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user