public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Shouldn't <sys/uio.h> be available everywhere?
@ 2017-07-12 19:42 Dionna Amalie Glaze via newlib
  2017-07-13  7:05 ` Sebastian Huber
  0 siblings, 1 reply; 2+ messages in thread
From: Dionna Amalie Glaze via newlib @ 2017-07-12 19:42 UTC (permalink / raw)
  To: newlib

I'm looking at the POSIX standard for readv and writev, and it looks
like there should be definitions for each of these given
__POSIX_VISIBLE >= 200112, not just being on a PowerPC platform with
an SPU. There should additionally be a definition of IOV_MAX in
<limits.h>.
Shall I go ahead and create a patch, or am I in error?

-- 
-Dionna Glaze, PhD (she/her)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Shouldn't <sys/uio.h> be available everywhere?
  2017-07-12 19:42 Shouldn't <sys/uio.h> be available everywhere? Dionna Amalie Glaze via newlib
@ 2017-07-13  7:05 ` Sebastian Huber
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Huber @ 2017-07-13  7:05 UTC (permalink / raw)
  To: Dionna Amalie Glaze, newlib

On 12/07/17 21:42, Dionna Amalie Glaze via newlib wrote:

> I'm looking at the POSIX standard for readv and writev, and it looks
> like there should be definitions for each of these given
> __POSIX_VISIBLE >= 200112, not just being on a PowerPC platform with
> an SPU. There should additionally be a definition of IOV_MAX in
> <limits.h>.
> Shall I go ahead and create a patch, or am I in error?
>

There are some uio.h in Newlib/Cygwin:

./winsup/cygwin/include/sys/uio.h
./newlib/libc/machine/spu/sys/uio.h
./newlib/libc/sys/rtems/include/sys/uio.h
./newlib/libc/sys/phoenix/sys/uio.h

It would be nice to unify this and move it to

./newlib/libc/include/sys/uio.h

For the #ifdef _KERNEL part (and similar) we can use something like this:

#ifdef _KERNEL
/* Header file provided outside of Newlib */
#include <machine/_kernel_uio.h>
#endif

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-13  7:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 19:42 Shouldn't <sys/uio.h> be available everywhere? Dionna Amalie Glaze via newlib
2017-07-13  7:05 ` Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).