Re: [PATCH v1] Port ndbm

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jul 25 11:07, Vaibhav Gupta wrote:
> On Thu, Jul 25, 2019, 1:48 AM Corinna Vinschen <[email protected]> wrote:
> 
> > On Jul 24 09:22, Corinna Vinschen wrote:
> > > On Jul 10 14:25, Vaibhav Gupta wrote:
> > > > ---
> > > >  newlib/libc/include/ndbm.h     |  93 ++++++++++++++
> > > >  newlib/libc/search/Makefile.am |   1 +
> > > >  newlib/libc/search/ndbm.c      | 217 +++++++++++++++++++++++++++++++++
> > > >  3 files changed, 311 insertions(+)
> > > >  create mode 100644 newlib/libc/include/ndbm.h
> > > >  create mode 100644 newlib/libc/search/ndbm.c
> > >
> > > Pushed.
> >
> > However, where's dbm_forder?  It's declared in ndbm.h but there's no
> > such function in ndbm.c.
> >
> Both dbm_forder and dbm_dirinfo are wrapped inside __BSD_VISIBLE, although
> dbm_dirinfo is defined in ndbm.c but it will not be usable i guess.

Do you mean dbm_dirfno?  Why should it be unusable?

> I explored a bit, found that some features are for BSD systems and are not
> compatible with POSIX,
> Moreover dbm_forder and dbm_dirinfo are not mentioned in open group page.
> .
> I didn't planned to modify the contents much when i ported
> It from FreeBSD and hence they are present here. If required I can remove
> them and send a new patch.

Yes for dbm_forder, but dbm_dirfno doesn't look wrong, just BSDish,
which is fine when guarded.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl05br0ACgkQ9TYGna5E
T6D0Og//Rd9E+rPdFltx1zkdFvn80ely1X359TATFTJLdSkVbd+hZNZ9gW1p9Jv/
2M/21Fe6BpMwSaecdFWpoJ6rfzIAbJwp0BIlTRSo/7zjA4R0O6h5LQnvOi+1Czif
Eq9DGE6L3v/fZW0AOqSoZRFKiCGcke0GHD2gZtD55ZMAk+JMvCtrzeQYJsenXFjO
MJZ8woUh+SpnNUwTIBgRJzBsnwT2pFiqhCdT+bzCMm4aNIxB+EneRd/5MWxuKsNm
dUTpm6HzOMVl6ItLYhH4bdPVVyXqFcO7g+j+et5FXwJGDWNM4lLEtELY3gTMAl+w
VEGN0vfg1LWBfdCq87XSSkY+FaQ8lXNXlfnC3Hh+C7608hybAUNBFGHCH+dvO96m
A2oQhxdrbfRmQAR0OKCxDlF0ifIyAMccqOXro4YnnYnd4NnBLoPckT8hdLQy3yVH
SLzOEPKEMwqTwTbCaXGLX2Uy34E6Ow2KYojkGkpmDmvV7DqkgUEDo3/YDPyCAZ4q
cOOFyGYYcqA6aO/BD5DnMaDnUWbEp+d8iy0DKncx/rG/mgaoCpdgnJdmd+/71Qsx
7j+HysoP0tELOcsUU9XVfQWmQVNtaf8D6oHwQmsH+4j/Ac6jBDvCtNoVj2ZRo3wN
s0lMWpFnK8lGdA2QYQVzhuFsbynXiOf4PbhbF/XFnEQ9dqXKZiA=
=xUeX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.