Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/syscall.h
          +++ new/usr/src/uts/common/sys/syscall.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright (c) 2013 by Delphix. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  #ifndef _SYS_SYSCALL_H
  30   31  #define _SYS_SYSCALL_H
  31   32  
  32   33  #ifdef  __cplusplus
  33   34  extern "C" {
↓ open down ↓ 457 lines elided ↑ open up ↑
 491  492  #define SYS_cladm               253
 492  493  #define SYS_uucopy              254
 493  494  #define SYS_umount2             255
 494  495  
 495  496  #ifndef _ASM
 496  497  
 497  498  typedef struct {                /* syscall set type */
 498  499          unsigned int    word[16];
 499  500  } sysset_t;
 500  501  
 501      -#if !defined(_KERNEL)
 502      -
 503  502  typedef struct {        /* return values from system call */
 504  503          long    sys_rval1;      /* primary return value from system call */
 505  504          long    sys_rval2;      /* second return value from system call */
 506  505  } sysret_t;
 507  506  
      507 +#if !defined(_KERNEL)
      508 +
 508  509  #if defined(__STDC__)
 509  510  extern int      syscall(int, ...);
 510  511  extern int      __systemcall(sysret_t *, int, ...);
 511  512  extern int      __set_errno(int);
 512  513  #else
 513  514  extern int      syscall();
 514  515  extern int      __systemcall();
 515  516  extern int      __set_errno();
 516  517  #endif
 517  518  
 518  519  #endif  /* _KERNEL */
 519  520  
 520  521  #endif  /* _ASM */
 521  522  
 522  523  #ifdef  __cplusplus
 523  524  }
 524  525  #endif
 525  526  
 526  527  #endif  /* _SYS_SYSCALL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX