Sebastian Huber
0beab1e86a
Use getpeername() from FreeBSD
2013-10-31 13:18:48 +01:00
Sebastian Huber
ac78dd2440
Use getsockopt() and setsockopt() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
7c2b59c831
Use accept() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
7c3625139f
Use listen() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
6676de488a
Use connect() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
468b08e553
Use bind() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
6ffb9b9e27
Use shutdown() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
609df33954
Use send() and recv() from FreeBSD
2013-10-31 13:18:47 +01:00
Sebastian Huber
caf8eded60
Import socket() implementation from FreeBSD
...
Add new test syscalls01.
2013-10-31 13:18:47 +01:00
Sebastian Huber
69b29a0c0d
Disable user credentials and use default values
2013-10-31 13:18:47 +01:00
Sebastian Huber
cc5f4b2705
Use default PID value for all process identifiers
2013-10-31 13:18:46 +01:00
Sebastian Huber
549488b572
Disable alternative routing tables
2013-10-31 13:18:46 +01:00
Sebastian Huber
3842b81723
Delete struct proc p_mtx lock
...
Usage of this lock is highly dangerous since agents may assume that this
lock is actually used for process management. There is only one process
in RTEMS.
2013-10-31 13:18:46 +01:00
Sebastian Huber
db2e97facf
Disable cold boot indicator
2013-10-31 13:18:46 +01:00
Sebastian Huber
c9db0f5ecb
Use RTEMS API for file handling
2013-10-31 13:18:46 +01:00
Sebastian Huber
032b3b7940
Use Newlib provided <sys/fcntl.h>
2013-10-31 13:18:46 +01:00
Sebastian Huber
ebabe9b195
Import <sys/sysproto.h> from FreeBSD
2013-10-31 13:18:46 +01:00
Sebastian Huber
cd75897ea8
Import <security/audit/audit.h> from FreeBSD
2013-10-31 13:18:46 +01:00
Sebastian Huber
3931b6e5f3
Provide __socklen_t, use size_t for socklen_t
2013-10-31 13:18:46 +01:00
Sebastian Huber
a434fc84b2
Add empty files
2013-10-31 13:18:46 +01:00
Sebastian Huber
ab415f95a9
Use extension to attach a struct thread to threads
...
Add test thread01.
2013-10-10 09:09:19 +02:00
Sebastian Huber
f3b2913422
Move core system initialization references
2013-10-10 09:09:19 +02:00
Sebastian Huber
a9f141a221
Change license to BSD
2013-10-10 09:09:19 +02:00
Sebastian Huber
e599318e91
Update files to match FreeBSD layout
...
Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:
o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h
It is now possible to include <sys/socket.h> directly for example.
Generate one Makefile which builds everything including tests.
2013-10-10 09:08:23 +02:00
Sebastian Huber
bceabc95c1
Move files to match FreeBSD layout
2013-10-10 09:06:58 +02:00
Sebastian Huber
82800c518f
Update due to header file changes
2013-09-20 16:30:53 +02:00
Sebastian Huber
83cb10f952
There is no main thread in RTEMS
...
The resolv module has a questionable fall back strategy on error.
2013-09-20 16:18:23 +02:00
Sebastian Huber
937461c950
Avoid per-CPU features
2013-09-20 16:18:23 +02:00
Sebastian Huber
473437ccd7
Update due to header file changes
2013-09-20 16:18:23 +02:00
Sebastian Huber
a3dde3ee78
Update due to Newlib <sys/cdefs.h> changes
2013-09-20 12:52:44 +02:00
Jennifer Averett
0bde19eee0
Switch to a version of select that is closer to bsd's version.
2012-11-26 09:47:09 -06:00
Jennifer Averett
9d3ac2b51a
Add custom limits.h and timespec.h
...
These will be needed for added a version of select that is
closer to bsd's select.
2012-11-26 09:24:57 -06:00
Sebastian Huber
0bc8807943
CAM: Update due to API changes
2012-11-05 16:15:31 +01:00
Jennifer Averett
cb5035400c
_sx_xlock(): Added check for not in interrupt.
2012-10-24 15:01:23 -05:00
Joel Sherrill
8ddbc30f41
rtems-bsd-sx.c: Disable check for interruptible blocking until it is supported
2012-10-23 14:21:44 -05:00
Joel Sherrill
7b43b62c17
rtems-bsd-symbols.h: Do not hide sysctlbyname().
2012-10-23 11:13:57 -05:00
Jennifer Averett
d4ceffbe23
rtems-bsd-symbols.h: Add _bsd_ipsec_set_policy.
2012-10-11 08:32:10 -05:00
Jennifer Averett
45a81cdc5e
Added rtems specific version of _pthread_main_np()
...
This required adding rtems_id rtems_init_task_id to identify the
main task.
2012-10-05 09:34:09 -05:00
Jennifer Averett
a4e4484df6
rtems-bsd-config.h.in: Added defines for O_NOFOLLOW and O_SHLOCK
2012-09-12 10:51:59 -05:00
Joel Sherrill
1dff51a7ec
freebsd/bsd.h: Add include of freebsd/machine/_align.h
...
Multiple files in user space were coming up with _ALIGN being
unexpanded. This resolved it.
2012-09-11 16:02:41 -05:00
Joel Sherrill
33c9336aa7
rtems-bsd-sysctl.c: Formatting corrections
2012-09-10 16:45:30 -05:00
Joel Sherrill
b00e8b279d
rtems-bsd-symbols.h: sysctl() should be a public symbol
2012-09-10 16:45:07 -05:00
Joel Sherrill
14d4d7aa23
rtems-bsd-config.h.in: Add FreeBSD macros missing in RTEMS
...
The following were assumed to be present by multiple libc
methods or networking commands:
+ _PATH_DEVNULL ==> /dev/null
+ SIZE_T_MAX ==> SIZE_MAX
+ O_EXLOCK ==> O_EXCL
2012-09-06 13:05:53 -05:00
Joel Sherrill
132ec81d51
rtems-bsd-config.h.in: Do not undef __P or __strong_reference
...
<sys/cdefs.h> is the FreeBSD version now. No need to touch these.
2012-09-06 10:33:53 -05:00
Joel Sherrill
ab9e6dea37
rtems-bsd-vm_glue.c: Add include of <freebsd/sys/types.h>
2012-09-05 13:12:37 -05:00
Joel Sherrill
f80f90f11d
rtems-bsd-rwlock.c: Do not redefine pthread_rwlock_t
2012-09-05 13:03:19 -05:00
Joel Sherrill
ccffd2b4e1
rtemsbsd/freebsd/sys/uio.h: New wrapper for <sys/uio.h>
...
<sys/_iovec.h> is a support file always included. Also added.
2012-09-05 12:55:51 -05:00
Joel Sherrill
582aa1beda
rtemsbsd/freebsd/sys/signalvar.h: stub file
2012-09-05 12:55:24 -05:00
Joel Sherrill
b65a44a4f2
rtemsbsd/freebsd/sys/signal.h: New wrapper for <sys/signal.h>
2012-09-05 12:54:49 -05:00
Joel Sherrill
336883b587
rtemsbsd/freebsd/sys/cdefs.h: New wrapper for <sys/cdefs.h>
2012-09-05 12:54:28 -05:00