# include "portab.h"
/*@-incondefs@*/ /*@-redecl@*/
-extern /*@open@*/ /*@dependent@*/ FILE *yyin;
+extern /*:open:*/ /*@dependent@*/ FILE *yyin;
/*@=incondefs@*/ /*@=redecl@*/
/*@constant int NUMLIBS; @*/
# define NUMLIBS 17
/*@constant int NUMPOSIXLIBS; @*/
-# define NUMPOSIXLIBS 13
+# define NUMPOSIXLIBS 18
static ob_mstring posixlibs[NUMPOSIXLIBS] =
{
- "sys/stat",
- "sys/types",
"dirent",
"fcntl",
"grp",
"pwd",
"regex",
+ "sys/stat",
"sys/times",
+ "sys/types",
+ "netdb", /* unix */
+ "netinet/in", /* unix */
+ "sys/resource", /* unix */
+ "sys/socket", /* not posix */
+ "sys/syslog", /* not posix */
"sys/utsname",
"sys/wait",
"termios",
llassert (cstring_isDefined (sname));
xname = fileLib_withoutExtension (sname, cstring_makeLiteralTemp (".h"));
+ DPRINTF (("Include? %s", sname));
+
/*@access cstring@*/
llassert (cstring_isDefined (xname));
libname = strrchr (xname, CONNECTCHAR);
tmp);
fileloc_free (tmp);
- sfree (xname);
+ cstring_free (xname);
return TRUE;
}
{
if (context_getFlag (FLG_SKIPPOSIXHEADERS))
{
- sfree (xname);
+ cstring_free (xname);
return TRUE;
}
}
if (f == NULL)
{
- llgloberror (message ("Cannot open dump file for writing: %s", fname));
+ lldiagmsg (message ("Cannot open dump file for writing: %s", fname));
}
else
{