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)
156#ifdef _SCHILY_WCHAR_H
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>
#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)
int CDECL rename(const char *oldpath, const char *newpath)
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
_ACRTIMP wchar_t *__cdecl wcsstr(const wchar_t *, const wchar_t *)
_ACRTIMP size_t __cdecl wcsnlen(const wchar_t *, size_t)
_ACRTIMP int __cdecl wcsncmp(const wchar_t *, const wchar_t *, size_t)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP size_t __cdecl strnlen(const char *, size_t)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP char *__cdecl strstr(const char *, const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
_ACRTIMP int __cdecl strncmp(const char *, const char *, size_t)
static char * strdup(const char *buf)
static wchar_t * wcsdup(const wchar_t *str)
_ACRTIMP char *__cdecl strrchr(const char *, int)
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
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)
EXPORT size_t strlcat(char *s1, const char *s2, size_t len)
EXPORT int setuid(uid_t uid)
EXPORT int seteuid(uid_t uid)