14 #define _XOPEN_SOURCE 700
21 #include "sion_error_handler.h"
43 return (u.c[
sizeof(
long) - 1] == 1);
51 int sion_get_version(
int *main_version,
int *sub_version,
int *patch_level,
int *fileformat_version)
53 *main_version = SION_MAIN_VERSION;
54 *sub_version = SION_SUB_VERSION;
55 *patch_level = SION_VERSION_PATCHLEVEL;
56 *fileformat_version = SION_FILEFORMAT_VERSION;
60 FILE *sion_get_fp(
int sid)
66 _sion_errorprint(SION_NOT_SUCCESS,_SION_ERROR_RETURN,
"sion_get_fp: invalid sion_filedesc sid=%d ...\n",sid);
72 return(sion_filedesc->
fileptr->second_fileptr);
74 return(sion_filedesc->
fileptr->fileptr);
81 int sion_get_fd(
int sid)
87 _sion_errorprint(SION_NOT_SUCCESS,_SION_ERROR_RETURN,
"sion_get_fp: invalid sion_filedesc sid=%d ...\n",sid);
88 return (SION_ID_UNDEF);
92 return(sion_filedesc->
fileptr->fd);
94 return(SION_ID_UNDEF);
106 _sion_errorprint(SION_NOT_SUCCESS,_SION_ERROR_RETURN,
"sion_get_fp: invalid sion_filedesc sid=%d ...\n",sid);
110 return (sion_filedesc);
void * _sion_vcdtovcon(int sid)
int _sion_vcdtype(int sid)
#define SION_FILEDESCRIPTOR
#define SION_FILE_FLAG_ANSI
#define SION_FILE_FLAG_SCNDANSI
#define SION_FILE_FLAG_POSIX
Sion File Descriptor Structure.