getrpcent_r(3) Library Functions Manual getrpcent_r(3) getrpcent_r, getrpcbyname_r, getrpcbynumber_r - RPC ( ) C (libc, -lc) #include int getrpcent_r(size_t size; struct rpcent *result_buf, char buf[size], size_t size, struct rpcent **result); int getrpcbyname_r(size_t size; const char *name, struct rpcent *result_buf, char buf[size], size_t size, struct rpcent **result); int getrpcbynumber_r(size_t size; int number, struct rpcent *result_buf, char buf[size], size_t size, struct rpcent **result); glibc (. feature_test_macros(7)): getrpcent_r(), getrpcbyname_r(), getrpcbynumber_r(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE || _SVID_SOURCE getrpcent_r(), getrpcbyname_r() getrpcbynumber_r() getrpcent(3), getrpcbyname(3) getrpcbynumber(3), . rpcent, . . rpcent , result_buf. The buf array is used to store the string fields pointed to by the returned rpcent structure. (The nonreentrant functions allocate these strings in static storage.) The size of this array is specified in size. If buf is too small, the call fails with the error ERANGE, and the caller must try again with a larger buffer. (A buffer of size 1024 bytes should be sufficient for most applications.) RPC, *result result_buf; *result NULL. 0. , . On error, record not found (getrpcbyname_r(), getrpcbynumber_r()), or end of input (getrpcent_r()) *result is set to NULL. ENOENT (getrpcent_r()) . ERANGE buf is too small. Try again with a larger buffer (and increased size). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |getrpcent_r(), | | MT-Safe locale | |getrpcbyname_r(), | | | |getrpcbynumber_r() | | | +----------------------------+----------------------------------------------------------+--------------------------+ , . GNU. getrpcent(3), rpc(5) () Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 28 2025 . getrpcent_r(3)