|
Home > Archive > Unix Programming > June 2005 > fts.h or dirent.h for portability?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
fts.h or dirent.h for portability?
|
|
|
| Hi, I just was wondering if fts functions are in any standard. I've
looked
into IEEE Std 1003.1 and found nothing.
What would be more portable fts.h or dirent.h? Thanks in advance.
| |
| Andrei Voropaev 2005-06-23, 2:48 am |
| On 2005-06-23, kroty <kroty@fibertel.com.ar> wrote:
> Hi, I just was wondering if fts functions are in any standard. I've
> looked
> into IEEE Std 1003.1 and found nothing.
> What would be more portable fts.h or dirent.h? Thanks in advance.
>
Usually man pages for the functions have section CONFORMING TO. This
section lists all the standarts in which the function appears. So for
fts I get BSD 4.4 only.
--
Minds, like parachutes, function best when open
| |
| Bjorn Reese 2005-06-23, 6:00 pm |
| kroty wrote:
> Hi, I just was wondering if fts functions are in any standard. I've
> looked
> into IEEE Std 1003.1 and found nothing.
> What would be more portable fts.h or dirent.h? Thanks in advance.
dirent.h is in both POSIX (ISO/IEC 9943-1:1990) and XOPEN (XPG3),
fts.h is in none, so I guess that answers your question.
--
mail1dotstofanetdotdk
| |
| Pascal Bourguignon 2005-06-23, 6:00 pm |
| Bjorn Reese <breese@see.signature> writes:
> kroty wrote:
>
> dirent.h is in both POSIX (ISO/IEC 9943-1:1990) and XOPEN (XPG3),
> fts.h is in none, so I guess that answers your question.
CONFORMING TO
BSD 4.4. The fts utility is expected to be included in a future IEEE Std
1003.1-1988 (``POSIX.1'') revision.
But you're right, fts did not make it. It's ftw that made it:
http://www.opengroup.org/onlinepubs...ctions/ftw.html
--
__Pascal Bourguignon__ http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.
| |
| Nils Weller 2005-06-23, 6:00 pm |
| In article <878y1050fc.fsf@thalassa.informatimago.com>,
Pascal Bourguignon wrote:
> Bjorn Reese <breese@see.signature> writes:
>
>
> CONFORMING TO
> BSD 4.4. The fts utility is expected to be included in a future IEEE Std
> 1003.1-1988 (``POSIX.1'') revision.
>
> But you're right, fts did not make it. It's ftw that made it:
>
> http://www.opengroup.org/onlinepubs...ctions/ftw.html
ftw() was already in SVID, but is still not portable enough if you care
about 4.4BSD-derived systems: OpenBSD seems to have gotten this some
time in 2003, it wasn't in FreeBSD until July 2004 (see the C99 &
POSIX conformance project page - www.freebsd.org/projects/c99/) and
NetBSD still doesn't have it (I don't know about OSX.)
--
Nils R. Weller, Bremen / Germany
My real email address is ``nils<at>gnulinux<dot>nl''
.... but I'm not speaking for the Software Libre Foundation!
|
|
|
|
|