1 ?RCS: $Id: d_getsrvby.U,v $
3 ?RCS: Copyright (c) 1998 Andy Dougherty
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?MAKE:d_getsbyname d_getsbyport: Inlibc
11 ?S: This variable conditionally defines the HAS_GETSERVBYNAME
12 ?S: symbol, which indicates to the C program that the
13 ?S: getservbyname() routine is available to look up services
17 ?S: This variable conditionally defines the HAS_GETSERVBYPORT
18 ?S: symbol, which indicates to the C program that the
19 ?S: getservbyport() routine is available to look up services
23 ?C: This symbol, if defined, indicates that the getservbyname()
24 ?C: routine is available to look up services by their name.
27 ?C: This symbol, if defined, indicates that the getservbyport()
28 ?C: routine is available to look up services by their port.
30 ?H:#$d_getsbyname HAS_GETSERVBYNAME /**/
31 ?H:#$d_getsbyport HAS_GETSERVBYPORT /**/
33 ?LINT:set d_getsbyname d_getsbyport
35 @if d_getsbyname || HAS_GETSERVBYNAME
36 : see if getservbyname exists
37 set getservbyname d_getsbyname
41 @if d_getsbyport || HAS_GETSERVBYPORT
42 : see if getservbyport exists
43 set getservbyport d_getsbyport