123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef _GSHADOW_H
- #define _GSHADOW_H 1
- #include <features.h>
- #include <paths.h>
- #define __need_FILE
- #include <stdio.h>
- #define __need_size_t
- #include <stddef.h>
- #define GSHADOW _PATH_GSHADOW
- __BEGIN_DECLS
- struct sgrp
- {
- char *sg_namp;
- char *sg_passwd;
- char **sg_adm;
- char **sg_mem;
- };
- extern void setsgent (void);
- extern void endsgent (void);
- extern struct sgrp *getsgent (void);
- extern struct sgrp *getsgnam (const char *__name);
- extern struct sgrp *sgetsgent (const char *__string);
- extern struct sgrp *fgetsgent (FILE *__stream);
- extern int putsgent (const struct sgrp *__g, FILE *__stream);
- #ifdef __USE_MISC
- extern int getsgent_r (struct sgrp *__result_buf, char *__buffer,
- size_t __buflen, struct sgrp **__result);
- extern int getsgnam_r (const char *__name, struct sgrp *__result_buf,
- char *__buffer, size_t __buflen,
- struct sgrp **__result);
- extern int sgetsgent_r (const char *__string, struct sgrp *__result_buf,
- char *__buffer, size_t __buflen,
- struct sgrp **__result);
- extern int fgetsgent_r (FILE *__stream, struct sgrp *__result_buf,
- char *__buffer, size_t __buflen,
- struct sgrp **__result);
- #endif
- __END_DECLS
- #endif
|