f93cf255d4
Closes #238 Update all files to list SPDX license shortname. Most files are BSD 3 clause license. The exceptions are: serge@sl ~/src/shadow$ git grep SPDX-License | grep -v BSD-3-Clause contrib/atudel:# SPDX-License-Identifier: BSD-4-Clause lib/tcbfuncs.c: * SPDX-License-Identifier: 0BSD libmisc/salt.c: * SPDX-License-Identifier: Unlicense src/login_nopam.c: * SPDX-License-Identifier: Unlicense src/nologin.c: * SPDX-License-Identifier: BSD-2-Clause src/vipw.c: * SPDX-License-Identifier: GPL-2.0-or-later Signed-off-by: Serge Hallyn <serge@hallyn.com>
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 1988 - 1994, Julianne Frances Haugh
|
|
* SPDX-FileCopyrightText: 1996 - 1997, Marek Michałkiewicz
|
|
* SPDX-FileCopyrightText: 2003 - 2005, Tomasz Kłoczko
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef _H_GSHADOW
|
|
#define _H_GSHADOW
|
|
|
|
/*
|
|
* Shadow group security file structure
|
|
*/
|
|
|
|
struct sgrp {
|
|
char *sg_name; /* group name */
|
|
char *sg_passwd; /* group password */
|
|
char **sg_adm; /* group administrator list */
|
|
char **sg_mem; /* group membership list */
|
|
};
|
|
|
|
/*
|
|
* Shadow group security file functions.
|
|
*/
|
|
|
|
#include <stdio.h> /* for FILE */
|
|
|
|
#if __STDC__
|
|
/*@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 *);
|
|
void setsgent (void);
|
|
void endsgent (void);
|
|
int putsgent (const struct sgrp *, FILE *);
|
|
#else
|
|
/*@observer@*//*@null@*/struct sgrp *getsgent ();
|
|
/*@observer@*//*@null@*/struct sgrp *getsgnam ();
|
|
/*@observer@*//*@null@*/struct sgrp *sgetsgent ();
|
|
/*@observer@*//*@null@*/struct sgrp *fgetsgent ();
|
|
void setsgent ();
|
|
void endsgent ();
|
|
int putsgent ();
|
|
#endif
|
|
|
|
#define GSHADOW "/etc/gshadow"
|
|
#endif /* ifndef _H_GSHADOW */
|