Changeset 164c5f5 in rtems-libbsd


Ignore:
Timestamp:
Jan 15, 2014, 11:46:22 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
08c8588
Parents:
a257bd7
git-author:
Sebastian Huber <sebastian.huber@…> (01/15/14 11:46:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/16/14 14:45:44)
Message:

UNIX(4): Import from FreeBSD

Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    ra257bd7 r164c5f5  
    158158LIB_C_FILES += freebsd/sys/kern/uipc_sockbuf.c
    159159LIB_C_FILES += freebsd/sys/kern/uipc_socket.c
     160LIB_C_FILES += freebsd/sys/kern/uipc_usrreq.c
    160161LIB_C_FILES += freebsd/sys/libkern/arc4random.c
    161162LIB_C_FILES += freebsd/sys/libkern/fls.c
     
    11031104        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
    11041105
     1106TEST_UNIX01 = testsuite/unix01/unix01.exe
     1107TEST_UNIX01_O_FILES =
     1108TEST_UNIX01_D_FILES =
     1109TEST_UNIX01_O_FILES += testsuite/unix01/test_main.o
     1110TEST_UNIX01_D_FILES += testsuite/unix01/test_main.d
     1111$(TEST_UNIX01): $(TEST_UNIX01_O_FILES) $(LIB)
     1112        $(LINK.c) -Wl,-Map,testsuite/unix01/unix01.map $^ -lm -lz -o $@
     1113TESTS += $(TEST_UNIX01)
     1114O_FILES += $(TEST_UNIX01_O_FILES)
     1115D_FILES += $(TEST_UNIX01_D_FILES)
     1116RUN_TESTS += $(TEST_UNIX01)
     1117
    11051118TEST_FTPD01 = testsuite/ftpd01/ftpd01.exe
    11061119TEST_FTPD01_O_FILES =
  • freebsd-to-rtems.py

    ra257bd7 r164c5f5  
    855855                'sys/kern/uipc_sockbuf.c',
    856856                'sys/kern/uipc_socket.c',
     857                'sys/kern/uipc_usrreq.c',
    857858                'sys/libkern/arc4random.c',
    858859                'sys/libkern/fls.c',
     
    24272428
    24282429tests = Module('tests')
     2430tests.addTest('unix01', ['test_main'])
    24292431tests.addTest('ftpd01', ['test_main'], netTest = True)
    24302432tests.addTest('ping01', ['test_main'], netTest = True)
  • freebsd/sys/sys/kernel.h

    ra257bd7 r164c5f5  
    266266#define SYSINIT_DRIVER_REFERENCE(driver, bus)                   \
    267267        SYSINIT_MODULE_REFERENCE(driver ## _ ## bus)
     268#define SYSINIT_DOMAIN_REFERENCE(dom)                           \
     269        SYSINIT_REFERENCE(domain_add_ ## dom)
    268270#endif /* __rtems__ */
    269271
  • freebsd/sys/sys/unpcb.h

    ra257bd7 r164c5f5  
    6969        struct  socket *unp_socket;     /* pointer back to socket */
    7070        struct  file *unp_file;         /* back-pointer to file for gc. */
     71#ifndef __rtems__
    7172        struct  vnode *unp_vnode;       /* if associated with file */
     73#else /* __rtems__ */
     74        struct  IMFS_jnode_tt *unp_vnode;       /* if associated with file */
     75#endif /* __rtems__ */
    7276        ino_t   unp_ino;                /* fake inode number */
    7377        struct  unpcb *unp_conn;        /* control block of connected socket */
  • libbsd.txt

    ra257bd7 r164c5f5  
    111111
    112112* BPF(4): Add support for zero-copy buffers.
     113
     114* UNIX(4): Fix race conditions in the area of socket object and file node
     115  destruction.  Add support for file descriptor transmission via control
     116  messages.
    113117
    114118[listing]
  • rtemsbsd/include/machine/rtems-bsd-sysinit.h

    ra257bd7 r164c5f5  
    5656        SYSINIT_DRIVER_REFERENCE(pci, pcib);
    5757
     58#define SYSINIT_NEED_NET_PF_UNIX \
     59        SYSINIT_DOMAIN_REFERENCE(local)
     60
    5861#define SYSINIT_NEED_NET_IF_BFE \
    5962        SYSINIT_DRIVER_REFERENCE(bfe, pci)
  • testsuite/include/rtems/bsd/test/default-init.h

    ra257bd7 r164c5f5  
    9797#include <machine/rtems-bsd-sysinit.h>
    9898
     99SYSINIT_NEED_NET_PF_UNIX;
     100
    99101/* only include FXP and PCI for i386/pc386 for debug on qemu (for now) */
    100102#if defined(i386)
  • testsuite/include/rtems/bsd/test/default-network-init.h

    ra257bd7 r164c5f5  
    167167}
    168168
     169#include <machine/rtems-bsd-sysinit.h>
     170
     171SYSINIT_NEED_NET_PF_UNIX;
     172
    169173#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    170174#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
  • testsuite/syscalls01/test_main.c

    ra257bd7 r164c5f5  
    7979        { -1, SOCK_RAW, 0, EPROTONOSUPPORT },
    8080        { PF_UNSPEC, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    81         { PF_UNIX, SOCK_DGRAM, 0, EPROTONOSUPPORT },
     81        { PF_UNIX, SOCK_STREAM, 0, 0 },
     82        { PF_UNIX, SOCK_DGRAM, 0, 0 },
     83        { PF_UNIX, SOCK_SEQPACKET, 0, 0 },
    8284        { PF_INET, -1, 0, EPROTONOSUPPORT },
    8385        { PF_INET, SOCK_RAW, -1, EPROTONOSUPPORT },
Note: See TracChangeset for help on using the changeset viewer.