23 #ifndef _SCHILY_LIBPORT_H 24 #define _SCHILY_LIBPORT_H 26 #ifndef _SCHILY_MCONFIG_H 29 #ifndef _SCHILY_TYPES_H 33 #ifndef _SCHILY_UNISTD_H 41 #if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_H) || defined(size_t) 46 #if defined(_MSC_VER) && !defined(_SIZE_T_DEFINED) 69 extern int snprintf __PR((
char *,
size_t,
const char *, ...))
82 #ifndef HAVE_GETHOSTID 83 extern long gethostid
__PR((
void));
85 #ifndef HAVE_GETPAGESIZE 92 #ifndef HAVE_STRCASECMP 96 #ifndef HAVE_STRNCASECMP 114 #if !defined(HAVE_STRDUP) || defined(__SVR4) 125 extern size_t strnlen
__PR((
const char *
s,
size_t len));
156 #ifdef _SCHILY_WCHAR_H 181 extern size_t wcsnlen
__PR((
const wchar_t *
s,
size_t len));
184 extern size_t wcslcat
__PR((
wchar_t *
s1,
const wchar_t *
s2,
188 extern size_t wcslcpy
__PR((
wchar_t *
s1,
const wchar_t *
s2,
230 #ifndef HAVE_BASENAME 238 #if defined(_SCHILY_TIME_H) 269 #ifndef HAVE_GETPWNAM 270 extern struct passwd *getpwnam
__PR((
const char *
name));
272 #ifndef HAVE_GETPWENT 273 extern struct passwd *getpwent
__PR((
void));
275 #ifndef HAVE_GETPWUID 276 extern struct passwd *getpwuid
__PR((
uid_t uid));
278 #ifndef HAVE_SETPWENT 279 extern void setpwent
__PR((
void));
281 #ifndef HAVE_ENDPWENT 282 extern void endpwent
__PR((
void));
286 #ifndef HAVE_GETGRNAM 289 #ifndef HAVE_GETGRENT 290 extern struct group *getgrent
__PR((
void));
292 #ifndef HAVE_GETGRGID 295 #ifndef HAVE_SETGRENT 296 extern void setgrent
__PR((
void));
298 #ifndef HAVE_ENDGRENT 299 extern void endgrent
__PR((
void));
303 extern int fchdir
__PR((
int fd));
306 extern int openat
__PR((
int fd,
const char *
name,
int oflag, ...));
310 #ifndef HAVE_GETTIMEOFDAY 311 #ifdef _SCHILY_TIME_H 316 #ifndef HAVE_FACCESSAT 317 extern int faccessat
__PR((
int fd,
const char *
name,
318 int amode,
int flag));
320 #ifndef HAVE_FCHMODAT 321 extern int fchmodat
__PR((
int fd,
const char *
name,
328 #ifndef HAVE_FCHOWNAT 329 extern int fchownat
__PR((
int fd,
const char *
name,
333 #ifndef HAVE_FDOPENDIR 334 #ifdef _SCHILY_DIRENT_H 339 #ifdef _SCHILY_STAT_H 341 extern int fstatat
__PR((
int fd,
const char *
name,
345 #ifdef _SCHILY_TIME_H 346 #ifndef HAVE_FUTIMENS 347 extern int futimens
__PR((
int fd,
350 #ifndef HAVE_FUTIMESAT 351 extern int futimesat
__PR((
int fd,
const char *
name,
352 const struct timeval __times[2]));
354 #ifndef HAVE_LUTIMENS 355 extern int lutimens
__PR((
const char *
name,
360 extern int linkat
__PR((
int fd1,
const char *
name1,
369 #ifndef HAVE_MKFIFOAT 373 extern int mknodat
__PR((
int fd,
const char *
name,
376 #ifndef HAVE_READLINKAT 378 char *lbuf,
size_t lbufsize));
380 #ifndef HAVE_RENAMEAT 381 extern int renameat
__PR((
int oldfd,
const char *__old,
382 int newfd,
const char *__new));
384 #ifndef HAVE_SYMLINKAT 386 int fd,
const char *
name));
388 #ifndef HAVE_UNLINKAT 391 #ifdef _SCHILY_TIME_H 393 extern int utimens
__PR((
const char *
name,
396 #ifndef HAVE_UTIMENSAT 397 extern int utimensat
__PR((
int fd,
const char *
name,
408 #include <schily/sunos4_proto.h>
char * strncat(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
int usleep(unsigned int useconds)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
static void basename(LPCWSTR path, LPWSTR name)
char * strstr(char *String1, char *String2)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
size_t strlcpy(char *d, const char *s, size_t bufsize)
#define __printflike__(fmtarg, firstvararg)
__cdecl __MINGW_NOTHROW char * dirname(char *)
EXPORT size_t strlcat(char *s1, const char *s2, size_t len)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
#define gettimeofday(tv, tz)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
EXPORT int setuid(uid_t uid)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
wchar_t * wcsndup(wchar_t *name, size_t len)
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
EXPORT int seteuid(uid_t uid)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
long gethostid __PR((void))
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
_Check_return_ _CRTIMP wchar_t *__cdecl wcsdup(_In_z_ const wchar_t *_Str)
_CRTIMP wchar_t *__cdecl wcsncat(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
EXPORT int setgid(gid_t gid)
char * strndup(char const *name, size_t len)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
EXPORT int setegid(gid_t gid)
char * strchr(const char *String, int ch)
char * strcpy(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
EXPORT int eaccess(char *name, int mode) const
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)