conformtest: clean up POSIX expectations for sys/mman.h, sys/stat.h, sys/types.h

Siddhesh Poyarekar siddhesh@redhat.com
Wed Jun 11 17:56:00 GMT 2014


On Thu, May 15, 2014 at 09:43:05PM +0000, Joseph S. Myers wrote:
> diff --git a/conform/data/sys/mman.h-data b/conform/data/sys/mman.h-data
> index 0555fd1..3a88684 100644
> --- a/conform/data/sys/mman.h-data
> +++ b/conform/data/sys/mman.h-data
> @@ -39,8 +39,10 @@ optional-function int posix_typed_mem_get_info (int, struct posix_typed_mem_info
>  optional-function int posix_typed_mem_open (const char*, int, int)
>  # endif
>  
> +# ifndef POSIX
>  type size_t
>  type off_t
> +# endif

The earliest POSIX I could access (2001) as this text:

    The size_t and off_t types are defined as described in
    <sys/types.h>.

Since I didn't have a copy of the POSIX 1995/6, Carlos suggested I
look at the next best available thing, which was the Susv1 and that
too had the same text.  Wouldn't that make this change incorrect?

>  type suseconds_t
>  # endif
> +# ifndef POSIX
>  type time_t

The Susv1 has time_t in sys/types.h.

Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140611/a8760122/attachment.sig>


More information about the Libc-alpha mailing list