136 Commits

Author SHA1 Message Date
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
Joel Sherrill
3b4d5c480b rtems-bsd-config.h.in: Assume <sys/cdefs.h> is OK to use
This is part of a set of patches to newlib, RTEMS, and
rtems-libbsd to update <sys/cdefs.h> so the newlib version
can be used without issue.
2012-09-05 12:46:28 -05:00
Joel Sherrill
f333955d79 Build System: Add option to disable IPV6 in orderly fashion
If you define DISABLE_IPV6=yes to the config.inc, then the
rtems-bsd-config.h file will be modified accordingly and
the IPV6 kernel sources will not be built. This is easier
to manage and more correct than having a patch to do the same.
2012-08-31 18:50:17 -05:00
Joel Sherrill
9ae87c2c1f rtems-bsd-config.h: IPV6 enabled by default. Make consistent with Makefile 2012-08-24 15:17:35 -05:00
Joel Sherrill
659d7adb7c Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-08-24 15:15:04 -05:00
Joel Sherrill
bb753bf85d rtems-bsd-config.h: Add __NEW_RTEMS_BSD__ until machine/param.h in tools can be unified 2012-08-24 15:14:32 -05:00
Jennifer Averett
c2da78d84a Fixed return values for jail methods. 2012-08-24 14:42:03 -05:00
Joel Sherrill
bd6dd6e233 net-setup: Add routing and old stack's configuration
This allows the old stack's configuration structures to be used
unchanged even though this code currently does not support all
of the options. It likely will never support all of the options
as some should eventually come through configuration files as
they would in a real FreeBSD system. Other configuration
parameters are likely configurable via "hints".
2012-07-27 07:45:06 -05:00
Jennifer Averett
2c3d8b981b Added rtems specific page tracking methods for uma page allocation. 2012-07-20 14:17:05 -05:00
Jennifer Averett
8fa929e60d Added more initialization of FIXME_ucred elements. 2012-07-18 11:43:05 -05:00
Jennifer Averett
e4f2591430 Fixed rtems_bsdnet_makeFdForSocket to work with file system change. 2012-07-18 11:42:04 -05:00
Jennifer Averett
21cc0aa57a Added initilization of pcpu info for cpu0. 2012-07-18 11:40:30 -05:00