~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/misc/prnetdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Fabien Tassin, Alexander Sack
  • Date: 2009-01-11 13:50:07 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111135007-butxlx6upwjcakod
Tags: 4.7.3-0ubuntu1
* New upstream version: 4.7.3 from NSPR_4_7_3_RTM tag

[ Fabien Tassin <fta@ubuntu.com> ]
* LP: #269188 - use /dev/urandom for better entropy on LTSP environments
* update diverged patches:
  - update debian/patches/30_pkgconfig.patch
  - update debian/patches/81_sonames.patch
  - update debian/patches/99_configure.patch

[ Alexander Sack <asac@ubuntu.com> ]
Drop debian soname patch for full upstream compatibility
* eliminate soname patch
  - delete debian/patches/81_sonames.patch
  - update debian/patches/series
* refresh configure patch to reflect dropped soname patch
  - update debian/patches/99_configure.patch
* install unversioned .so files
  - update debian/libnspr4-0d.install
* .so.0d links are not created without the soname patch. we create
  backlinks to the unversioned .so libs using debhelper; also we
  cannot dh_install the .0d versioned libs anymore and we drop
  them from .install accordingly
  - add debian/libnspr4-0d.links
  - update debian/libnspr4-0d.install
* implement link shuffeling transition (with abort cases) in
  maintainer scripts; affected libs: libnspr4.so libplc4.so libplds4.so
  - add debian/libnspr4-0d.postinst
  - add debian/libnspr4-0d.postrm
  - add debian/libnspr4-0d.preinst
  - add debian/libnspr4-0d.prerm
* drop soname version suffix from symbol files and reflect this fact by
  adjusting minimum version to this package version (4.7.3-0ubuntu1~)
  - update debian/libnspr4-0d.symbols
  - update debian/libnspr4-0d.symbols.amd64
  - update debian/libnspr4-0d.symbols.i386
  - update debian/libnspr4-0d.symbols.ia64
  - update debian/libnspr4-0d.symbols.lpia
  - update debian/libnspr4-0d.symbols.powerpc
* bump lower shlibs version constraint to 4.7.1+1.9-0ubuntu5~
  - update debian/rules
* rerun autoconf2.13 to apply dropped 81_sonames.patch to configure
  - update debian/patches/99_configure.patch
* explitly define libnspr4_0d_EXPORTED_LIBS and pass those manually
  to dpkg-gensymbols to workaround uncommon SONAME used by nspr libs
  - update debian/rules
* don't pretend to create shlibs-control file anymore; add binary
  lintian override for that
  - update debian/rules
* add #DEBHELPER# token to maintainer scripts
  - update debian/libnspr4-0d.postinst
  - update debian/libnspr4-0d.postrm
  - update debian/libnspr4-0d.preinst
  - update debian/libnspr4-0d.prerm

Show diffs side-by-side

added added

removed removed

Lines of Context:
700
700
 
701
701
        LOCK_DNS();
702
702
 
703
 
#ifdef XP_OS2_VACPP
704
 
        h = GETHOSTBYNAME((char *)name);
705
 
#else
706
703
        h = GETHOSTBYNAME(name);
707
 
#endif
708
704
    
709
705
        if (NULL == h)
710
706
        {
933
929
    }
934
930
#else /* _PR_INET6 */
935
931
    LOCK_DNS();
936
 
#ifdef XP_OS2_VACPP
937
 
    h = GETHOSTBYNAME((char *)name);
938
 
#else
939
932
    h = GETHOSTBYNAME(name);
940
 
#endif
941
933
#endif /* _PR_INET6 */
942
934
    
943
935
        if (NULL == h)
1101
1093
    }
1102
1094
#else   /* _PR_HAVE_GETIPNODEBYADDR */
1103
1095
    LOCK_DNS();
1104
 
#ifdef XP_OS2_VACPP
1105
 
        h = GETHOSTBYADDR((char *)addr, addrlen, af);
1106
 
#else
1107
1096
        h = GETHOSTBYADDR(addr, addrlen, af);
1108
 
#endif
1109
1097
#endif /* _PR_HAVE_GETIPNODEBYADDR */
1110
1098
        if (NULL == h)
1111
1099
        {
1185
1173
 
1186
1174
static struct protoent *getprotobyname_r(const char* name)
1187
1175
{
1188
 
#ifdef XP_OS2_VACPP
1189
 
        return getprotobyname((char *)name);
1190
 
#else
1191
1176
        return getprotobyname(name);
1192
 
#endif
1193
1177
} /* getprotobyname_r */
1194
1178
 
1195
1179
static struct protoent *getprotobynumber_r(PRInt32 number)
1380
1364
#else
1381
1365
        addrsize = sizeof(addr->ipv6);
1382
1366
#endif
1383
 
#if defined(XP_UNIX) || defined(XP_OS2_EMX)
 
1367
#if defined(XP_UNIX) || defined(XP_OS2)
1384
1368
    else if (AF_UNIX == addr->raw.family)
1385
1369
        addrsize = sizeof(addr->local);
1386
1370
#endif
2223
2207
    memset(&addr->ipv6.ip, 0, sizeof(addr->ipv6.ip));
2224
2208
 
2225
2209
    addr->inet.family = AF_INET;
2226
 
#ifdef XP_OS2_VACPP
2227
 
    addr->inet.ip = inet_addr((char *)string);
2228
 
#else
2229
2210
    addr->inet.ip = inet_addr(string);
2230
 
#endif
2231
2211
    if ((PRUint32) -1 == addr->inet.ip)
2232
2212
    {
2233
2213
        /*