Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: cygwin Subject: Re: getpwuid, getuid, home References: <200009181037 DOT KAA01163 AT hermes DOT epita DOT fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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