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)
69extern int snprintf __PR((
char *,
size_t,
const char *, ...))
83extern long gethostid
__PR((
void));
85#ifndef HAVE_GETPAGESIZE
92#ifndef HAVE_STRCASECMP
96#ifndef HAVE_STRNCASECMP
114#if !defined(HAVE_STRDUP) || defined(__SVR4)
125extern size_t strnlen
__PR((
const char *
s,
size_t len));
156#ifdef _SCHILY_WCHAR_H
181extern size_t wcsnlen
__PR((
const wchar_t *
s,
size_t len));
184extern size_t wcslcat
__PR((
wchar_t *
s1,
const wchar_t *
s2,
188extern size_t wcslcpy
__PR((
wchar_t *
s1,
const wchar_t *
s2,
238#if defined(_SCHILY_TIME_H)
270extern struct passwd *getpwnam
__PR((
const char *
name));
273extern struct passwd *getpwent
__PR((
void));
276extern struct passwd *getpwuid
__PR((
uid_t uid));
279extern void setpwent
__PR((
void));
282extern void endpwent
__PR((
void));
290extern struct group *getgrent
__PR((
void));
296extern void setgrent
__PR((
void));
299extern void endgrent
__PR((
void));
306extern int openat
__PR((
int fd,
const char *
name,
int oflag, ...));
310#ifndef HAVE_GETTIMEOFDAY
316#ifndef HAVE_FACCESSAT
318 int amode,
int flag));
333#ifndef HAVE_FDOPENDIR
334#ifdef _SCHILY_DIRENT_H
341extern int fstatat
__PR((
int fd,
const char *
name,
347extern int futimens
__PR((
int fd,
350#ifndef HAVE_FUTIMESAT
351extern int futimesat
__PR((
int fd,
const char *
name,
352 const struct timeval __times[2]));
355extern int lutimens
__PR((
const char *
name,
376#ifndef HAVE_READLINKAT
378 char *lbuf,
size_t lbufsize));
381extern int renameat
__PR((
int oldfd,
const char *__old,
382 int newfd,
const char *__new));
384#ifndef HAVE_SYMLINKAT
386 int fd,
const char *
name));
393extern int utimens
__PR((
const char *
name,
396#ifndef HAVE_UTIMENSAT
397extern int utimensat
__PR((
int fd,
const char *
name,
408#include <schily/sunos4_proto.h>
char * strcat(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
char * strstr(char *String1, char *String2)
char * strncat(char *DstString, const char *SrcString, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
#define gettimeofday(tv, tz)
size_t strlcpy(char *d, const char *s, size_t bufsize)
#define __printflike__(fmtarg, firstvararg)
static void basename(LPCWSTR path, LPWSTR name)
EXPORT int eaccess(char *name, int mode) const
EXPORT int setgid(gid_t gid)
EXPORT int setegid(gid_t gid)
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
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
char * strndup(char const *name, size_t len)
wchar_t * wcsndup(wchar_t *name, size_t len)
__cdecl __MINGW_NOTHROW char * dirname(char *)
int usleep(unsigned int useconds)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_CRTIMP wchar_t *__cdecl wcsncat(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcsncpy(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)
_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 wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
_Check_return_ _CRTIMP wchar_t *__cdecl wcsdup(_In_z_ const wchar_t *_Str)
EXPORT size_t strlcat(char *s1, const char *s2, size_t len)
EXPORT int setuid(uid_t uid)
EXPORT int seteuid(uid_t uid)