fgetprojall man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



getprojall(3c)							getprojall(3c)

NAME
     getprojall, fgetprojall - enumerate all project IDs

SYNOPSIS
     #include <proj.h>

     int getprojall(projid_t *buf, int len);

     int fgetprojall(PROJ token, projid_t *buf, int len);

DESCRIPTION
     The getprojall function stores information about all of the project IDs
     known to the system into an array of projid_t structs pointed to by buf.
     A maximum of len entries will be stored.  The projid_t struct is defined
     in <proj.h> and has the following format:

	  #define MAXPROJNAMELEN 32
	  typedef struct projid {
		  char	  proj_name[MAXPROJNAMELEN];	  /* project name */
		  prid_t  proj_id;			  /* project ID */
	  } projid_t;

     Note that project names that have more than MAXPROJNAMELEN-1 characters
     will be truncated.	 The proj_name field is always null-terminated.

     The fgetprojall function is a variant of getprojall that uses a PROJ
     token to make it more efficient for repeated use.	Otherwise its
     operation is identical.  For more details on creating a PROJ token, see
     openproj(3C).

FILES
     /etc/projid    System project name to project ID mappings.

SEE ALSO
     closeproj(3C), getprojuser(3C), openproj(3C), projid(3C), projname(3C),
     projid(4), projects(5).

DIAGNOSTICS
     getprojall and fgetprojall both return the number of projid_t's stored
     (which may be 0 if the none are defined for the system) or -1 if an error
     occurred.

BUGS
     All of the functions use fopen(3S) and are thus subject to its
     limitations.

     Project ID information should be (optionally) obtained via NIS.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net