Print this page
3910 t_look(3NSL) should never return T_ERROR

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnsl/nsl/tx.h
          +++ new/usr/src/lib/libnsl/nsl/tx.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  
  23   23  /*
       24 + * Copyright 2014 Gary Mills
  24   25   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25   26   * Use is subject to license terms.
  26   27   */
  27   28  
  28   29  #ifndef _TX_H
  29   30  #define _TX_H
  30   31  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   32  #include <sys/uio.h>
  34   33  
  35   34  #ifdef  __cplusplus
  36   35  extern "C" {
  37   36  #endif
  38   37  
  39   38  /*
  40   39   * This file contains declarations local to the TLI/XTI implmentation
  41   40   */
  42   41  
↓ open down ↓ 201 lines elided ↑ open up ↑
 244  243  
 245  244  /*
 246  245   * Flags for t_getname() from tiuser.h
 247  246   * Note: This routine's counterpart in XTI is substatnially modified
 248  247   * (i.e. t_getprotaddr() and does not use these flags)
 249  248   */
 250  249  #define LOCALNAME       0
 251  250  #define REMOTENAME      1
 252  251  
 253  252  /*
 254      - * Obsolete error event for t_look() in TLI, still needed for compatibility
 255      - * to broken apps that are affected (e.g nfsd,lockd) if real error returned.
 256      - */
 257      -#define T_ERROR 0x0020
 258      -
 259      -/*
 260  253   * GENERAL UTILITY MACROS
 261  254   */
 262  255  #define A_CNT(arr)      (sizeof (arr)/sizeof (arr[0]))
 263  256  #define A_END(arr)      (&arr[A_CNT(arr)])
 264  257  #define A_LAST(arr)     (&arr[A_CNT(arr)-1])
 265  258  
 266  259  /*
 267  260   * Following macro compares a signed size obtained from TPI primitive
 268  261   * to unsigned size of buffer where it needs to go into passed using
 269  262   * the "struct netbuf" type.
↓ open down ↓ 107 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX