[RTEMS Project] #3631: unknown type name 'off_t' in regex.h
RTEMS trac
trac at rtems.org
Mon Dec 3 16:12:52 UTC 2018
#3631: unknown type name 'off_t' in regex.h
-----------------------------------+-------------------------
Reporter: Himanshu Sekhar Nayak | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: Indefinite
Component: tool/newlib | Version:
Severity: normal | Resolution:
Keywords: POSIX-Compliance | Blocked By:
Blocking: |
-----------------------------------+-------------------------
Changes (by Joel Sherrill):
* keywords: => POSIX-Compliance
* component: admin => tool/newlib
* milestone: => Indefinite
Old description:
> Seems like for "off_t" in regex.h is unknown type as it doesn't have it
> required header file.
>
> Here is the error:-
>
> In file included from
> /home/himanshu/development/rtems/kernel/rtems/c/src/../../testsuites/psxtests/psxhdrs/regex/regcomp.c:26:0:
> /home/himanshu/development/rtems/5/sparc-rtems5/include/regex.h:43:9:
> error: unknown type name 'off_t'
> typedef off_t regoff_t;
New description:
Seems like for "off_t" in regex.h is unknown type as it doesn't have it
required header file.
Here is the error:-
In file included from
/home/himanshu/development/rtems/kernel/rtems/c/src/../../testsuites/psxtests/psxhdrs/regex/regcomp.c:26:0:
/home/himanshu/development/rtems/5/sparc-rtems5/include/regex.h:43:9:
error: unknown type name 'off_t'
typedef off_t regoff_t;
Note this test case which works:
{{{
#include <sys/types.h> // should not be needed
#include <regex.h>
int f(void)
{
return regcomp(NULL, "", 1);
}
}}}
Per http://pubs.opengroup.org/onlinepubs/009695399/functions/regcomp.html,
the only include necessary should be <regex.h>.
--
--
Ticket URL: <http://devel.rtems.org/ticket/3631#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list