summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/uipc_syscalls.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-13Update to FreeBSD head 2019-09-24Sebastian Huber1-15/+30
Git mirror commit 6b0307a0a5184339393f555d5d424190d8a8277a.
2018-12-20Update to FreeBSD head 2018-12-20Sebastian Huber1-3/+1
Git mirror commit 19a6ceb89dbacf74697d493e48c388767126d418. It includes an update of wpa_supplicant to version 2.7. It includes an update of the OpenSSL baseline to version 1.1.1a. Update #3472.
2018-11-15Update to FreeBSD head 2018-11-15Sebastian Huber1-13/+15
Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a. Update #3472.
2018-11-15Disable or make static kern_* functionsSebastian Huber1-6/+7
2018-09-21Update to FreeBSD head 2018-09-17Sebastian Huber1-21/+76
Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319. Update #3472.
2018-09-21Update to FreeBSD head 2018-06-01Sebastian Huber1-24/+24
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
2018-09-21Update to FreeBSD head 2018-04-01Sebastian Huber1-0/+1
Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4. Update #3472.
2018-09-21Update to FreeBSD head 2017-12-01Sebastian Huber1-0/+2
Git mirror commit e724f51f811a4b2bd29447f8b85ab5c2f9b88266. Update #3472.
2018-09-21Update to FreeBSD head 2017-08-01Sebastian Huber1-55/+10
Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c. Update #3472.
2018-08-24Fix alignment of getsockaddr_sockaddrSebastian Huber1-1/+1
2018-07-04Avoid malloc() in getsockaddr()Sebastian Huber1-0/+45
The getsockaddr() function is used to allocate a struct sockaddr of the right length and initialize it with userspace provided data. It is used for the connect(), bind() and sendit() family functions. In particular, the sendit() function is used by the UDP send functions. This means each UDP send needs a malloc() and free() invocation. This is a performance problem in RTEMS (first-fit heap) and may lead to heap fragmentation. Replace the malloc() allocation with a stack allocation. This requires SOCK_MAXADDRLEN (= 255) of additional stack space for libbsd. A further optimization would be to get rid of the stack copy of the socket address. However, this would require to check each consumer of the address to ensure that it is not modified.
2017-11-15Fix file descriptor reference counting in accept()Sebastian Huber1-0/+2
Update #3132.
2017-11-10Fix reference counting for file descriptorsSebastian Huber1-0/+10
Update #3132.
2017-09-15Support reference counting for file descriptorsSebastian Huber1-1/+6
Close #3132.
2017-06-08Use <sys/lock.h> provided by NewlibSebastian Huber1-1/+1
2017-06-08Update due to Newlib 2017-06-07 changesSebastian Huber1-1/+1
The following files are now provided by Newlib: * arpa/inet.h * net/if.h * netinet/in.h * netinet/tcp.h * sys/socket.h * sys/uio.h * sys/un.h The <sys/param.h> and <sys/cpuset.h> are now compatible enough to be used directly. Update #2833.
2017-04-04Update to FreeBSD head 2017-04-04Sebastian Huber1-14/+32
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
2017-03-14Fix SOCK_CLOEXEC with socket() and socketpair()Sebastian Huber1-4/+0
Remove SOCK_CLOEXEC flag to get a valid socket type, e.g. to avoid a EPROTOTYPE in case of socket(..., SOCK_DGRAM | SOCK_CLOEXEC, ...).
2017-01-10Update to FreeBSD head 2016-12-10Sebastian Huber1-239/+71
Git mirror commit 80c55f08a05ab3b26a73b226ccb56adc3122a55c.
2017-01-10Update to FreeBSD head 2016-08-23Sebastian Huber1-1410/+307
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
2016-04-25Fix fp initializaiton in kern_sendit()Sebastian Huber1-1/+1
Bug introduced by 22257c7d81148e5b78027116e07627a54f4efb95.
2016-04-18Avoid use of cap_rights_tSebastian Huber1-0/+4
2015-11-16SOCKETPAIR(2): Port to RTEMSSebastian Huber1-1/+35
2015-02-13Add zerocopy sendtoSebastian Huber1-0/+25
2015-02-13Update to FreeBSD 9.3Sebastian Huber1-10/+51
2013-11-11Update to FreeBSD 9.2Sebastian Huber1-215/+246
2013-11-11Reduce divergence from FreeBSD sourcesSebastian Huber1-0/+1
2013-11-11Rename rtems-bsd-config.hSebastian Huber1-1/+1
Rename rtems-bsd-config.h in rtems-bsd-kernel-space.h.
2013-11-04Update to FreeBSD 8.4Sebastian Huber1-20/+34
2013-10-31Use send/recv functions from FreeBSDSebastian Huber1-2/+146
Use recvfrom(), recvmsg(), sendto() and sendmsg() from FreeBSD.
2013-10-31Use getsockname() from FreeBSDSebastian Huber1-1/+28
2013-10-31Use getpeername() from FreeBSDSebastian Huber1-0/+29
2013-10-31Use getsockopt() and setsockopt() from FreeBSDSebastian Huber1-1/+67
2013-10-31Use accept() from FreeBSDSebastian Huber1-1/+36
2013-10-31Use listen() from FreeBSDSebastian Huber1-1/+26
2013-10-31Use connect() from FreeBSDSebastian Huber1-1/+30
2013-10-31Use bind() from FreeBSDSebastian Huber1-0/+30
2013-10-31Use shutdown() from FreeBSDSebastian Huber1-1/+55
2013-10-31Import socket() implementation from FreeBSDSebastian Huber1-0/+2784
Add new test syscalls01.