getrpcent(3) Library Functions Manual getrpcent(3) NOMBRE getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent - obtienen una entrada RPC BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include struct rpcent *getrpcent(void); struct rpcent *getrpcbyname(const char *nombre); struct rpcent *getrpcbynumber(int numero); void setrpcent(int sigue_abierto); void endrpcent(void); DESCRIPCION The getrpcent(), getrpcbyname(), and getrpcbynumber() functions each return a pointer to an object with the following structure containing the broken-out fields of an entry in the RPC program number data base. struct rpcent { char *r_name; /* nom. del servidor para este programa RPC */ char **r_aliases; /* lista de alias */ long r_number; /* numero del programa RPC */ }; Los miembros de esta estructura son: r_name El nombre del servidor para este programa RPC. r_aliases Una lista terminada en NULL de nombres alternativos para el programa RPC. r_number El numero del programa RPC para este servicio. La funcion getrpcent() lee la siguiente linea de la base de datos. Si necesario se abre una conexion a la base de datos. The setrpcent() function opens a connection to the database, and sets the next entry to the first entry. If stayopen is nonzero, then the connection to the database will not be closed between calls to one of the getrpc*() functions. La funcion endrpcent() cierra la conexion a la base de datos. getrpcbyname() y getrpcbynumber() examinan secuencialmente el fichero, desde el principio, hasta que encuentran un nombre de programa RPC o un numero de programa coincidente, o hasta que se encuentre el final del fichero. VALOR DEVUELTO On success, getrpcent(), getrpcbyname(), and getrpcbynumber() return a pointer to a statically allocated rpcent structure. NULL is returned on EOF or error. ARCHIVOS /etc/rpc RPC program number database. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------+--------------------+-----------------------------------------------+ |Interfaz | Atributo | Valor | +-----------------+--------------------+-----------------------------------------------+ |getrpcent(), | Seguridad del hilo | MT-Unsafe | |getrpcbyname(), | | | |getrpcbynumber() | | | +-----------------+--------------------+-----------------------------------------------+ |setrpcent(), | Seguridad del hilo | Configuracion regional de multi-hilo seguro | |endrpcent() | | | +-----------------+--------------------+-----------------------------------------------+ ESTANDARES BSD. HISTORIAL BSD, Solaris. ERRORES Toda la informacion se almacena en un area estatica por lo que debe copiarse a otro sitio si se va a guardar. VEASE TAMBIEN getrpcent_r(3), rpc(5), rpcinfo(8), ypserv(8) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Juan Piernas y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 getrpcent(3)