📄 grp.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><grp.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_005_875"> </a>NAME</h4><blockquote>grp.h - group structure</blockquote><h4><a name = "tag_000_005_876"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <grp.h></code></pre></blockquote><h4><a name = "tag_000_005_877"> </a>DESCRIPTION</h4><blockquote>The<i><grp.h></i>header declares the structure <b>group</b> which includes thefollowing members:<pre><code>char *gr_name the name of the groupgid_t gr_gid numerical group IDchar **gr_mem pointer to a null-terminated array of character pointers to member names</code></pre><p>The<b>gid_t</b>type is defined as described in<i><a href="systypes.h.html"><sys/types.h></a></i>.<p>The following are declared as functions and may also be definedas macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>struct group *<a href="getgrgid.html">getgrgid</a>(gid_t);struct group *<a href="getgrnam.html">getgrnam</a>(const char *);int <a href="getgrgid_r.html">getgrgid_r</a>(gid_t, struct group *, char *, size_t, struct group **);int <a href="getgrnam_r.html">getgrnam_r</a>(const char *, struct group *, char *, size_t , struct group **);struct group *<a href="getgrent.html">getgrent</a>(void);void <a href="endgrent.html">endgrent</a>(void);void <a href="setgrent.html">setgrent</a>(void);</code></pre></blockquote><h4><a name = "tag_000_005_878"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_879"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_880"> </a>SEE ALSO</h4><blockquote><i><a href="endgrent.html">endgrent()</a></i>,<i><a href="getgrgid.html">getgrgid()</a></i>,<i><a href="getgrgid.html">getgrgid_r()</a></i>,<i><a href="getgrnam.html">getgrnam()</a></i>,<i><a href="systypes.h.html"><sys/types.h></a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -