Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/socket.h
          +++ new/usr/src/uts/common/sys/socket.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23   25   */
  24   26  
  25   27  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  26   28  /*        All Rights Reserved   */
  27   29  
  28   30  /*
  29   31   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   32   * The Regents of the University of California
  31   33   * All Rights Reserved
↓ open down ↓ 483 lines elided ↑ open up ↑
 515  517  
 516  518  #if defined(_XPG4_2) && !defined(_XPG5)
 517  519  #ifdef  __PRAGMA_REDEFINE_EXTNAME
 518  520  #pragma redefine_extname listen __xnet_listen
 519  521  #else   /* __PRAGMA_REDEFINE_EXTNAME */
 520  522  #define listen  __xnet_listen
 521  523  #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 522  524  #endif /* (_XPG4_2) && !defined(_XPG5) */
 523  525  
 524  526  #if !defined(_KERNEL) || defined(_BOOT)
 525      -#ifdef  __STDC__
 526  527  extern int accept(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
 527  528  extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int);
 528  529  extern int bind(int, const struct sockaddr *, socklen_t);
 529  530  extern int connect(int, const struct sockaddr *, socklen_t);
 530  531  extern int getpeername(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
 531  532  extern int getsockname(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
 532  533  extern int getsockopt(int, int, int, void *_RESTRICT_KYWD, Psocklen_t);
 533  534  extern int listen(int, int);    /* XXX - fixme???  where do I go */
 534  535  extern int socketpair(int, int, int, int *);
 535  536  extern ssize_t recv(int, void *, size_t, int);
↓ open down ↓ 4 lines elided ↑ open up ↑
 540  541  extern ssize_t sendmsg(int, const struct msghdr *, int);
 541  542  extern ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *,
 542  543          socklen_t);
 543  544  extern int setsockopt(int, int, int, const void *, socklen_t);
 544  545  extern int shutdown(int, int);
 545  546  extern int socket(int, int, int);
 546  547  
 547  548  #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__)
 548  549  extern int sockatmark(int);
 549  550  #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */
 550      -#else   /* __STDC__ */
 551      -extern int accept();
 552      -extern int accept4();
 553      -extern int bind();
 554      -extern int connect();
 555      -extern int getpeername();
 556      -extern int getsockname();
 557      -extern int getsockopt();
 558      -extern int listen();
 559      -extern int recv();
 560      -extern int recvfrom();
 561      -extern int send();
 562      -extern int sendto();
 563      -extern int setsockopt();
 564      -extern int sockatmark();
 565      -extern int socket();
 566      -extern int recvmsg();
 567      -extern int sendmsg();
 568      -extern int shutdown();
 569      -extern int socketpair();
 570      -#endif  /* __STDC__ */
 571  551  #endif  /* !defined(_KERNEL) || defined(_BOOT) */
 572  552  
 573  553  #ifdef  __cplusplus
 574  554  }
 575  555  #endif
 576  556  
 577  557  #endif  /* _SYS_SOCKET_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX