Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-07-06 | ape/bsd/bind.c, ape/bsd/listen.c: Use _syserrno. | Benjamin Riefenstahl | |
2022-07-06 | ape/bsd/listen.c: Drop "bind 0". | Benjamin Riefenstahl | |
There does not seem to be a good reason for this. The "bind" command has no practical consequence. | |||
2022-06-11 | ape/bsd/bind.c: Do not pretend that the port could be negative. | Benjamin Riefenstahl | |
Ports are filtered through "htons" which returns an "unsigned short". | |||
2022-06-10 | ape/bsd/bind.c, ape/bsd/listen.c: Set local IP. | Benjamin Riefenstahl | |
Despite what the man pages say, local addresses can actually be set so do that. | |||
2022-06-10 | ape/bsd/listen.c: Do not try to issue "announce *". | Benjamin Riefenstahl | |
"port >= 0" is always true, because the port always gets filtered through "htons" which returns "unsigned short", so we can just drop the "else" branch here. Anyway "announce 0" works fine with the Plan9 API, there is not need for "announce *" here. | |||
2022-06-10 | ape/bsd/bind.c: Do not issue "bind *". | Benjamin Riefenstahl | |
Despite the documentation, "bind *" is invalid and gives the error "bad numeric port" in devip.c:setladdrport. "bind 0" OTOH is actually supported fine in the Plan9 API and has the right sematics. | |||
2018-07-03 | ape: remove getitimer setitimer implemenations | spew | |
2018-07-01 | ape: improve setitimer | spew | |
2018-07-01 | ape: an implemenation of getitimer setitimer | spew | |
2016-04-10 | ape: add internal _NSEC() function and make gettimeofday() use it | cinap_lenrek | |
2013-12-28 | ape: move strdup() from libbsd to libap (from sources) | cinap_lenrek | |
including <string.h> should be enougth to make strdup() available. | |||
2013-05-11 | ape: change types from unsigned long to void* for rendezvous() and ↵ | cinap_lenrek | |
segattach()/segbrk() (erik), use uniqueue rendezvous tags for _buf and listen | |||
2013-04-05 | ape: inet_ntop() print v4 mapped addresses in v6 as dotted quad | cinap_lenrek | |
2013-04-02 | ape: inet_pton() parse dotted address to IPv4 mapped addresses for AF_INET6 | cinap_lenrek | |
2013-04-02 | ape: check *alen before copying in getpeername(), getsockname() and accept() | cinap_lenrek | |
*alen has to be initialized to the size of the buffer by the caller, and we are supposed to put the real size of the address in there, but not copy more than the original *alen value (truncate). | |||
2013-04-01 | ape: add inet_aton() | cinap_lenrek | |
2013-03-31 | ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() | cinap_lenrek | |
2013-03-29 | ape: fix potential double close in socket() and protect rock chain with spinlock | cinap_lenrek | |
2013-01-09 | ape: fix getsockname() byte swaped ports (by yarikos) | cinap_lenrek | |
APE's getsockname() returns port with bytes swapped (on 386). | |||
2012-12-03 | ape: fix putenv() | cinap_lenrek | |
writing /env in putenv() doesnt work. exec will create new enviroment anyway. we have to modify environ array! | |||
2012-07-30 | import updated compilers from sources | cinap_lenrek | |
2011-03-30 | Import sources from 2011-03-30 iso image - lib | Taru Karttunen | |
2011-03-30 | Import sources from 2011-03-30 iso image | Taru Karttunen | |