xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame^] | 1 | /* List of functions defined for static NSS in GNU C Library. |
| 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. |
| 4 | |
| 5 | The GNU C Library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | The GNU C Library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the GNU C Library; if not, see |
| 17 | <http://www.gnu.org/licenses/>. */ |
| 18 | |
| 19 | /* |
| 20 | This is a minimal config. Only services `files' and `dns' are supported. |
| 21 | */ |
| 22 | |
| 23 | /* aliases */ |
| 24 | DEFINE_ENT (files, alias) |
| 25 | DEFINE_GETBY (files, alias, name) |
| 26 | |
| 27 | /* ethers */ |
| 28 | DEFINE_ENT (files, ether) |
| 29 | |
| 30 | /* group */ |
| 31 | DEFINE_ENT (files, gr) |
| 32 | DEFINE_GET (files, grgid) |
| 33 | DEFINE_GET (files, grnam) |
| 34 | |
| 35 | /* hosts */ |
| 36 | DEFINE_ENT (files, host) |
| 37 | DEFINE_GETBY (files, host, addr) |
| 38 | DEFINE_GETBY (files, host, name) |
| 39 | DEFINE_GETBY (files, host, name2) |
| 40 | DEFINE_GET (files, hostton) |
| 41 | DEFINE_GET (files, ntohost) |
| 42 | DEFINE_GETBY (dns, host, addr) |
| 43 | DEFINE_GETBY (dns, host, name) |
| 44 | DEFINE_GETBY (dns, host, name2) |
| 45 | |
| 46 | /* netgroup */ |
| 47 | DEFINE_ENT (files, netgr) |
| 48 | |
| 49 | /* networks */ |
| 50 | DEFINE_ENT (files, net) |
| 51 | DEFINE_GETBY (files, net, name) |
| 52 | DEFINE_GETBY (files, net, addr) |
| 53 | DEFINE_GETBY (dns, net, name) |
| 54 | DEFINE_GETBY (dns, net, addr) |
| 55 | |
| 56 | /* protocols */ |
| 57 | DEFINE_ENT (files, proto) |
| 58 | DEFINE_GETBY (files, proto, name) |
| 59 | DEFINE_GETBY (files, proto, number) |
| 60 | |
| 61 | /* passwd */ |
| 62 | DEFINE_ENT (files, pw) |
| 63 | DEFINE_GET (files, pwnam) |
| 64 | DEFINE_GET (files, pwuid) |
| 65 | |
| 66 | /* rpc */ |
| 67 | DEFINE_ENT (files, rpc) |
| 68 | DEFINE_GETBY (files, rpc, name) |
| 69 | DEFINE_GETBY (files, rpc, number) |
| 70 | |
| 71 | /* services */ |
| 72 | DEFINE_ENT (files, serv) |
| 73 | DEFINE_GETBY (files, serv, name) |
| 74 | DEFINE_GETBY (files, serv, port) |
| 75 | |
| 76 | /* shadow */ |
| 77 | DEFINE_ENT (files, sp) |
| 78 | DEFINE_GET (files, spnam) |