mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Work towards improving signals and processes
This commit is contained in:
parent
de703b182c
commit
d7ac16a9ed
96 changed files with 1474 additions and 427 deletions
|
@ -23,16 +23,6 @@
|
|||
#include "libc/sock/yoink.inc"
|
||||
#include "libc/sysv/errfuns.h"
|
||||
|
||||
/**
|
||||
* Assigns local address and port number to socket.
|
||||
*
|
||||
* @param fd is the file descriptor returned by socket()
|
||||
* @param addr is usually the binary-encoded ip:port on which to listen
|
||||
* @param addrsize is the byte-length of addr's true polymorphic form
|
||||
* @return socket file descriptor or -1 w/ errno
|
||||
* @error ENETDOWN, EPFNOSUPPORT, etc.
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
textwindows int bind$nt(struct Fd *fd, const void *addr, uint32_t addrsize) {
|
||||
assert(fd->kind == kFdSocket);
|
||||
if (__bind$nt(fd->handle, addr, addrsize) != -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue