Email List: Xaustin-review-lX
[All Lists]

Defect in XBD glob.h

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XBD glob.h
From: yyyyyy@xxxxxxxxxxxxx
Date: Thu, 24 Jan 2002 13:40:52 GMT
        Defect report from : Andrew Josey , The Open Group

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 236 line 8313 section glob.h editorial {tc1-3}

Problem:

Defect code :  1. Error

(page and line numbers are for the ft [finaltext] document)

When the restrict type qualifier was added to the glob() prototype
declaration in D4, it was applied to a function pointer argument;
per ISO/IEC 9899:1999 such a pointer type shall not be
restrict-qualified. 
(The definition on XSH page 573 line 18778-18779 is correct)




Action:

Action:
Change L8313-8314 from:
int glob(const char *restrict, int, int (*restrict)(const char *, int),
        glob_t *restrict);
to:
int glob(const char *restrict, int, int (*)(const char *, int),
        glob_t *restrict);

<Prev in Thread] Current Thread [Next in Thread>