1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: getshells.cl
6 ;;;; Purpose: UFFI Example file to get lisp of legal shells
7 ;;;; Programmer: Kevin M. Rosenberg
8 ;;;; Date Started: Mar 2002
10 ;;;; $Id: getshells.lisp,v 1.1 2002/09/30 10:02:36 kevin Exp $
12 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
14 ;;;; UFFI users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
22 (uffi:def-function "setusershell"
26 (uffi:def-function "endusershell"
30 (uffi:def-function "getusershell"
35 "Returns list of valid shells"
38 (do ((shell (uffi:convert-from-cstring (getusershell))
39 (uffi:convert-from-cstring (getusershell))))
46 (format t "~&Shells: ~S" (getshells))