134 Commits

Author SHA1 Message Date
Sebastian Huber
a0633c51db SLEEPQUEUE(9): Update due to API changes
Update #3264.
2018-02-05 10:56:39 +01:00
Sebastian Huber
b03a1c0b59 Fix file descriptor reference counting in accept()
Update #3132.
2017-11-15 13:25:28 +01:00
Sebastian Huber
057656b706 Disable HHOOK(9) support for sockets
Support was only partly disabled leading to NULL pointer accesses.
Disable it completely.
2017-11-10 11:16:14 +01:00
Sebastian Huber
72d5fa11a8 Fix reference counting for file descriptors
Update #3132.
2017-11-10 11:01:54 +01:00
Sebastian Huber
f7f3c4b0de blist: Import from FreeBSD 2017-10-20 14:59:55 +02:00
Sebastian Huber
62c8ca0ead Fix INVARIANTS support 2017-10-20 14:59:55 +02:00
Sebastian Huber
a8e84c62ae DEVICE(9): Avoid NULL pointer access 2017-10-20 14:59:54 +02:00
Sebastian Huber
9a583a94d3 SLEEPQUEUE(9): Update due to API changes
Update #3117.
Update #3182.
2017-10-17 13:56:38 +02:00
Sebastian Huber
894c965d95 Support reference counting for file descriptors
Close #3132.
2017-09-15 12:46:57 +02:00
Sebastian Huber
6e328c38b1 KQUEUE(2): Add missing file handler 2017-07-28 08:46:21 +02:00
Sebastian Huber
17ab62cbdd PIPE(2): Add missing file handler 2017-07-28 08:46:20 +02:00
Sebastian Huber
091321081a SOCKET(2): Add missing file handler 2017-07-28 08:46:18 +02:00
Sebastian Huber
3c967ca238 Use <sys/lock.h> provided by Newlib 2017-06-08 13:20:09 +02:00
Sebastian Huber
02373194fe Update due to Newlib 2017-06-07 changes
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-06-08 13:19:54 +02:00
Kevin Kirspel
817cbf7201 devfs: Fix some issues
Fix issue with cdev private data usage with RTEMS iop structure. Add
support for cdev alias device names. Add support for cdev fstat.
2017-05-12 14:20:33 +02:00
Kevin Kirspel
4a8f953f62 Updating FREEBSD for tty support 2017-05-11 11:15:41 +02:00
Kevin Kirspel
f6c52e086d Adding tty support files from FREEBSD tree 2017-05-11 11:15:41 +02:00
Sebastian Huber
de8a76da2f Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
2017-04-04 14:46:23 +02:00
Sebastian Huber
0732183638 Fix SOCK_CLOEXEC with socket() and socketpair()
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-03-14 07:15:34 +01:00
Sebastian Huber
5268338be3 Provide sbuf_hexdump() 2017-03-06 12:06:19 +01:00
Sebastian Huber
57ba8ad63c Avoid kern_unsetenv() 2017-03-06 12:05:54 +01:00
Sebastian Huber
5e093a5bcb SLEEPQUEUE(9): Fix absolute timeouts
The FreeBSD kernel timeouts are always based on the uptime.  Thus, we
have to use the relative watchdog.  C_ABSOLUTE just means that the
timeout value is already an uptime value.

https://lists.freebsd.org/pipermail/freebsd-hackers/2017-February/050572.html
2017-02-28 10:07:30 +01:00
Sebastian Huber
1fd5083234 SLEEPQUEUE(9): Add wmesg to thread wait info 2017-01-31 09:50:45 +01:00
Sebastian Huber
ee94f8a8ea rtems-bsd-mutex: Use thread queue name 2017-01-31 09:49:49 +01:00
Christian Mauderer
66eb1437f2 firmware: Port to RTEMS. 2017-01-17 12:50:57 +01:00
Christian Mauderer
2e8dd24b7c firmware: Import from FreeBSD. 2017-01-17 12:50:57 +01:00
Sebastian Huber
172f2acb2b Use thread name support
Update #2858.
2017-01-13 09:20:43 +01:00
Sebastian Huber
0577772720 Update to FreeBSD head 2017-01-09
Git mirror commit 1f8e4a995a6ede4bdb24e6d335ccda2bdb0175ab.
2017-01-10 11:03:27 +01:00
Sebastian Huber
75b706fde4 Update to FreeBSD head 2016-12-10
Git mirror commit 80c55f08a05ab3b26a73b226ccb56adc3122a55c.
2017-01-10 09:53:34 +01:00
Sebastian Huber
c40e45b75e Update to FreeBSD head 2016-08-23
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
2017-01-10 09:53:31 +01:00
Sebastian Huber
750b2d4294 Workaround for <sys/event.h> update 2017-01-09 14:54:21 +01:00
Kevin Kirspel
b1580fb039 PIPE(2): Port to RTEMS 2016-12-23 08:26:14 +01:00
Kevin Kirspel
6959face72 PIPE(2): Import from FreeBSD 2016-12-23 08:24:12 +01:00
Sebastian Huber
cfec446525 SLEEPQUEUE(9): Properly remove timeout timer 2016-11-24 09:49:08 +01:00
Sebastian Huber
616ffa9668 Use _Thread_Dispatch_direct() 2016-11-24 09:49:08 +01:00
Sebastian Huber
c418b7a213 Fix mbuf_jumbo_alloc() 2016-11-14 10:54:04 +01:00
Sebastian Huber
cf882982fa Prepare copyiniov() for FreeBSD update 2016-10-26 14:14:05 +02:00
Sebastian Huber
2c44b51475 Use _Thread_Get_priority() 2016-09-22 07:21:54 +02:00
Christian Mauderer
9a01ebf7d7 kern_conf.c: Adapt for RTEMS. 2016-08-01 14:02:04 +02:00
Christian Mauderer
6c0cfc2173 kern_conf.c: Import from FreeBSD. 2016-08-01 14:02:04 +02:00
Chris Johns
b6c170f713 kern/sleepqueue: Update due to API changes 2016-07-28 12:19:01 +10:00
Chris Johns
a0ea5f8710 Revert "kern/sleepqueue: Update due to API changes"
This reverts commit 1bf6529d195848be4f70b091a0a5071b1c08239a.

It changes FreeBSD whitespace.
2016-07-28 12:17:08 +10:00
Chris Johns
1bf6529d19 kern/sleepqueue: Update due to API changes 2016-07-28 12:16:09 +10:00
Chris Johns
9835790270 Enable device sysctl. 2016-06-27 21:24:03 +10:00
Sebastian Huber
32fd702138 Update due to RTEMS printer API changes 2016-06-23 14:08:02 +02:00
Sebastian Huber
3d1e767c8f Directly use <sys/types.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Sebastian Huber
2017a6df2b Directly use <sys/time.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Sebastian Huber
43a14eba2e Update due to API changes 2016-05-25 13:11:59 +02:00
Sebastian Huber
356f59c898 kvprintf: Add support for %m 2016-05-06 14:07:34 +02:00
Sebastian Huber
54a577d44f subr_prf.c: Port to RTEMS 2016-05-06 14:07:31 +02:00