Print this page
6564 F_FLOCKW and F_FLOCK are undefined symbols in SPARC build

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libbc/inc/include/sys/fcntlcom.h
          +++ new/usr/src/lib/libbc/inc/include/sys/fcntlcom.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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 + * Copyright 2016 Gary Mills
  23   24   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27   28  /*
  28   29   * Copyright (c) 1983 Regents of the University of California.
  29   30   * All rights reserved.  The Berkeley software License Agreement
  30   31   * specifies the terms and conditions for redistribution.
  31   32   */
  32   33  
↓ open down ↓ 94 lines elided ↑ open up ↑
 127  128  #define F_GETOWN        5       /* Get owner - for ASYNC */
 128  129  #define F_SETOWN        6       /* Set owner - for ASYNC */
 129  130  #endif  /* !_POSIX_SOURCE */
 130  131  #define F_GETLK         7       /* Get record-locking information */
 131  132  #define F_SETLK         8       /* Set or Clear a record-lock (Non-Blocking) */
 132  133  #define F_SETLKW        9       /* Set or Clear a record-lock (Blocking) */
 133  134  #ifndef _POSIX_SOURCE
 134  135  #define F_CNVT          12      /* Convert a fhandle to an open fd */
 135  136  #endif  /* !_POSIX_SOURCE */
 136  137  
      138 +/* Needed by flock.c */
      139 +#define F_FLOCKW        F_SETLKW
      140 +#define F_FLOCK         F_SETLK
      141 +
 137  142  /* fcntl(2) flags (l_type field of flock structure) */
 138  143  #define F_RDLCK         1       /* read lock */
 139  144  #define F_WRLCK         2       /* write lock */
 140  145  #define F_UNLCK         3       /* remove lock(s) */
 141  146  #ifndef _POSIX_SOURCE
 142  147  #define F_UNLKSYS       4       /* remove remote locks for a given system */
 143  148  #endif  /* !_POSIX_SOURCE */
 144  149  
 145  150  /* needed for _syscall(SYS_openat, AT_FDCWD, ...) */
 146  151  #define AT_FDCWD                0xffd19553
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX