Sponsored Content
Operating Systems OS X (Apple) I need your input apple people. Post 44572 by PxT on Monday 8th of December 2003 03:31:12 PM
Old 12-08-2003
Well this probably won't help because I'm not really answering your question, BUT....

I just replaced my aging PIII 500Mhz with a new 17" iMac 1.25Ghz. I've never owned an Apple before. So far I like it. I've been doing some video-editing, graphics work, as well as filling up the disk w/ a ton of music and photos from my digital camera. Everything just works. Unix command-line is there when you need it. Two thumbs up so far from me...
 

We Also Found This Discussion For You

1. Programming

Input data control (need some adviced from other people)

This is the situation. I'm in doubt where to integeate some functions for taking user input which then must be transfered in the production database. I usually tend put everything in frontend application so database can be just a database, no other functions except storing and fetching data on... (3 Replies)
Discussion started by: solaris_user
3 Replies
getusershell(3C)					   Standard C Library Functions 					  getusershell(3C)

NAME
getusershell, setusershell, endusershell - get legal user shells SYNOPSIS
#include <unistd.h> char *getusershell(void); void setusershell(void); void endusershell(void); DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If /etc/shells does not exist, the following locations of the standard system shells are used in its place: /bin/bash /bin/csh /bin/jsh /bin/ksh /bin/ksh93 /bin/pfcsh /bin/pfksh /bin/pfsh /bin/sh /bin/tcsh /bin/zsh /sbin/jsh /sbin/pfsh /sbin/sh /usr/bin/bash /usr/bin/csh /usr/bin/jsh /usr/bin/ksh /usr/bin/ksh93 /usr/bin/pfcsh /usr/bin/pfksh /usr/bin/pfsh /usr/bin/sh /usr/bin/tcsh /usr/bin/zsh /usr/sfw/bin/zsh /usr/xpg4/bin/sh The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells. The setusershell() function rewinds the file or the list. The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells. RETURN VALUES
The getusershell() function returns a null pointer on EOF. BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved. NOTES
Restricted shells should not be listed in /etc/shells. SunOS 5.11 1 Nov 2007 getusershell(3C)
All times are GMT -4. The time now is 10:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy