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/compat/mach/mach_misc.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 /*      $NetBSD: mach_misc.c,v 1.28 2008/04/28 20:23:44 martin Exp $     */
    2 
    3 /*-
    4  * Copyright (c) 2001 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Christos Zoulas.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  *
   19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   29  * POSSIBILITY OF SUCH DAMAGE.
   30  */
   31 
   32 /*
   33  * MACH compatibility module.
   34  *
   35  * We actually don't implement anything here yet!
   36  */
   37 
   38 #include <sys/cdefs.h>
   39 __KERNEL_RCSID(0, "$NetBSD: mach_misc.c,v 1.28 2008/04/28 20:23:44 martin Exp $");
   40 
   41 #include <sys/param.h>
   42 #include <sys/systm.h>
   43 #include <sys/namei.h>
   44 #include <sys/dirent.h>
   45 #include <sys/proc.h>
   46 #include <sys/file.h>
   47 #include <sys/stat.h>
   48 #include <sys/time.h>
   49 #include <sys/filedesc.h>
   50 #include <sys/ioctl.h>
   51 #include <sys/kernel.h>
   52 #include <sys/malloc.h>
   53 #include <sys/pool.h>
   54 #include <sys/mbuf.h>
   55 #include <sys/mman.h>
   56 #include <sys/mount.h>
   57 #include <sys/resource.h>
   58 #include <sys/resourcevar.h>
   59 #include <sys/socket.h>
   60 #include <sys/vnode.h>
   61 #include <sys/uio.h>
   62 #include <sys/wait.h>
   63 #include <sys/utsname.h>
   64 #include <sys/unistd.h>
   65 #include <sys/times.h>
   66 #include <sys/sem.h>
   67 #include <sys/msg.h>
   68 #include <sys/ptrace.h>
   69 #include <sys/signalvar.h>
   70 
   71 #include <netinet/in.h>
   72 #include <sys/syscallargs.h>
   73 
   74 #include <miscfs/specfs/specdev.h>
   75 
   76 #include <compat/mach/mach_types.h>
   77 #include <compat/mach/mach_message.h>
   78 #include <compat/mach/mach_clock.h>
   79 #include <compat/mach/mach_syscallargs.h>
   80 
   81 
   82 int
   83 mach_sys_semaphore_timedwait_trap(struct lwp *l, const struct mach_sys_semaphore_timedwait_trap_args *uap, register_t *retval)
   84 {
   85 
   86         *retval = 0;
   87         DPRINTF(("mach_sys_semaphore_timedwait_trap(0x%x, %d, %d);\n",
   88             SCARG(uap, wait_name), SCARG(uap, sec), SCARG(uap, nsec)));
   89         return 0;
   90 }
   91 
   92 
   93 int
   94 mach_sys_semaphore_timedwait_signal_trap(struct lwp *l, const struct mach_sys_semaphore_timedwait_signal_trap_args *uap, register_t *retval)
   95 {
   96 
   97         *retval = 0;
   98         DPRINTF((
   99             "mach_sys_semaphore_timedwait_signal_trap(0x%x, 0x%x, %d, %d);\n",
  100             SCARG(uap, wait_name), SCARG(uap, signal_name), SCARG(uap, sec),
  101             SCARG(uap, nsec)));
  102         return 0;
  103 }
  104 
  105 
  106 int
  107 mach_sys_init_process(struct lwp *l, const void *v, register_t *retval)
  108 {
  109         *retval = 0;
  110         DPRINTF(("mach_sys_init_process();\n"));
  111         return 0;
  112 }
  113 
  114 
  115 int
  116 mach_sys_pid_for_task(struct lwp *l, const struct mach_sys_pid_for_task_args *uap, register_t *retval)
  117 {
  118 
  119         *retval = 0;
  120         DPRINTF(("mach_sys_pid_for_task(0x%x, %p);\n",
  121             SCARG(uap, t), SCARG(uap, x)));
  122         return 0;
  123 }
  124 
  125 
  126 int
  127 mach_sys_macx_swapon(struct lwp *l, const struct mach_sys_macx_swapon_args *uap, register_t *retval)
  128 {
  129 
  130         *retval = 0;
  131         DPRINTF(("mach_sys_macx_swapon(%p, %d, %d, %d);\n",
  132             SCARG(uap, name), SCARG(uap, flags), SCARG(uap, size),
  133             SCARG(uap, priority)));
  134         return 0;
  135 }
  136 
  137 int
  138 mach_sys_macx_swapoff(struct lwp *l, const struct mach_sys_macx_swapoff_args *uap, register_t *retval)
  139 {
  140 
  141         *retval = 0;
  142         DPRINTF(("mach_sys_macx_swapoff(%p, %d);\n",
  143             SCARG(uap, name), SCARG(uap, flags)));
  144         return 0;
  145 }
  146 
  147 int
  148 mach_sys_macx_triggers(struct lwp *l, const struct mach_sys_macx_triggers_args *uap, register_t *retval)
  149 {
  150 
  151         *retval = 0;
  152         DPRINTF(("mach_sys_macx_triggers(%d, %d, %d, 0x%x);\n",
  153             SCARG(uap, hi_water), SCARG(uap, low_water), SCARG(uap, flags),
  154             SCARG(uap, alert_port)));
  155         return 0;
  156 }
  157 
  158 
  159 int
  160 mach_sys_wait_until(struct lwp *l, const struct mach_sys_wait_until_args *uap, register_t *retval)
  161 {
  162 
  163         *retval = 0;
  164         DPRINTF(("mach_sys_wait_until(%lld);\n",
  165             SCARG(uap, deadline)));
  166         return 0;
  167 }
  168 
  169 
  170 int
  171 mach_sys_timer_create(struct lwp *l, const void *v, register_t *retval)
  172 {
  173         *retval = 0;
  174         DPRINTF(("mach_sys_timer_create();\n"));
  175         return 0;
  176 }
  177 
  178 
  179 int
  180 mach_sys_timer_destroy(struct lwp *l, const struct mach_sys_timer_destroy_args *uap, register_t *retval)
  181 {
  182 
  183         *retval = 0;
  184         DPRINTF(("mach_sys_timer_destroy(0x%x);\n", SCARG(uap, name)));
  185         return 0;
  186 }
  187 
  188 
  189 int
  190 mach_sys_timer_arm(struct lwp *l, const struct mach_sys_timer_arm_args *uap, register_t *retval)
  191 {
  192 
  193         *retval = 0;
  194         DPRINTF(("mach_sys_timer_arm(0x%x, %d);\n",
  195             SCARG(uap, name), SCARG(uap, expire_time)));
  196         return 0;
  197 }
  198 
  199 
  200 int
  201 mach_sys_timer_cancel(struct lwp *l, const struct mach_sys_timer_cancel_args *uap, register_t *retval)
  202 {
  203 
  204         *retval = 0;
  205         DPRINTF(("mach_sys_timer_cancel(0x%x, %p);\n",
  206             SCARG(uap, name), SCARG(uap, result_time)));
  207         return 0;
  208 }
  209 
  210 
  211 int
  212 mach_sys_get_time_base_info(struct lwp *l, const void *v, register_t *retval)
  213 {
  214         *retval = 0;
  215         DPRINTF(("mach_sys_get_time_base_info();\n"));
  216         return 0;
  217 }

Cache object: dd2190792d988652a1b49e825ebf8d5e


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