AC_CHECK_HEADERS([ \
execinfo.h \
-errno.h \
libgen.h \
mcheck.h \
netinet/in.h \
#include <string.h>
#include <sys/types.h>
-
-#ifdef HAVE_ERRNO_H
-# include <errno.h> /* for EAGAIN */
-#endif
+#include <errno.h> /* for EAGAIN */
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
# include <arpa/inet.h>
#endif
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
-
#include "dns.h"
#include "Ecore.h"
# include <config.h>
#endif
+#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
-
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
# include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_ERRNO_H
#include <errno.h>
-#endif /* HAVE_ERRNO_H */
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#endif /* HAVE_CONFIG_H */
#include <dirent.h>
-
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
#include "Evil.h"
/* valid name */
if (!name || !*name)
{
-#ifdef HAVE_ERRNO_H
errno = ENOENT;
-#endif
return NULL;
}
wname = evil_char_to_wchar(name);
if (!wname)
{
-# ifdef HAVE_ERRNO_H
errno = ENOMEM;
-# endif
return NULL;
}
if((attr = GetFileAttributes(name)) == 0xFFFFFFFF)
#endif
{
-#ifdef HAVE_ERRNO_H
errno = ENOENT;
-#endif
return NULL;
}
/* directory */
if (!(attr & FILE_ATTRIBUTE_DIRECTORY))
{
-#ifdef HAVE_ERRNO_H
errno = ENOTDIR;
-#endif
return NULL;
}
dir = (DIR *)malloc(sizeof(DIR));
if (!dir)
{
-#ifdef HAVE_ERRNO_H
errno = ENOMEM;
-#endif
return NULL;
}
tmp1 = (char *)malloc(sizeof(char) * l + 5);
if (!tmp1)
{
-#ifdef HAVE_ERRNO_H
errno = ENOMEM;
-#endif
return NULL;
}
wname = evil_char_to_wchar(tmp1);
if (!wname)
{
-#ifdef HAVE_ERRNO_H
errno = ENOMEM;
-#endif
free(tmp1);
return NULL;
{
if (!dir)
{
-#ifdef HAVE_ERRNO_H
errno = EBADF;
-#endif
return -1;
}
if (!dir)
{
-#ifdef HAVE_ERRNO_H
errno = EBADF;
-#endif
return NULL;
}
# include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <errno.h>
#include <stdio.h>
#include <ctype.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif /* HAVE_ERRNO_H */
-
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
# include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_ERRNO_H
#include <errno.h>
-#endif /* HAVE_ERRNO_H */
#include <shlobj.h>
#include <objidl.h>
#define __CRT__NO_INLINE
+#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdarg.h>
#include <wctype.h>
#include <locale.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif /* HAVE_ERRNO_H */
-
#include "evil_pformat.h"
#include "evil_print.h"
#include "gdtoa/gdtoa.h"
if (!s || s->fp == NULL || !format)
{
-#ifdef HAVE_ERRNO_H
errno = EINVAL;
-#endif /* HAVE_ERRNO_H */
return EOF;
}
do
{
if ((c == EOF || (c = in_ch (s, &read_in)) == EOF)
-#ifdef HAVE_ERRNO_H
- && errno == EINTR
-#endif /* HAVE_ERRNO_H */
- )
+ && errno == EINTR)
return cleanup_return ((!rval ? EOF : rval), &gcollect, pstr, &wbuf);
}
while (isspace (c));
{
if ((c = in_ch (s, &read_in)) == EOF)
{
-#ifdef HAVE_ERRNO_H
errno = EILSEQ;
-#endif /* HAVE_ERRNO_H */
return cleanup_return (rval, &gcollect, pstr, &wbuf);
}
if (n != 1)
{
-#ifdef HAVE_ERRNO_H
errno = EILSEQ;
-#endif /* HAVE_ERRNO_H */
return cleanup_return (rval, &gcollect, pstr, &wbuf);
}
break;
{
if ((c = in_ch (s, &read_in)) == EOF)
{
-#ifdef HAVE_ERRNO_H
errno = EILSEQ;
-#endif /* HAVE_ERRNO_H */
return cleanup_return (rval, &gcollect, pstr, &wbuf);
}
if (n != 1)
{
-#ifdef HAVE_ERRNO_H
errno = EILSEQ;
-#endif /* HAVE_ERRNO_H */
return cleanup_return (rval, &gcollect, pstr, &wbuf);
}
if (cnt != 0)
{
-#ifdef HAVE_ERRNO_H
errno = EILSEQ;
-#endif /* HAVE_ERRNO_H */
return cleanup_return (rval, &gcollect, pstr, &wbuf);
}
#include <fcntl.h>
#include <sys/stat.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif /* HAVE_ERRNO_H */
+#include <errno.h>
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
/* if '=' is found, return EINVAL */
if (strchr (name, '='))
{
-#ifdef HAVE_ERRNO_H
errno = EINVAL;
-#endif /* HAVE_ERRNO_H */
return -1;
}
str = (char *)malloc(length);
if (!str)
{
-#ifdef HAVE_ERRNO_H
errno = ENOMEM;
-#endif /* HAVE_ERRNO_H */
return -1;
}
if (!value)
if ((length < 6) ||
(strncmp (__template + length - 6, "XXXXXX", 6)))
{
-#ifdef HAVE_ERRNO_H
errno = EINVAL;
-#endif /* HAVE_ERRNO_H */
return -1;
}
free(wtemplate);
if (!f)
{
-# ifdef HAVE_ERRNO_H
errno = EEXIST;
-# endif /* HAVE_ERRNO_H */
return -1;
}
fd = (int)_fileno(f);
val += 7777;
}
-#ifdef HAVE_ERRNO_H
errno = EEXIST;
-#endif /* HAVE_ERRNO_H */
return -1;
}
# include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_ERRNO_H
#include <errno.h>
-#endif /* HAVE_ERRNO_H */
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN