diff options
author | Ron Yorston <rmy@pobox.com> | 2020-04-05 09:49:57 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-04-05 10:04:56 +0100 |
commit | 2b4c25bd2cac034cdc52d29d6bb8c675c87a731c (patch) | |
tree | 5f542026304bb44ce738226acecfb9a9a0c84e8f /include | |
parent | 1365eb25a7dfd3e42229691355d910ff32b92361 (diff) | |
download | busybox-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.h | 3 |
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); | |||
228 | int mingw_accept(int sockfd1, struct sockaddr *sa, socklen_t *sz); | 228 | int mingw_accept(int sockfd1, struct sockaddr *sa, socklen_t *sz); |
229 | int mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, | 229 | int mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, |
230 | struct timeval *timeout); | 230 | struct timeval *timeout); |
231 | int mingw_getpeername(int fd, struct sockaddr *sa, socklen_t *sz); | ||
231 | 232 | ||
232 | NOIMPL(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 | NOIMPL(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 | ||
474 | pid_t FAST_FUNC mingw_spawn(char **argv); | 476 | pid_t FAST_FUNC mingw_spawn(char **argv); |
477 | pid_t FAST_FUNC mingw_spawn_detach(char **argv); | ||
475 | intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); | 478 | intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); |
476 | int mingw_execv(const char *cmd, char *const *argv); | 479 | int mingw_execv(const char *cmd, char *const *argv); |
477 | int mingw_execvp(const char *cmd, char *const *argv); | 480 | int mingw_execvp(const char *cmd, char *const *argv); |