home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari FTP
/
ATARI_FTP_0693.zip
/
ATARI_FTP_0693
/
Mint
/
mntlib25.zoo
/
lib.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-05
|
2KB
|
79 lines
/*
* library-specific stuff
*/
#ifndef _LIB_H
#define _LIB_H
#ifndef _COMPILER_H
#include <compiler.h>
#endif
#include <stdio.h> /* for FILE */
#include <time.h> /* for time_t */
/* filename mapping function type */
#ifndef __FNMAP
#define __FNMAP
typedef int (*fnmapfunc_t) __PROTO((const char *, char *));
#endif
__EXTERN int _unx2dos __PROTO((const char *, char *));
__EXTERN int _dos2unx __PROTO((const char *, char *));
#ifndef __MINT__
__EXTERN int unx2dos __PROTO((const char *, char *));
__EXTERN int dos2unx __PROTO((const char *, char *));
__EXTERN void fnmapfunc __PROTO((fnmapfunc_t u2dos, fnmapfunc_t dos2u));
#endif
__EXTERN long _write __PROTO((int, const void *, unsigned long));
__EXTERN long _read __PROTO((int, void *, unsigned long));
#ifndef __MINT__
__EXTERN int console_input_status __PROTO((int));
__EXTERN unsigned int console_read_byte __PROTO((int));
__EXTERN void console_write_byte __PROTO((int, int));
#else
__EXTERN int _console_read_byte __PROTO((int));
__EXTERN void _console_write_byte __PROTO((int, int));
#endif
__EXTERN time_t _dostime __PROTO((time_t));
__EXTERN time_t _unixtime __PROTO((unsigned int, unsigned int));
__EXTERN char * findfile __PROTO((char *, char *, char **));
__EXTERN char * _itoa __PROTO((int, char *, int));
__EXTERN char * _ltoa __PROTO((long, char *, int));
__EXTERN char * _ultoa __PROTO((unsigned long, char *, int));
__EXTERN int _doprnt __PROTO((FILE *, const char *, __VA_LIST__));
#ifdef __MINT__
__EXTERN int _scanf __PROTO((void *, int (*)(void *),
int (*)(int, void *), unsigned char *, __VA_LIST__));
#endif
__EXTERN long get_sysvar __PROTO((void *var));
__EXTERN void set_sysvar_to_long __PROTO((void *var, long val));
__EXTERN void _setstack __PROTO((char *));
__EXTERN __EXITING __exit __PROTO((long status));
/* from the TOS GCC library */
/* 5/5/92 sb -- definitions needed in malloc.c and realloc.c */
struct mem_chunk
{
long valid;
#define VAL_FREE 0xf4ee0abcL
#define VAL_ALLOC 0xa11c0abcL
struct mem_chunk *next;
unsigned long size;
};
/* linked list of free blocks */
extern struct mem_chunk _mchunk_free_list;
#endif /* _LIB_H */