The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/linux/linux_dummy.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
    3  *
    4  * Copyright (c) 1994-1995 Søren Schmidt
    5  * All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  *
   16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   26  * SUCH DAMAGE.
   27  */
   28 
   29 #include <sys/cdefs.h>
   30 __FBSDID("$FreeBSD: releng/12.0/sys/i386/linux/linux_dummy.c 332122 2018-04-06 17:35:35Z brooks $");
   31 
   32 #include <sys/param.h>
   33 #include <sys/kernel.h>
   34 #include <sys/sdt.h>
   35 #include <sys/systm.h>
   36 #include <sys/proc.h>
   37 
   38 #include <i386/linux/linux.h>
   39 #include <i386/linux/linux_proto.h>
   40 #include <compat/linux/linux_dtrace.h>
   41 #include <compat/linux/linux_util.h>
   42 
   43 /* DTrace init */
   44 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
   45 
   46 UNIMPLEMENTED(afs_syscall);
   47 UNIMPLEMENTED(break);
   48 UNIMPLEMENTED(create_module);   /* Added in Linux 1.0 removed in 2.6. */
   49 UNIMPLEMENTED(ftime);
   50 UNIMPLEMENTED(get_kernel_syms); /* Added in Linux 1.0 removed in 2.6. */
   51 UNIMPLEMENTED(getpmsg);
   52 UNIMPLEMENTED(gtty);
   53 UNIMPLEMENTED(stty);
   54 UNIMPLEMENTED(lock);
   55 UNIMPLEMENTED(mpx);
   56 UNIMPLEMENTED(nfsservctl);      /* Added in Linux 2.2 removed in 3.1. */
   57 UNIMPLEMENTED(prof);
   58 UNIMPLEMENTED(profil);
   59 UNIMPLEMENTED(putpmsg);
   60 UNIMPLEMENTED(query_module);    /* Added in Linux 2.2 removed in 2.6. */
   61 UNIMPLEMENTED(ulimit);
   62 UNIMPLEMENTED(vserver);
   63 
   64 DUMMY(stime);
   65 DUMMY(fstat);
   66 DUMMY(olduname);
   67 DUMMY(syslog);
   68 DUMMY(uname);
   69 DUMMY(vhangup);
   70 DUMMY(vm86old);
   71 DUMMY(swapoff);
   72 DUMMY(adjtimex);
   73 DUMMY(init_module);
   74 DUMMY(delete_module);
   75 DUMMY(quotactl);
   76 DUMMY(bdflush);
   77 DUMMY(sysfs);
   78 DUMMY(vm86);
   79 DUMMY(sendfile);                /* different semantics */
   80 DUMMY(setfsuid);
   81 DUMMY(setfsgid);
   82 DUMMY(pivot_root);
   83 DUMMY(lookup_dcookie);
   84 DUMMY(remap_file_pages);
   85 DUMMY(mbind);
   86 DUMMY(get_mempolicy);
   87 DUMMY(set_mempolicy);
   88 DUMMY(kexec_load);
   89 /* Linux 2.6.11: */
   90 DUMMY(add_key);
   91 DUMMY(request_key);
   92 DUMMY(keyctl);
   93 /* Linux 2.6.13: */
   94 DUMMY(ioprio_set);
   95 DUMMY(ioprio_get);
   96 DUMMY(inotify_init);
   97 DUMMY(inotify_add_watch);
   98 DUMMY(inotify_rm_watch);
   99 /* Linux 2.6.16: */
  100 DUMMY(migrate_pages);
  101 DUMMY(unshare);
  102 /* Linux 2.6.17: */
  103 DUMMY(splice);
  104 DUMMY(sync_file_range);
  105 DUMMY(tee);
  106 DUMMY(vmsplice);
  107 /* Linux 2.6.18: */
  108 DUMMY(move_pages);
  109 /* Linux 2.6.19: */
  110 DUMMY(getcpu);
  111 /* Linux 2.6.22: */
  112 DUMMY(signalfd);
  113 /* Linux 2.6.27: */
  114 DUMMY(signalfd4);
  115 DUMMY(inotify_init1);
  116 /* Linux 2.6.31: */
  117 DUMMY(perf_event_open);
  118 /* Linux 2.6.33: */
  119 DUMMY(fanotify_init);
  120 DUMMY(fanotify_mark);
  121 /* Linux 2.6.39: */
  122 DUMMY(name_to_handle_at);
  123 DUMMY(open_by_handle_at);
  124 DUMMY(clock_adjtime);
  125 /* Linux 3.0: */
  126 DUMMY(setns);
  127 /* Linux 3.2: */
  128 DUMMY(process_vm_readv);
  129 DUMMY(process_vm_writev);
  130 /* Linux 3.5: */
  131 DUMMY(kcmp);
  132 /* Linux 3.8: */
  133 DUMMY(finit_module);
  134 DUMMY(sched_setattr);
  135 DUMMY(sched_getattr);
  136 /* Linux 3.14: */
  137 DUMMY(renameat2);
  138 /* Linux 3.15: */
  139 DUMMY(seccomp);
  140 DUMMY(memfd_create);
  141 /* Linux 3.18: */
  142 DUMMY(bpf);
  143 /* Linux 3.19: */
  144 DUMMY(execveat);
  145 /* Linux 4.2: */
  146 DUMMY(userfaultfd);
  147 /* Linux 4.3: */
  148 DUMMY(membarrier);
  149 /* Linux 4.4: */
  150 DUMMY(mlock2);
  151 /* Linux 4.5: */
  152 DUMMY(copy_file_range);
  153 /* Linux 4.6: */
  154 DUMMY(preadv2);
  155 DUMMY(pwritev2);
  156 /* Linux 4.8: */
  157 DUMMY(pkey_mprotect);
  158 DUMMY(pkey_alloc);
  159 DUMMY(pkey_free);
  160 
  161 #define DUMMY_XATTR(s)                                          \
  162 int                                                             \
  163 linux_ ## s ## xattr(                                           \
  164     struct thread *td, struct linux_ ## s ## xattr_args *arg)   \
  165 {                                                               \
  166                                                                 \
  167         return (ENOATTR);                                       \
  168 }
  169 DUMMY_XATTR(set);
  170 DUMMY_XATTR(lset);
  171 DUMMY_XATTR(fset);
  172 DUMMY_XATTR(get);
  173 DUMMY_XATTR(lget);
  174 DUMMY_XATTR(fget);
  175 DUMMY_XATTR(list);
  176 DUMMY_XATTR(llist);
  177 DUMMY_XATTR(flist);
  178 DUMMY_XATTR(remove);
  179 DUMMY_XATTR(lremove);
  180 DUMMY_XATTR(fremove);

Cache object: 5f77017b0711bf40796c8c9a3db01da0


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.