Header file Bugs

langinfo.h: nl_langinfo(3) misses C++ guards

When using nl_langinfo() in a C++ program, you should: #ifdef __cplusplus extern "C" { #endif #include <langinfo.h> #ifdef __cplusplus } #endif see also:

syslog.h misses C++ guards

When using syslog() in a C++ program, you should: #ifdef __cplusplus extern "C" { #endif #include <syslog.h> #ifdef __cplusplus } #endif see also:

stdio.h: ftello(3) not declared

SFU 3.5 doesn't have ftello() declared in stdio.h. The prototype is: extern off_t ftello(FILE *fp);

stdlib.h: strtoq(3)/strtouq(3) not declared

The strtoq()/strtouq() prototypes are: #ifdef __cplusplus extern "C" { #endif #include <sys/types.h> extern quad_t __cdecl strtoq(const char *, char **, int); extern u_quad_t __cdecl strtouq(const char *, char **, int); #ifdef __cplusplus } #endif see also:

stdlib.h: unsetenv(3) not declared

unsetenv() is not declared in stdlib.h. The prototype is: int unsetenv (const char *name); see also: man 3 unsetenv

inttypes.h and stdint.h are missing

Some definitions can be found in #include <sys/types.h>

stdint.h isn't included by inttypes.h

inttypes.h: PRI*64 definitions are missing

Bug database Debian Interix home

Last update of this document: Sunday, 26-Jul-2009 19:48:03 CEST
Copyright 2007-2009 Martin Köppe <mkoeppe 'at' gmx . de>