aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-04-05 09:49:57 +0100
committerRon Yorston <rmy@pobox.com>2020-04-05 10:04:56 +0100
commit2b4c25bd2cac034cdc52d29d6bb8c675c87a731c (patch)
tree5f542026304bb44ce738226acecfb9a9a0c84e8f /include
parent1365eb25a7dfd3e42229691355d910ff32b92361 (diff)
downloadbusybox-w32-2b4c25bd2cac034cdc52d29d6bb8c675c87a731c.tar.gz
busybox-w32-2b4c25bd2cac034cdc52d29d6bb8c675c87a731c.tar.bz2
busybox-w32-2b4c25bd2cac034cdc52d29d6bb8c675c87a731c.zip
win32: new functions: getpeername(2), mingw_spawn_detach()
Implement getpeername(2). Add mingw_spawn_detach() to allow the spawned process to detach from the console.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index a5a84cff2..3d0daee38 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -228,6 +228,7 @@ int mingw_listen(int sockfd, int backlog);
228int mingw_accept(int sockfd1, struct sockaddr *sa, socklen_t *sz); 228int mingw_accept(int sockfd1, struct sockaddr *sa, socklen_t *sz);
229int mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, 229int mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds,
230 struct timeval *timeout); 230 struct timeval *timeout);
231int mingw_getpeername(int fd, struct sockaddr *sa, socklen_t *sz);
231 232
232NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM); 233NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM);
233 234
@@ -240,6 +241,7 @@ NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len
240#define shutdown mingw_shutdown 241#define shutdown mingw_shutdown
241#define accept mingw_accept 242#define accept mingw_accept
242#define select mingw_select 243#define select mingw_select
244#define getpeername mingw_getpeername
243 245
244/* 246/*
245 * sys/time.h 247 * sys/time.h
@@ -472,6 +474,7 @@ DIR *mingw_opendir(const char *path);
472#define is_dir_sep(c) ((c) == '/' || (c) == '\\') 474#define is_dir_sep(c) ((c) == '/' || (c) == '\\')
473 475
474pid_t FAST_FUNC mingw_spawn(char **argv); 476pid_t FAST_FUNC mingw_spawn(char **argv);
477pid_t FAST_FUNC mingw_spawn_detach(char **argv);
475intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); 478intptr_t FAST_FUNC mingw_spawn_proc(const char **argv);
476int mingw_execv(const char *cmd, char *const *argv); 479int mingw_execv(const char *cmd, char *const *argv);
477int mingw_execvp(const char *cmd, char *const *argv); 480int mingw_execvp(const char *cmd, char *const *argv);