This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Comparison of glibc headers and C standards, part 2


This is the second of two parts of a comparison of the glibc headers
against the C standards.  The same general comments apply as in the
first part.

stdio.h
=======

Should not declare or use wchar_t, wint_t or off_t.

tgmath.h
========

See math.h and complex.h in previous message.

Should not define macro `gamma'; should define `tgamma'.

Namespace otherwise OK, but problems with the implementation will be
covered in a separate message.

time.h
======

CLOCKS_PER_SEC should be of type clock_t for C99 - on x86 Linux, this
is `long int' rather than the present `int' type of CLOCKS_PER_SEC.

wchar.h
=======

See stdint.h in previous message for wrong type/value of WCHAR_MIN and
WCHAR_MAX.

This header should not declare FILE.

The following functions are in AMD1 and should be declared by this
header when __STDC_VERSION__ >= 199409L, not just for C99: fwprintf,
fwscanf, wprintf, wscanf, swprintf, swscanf, vfwprintf, vwprintf,
vswprintf, fgetwc, fgetws, fputwc, fputws, getwc, getwchar, putwc,
putwchar, ungetwc, fwide, wcsftime.

wctype.h
========

This header should not declare size_t.

For C99, this header should declare iswblank.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]