summaryrefslogtreecommitdiff
path: root/opt/rpcbind/musl-rpc-compat.c
blob: 08dd3e4421cedbdfc4dad13c2dff09323e049365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * musl-rpc-compat.c - stubs for glibc NSS RPC functions missing in musl
 *
 * getrpcbynumber() and getrpcbyname() look up RPC service entries
 * from /etc/rpc. musl does not implement these. The functions are
 * only used for logging/display purposes in rpcbind, so returning
 * NULL (not found) is safe.
 */

#include <stddef.h>

struct rpcent {
    char    *r_name;
    char   **r_aliases;
    int      r_number;
};

struct rpcent *getrpcbynumber(int number) {
    (void)number;
    return NULL;
}

struct rpcent *getrpcbyname(const char *name) {
    (void)name;
    return NULL;
}