Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 23:41:00 -0400 (EDT)
From:      Mike Heffner <mheffner@novacoxmail.com>
To:        Assar Westerlund <assar@FreeBSD.ORG>
Cc:        Warner Losh <imp@harmony.village.org>, arch@FreeBSD.ORG
Subject:   Making glob(3) portable (was Re: Importing lukemftpd)
Message-ID:  <XFMail.20010724234100.mheffner@novacoxmail.com>
In-Reply-To: <5litghyfxs.fsf@assaris.sics.se>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format
--_=XFMail.1.5.0.FreeBSD:20010724234100:2934=_
Content-Type: text/plain; charset=us-ascii


On 25-Jul-2001 Assar Westerlund wrote:
| Mike Heffner <mheffner@novacoxmail.com> writes:
|> Why not just do away with the LIMITHIT return code and just use GLOB_NOSPACE
|> like NetBSD and OpenBSD does?
| 
| because:
| 
| 1. It's a different error condition and thus I thought it merited
|    (still having) a different error code.
| 2. It wasn't as bad for portability.  Error codes aren't quite

In what way is it not as bad? I agree that we don't have all the error values
that NetBSD and OpenBSD have, but using a different one for this scenario than
what the other *BSDs use is not very portable either.

|    portabel among the *BSDs as it is currently, but perhaps we should
|    work on that.

IMO, removing GLOB_LIMITHIT, or whatever, and just using GLOB_NOSPACE with
errno=0 would be the first step in the direction of portability.

| 
| /assar


Mike

-- 
  Mike Heffner         <mheffner@[acm.]vt.edu>
  Fredericksburg, VA       <mikeh@FreeBSD.org>


--_=XFMail.1.5.0.FreeBSD:20010724234100:2934=_
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7Xj/LFokZQs3sv5kRAuQcAJ9w9KHYuc48aoTPC5sINfmOpZmTlwCfWdbE
yWA3lGejy4qcotJ0dZgnkWc=
=+D/t
-----END PGP SIGNATURE-----

--_=XFMail.1.5.0.FreeBSD:20010724234100:2934=_--
End of MIME message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20010724234100.mheffner>