Coda Distributed File System
coda_getservbyname.h
Go to the documentation of this file.
1/* BLURB lgpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 2007 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU Library General Public Licence Version 2, as
11shown in the file LICENSE. The technical and financial contributors to
12Coda are listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16#*/
17
18#ifndef _CODA_GETSERVBYNAME_H_
19#define _CODA_GETSERVBYNAME_H_
20
21/*
22 * Some systems *cough*Windows*cough* are missing the IANA registered Coda
23 * ports in /etc/services, so getservbyname fails. Instead of adding fallback
24 * code all over the place, we use a Coda specific wrapper so we only need the
25 * server->port mappings in a single location.
26 */
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif
35
36#ifdef HAVE_NETDB_H
37#include <netdb.h>
38#endif
39
40/* wrapper around getservbyname */
41struct servent *coda_getservbyname(const char *name, const char *proto);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* _CODA_GETSERVBYNAME_H_ */
struct servent * coda_getservbyname(const char *name, const char *proto)
Definition: coda_getservbyname.c:39
name
Definition: pwdtopdbtool.py:40