putpwent

Autres langues

Langue: ja

Version: April 9, 1993 (openSuse - 09/10/07)

Section: 3 (Bibliothèques de fonctions)

̾Á°

putpwent - ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥ê¤Î½ñ¤­¹þ¤ß

½ñ¼°


#include <stdio.h>

#include <sys/types.h>

#include <pwd.h>



int putpwent(const struct passwd *p, FILE *stream);

ÀâÌÀ

putpwent() ´Ø¿ô¤Ï¡¢¹½Â¤ÂÎ p ¤«¤é¤Î¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¤ò stream ¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤à¡£

passwd ¹½Â¤ÂΤϡ¢<pwd.h> ¤Ç°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:


struct passwd {

    char    *pw_name;        /* ¥æ¡¼¥¶Ì¾ */

    char    *pw_passwd;      /* ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É */

    uid_t    pw_uid;         /* ¥æ¡¼¥¶ ID */

    gid_t    pw_gid;         /* ¥°¥ë¡¼¥× ID */

    char    *pw_gecos;       /* ËÜ̾ */

    char    *pw_dir;         /* ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê */

    char    *pw_shell;       /* ¥·¥§¥ë¥×¥í¥°¥é¥à */

};

ÊÖ¤êÃÍ

putpwent() ´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤ò¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï -1 ¤òÊÖ¤¹¡£

¥¨¥é¡¼

EINVAL
̵¸ú¤Ê(NULL)°ú¿ô¤¬ÅϤµ¤ì¤¿¡£

½àµò

SVr4

´ØÏ¢¹àÌÜ

endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), setpwent(3)