Print this page
9842 man page typos and spelling

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3project/getprojent.3project
          +++ new/usr/src/man/man3project/getprojent.3project
↓ open down ↓ 56 lines elided ↑ open up ↑
  57   57  \fBvoid\fR \fBendprojent\fR(\fBvoid\fR);
  58   58  .fi
  59   59  
  60   60  .LP
  61   61  .nf
  62   62  \fBstruct project *\fR\fBfgetprojent\fR(\fBFILE *\fR\fIf\fR, \fBstruct project *\fR\fIproj\fR,
  63   63       \fBvoid *\fR\fIbuffer\fR, \fBsize_t\fR \fIbufsize\fR);
  64   64  .fi
  65   65  
  66   66  .SH DESCRIPTION
  67      -.sp
  68   67  .LP
  69   68  These functions are used to obtain entries describing user projects. Entries
  70   69  can come from any of the sources for a project specified in the
  71   70  \fB/etc/nsswitch.conf\fR file (see \fBnsswitch.conf\fR(4)).
  72   71  .sp
  73   72  .LP
  74   73  The \fBsetprojent()\fR, \fBgetprojent()\fR, and \fBendprojent()\fR functions
  75   74  are used to enumerate project entries from the database.
  76   75  .sp
  77   76  .LP
↓ open down ↓ 82 lines elided ↑ open up ↑
 160  159  .LP
 161  160  For enumeration in multithreaded applications, the position within the
 162  161  enumeration is a process-wide property shared by all threads. The
 163  162  \fBsetprojent()\fR function can be used in a multithreaded application but
 164  163  resets the enumeration position for all threads. If multiple threads interleave
 165  164  calls to \fBgetprojent()\fR, the threads will enumerate disjoint subsets of the
 166  165  project database. The \fBinproj()\fR, \fBgetprojbyname()\fR,
 167  166  \fBgetprojbyid()\fR, and \fBgetdefaultproj()\fR functions leave the enumeration
 168  167  position in an indeterminate state.
 169  168  .SH RETURN VALUES
 170      -.sp
 171  169  .LP
 172  170  Project entries are represented by the \fBstruct project\fR structure defined
 173  171  in <\fBproject.h\fR>.
 174  172  .sp
 175  173  .in +2
 176  174  .nf
 177  175  struct project {
 178  176      char      *pj_name;     /* name of the project */
 179  177      projid_t  pj_projid;    /* numerical project id */
 180  178      char      *pj_comment;  /* project comment */
↓ open down ↓ 11 lines elided ↑ open up ↑
 192  190  The \fBgetprojbyname()\fR and \fBgetprojbyid()\fR functions each return a
 193  191  pointer to a \fBstruct project\fR if they successfully locate the requested
 194  192  entry; otherwise they return \fINULL\fR.
 195  193  .sp
 196  194  .LP
 197  195  The \fBgetprojent()\fR function returns a pointer to a \fBstruct project\fR if
 198  196  it successfully enumerates an entry; otherwise it returns \fINULL\fR,
 199  197  indicating the end of the enumeration.
 200  198  .sp
 201  199  .LP
 202      -The \fBgetprojidbyname()\fR function returns the project ID if the requsted
      200 +The \fBgetprojidbyname()\fR function returns the project ID if the requested
 203  201  entry is found; otherwise it returns \(mi1 and sets errno to indicate the
 204  202  error.
 205  203  .sp
 206  204  .LP
 207  205  When the pointer returned by the reentrant functions \fBgetprojbyname()\fR,
 208  206  \fBgetprojbyid()\fR, and \fBgetprojent()\fR is non-null, it is always equal to
 209  207  the \fIproj\fR pointer that was supplied by the caller.
 210  208  .sp
 211  209  .LP
 212  210  Upon failure, \fBNULL\fR is returned and errno is set to indicate the error.
 213  211  .SH ERRORS
 214      -.sp
 215  212  .LP
 216  213  The \fBgetprojent()\fR, \fBgetprojbyname()\fR, \fBgetprojbyid()\fR,
 217  214  \fBinproj()\fR, \fBgetprojidbyname()\fR, \fBfgetprojent()\fR, and
 218  215  \fBgetdefaultproj()\fR functions will fail if:
 219  216  .sp
 220  217  .ne 2
 221  218  .na
 222  219  \fB\fBEINTR\fR\fR
 223  220  .ad
 224  221  .RS 10n
↓ open down ↓ 35 lines elided ↑ open up ↑
 260  257  .ad
 261  258  .RS 10n
 262  259  Insufficient storage was supplied by \fIbuffer\fR and \fIbufsize\fR to contain
 263  260  the data to be referenced by the resulting \fBproject\fR structure.
 264  261  .RE
 265  262  
 266  263  .sp
 267  264  .LP
 268  265  These functions can also fail if the name service switch does not specify valid
 269  266  \fBproject\fR(4) name service sources. In the case of an incompletely
 270      -configurated name service switch configuration, \fBgetprojbyid()\fR and other
      267 +configured name service switch configuration, \fBgetprojbyid()\fR and other
 271  268  functions can return error values other than those documented above. These
 272  269  conditions usually occur when the \fBnsswitch.conf\fR file indicates that one
 273  270  or more name services is providing entries for the project database when that
 274  271  name service does not actually make a project table available.
 275  272  .SH USAGE
 276      -.sp
 277  273  .LP
 278  274  When compiling multithreaded applications, see \fBIntro\fR(3), Notes On
 279  275  Multithreaded Applications.
 280  276  .sp
 281  277  .LP
 282  278  Use of the enumeration interface \fBgetprojent()\fR is discouraged. Enumeration
 283  279  is supported for the project file, NIS, and LDAP but in general is not
 284  280  efficient. The semantics of enumeration are discussed further in
 285  281  \fBnsswitch.conf\fR(4).
 286  282  .SH ATTRIBUTES
 287      -.sp
 288  283  .LP
 289  284  See \fBattributes\fR(5) for descriptions of the following attributes:
 290  285  .sp
 291  286  
 292  287  .sp
 293  288  .TS
 294  289  box;
 295  290  c | c
 296  291  l | l .
 297  292  ATTRIBUTE  TYPE ATTRIBUTE VALUE
 298  293  _
 299  294  Interface Stability     Evolving
 300  295  _
 301  296  MT-Level        See Description.
 302  297  .TE
 303  298  
 304  299  .SH SEE ALSO
 305      -.sp
 306  300  .LP
 307  301  \fBIntro\fR(3), \fBlibproject\fR(3LIB), \fBproject_walk\fR(3PROJECT),
 308  302  \fBsysconf\fR(3C), \fBnsswitch.conf\fR(4), \fBproject\fR(4),
 309  303  \fBattributes\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX