1 /* 2 * Copyright 2008, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Axel Dörfler, axeld@pinc-software.de 7 */ 8 9 10 #include <unistd.h> 11 12 13 static int sShellIndex; 14 15 16 char * 17 getusershell(void) 18 { 19 if (sShellIndex++ == 0) 20 return "/bin/sh"; 21 22 return NULL; 23 } 24 25 26 void 27 endusershell(void) 28 { 29 sShellIndex = 0; 30 } 31 32 33 void 34 setusershell(void) 35 { 36 sShellIndex = 0; 37 } 38 39 40