From 77bbae984a8ba698fc452917a3b19c48a8e5211f Mon Sep 17 00:00:00 2001 From: Randy Jordan Date: Fri, 15 Nov 2024 19:47:59 -0600 Subject: [PATCH] Changed function names --- include/exectd.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/include/exectd.h b/include/exectd.h index ed68b7b..67477c5 100644 --- a/include/exectd.h +++ b/include/exectd.h @@ -1,5 +1,5 @@ -#ifndef FIO_INCLUDED -#define FIO_INCLUDED +#ifndef EXT_INCLUDED +#define EXT_INCLUDED #include #include @@ -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