diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/nfs-utils/musl-rpc-compat.c | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/nfs-utils/musl-rpc-compat.c')
| -rw-r--r-- | opt/nfs-utils/musl-rpc-compat.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/opt/nfs-utils/musl-rpc-compat.c b/opt/nfs-utils/musl-rpc-compat.c new file mode 100644 index 0000000..08dd3e4 --- /dev/null +++ b/opt/nfs-utils/musl-rpc-compat.c @@ -0,0 +1,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; +} |
