home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttpppprrrroooojjjjuuuusssseeeerrrr((((3333cccc)))) ggggeeeettttpppprrrroooojjjjuuuusssseeeerrrr((((3333cccc))))
-
-
-
- NNNNAAAAMMMMEEEE
- getprojuser, fgetprojuser - get a user's project IDs
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<pppprrrroooojjjj....hhhh>>>>
-
- iiiinnnntttt ggggeeeettttpppprrrroooojjjjuuuusssseeeerrrr((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, pppprrrroooojjjjiiiidddd____tttt ****bbbbuuuuffff,,,, iiiinnnntttt lllleeeennnn))));;;;
-
- iiiinnnntttt ffffggggeeeettttpppprrrroooojjjjuuuusssseeeerrrr((((PPPPRRRROOOOJJJJ ttttooookkkkeeeennnn,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, pppprrrroooojjjjiiiidddd____tttt ****bbbbuuuuffff,,,, iiiinnnntttt lllleeeennnn))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _g_e_t_p_r_o_j_u_s_e_r function searches the pppprrrroooojjjjeeeecccctttt file for the user _n_a_m_e and
- stores information about the projects for which _n_a_m_e is authorized into
- an array of pppprrrroooojjjjiiiidddd____tttt structs. The array is pointed to by _b_u_f and is
- assumed to have room for a maximum of _l_e_n entries. The pppprrrroooojjjjiiiidddd____tttt struct
- is defined in <<<<pppprrrroooojjjj....hhhh>>>> 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 MMMMAAAAXXXXPPPPRRRROOOOJJJJNNNNAAAAMMMMEEEELLLLEEEENNNN-1 characters
- will be truncated. The _pppp_rrrr_oooo_jjjj______nnnn_aaaa_mmmm_eeee field is always null-terminated.
-
- The _f_g_e_t_p_r_o_j_u_s_e_r function is a variant of _g_e_t_p_r_o_j_u_s_e_r that uses a PPPPRRRROOOOJJJJ
- token to make it more efficient for repeated use. Otherwise its
- operation is identical. For more details on creating a PPPPRRRROOOOJJJJ token, see
- _o_p_e_n_p_r_o_j(3C).
-
- FFFFIIIILLLLEEEESSSS
- ////eeeettttcccc////pppprrrroooojjjjiiiidddd System project name to project ID mappings.
-
- ////eeeettttcccc////pppprrrroooojjjjeeeecccctttt System project authorization file.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- closeproj(3C), getdfltprojuser(3C), getprojall(3C), openproj(3C),
- projid(4), projects(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _g_e_t_p_r_o_j_u_s_e_r and _f_g_e_t_p_r_o_j_u_s_e_r both return the number of pppprrrroooojjjjiiiidddd____tttt's stored
- (which may be 0 if the user was not found or if the user is not
- authorized for any projects) or -1 if an error occurred.
-
- BBBBUUUUGGGGSSSS
- Both functions use _f_o_p_e_n(3S) and are thus subject to its limitations.
-
- Project information should be (optionally) obtained via NIS.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-