Problem Report Number |
0012 |
Submitter's Classification |
Test Suite problem |
State |
Resolved |
Resolution |
Rejected (REJ) |
Problem Resolution ID |
REJ.PX.0005 |
Raised |
2004-03-30 05:53 |
Updated |
2004-04-05 14:52 |
Published |
2004-04-05 14:52 |
Product Standard |
1003.1-2003 System Interfaces |
Certification Program |
POSIX Certified by IEEE and The Open Group |
Test Suite |
VSX-PCTS2003 version 1.0 |
Test Identification |
/tset/XOPEN.os/time/clock/T.clock |
Problem Summary |
XOPEN.os/time/clock/clock.c doesn't have prototypes for atoi or abs |
Problem Text |
XOPEN.os/time/clock/clock.c doesn't have prototypes for atoi or abs,
because it includes <unistd.h> but not <stdlib.h> In POSIX01 mode,
this caues build failures |
Test Output |
/tset/XOPEN.os/time/clock/T.clock Failed
Make Information:
...
"clock.c", line 208: error #20: identifier "abs" is undefined
tolerance = (long) abs(atoi(cp));
^
"clock.c", line 208: error #20: identifier "atoi" is undefined
tolerance = (long) abs(atoi(cp));
^
make: *** [clock.o] Error 1
|