comparison lib/getusershell.c @ 10666:d162e4057aa8

Add getusershell(), setusershell(), endusershell() declarations to <unistd.h>.
author Bruno Haible <bruno@clisp.org>
date Sun, 19 Oct 2008 13:07:15 +0200
parents bbbbbf4cd1c5
children e8d2c6fc33ad
comparison
equal deleted inserted replaced
10665:5394a3a10398 10666:d162e4057aa8
1 /* getusershell.c -- Return names of valid user shells. 1 /* getusershell.c -- Return names of valid user shells.
2 2
3 Copyright (C) 1991, 1997, 2000, 2001, 2003, 2004, 2005, 2006 Free 3 Copyright (C) 1991, 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free
4 Software Foundation, Inc. 4 Software Foundation, Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or 8 the Free Software Foundation; either version 3 of the License, or
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 18
19 /* Written by David MacKenzie <djm@gnu.ai.mit.edu> */ 19 /* Written by David MacKenzie <djm@gnu.ai.mit.edu> */
20 20
21 #include <config.h> 21 #include <config.h>
22
23 /* Specification. */
24 #include <unistd.h>
22 25
23 #ifndef SHELLS_FILE 26 #ifndef SHELLS_FILE
24 # ifndef __DJGPP__ 27 # ifndef __DJGPP__
25 /* File containing a list of nonrestricted shells, one per line. */ 28 /* File containing a list of nonrestricted shells, one per line. */
26 # define SHELLS_FILE "/etc/shells" 29 # define SHELLS_FILE "/etc/shells"