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  * Copyright (c) 1994-1995 Søren Schmidt
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer 
   10  *    in this position and unchanged.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. The name of the author may not be used to endorse or promote products
   15  *    derived from this software without specific prior written permission
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   27  */
   28 
   29 #include <sys/cdefs.h>
   30 __FBSDID("$FreeBSD: releng/11.0/sys/i386/linux/linux_dummy.c 297061 2016-03-20 13:21:20Z dchagin $");
   31 
   32 #include "opt_compat.h"
   33 
   34 #include <sys/param.h>
   35 #include <sys/kernel.h>
   36 #include <sys/sdt.h>
   37 #include <sys/systm.h>
   38 #include <sys/proc.h>
   39 
   40 #include <i386/linux/linux.h>
   41 #include <i386/linux/linux_proto.h>
   42 #include <compat/linux/linux_dtrace.h>
   43 #include <compat/linux/linux_util.h>
   44 
   45 /* DTrace init */
   46 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
   47 
   48 DUMMY(stime);
   49 DUMMY(fstat);
   50 DUMMY(olduname);
   51 DUMMY(syslog);
   52 DUMMY(uname);
   53 DUMMY(vhangup);
   54 DUMMY(vm86old);
   55 DUMMY(swapoff);
   56 DUMMY(adjtimex);
   57 DUMMY(create_module);
   58 DUMMY(init_module);
   59 DUMMY(delete_module);
   60 DUMMY(get_kernel_syms);
   61 DUMMY(quotactl);
   62 DUMMY(bdflush);
   63 DUMMY(sysfs);
   64 DUMMY(vm86);
   65 DUMMY(query_module);
   66 DUMMY(nfsservctl);
   67 DUMMY(sendfile);                /* different semantics */
   68 DUMMY(setfsuid);
   69 DUMMY(setfsgid);
   70 DUMMY(pivot_root);
   71 DUMMY(mincore);
   72 DUMMY(lookup_dcookie);
   73 DUMMY(remap_file_pages);
   74 DUMMY(mbind);
   75 DUMMY(get_mempolicy);
   76 DUMMY(set_mempolicy);
   77 DUMMY(kexec_load);
   78 /* linux 2.6.11: */
   79 DUMMY(add_key);
   80 DUMMY(request_key);
   81 DUMMY(keyctl);
   82 /* linux 2.6.13: */
   83 DUMMY(ioprio_set);
   84 DUMMY(ioprio_get);
   85 DUMMY(inotify_init);
   86 DUMMY(inotify_add_watch);
   87 DUMMY(inotify_rm_watch);
   88 /* linux 2.6.16: */
   89 DUMMY(migrate_pages);
   90 DUMMY(unshare);
   91 /* linux 2.6.17: */
   92 DUMMY(splice);
   93 DUMMY(sync_file_range);
   94 DUMMY(tee);
   95 DUMMY(vmsplice);
   96 /* linux 2.6.18: */
   97 DUMMY(move_pages);
   98 /* linux 2.6.19: */
   99 DUMMY(getcpu);
  100 /* linux 2.6.22: */
  101 DUMMY(signalfd);
  102 DUMMY(timerfd_create);
  103 /* linux 2.6.25: */
  104 DUMMY(timerfd_settime);
  105 DUMMY(timerfd_gettime);
  106 /* linux 2.6.27: */
  107 DUMMY(signalfd4);
  108 DUMMY(inotify_init1);
  109 /* linux 2.6.30: */
  110 DUMMY(preadv);
  111 DUMMY(pwritev);
  112 /* linux 2.6.31 */
  113 DUMMY(rt_tsigqueueinfo);
  114 DUMMY(perf_event_open);
  115 /* linux 2.6.33: */
  116 DUMMY(fanotify_init);
  117 DUMMY(fanotify_mark);
  118 /* later: */
  119 DUMMY(name_to_handle_at);
  120 DUMMY(open_by_handle_at);
  121 DUMMY(clock_adjtime);
  122 DUMMY(setns);
  123 DUMMY(process_vm_readv);
  124 DUMMY(process_vm_writev);
  125 
  126 #define DUMMY_XATTR(s)                                          \
  127 int                                                             \
  128 linux_ ## s ## xattr(                                           \
  129     struct thread *td, struct linux_ ## s ## xattr_args *arg)   \
  130 {                                                               \
  131                                                                 \
  132         return (ENOATTR);                                       \
  133 }
  134 DUMMY_XATTR(set);
  135 DUMMY_XATTR(lset);
  136 DUMMY_XATTR(fset);
  137 DUMMY_XATTR(get);
  138 DUMMY_XATTR(lget);
  139 DUMMY_XATTR(fget);
  140 DUMMY_XATTR(list);
  141 DUMMY_XATTR(llist);
  142 DUMMY_XATTR(flist);
  143 DUMMY_XATTR(remove);
  144 DUMMY_XATTR(lremove);
  145 DUMMY_XATTR(fremove);

Cache object: 0071accf14d9985571b199decc975818


[ 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.