Print this page
4023 - Typo in file(1) manpage and various others

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3nsl/gethostbyname.3nsl
          +++ new/usr/src/man/man3nsl/gethostbyname.3nsl
↓ open down ↓ 1 lines elided ↑ open up ↑
   2    2  .\" Copyright (C) 2008, Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" Copyright 1989 AT&T.
   4    4  .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved
   5    5  .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
   6    6  .\" http://www.opengroup.org/bookstore/.
   7    7  .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   8    8  .\"  This notice shall appear on any product containing this material.
   9    9  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
  10   10  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
  11   11  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  12      -.TH GETHOSTBYNAME 3NSL "Aug 24, 2007"
       12 +.TH GETHOSTBYNAME 3NSL "Sep 10, 2013"
  13   13  .SH NAME
  14   14  gethostbyname, gethostbyname_r, gethostbyaddr, gethostbyaddr_r, gethostent,
  15   15  gethostent_r, sethostent, endhostent \- get network host entry
  16   16  .SH SYNOPSIS
  17   17  .LP
  18   18  .nf
  19   19  \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lnsl\fR [ \fIlibrary\fR... ]
  20   20  #include <netdb.h>
  21   21  
  22   22  \fBstruct hostent *\fR\fBgethostbyname\fR(\fBconst char *\fR\fIname\fR);
↓ open down ↓ 251 lines elided ↑ open up ↑
 274  274              (void) printf("host information for %s not found\en", argv[1]);
 275  275              exit (3);
 276  276          }
 277  277          for (p = hp->h_addr_list; *p != 0; p++) {
 278  278              struct in_addr in;
 279  279              char **q;
 280  280              (void) memcpy(&in.s_addr, *p, sizeof (in.s_addr));
 281  281           (void) printf("%s\t%s", inet_ntoa(in), hp\(mi>h_name);
 282  282              for (q = hp->h_aliases; *q != 0; q++)
 283  283                  (void) printf(" %s", *q);
 284      -            (void) putchar('\n');
      284 +            (void) putchar('\en');
 285  285          }
 286  286          exit (0);
 287  287  }
 288  288  .fi
 289  289  .in -2
 290  290  
 291  291  .sp
 292  292  .LP
 293  293  Note that the preceding sample program is unsafe for use in multithreaded
 294  294  applications.
↓ open down ↓ 117 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX