Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2002 20:55:58 GMT
From:      Mark Valentine <mark@thuvia.demon.co.uk>
To:        Garrett Wollman <wollman@lcs.mit.edu>
Cc:        cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/sys _iovec.h socket.h uio.h
Message-ID:  <200212292055.gBTKtwMk040146@dotar.thuvia.org>
In-Reply-To: <200212291938.gBTJcPk1009103@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Garrett Wollman <wollman@lcs.mit.edu>
> Date: Sun 29 Dec, 2002
> Subject: Re: cvs commit: src/sys/sys _iovec.h socket.h uio.h

> <<On Sun, 29 Dec 2002 19:24:37 GMT, Mark Valentine <mark@thuvia.demon.co.uk> said:
> 
> > However, ssize_t is _not_ defined in <aio.h>, <mqueue.h>, <sys/socket.h>,
> > where it is also used, though each of these headers _may_ (not _shall_)
> > make ssize_t visible as defined in <sys/types.h> and/or <sys/uio.h>.  This
> > may be a bug in the standard.
> 
> I think the answer is that it is possible for the implementation to
> declare those interfaces by using another type known by the
> implementation to be equivalent to ssize_t.

I didn't think even that much was required - maybe there's a bit of the 
standard which implies this that I've missed?

Ah, I see now that the synopsis for recvmsg() doesn't show <sys/types.h>
as being required.

I see also that other older interfaces such as stat() and mkdir() no longer
need the specific inclusion of <sys/types.h>, which is a change from older
versions of the standard.

I see the intention now, even if I've missed the specific wording in the
standard.

Portable code, however, probably includes <sys/types.h> explicitly as required
by older versions of the standard and non-standard implementations.

		Cheers,

		Mark.

-- 
Mark Valentine, Thuvia Labs <mark@thuvia.co.uk>       <http://www.thuvia.co.uk>;
"Tigers will do ANYTHING for a tuna fish sandwich."       Mark Valentine uses
"We're kind of stupid that way."   *munch* *munch*        and endorses FreeBSD
  -- <http://www.calvinandhobbes.com>;                  <http://www.freebsd.org>;

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




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