Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
97a795ad
Commit
97a795ad
authored
Aug 14, 1998
by
Kurt Zeilenga
Browse files
generic headers
parent
a5846071
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/ac/dirent.h
0 → 100644
View file @
97a795ad
/* Generic dirent.h */
#ifndef _AC_DIRENT_H
#define _AC_DIRENT_H
#if HAVE_DIRENT_H
# include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name)
#else
# define dirent direct
# define NAMLEN(dirent) (dirent)->d_namlen
# if HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif
# if HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif
# if HAVE_NDIR_H
# include <ndir.h>
# endif
#endif
#endif
/* _AC_DIRENT_H */
include/ac/string.h
0 → 100644
View file @
97a795ad
/* Generic string.h */
#ifndef _AC_STRING_H
#define _AC_STRING_H
#if STDC_HEADERS
# include <string.h>
#else
# ifndef HAVE_STRCHR
# define strchr index
# define strrchr rindex
# endif
char
*
strchr
(),
*
strrchr
();
# ifndef HAVE_MEMCPY
# define memcpy(d, s, n) bcopy ((s), (d), (n))
# define memmove(d, s, n) bcopy ((s), (d), (n))
# endif
#endif
#endif
/* _AC_STRING_H */
include/ac/time.h
0 → 100644
View file @
97a795ad
/* Generic time.h */
#ifndef _AC_TIME_H
#define _AC_TIME_H
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#endif
/* _AC_TIME_H */
include/ac/unistd.h
0 → 100644
View file @
97a795ad
/* Generic unistd.h */
#ifndef _AC_UNISTD_H
#define _AC_UNISTD_H
#if HAVE_UNISTD_H
# include <sys/types.h>
# include <unistd.h>
#endif
/* use _POSIX_VERSION for POSIX.1 code */
#endif
/* _AC_UNISTD_H */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment