#ifndef CLIB_CRT_PROTOS_H
#define CLIB_CRT_PROTOS_H

/*
    *** Automatically generated from '/ssd/deadwood/repo-github-dd-core-release/AROS/compiler/crt/crt.conf'. Edits will be lost. ***
    Copyright (C) 1995-2025, The AROS Development Team. All rights reserved.
*/

#include <aros/libcall.h>


#include <aros/features.h>

#include <stdlib.h>
#include <grp.h>
#include <time.h>
#include <inttypes.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/times.h>
#include <signal.h>
#include <regex.h>
#include <sys/utsname.h>
#include <termios.h>
#include <utime.h>
#include <setjmp.h>
#include <wchar.h>

#if !defined(__off64_t_defined)
#define off64_t UQUAD
#endif

#if !defined(__fpos64_t_defined)
#define fpos64_t UQUAD
#endif

struct statfs;


__BEGIN_DECLS


#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_nixmain
int __progonly_nixmain(int (*main)(int argc, char *argv[]), int argc, char *argv[]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_program_startup
void __progonly_program_startup(jmp_buf exitjmp, int *errorptr);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_program_end
void __progonly_program_end(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __modonly_abort
void __modonly_abort(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __modonly_assert
void __modonly_assert(const char *expr, const char *file, unsigned int line);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __modonly_exit
void __modonly_exit(int code);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_assert
void __progonly_assert(const char *expr, const char *file, unsigned int line);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef closedir
int closedir(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef dirfd
int dirfd(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef opendir
DIR * opendir(const char *filename);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __readdir_ino_t_32
struct dirent * __readdir_ino_t_32(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef rewinddir
void rewinddir(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef seekdir
void seekdir(DIR *dir, off_t loc);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef telldir
long telldir(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ___geterrnoptr
int * ___geterrnoptr(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef creat
int creat(const char * filename, int mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fcntl
int fcntl(int fd, int cmd, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef open
int open(const char * filename, int flags, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef endgrent
void endgrent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getgrent
struct group * getgrent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getgrgid
struct group * getgrgid(gid_t gid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getgrnam
struct group * getgrnam(const char *name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setgrent
void setgrent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtoimax
intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtoumax
uintmax_t strtoumax(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef basename
char * basename(char *filename);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef dirname
char * dirname(char *filename);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ___getsigngamptr
int * ___getsigngamptr(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lgamma
double lgamma(double d);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lgammaf
float lgammaf(float f);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lgammal
long double lgammal(long double ld);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef endpwent
void endpwent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpwent
struct passwd * getpwent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpwnam
struct passwd * getpwnam(const char *name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpwuid
struct passwd * getpwuid(uid_t uid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setpwent
void setpwent(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef regcomp
int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef regerror
size_t regerror(int errcode, const regex_t *restrict preg, char *restrict errbuf, size_t errbuf_size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef regexec
int regexec(const regex_t *restrict preg, const char *restrict string, size_t nmatch, regmatch_t pmatch[], int eflags);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef regfree
void regfree(regex_t *preg);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef siglongjmp
void siglongjmp(sigjmp_buf env, int val);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigsetjmp
int sigsetjmp(sigjmp_buf env, int savesigs);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef kill
int kill(pid_t pid, int sig);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef raise
int raise(int signum);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigaction
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigaddset
int sigaddset(sigset_t *set, int signum);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigdelset
int sigdelset(sigset_t *set, int signum);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigemptyset
int sigemptyset(sigset_t *set);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigfillset
int sigfillset(sigset_t *set);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigismember
int sigismember(const sigset_t *set, int signum);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef signal
__sighandler_t * signal(int signum, __sighandler_t *handler);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigpending
int sigpending(sigset_t *set);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigprocmask
int sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sigsuspend
int sigsuspend(const sigset_t *mask);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __stdio_getstdin
FILE * __stdio_getstdin(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __stdio_getstdout
FILE * __stdio_getstdout(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __stdio_getstderr
FILE * __stdio_getstderr(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef clearerr
void clearerr(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fclose
int fclose(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fdopen
FILE * fdopen(int filedes, const char *mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef feof
int feof(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ferror
int ferror(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fflush
int fflush(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fgetc
int fgetc(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fgets
char * fgets(char *restrict buffer, int size, FILE *restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fileno
int fileno(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef flockfile
void flockfile(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fopen
FILE * fopen(const char *restrict path, const char *restrict mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fprintf
int fprintf(FILE *restrict stream, const char *restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fputc
int fputc(int c, FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fputs
int fputs(const char *restrict str, FILE *restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fread
size_t fread(void *restrict buff, size_t size, size_t nblocks, FILE *restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef freopen
FILE * freopen(const char *restrict path, const char *restrict mode, FILE *restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fscanf
int fscanf(FILE *restrict stream, const char *restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fseek
int fseek(FILE * stream, long offset, int whence);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fseeko
int fseeko(FILE * stream, off_t offset, int whence);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ftell
long ftell(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ftello
off_t ftello(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef funlockfile
void funlockfile(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fwrite
size_t fwrite(const void *restrict buff, size_t size, size_t nblocks, FILE *restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getchar
int getchar(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getc_unlocked
int getc_unlocked(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpass
char * getpass(const char *prompt);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef gets
char * gets(char *buffer);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef pclose
int pclose(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef perror
void perror(const char *string);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef popen
FILE * popen(const char *command, const char *mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef printf
int printf(const char *restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef putchar
int putchar(int c);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef puts
int puts(const char *str);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef remove
int remove(const char *pathname);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef rename
int rename(const char *oldpath, const char *newpath);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef rewind
void rewind(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef scanf
int scanf(const char *restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setbuf
void setbuf(FILE *restrict stream, char *restrict buf);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setvbuf
int setvbuf(FILE *restrict stream, char *restrict buf, int mode, size_t size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tempnam
char * tempnam(const char *dir, const char *pfx);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tmpfile
FILE * tmpfile(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tmpnam
char * tmpnam(char *s);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ungetc
int ungetc(int c, FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vfprintf
int vfprintf(FILE *restrict stream, const char *restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vfscanf
int vfscanf(FILE *restrict stream, const char *restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vprintf
int vprintf(const char *restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vscanf
int vscanf(const char *restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ___mb_cur_max
int ___mb_cur_max(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef drand48
double drand48(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef erand48
double erand48(unsigned short xseed[3]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getenv
char * getenv(const char *name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef initstate
char * initstate(unsigned seed, char *arg_state, int n);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef jrand48
long int jrand48(unsigned short xseed[3]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lcong48
void lcong48(unsigned short p[7]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lrand48
long int lrand48(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mkstemp
int mkstemp(char *template);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mktemp
char * mktemp(char *template);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mrand48
long int mrand48(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef nrand48
long int nrand48(unsigned short xseed[3]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef posix_memalign
int posix_memalign(void **memptr, size_t alignment, size_t size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef putenv
int putenv(const char *string);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef random
long random(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef realpath
char * realpath(const char * restrict path, char * restrict resolved_path);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef seed48
unsigned short int * seed48(unsigned short xseed[3]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setenv
int setenv(const char *name, const char *value, int overwrite);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setstate
char * setstate(char *arg_state);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef srand48
void srand48(long seed);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef srandom
void srandom(unsigned seed);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtol
long int strtol(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtoll
long long int strtoll(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtoul
unsigned long int strtoul(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtoull
unsigned long long int strtoull(const char * restrict nptr, char ** restrict endptr, int base);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef rand
int rand(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef srand
void srand(unsigned int seed);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef calloc
void * calloc(size_t count, size_t size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef free
void free(void *memory);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef malloc
void * malloc(size_t size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef malloc_align
void * malloc_align(size_t size, size_t alignment);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef realloc
void * realloc(void *oldmem, size_t newsize);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef realloc_nocopy
void * realloc_nocopy(void *oldmem, size_t newsize);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_abort
void __progonly_abort(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_atexit
int __progonly_atexit(void (*func)(void));
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_on_exit
int __progonly_on_exit(void (*func)(int, void *), void *arg);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_exit
void __progonly_exit(int code);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly__Exit
void __progonly__Exit(int code);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef system
int system(const char *string);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef unsetenv
int unsetenv(const char *name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getloadavg
int getloadavg(double loadavg[], int n);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strtok
char * strtok(char * str, const char * sep);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strerror
char * strerror(int n);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strdup
char * strdup(const char *orig);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strndup
char * strndup(const char *s, size_t n);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ioctl
int ioctl(int fd, int request, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getrlimit
int getrlimit(int resource, struct rlimit *rlp);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setrlimit
int setrlimit(int resource, const struct rlimit *rlp);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef chmod
int chmod(const char *path, mode_t mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fchmod
int fchmod(int fildes, mode_t mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __lstat_ino_t_32
int __lstat_ino_t_32(const char * restrict path, struct stat * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mkdir
int mkdir(const char *path, mode_t mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mknod
int mknod(const char *path, mode_t mode, dev_t dev);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __stat_ino_t_32
int __stat_ino_t_32(const char * restrict path, struct stat * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef umask
mode_t umask(mode_t numask);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef gettimeofday
int gettimeofday(struct timeval * restrict tv, struct timezone * restrict tz);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef utimes
int utimes(const char *file, const struct timeval tv[2]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef times
clock_t times(struct tms *tms);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef uname
int uname(struct utsname *name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef wait
pid_t wait(int *status);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef waitpid
pid_t waitpid(pid_t pid, int *status, int options);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef cfgetispeed
speed_t cfgetispeed(const struct termios *__termios_p);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef cfgetospeed
speed_t cfgetospeed(const struct termios *__termios_p);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef cfsetispeed
int cfsetispeed(struct termios *__termios_p, speed_t speed);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef cfsetospeed
int cfsetospeed(struct termios *__termios_p, speed_t speed);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tcgetattr
int tcgetattr(int fd, struct termios *t);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tcsetattr
int tcsetattr(int fd, int opt, const struct termios *t);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef asctime
char * asctime(const struct tm *tm);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef clock
clock_t clock(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef clock_gettime
int clock_gettime(clockid_t clock, struct timespec *ts);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ctime
char * ctime(const time_t *time);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef gmtime
struct tm * gmtime(const time_t *time);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef localtime
struct tm * localtime(const time_t *time);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef nanosleep
int nanosleep(const struct timespec *req, struct timespec *rem);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef strptime
char * strptime(const char *s, const char *format, struct tm *tm);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef access
int access(const char *path, int mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef chdir
int chdir(const char *path);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef chown
int chown(const char *path, uid_t owner, gid_t group);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef close
int close(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef dup
int dup(int oldfd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef dup2
int dup2(int oldfd, int newfd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_execl
int __progonly_execl(const char *path, const char *arg, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_execlp
int __progonly_execlp(const char *file, const char *arg, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_execv
int __progonly_execv(const char *path, char *const argv[]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_execve
int __progonly_execve(const char *path, char *const argv[], char *const envp[]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_execvp
int __progonly_execvp(const char *path, char *const argv[]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fchdir
int fchdir(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fchown
int fchown(int fd, uid_t owner, gid_t group);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fsync
int fsync(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ftruncate
int ftruncate(int fd, off_t length);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getcwd
char * getcwd(char *buf, size_t size);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getegid
gid_t getegid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef geteuid
uid_t geteuid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getgid
gid_t getgid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getgroups
int getgroups(int gidsetlen, gid_t *gidset);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getlogin
char * getlogin(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpgid
pid_t getpgid(pid_t pid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpgrp
pid_t getpgrp(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getpid
pid_t getpid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getppid
pid_t getppid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getuid
uid_t getuid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef isatty
int isatty(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef link
int link(const char *name1, const char *name2);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lseek
off_t lseek(int filedes, off_t offset, int whence);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef pathconf
long pathconf(const char *path, int name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef pipe
int pipe(int filedes[2]);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef read
ssize_t read(int d, void *buf, size_t nbytes);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef readlink
ssize_t readlink(const char * restrict path, char * restrict buf, size_t bufsize);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef rmdir
int rmdir(const char *path);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setegid
int setegid(gid_t egid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef seteuid
int seteuid(uid_t euid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setgid
int setgid(gid_t gid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setsid
pid_t setsid(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef setuid
int setuid(uid_t uid);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sleep
unsigned sleep(unsigned seconds);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef swab
void swab(const void * restrict src, void * restrict dst, size_t len);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef symlink
int symlink(const char *name1, const char *name2);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sync
void sync(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef sysconf
long sysconf(int name);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef tcgetpgrp
pid_t tcgetpgrp(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef truncate
int truncate(const char *path, off_t length);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ttyname
char * ttyname(int fd);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef write
ssize_t write(int fd, const void *buf, size_t nbytes);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef utime
int utime(const char *filename, const struct utimbuf *buf);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fgetwc
wint_t fgetwc(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fgetws
wchar_t * fgetws(wchar_t * restrict s, int n, FILE * restrict stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fputwc
wint_t fputwc(wchar_t wc, FILE * fp);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fwprintf
int fwprintf(FILE * restrict fh, const wchar_t * restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mbrlen
size_t mbrlen(const char * restrict s, size_t n, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mbrtowc
size_t mbrtowc(wchar_t * restrict pwc, const char * restrict s, size_t n, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mbsnrtowcs
size_t mbsnrtowcs(wchar_t * restrict dst, const char ** restrict src, size_t nms, size_t len, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef mbsrtowcs
size_t mbsrtowcs(wchar_t * restrict dst, const char ** restrict src, size_t len, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef putwchar
wint_t putwchar(wchar_t wc);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vfwprintf
int vfwprintf(FILE * restrict stream, const wchar_t * restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vwprintf
int vwprintf(const wchar_t * restrict format, va_list args);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef wcrtomb
size_t wcrtomb(char * restrict s, wchar_t wc, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef wcsnrtombs
size_t wcsnrtombs(char * restrict dst, const wchar_t ** restrict src, size_t nwc, size_t len, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef wcsrtombs
size_t wcsrtombs(char * restrict dst, const wchar_t ** restrict src, size_t len, mbstate_t * restrict ps);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef wprintf
int wprintf(const wchar_t * restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef updatestdio
void updatestdio(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __get_default_file
int __get_default_file(int fd, long *filehandle);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef flock
int flock(int fd, int operation);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef getfsstat
int getfsstat(struct statfs *buf, long bufsize, int flags);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef statfs
int statfs(const char *path, struct statfs *buf);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef __progonly_set_environptr
int __progonly_set_environptr(char ***environptr);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef usleep
int usleep(useconds_t microseconds);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef vfork
pid_t vfork(void);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef alphasort64
int alphasort64(const struct dirent64 **a, const struct dirent64 **b);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef readdir64
struct dirent64 * readdir64(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef scandir64
int scandir64(const char *dir, struct dirent64 ***namelist, int (*select)(const struct dirent64 *), int (*compar)(const struct dirent64 **, const struct dirent64 **));
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef creat64
int creat64(const char * filename, int mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fgetpos64
int fgetpos64(FILE *restrict stream, fpos64_t *restrict pos);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fopen64
FILE * fopen64(const char *restrict pathname, const char *restrict mode);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fseeko64
int fseeko64(FILE * stream, off64_t offset, int whence);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fsetpos64
int fsetpos64(FILE * stream, const fpos64_t *pos);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef ftello64
off64_t ftello64(FILE * stream);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef fstat64
int fstat64(int fd, struct stat64 *sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lstat64
int lstat64(const char * restrict path, struct stat64 * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef stat64
int stat64(const char * restrict path, struct stat64 * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__)
#ifndef lseek64
off64_t lseek64(int filedes, off64_t offset, int whence);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (1 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef fgetpos
int fgetpos(FILE *restrict stream, fpos_t *restrict pos);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef fsetpos
int fsetpos(FILE * stream, const fpos_t *pos);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef alphasort
int alphasort(const struct dirent **a, const struct dirent **b);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef readdir
struct dirent * readdir(DIR *dir);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef scandir
int scandir(const char *dir, struct dirent ***namelist, int (*select)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **));
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef fstat
int fstat(int fd, struct stat *sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef lstat
int lstat(const char * restrict path, struct stat * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__)
#ifndef stat
int stat(const char * restrict path, struct stat * restrict sb);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (2 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (3 <= __CRT_LIBAPI__)
#ifndef asprintf
int asprintf(char **restrict str, const char *restrict format, ...);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (3 <= __CRT_LIBAPI__) */

#if !defined(__CRT_LIBAPI__) || (3 <= __CRT_LIBAPI__)
#ifndef vasprintf
int vasprintf(char **restrict s, const char * restrict format, va_list arg);
#endif

#endif /* !defined(__CRT_LIBAPI__) || (3 <= __CRT_LIBAPI__) */

__END_DECLS

#endif /* CLIB_CRT_PROTOS_H */
