root/arch/sparc/kernel/sys_bsd.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. netbsd_nosys

   1 /* sys_bsd.c: {net, open}bsd specific system call handling.
   2  *
   3  * Copyright (C) 1995 David S. Miller (davem@caipfs.rutgers.edu)
   4  */
   5 #include <linux/kernel.h>
   6 
   7 #include <asm/ptrace.h>
   8 #include <asm/bsderrno.h>
   9 
  10 static int errno_trans[] = {
  11         0,
  12         BSD_EPERM, BSD_ENOENT, BSD_ESRCH, BSD_EINTR, BSD_EIO,
  13         BSD_ENXIO, BSD_E2BIG, BSD_ENOEXEC, BSD_EBADF, BSD_ECHILD,
  14         BSD_EAGAIN, BSD_ENOMEM, BSD_EACCES, BSD_EFAULT, BSD_ENOTBLK,
  15         BSD_EBUSY, BSD_EEXIST, BSD_EXDEV, BSD_ENODEV, BSD_ENOTDIR,
  16         BSD_EISDIR, BSD_EINVAL, BSD_ENFILE, BSD_EMFILE, BSD_ENOTTY,
  17         BSD_ETXTBSY, BSD_EFBIG, BSD_ENOSPC, BSD_ESPIPE, BSD_EROFS,
  18         BSD_EMLINK, BSD_EPIPE, BSD_EDOM, BSD_ERANGE, BSD_EWOULDBLOCK,
  19         BSD_EINPROGRESS, BSD_EALREADY, BSD_ENOTSOCK, BSD_EDESTADDRREQ,
  20         BSD_EMSGSIZE, BSD_EPROTOTYPE, BSD_ENOPROTOOPT, BSD_EPROTONOSUPPORT,
  21         BSD_ESOCKTNOSUPPORT, BSD_EOPNOTSUPP, BSD_EPFNOSUPPORT, BSD_EAFNOSUPPORT,
  22         BSD_EADDRINUSE,
  23         BSD_EADDRNOTAVAIL, BSD_ENETDOWN, BSD_ENETUNREACH, BSD_ENETRESET,
  24         BSD_ECONNABORTED, BSD_ECONNRESET, BSD_ENOBUFS, BSD_EISCONN,
  25         BSD_ENOTCONN, BSD_ESHUTDOWN, BSD_ETOOMANYREFS, BSD_ETIMEDOUT,
  26         BSD_ECONNREFUSED, BSD_ELOOP, BSD_ENAMETOOLONG, BSD_EHOSTDOWN,
  27         BSD_EHOSTUNREACH, BSD_ENOTEMPTY, BSD_EPROCLIM, BSD_EUSERS,
  28         BSD_EDQUOT, BSD_ESTALE, BSD_EREMOTE, BSD_ENOSTR, BSD_ETIME,
  29         BSD_ENOSR, BSD_ENOMSG, BSD_EBADMSG, BSD_EIDRM, BSD_EDEADLK,
  30         BSD_ENOLCK, BSD_ENONET, BSD_ERREMOTE, BSD_ENOLINK, BSD_EADV,
  31         BSD_ESRMNT, BSD_ECOMM, BSD_EPROTO, BSD_EMULTIHOP, BSD_EDOTDOT,
  32         BSD_EREMCHG, BSD_ENOSYS
  33 };
  34 
  35 asmlinkage int netbsd_nosys(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  36 {
  37         struct pt_regs *regs;
  38 
  39         regs = (struct pt_regs *) (current->saved_kernel_stack +
  40                                    sizeof(struct reg_window));
  41         current->tss.sig_address = regs->pc;
  42         current->tss.sig_desc = regs->u_regs[UREG_G1];
  43         send_sig(SIGSYS, current, 1);
  44         printk("Process makes ni_syscall number %d, register dump:\n",
  45                (int) regs->u_regs[UREG_G1]);
  46         show_regs(regs);
  47         return -BSD_ENOSYS;
  48 }

/* [previous][next][first][last][top][bottom][index][help] */