[Libreoffice] [PATCH] Replace command domainname by getdomainname() on Unix

Arnaud Versini arnaud.versini at gmail.com
Sun Nov 13 06:04:57 PST 2011


I've seen it is used by using gdb on _osl_getFullQualifiedDomainName. I
don't remember how but I could provide you the bt after the build. It's not
directly but _osl_getFullQualifiedDomainName is used during file locking.

I'm writting a patch to remove the usage of _osl_getDomainName.

2011/11/13 Noel Grandin <noelgrandin at gmail.com>

> Arnaud is correct, I was looking at the wrong method. But where do you
> see this method being used in file locking?
>
> Lionel, I've run across a lot of machines with badly configured DNS.
>
> socket.c:   _osl_getDomainName
>
> is only used by
> socket.c:   static sal_Char* _osl_getFullQualifiedDomainName (const
> sal_Char *pHostName)
>
> which is only used by
> socket.c:   static oslHostAddr _osl_hostentToHostAddr (const struct
> hostent *he)
>
> which is used by
> socket.c:   oslHostAddr SAL_CALL osl_psz_createHostAddrByName (const
> sal_Char *pszHostname)
> and
> socket.c:   oslHostAddr SAL_CALL osl_createHostAddrByAddr (const
> oslSocketAddr pAddr)
>
> and I assume that SAL_CALL means that these are part of the public API.
>



-- 
Arnaud Versini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111113/47ffbff1/attachment.htm>


More information about the LibreOffice mailing list