141 lines
4.5 KiB
HTML
141 lines
4.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 -->
|
|
<!-- Copyright (c) 2001 The Open Group, All Rights Reserved -->
|
|
<title><grp.h></title>
|
|
</head>
|
|
<body bgcolor="white">
|
|
<script type="text/javascript" language="JavaScript" src="../jscript/codes.js">
|
|
</script>
|
|
|
|
<basefont size="3"> <a name="<grp.h>"></a> <a name="tag_13_18"></a><!-- <grp.h> -->
|
|
<!--header start-->
|
|
<center><font size="2">The Open Group Base Specifications Issue 6<br>
|
|
IEEE Std 1003.1-2001<br>
|
|
Copyright © 2001 The IEEE and The Open Group, All Rights reserved.</font></center>
|
|
|
|
<!--header end-->
|
|
<hr size="2" noshade>
|
|
<h4><a name="tag_13_18_01"></a>NAME</h4>
|
|
|
|
<blockquote>grp.h - group structure</blockquote>
|
|
|
|
<h4><a name="tag_13_18_02"></a>SYNOPSIS</h4>
|
|
|
|
<blockquote class="synopsis">
|
|
<p><tt>#include <grp.h></tt></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_03"></a>DESCRIPTION</h4>
|
|
|
|
<blockquote>
|
|
<p>The <i><grp.h></i> header shall declare the structure <b>group</b> which shall include the following members:</p>
|
|
|
|
<pre>
|
|
<tt>char *gr_name</tt> The name of the group. <tt>
|
|
gid_t gr_gid </tt> Numerical group ID. <tt>
|
|
char **gr_mem </tt> Pointer to a null-terminated array of character <tt>
|
|
</tt> pointers to member names. <tt>
|
|
</tt>
|
|
</pre>
|
|
|
|
<p>The <b>gid_t</b> type shall be defined as described in <a href="sys/types.h.html"><i><sys/types.h></i></a> .</p>
|
|
|
|
<p>The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.</p>
|
|
|
|
<pre>
|
|
<tt>struct group *getgrgid(gid_t);
|
|
struct group *getgrnam(const char *);
|
|
<sup>[<a href="javascript:open_code('TSF')">TSF</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">
|
|
int getgrgid_r(gid_t, struct group *, char *,
|
|
size_t, struct group **);
|
|
int getgrnam_r(const char *, struct group *, char *,
|
|
size_t , struct group **);
|
|
<img src="../images/opt-end.gif" alt="[Option End]" border="0">
|
|
<sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">
|
|
struct group *getgrent(void);
|
|
void endgrent(void);
|
|
void setgrent(void);
|
|
<img src="../images/opt-end.gif" alt="[Option End]" border="0">
|
|
</tt>
|
|
</pre>
|
|
</blockquote>
|
|
|
|
<hr>
|
|
<div class="box"><em>The following sections are informative.</em></div>
|
|
|
|
<h4><a name="tag_13_18_04"></a>APPLICATION USAGE</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_05"></a>RATIONALE</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_06"></a>FUTURE DIRECTIONS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_07"></a>SEE ALSO</h4>
|
|
|
|
<blockquote>
|
|
<p><a href="sys/types.h.html"><i><sys/types.h></i></a> , the System Interfaces volume of IEEE Std 1003.1-2001, <a
|
|
href="../functions/endgrent.html"><i>endgrent</i>()</a>, <a href="../functions/getgrgid.html"><i>getgrgid</i>()</a>, <a href=
|
|
"../functions/getgrnam.html"><i>getgrnam</i>()</a></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_08"></a>CHANGE HISTORY</h4>
|
|
|
|
<blockquote>
|
|
<p>First released in Issue 1.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_09"></a>Issue 5</h4>
|
|
|
|
<blockquote>
|
|
<p>The DESCRIPTION is updated for alignment with the POSIX Threads Extension.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_18_10"></a>Issue 6</h4>
|
|
|
|
<blockquote>
|
|
<p>The following new requirements on POSIX implementations derive from alignment with the Single UNIX Specification:</p>
|
|
|
|
<ul>
|
|
<li>
|
|
<p>The definition of <b>gid_t</b> is mandated.</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>The <a href="../functions/getgrgid_r.html"><i>getgrgid_r</i>()</a> and <a href=
|
|
"../functions/getgrnam_r.html"><i>getgrnam_r</i>()</a> functions are marked as part of the Thread-Safe Functions option.</p>
|
|
</li>
|
|
</ul>
|
|
</blockquote>
|
|
|
|
<div class="box"><em>End of informative text.</em></div>
|
|
|
|
<hr>
|
|
<hr size="2" noshade>
|
|
<center><font size="2"><!--footer start-->
|
|
UNIX ® is a registered Trademark of The Open Group.<br>
|
|
POSIX ® is a registered Trademark of The IEEE.<br>
|
|
[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
|
|
"../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>
|
|
]</font></center>
|
|
|
|
<!--footer end-->
|
|
<hr size="2" noshade>
|
|
</body>
|
|
</html>
|
|
|