delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <39C7D90B.B3CCE756@cygnus.com> |
Date: | Tue, 19 Sep 2000 17:22:19 -0400 |
From: | Corinna Vinschen <vinschen AT cygnus DOT com> |
Reply-To: | cygwin <cygwin AT sources DOT redhat DOT com> |
X-Mailer: | Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) |
X-Accept-Language: | de, en |
MIME-Version: | 1.0 |
To: | cygwin <cygwin AT sources DOT redhat DOT com> |
Subject: | Re: getpwuid, getuid, home |
References: | <200009181037 DOT KAA01163 AT hermes DOT epita DOT fr> |
flav astraud wrote: > > hello, > I would like to create a directory in the user path, > On unix I do 'getpwuid(getuid())' > what can I do under cygwin ?? The same as long as your /etc/passwd isn't screwed up. > What happen when I do 'getenv("HOME")' ?? It depends. If you run a console window: It's set if you have it set explicitly. If you start from telnet/ssh: It's the value from your /etc/passwd pw_dir entry. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT sources DOT redhat DOT com Red Hat, Inc. mailto:vinschen AT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |