bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:getlogin on Windows systems


From: tmacchant5
Subject: Re:getlogin on Windows systems
Date: Fri, 8 Jan 2010 14:22:15 +0900 (JST)

Hello

jwe wrote
*******************************************************
I'm using the glob module in GNU Octave and a Windows user complained 
that linking failed with an undefined reference to getlogin. 

The problem appears to be that getlogin_r is called from glob, and the 
gnulib replacement for getlogin_r calls getlogin unconditionally, but 
getlogin doesn't exist on Windows systems. 

What would be the preferred way of fixing this problem?  Should there 
be a separate getlogin module?  I see there is a 
doc/posix-functions/getlogin.texi file and that getlogin is mentioned 
in MODULES.html.sh and doc/gnulib.texi, but there doesn't appear to be 
an actual getlogin module. 

Providing a getlogin function for Windows should be fairly simple. 
For example, there is one in the libgfortran sources: 

 
http://gcc.gnu.org/viewcvs/trunk/libgfortran/intrinsics/getlog.c?view=markup

If adding a module is the thing to do, I could try to do it but I'm 
still very new to the gnulib sources so I might need some guidance to 
get all the details right. 
******************************************************************

I am the windows user that John have noticed in the above. I have googled
and found the implementation of getlogin in the  sowtware 'Trac'. The url
is

http://trac.cipherdyne.org/trac/fwknop-c/wiki#StartingPoints

getlogin.c and getlogin.h for windows can be download from

http://trac.cipherdyne.org/trac/fwknop-c/browser/trunk/win32

Can I use the above with the getlogin_r in the gnulib?

Regards

Tatsuro

--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]