|
|||||||
|
|
GETPWSection: Manual del Programador de Linux (3)Updated: 29 enero 1998 Index Return to Main Contents NOMBREgetpw - Re-construye una línea del fichero de cuentas de usuarioSINOPSIS#include <pwd.h> #include <sys/types.h> int getpw(uid_t uid, char *buf); DESCRIPCIÓNLa función getpw() reconstruye la línea del fichero de cuentas de usuario para el usuario cuyo UID se da como uid y el resultado se guarda en el sitio apuntado por buf. El búfer devuelto en buf contiene una línea con el formato
La estructura passwd se define en <pwd.h> como sigue:
VALOR DEVUELTOLa función getpw() devuelve 0 si acaba bien, o -1 si ocurre un error.ERRORES
FICHEROS
CONFORME ASYSVr2.FALLOSLa función getpw() es peligrosa ya que puede desbordar el búfer proporcionado, buf. Está obsoleta y en su lugar debería utilizar getpwuid().VÉASE TAMBIÉNfgetpwent(3), getpwent(3), setpwent(3), endpwent(3), getpwnam(3), getpwuid(3), putpwent(3), passwd(5)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |