2007-10-07 17:14:02 +05:30
|
|
|
/*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-FileCopyrightText: 1988 - 1994, Julianne Frances Haugh
|
|
|
|
* SPDX-FileCopyrightText: 1996 - 1997, Marek Michałkiewicz
|
|
|
|
* SPDX-FileCopyrightText: 2003 - 2005, Tomasz Kłoczko
|
2007-10-07 17:14:02 +05:30
|
|
|
*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2008-04-27 06:10:09 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2007-11-11 05:16:11 +05:30
|
|
|
* $Id$
|
2007-10-07 17:14:02 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _H_GSHADOW
|
|
|
|
#define _H_GSHADOW
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Shadow group security file structure
|
|
|
|
*/
|
|
|
|
|
2007-10-07 17:16:07 +05:30
|
|
|
struct sgrp {
|
|
|
|
char *sg_name; /* group name */
|
|
|
|
char *sg_passwd; /* group password */
|
2011-08-14 18:46:54 +05:30
|
|
|
char **sg_adm; /* group administrator list */
|
2007-10-07 17:16:07 +05:30
|
|
|
char **sg_mem; /* group membership list */
|
2007-10-07 17:14:02 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Shadow group security file functions.
|
|
|
|
*/
|
|
|
|
|
2007-10-07 17:16:07 +05:30
|
|
|
#include <stdio.h> /* for FILE */
|
2007-10-07 17:14:02 +05:30
|
|
|
|
|
|
|
#if __STDC__
|
* libmisc/xgetXXbyYY.c, libmisc/myname.c, libmisc/getgr_nam_gid.c,
libmisc/salt.c, libmisc/list.c, libmisc/cleanup.c, src/login.c,
lib/getdef.h, lib/groupio.c, lib/getlong.c, lib/gshadow_.h,
lib/sgroupio.c, lib/shadowio.c, lib/pwio.c, lib/commonio.h,
lib/fputsx.c, lib/prototypes.h: Added splint annotations.
* lib/groupio.c: Avoid implicit conversion of pointers to
booleans.
* lib/groupio.c: Free allocated buffers in case of failure.
2009-04-23 15:27:03 +05:30
|
|
|
/*@observer@*//*@null@*/struct sgrp *getsgent (void);
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *getsgnam (const char *);
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *sgetsgent (const char *);
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *fgetsgent (/*@null@*/FILE *);
|
2007-10-07 17:16:07 +05:30
|
|
|
void setsgent (void);
|
|
|
|
void endsgent (void);
|
|
|
|
int putsgent (const struct sgrp *, FILE *);
|
2007-10-07 17:14:02 +05:30
|
|
|
#else
|
* libmisc/xgetXXbyYY.c, libmisc/myname.c, libmisc/getgr_nam_gid.c,
libmisc/salt.c, libmisc/list.c, libmisc/cleanup.c, src/login.c,
lib/getdef.h, lib/groupio.c, lib/getlong.c, lib/gshadow_.h,
lib/sgroupio.c, lib/shadowio.c, lib/pwio.c, lib/commonio.h,
lib/fputsx.c, lib/prototypes.h: Added splint annotations.
* lib/groupio.c: Avoid implicit conversion of pointers to
booleans.
* lib/groupio.c: Free allocated buffers in case of failure.
2009-04-23 15:27:03 +05:30
|
|
|
/*@observer@*//*@null@*/struct sgrp *getsgent ();
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *getsgnam ();
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *sgetsgent ();
|
|
|
|
/*@observer@*//*@null@*/struct sgrp *fgetsgent ();
|
2007-10-07 17:16:07 +05:30
|
|
|
void setsgent ();
|
|
|
|
void endsgent ();
|
|
|
|
int putsgent ();
|
2007-10-07 17:14:02 +05:30
|
|
|
#endif
|
|
|
|
|
|
|
|
#define GSHADOW "/etc/gshadow"
|
2007-10-07 17:16:07 +05:30
|
|
|
#endif /* ifndef _H_GSHADOW */
|