X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=draft%2Fman3%2Fputgrent.3;h=383058c6a5a56145043f18c44dcb207e316db514;hb=83f9e5d087c3464d5131604d3c9893479e6228eb;hp=e14a7c00f18b581bbfca084263370a52352b79b6;hpb=633a2252e0be3c867dce264a180a89ce8181d36f;p=linuxjm%2FLDP_man-pages.git diff --git a/draft/man3/putgrent.3 b/draft/man3/putgrent.3 index e14a7c00..383058c6 100644 --- a/draft/man3/putgrent.3 +++ b/draft/man3/putgrent.3 @@ -1,71 +1,52 @@ .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de) +.\" +.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE) .\" Distributed under GPL +.\" %%%LICENSE_END +.\" +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2004 Yuichi SATO .\" all rights reserved. .\" Translated Sat Aug 28 14:07:20 JST 2004 .\" by Yuichi SATO .\" -.TH PUTGRENT 3 2003-09-09 "GNU" "Linux Programmer's Manual" -.\"O .SH NAME -.SH ̾Á° -.\"O putgrent \- write a group database entry to a file -putgrent \- ¥°¥ë¡¼¥×¥Ç¡¼¥¿¥Ù¡¼¥¹¥¨¥ó¥È¥ê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤à -.\"O .SH SYNOPSIS -.SH ½ñ¼° -.B #define _GNU_SOURCE +.TH PUTGRENT 3 2015\-01\-22 GNU "Linux Programmer's Manual" +.SH 名前 +putgrent \- グループデータベースエントリーをファイルに書き込む +.SH 書式 +\fB#define _GNU_SOURCE\fP /* feature_test_macros(7) 参照 */ .br -.B #include +\fB#include \fP .sp -.BI "int putgrent(const struct group *" grp ", FILE *" fp ); -.\"O .SH DESCRIPTION -.SH ÀâÌÀ -.\"O The -.\"O .BR putgrent () -.\"O function is the counterpart for -.\"O .BR fgetgrent (3). -.BR putgrent () -´Ø¿ô¤Ï -.BR fgetgrent (3) -¤ÎµÕ¤Ç¤¢¤ë¡£ -.\"O The function writes the content of the provided \fIstruct group\fP into the -.\"O file pointed to by -.\"O .IR fp . -¤³¤Î´Ø¿ô¤ÏÍ¿¤¨¤é¤ì¤¿ \fIstruct group\fP ¤ò -.I fp -¤Ç»Ø¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤à¡£ -.\"O The list of group members must be NULL-terminated or NULL-initialized. -¥°¥ë¡¼¥×¥á¥ó¥Ð¤Î¥ê¥¹¥È¤Ï¡¢NULL ¤Ç½ªÃ¼¤µ¤ì¤ë¤«¡¢ -NULL ¤Ç½é´ü²½¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ +\fBint putgrent(const struct group *\fP\fIgrp\fP\fB, FILE *\fP\fIstream\fP\fB);\fP +.SH 説明 +\fBputgrent\fP() 関数は \fBfgetgrent\fP(3) の逆である。 この関数は与えられた \fIstruct group\fP を +\fIstream\fP に書き込む。 グループメンバのリストは、 NULL で終端されるか、 NULL で初期化されなければならない。 .sp -.\"O The \fIstruct group\fP is defined as follows: -\fIstruct group\fP ¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤ë: +\fIstruct group\fP は以下のように定義される: .sp .in +4n .nf struct group { -.\"O char *gr_name; /* group name */ -.\"O char *gr_passwd; /* group password */ -.\"O gid_t gr_gid; /* group ID */ -.\"O char **gr_mem; /* group members */ - char *gr_name; /* ¥°¥ë¡¼¥×̾ */ - char *gr_passwd; /* ¥°¥ë¡¼¥×¥Ñ¥¹¥ï¡¼¥É */ - gid_t gr_gid; /* ¥°¥ë¡¼¥× ID */ - char **gr_mem; /* ¥°¥ë¡¼¥×¥á¥ó¥Ð */ + char *gr_name; /* グループ名 */ + char *gr_passwd; /* グループパスワード */ + gid_t gr_gid; /* グループ ID */ + char **gr_mem; /* グループメンバ */ }; .fi .in -.\"O .SH "RETURN VALUE" -.SH ÊÖ¤êÃÍ -.\"O The function returns zero on success, and a nonzero value on error. -¤³¤Î´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤òÊÖ¤·¡¢¥¨¥é¡¼¤Î¾ì¹ç¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£ -.\"O .SH "CONFORMING TO" -.SH ½àµò -.\"O This function is a GNU extension. -¤³¤Î´Ø¿ô¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£ -.\"O .SH "SEE ALSO" -.SH ´ØÏ¢¹àÌÜ -.BR fgetgrent (3), -.BR getgrent (3), -.BR group (5), -.BR feature_test_macros (7) +.SH 返り値 +この関数は、成功した場合は 0 を返し、エラーの場合は 0 以外の値を返す。 +.SH 準拠 +この関数は GNU による拡張である。 +.SH 関連項目 +\fBfgetgrent\fP(3), \fBgetgrent\fP(3), \fBgroup\fP(5) +.SH この文書について +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 +である。プロジェクトの説明とバグ報告に関する情報は +http://www.kernel.org/doc/man\-pages/ に書かれている。