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:
http://www.interopsystems.com/tools/tm.aspx?m=1028#1034


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:
http://www.suacommunity.com/forum/tm.aspx?high=&m=15542&mpage=2#


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:
http://www.interopsystems.com/tools/tm.aspx?m=3697


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>