version 1.6, 2020/11/15 16:15:17 |
version 1.8, 2022/03/30 04:58:53 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2018/include/ox.h,v 1.5 2020/10/31 03:17:14 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2018/include/ox.h,v 1.7 2021/03/26 07:54:17 fujimoto Exp $ |
*/ |
*/ |
#include "com.h" |
#include "com.h" |
#if defined(linux) |
#if defined(linux) |
Line 161 typedef FILE *ox_stream; |
|
Line 161 typedef FILE *ox_stream; |
|
|
|
/* a macro to check whether data are available in the read buffer */ |
/* a macro to check whether data are available in the read buffer */ |
#if defined(ANDROID) |
#if defined(ANDROID) |
#define FP_DATA_IS_AVAILABLE(fp) ((fp)->_r) |
#define FP_DATA_IS_AVAILABLE(fp) (__fbufsize(fp) > 0) |
#elif !defined(__GLIBC__) && defined(linux) |
#elif !defined(__GLIBC__) && defined(linux) |
#define FP_DATA_IS_AVAILABLE(fp) (__freadahead(fp) > 0) |
#define FP_DATA_IS_AVAILABLE(fp) (__freadahead(fp) > 0) |
#elif defined(__GLIBC__) && defined(linux) |
#elif defined(__GLIBC__) && defined(linux) |
Line 293 void write_int(FILE *f,unsigned int *p); |
|
Line 293 void write_int(FILE *f,unsigned int *p); |
|
void write_int64(FILE *f,UL *p); |
void write_int64(FILE *f,UL *p); |
void init_deskey(); |
void init_deskey(); |
void write_intarray(FILE *f,unsigned int *p,int l); |
void write_intarray(FILE *f,unsigned int *p,int l); |
void write_longarray(FILE *f,unsigned long *p,int l); |
|
void write_double(FILE *f,double *p); |
void write_double(FILE *f,double *p); |
void write_string(FILE *f,unsigned char *p,int l); |
void write_string(FILE *f,unsigned char *p,int l); |
void read_char(FILE *f,unsigned char *p); |
void read_char(FILE *f,unsigned char *p); |
Line 301 void read_short(FILE *f,unsigned short *p); |
|
Line 300 void read_short(FILE *f,unsigned short *p); |
|
void read_int(FILE *f,unsigned int *p); |
void read_int(FILE *f,unsigned int *p); |
void read_int64(FILE *f,UL *p); |
void read_int64(FILE *f,UL *p); |
void read_intarray(FILE *f,unsigned int *p,int l); |
void read_intarray(FILE *f,unsigned int *p,int l); |
void read_longarray(FILE *f,unsigned long *p,int l); |
|
void read_string(FILE *f,unsigned char *p,int l); |
void read_string(FILE *f,unsigned char *p,int l); |
void read_double(FILE *f,double *p); |
void read_double(FILE *f,double *p); |
|
#if defined(_WIN64) |
|
void write_longarray(FILE *f,unsigned long long *p,int l); |
|
void read_longarray(FILE *f,unsigned long long *p,int l); |
|
#else |
|
void write_longarray(FILE *f,unsigned long *p,int l); |
|
void read_longarray(FILE *f,unsigned long *p,int l); |
|
#endif |
int getremotesocket(int s); |
int getremotesocket(int s); |
void getremotename(int s,char *name); |
void getremotename(int s,char *name); |
void generate_port(int use_unix,char *port_str); |
void generate_port(int use_unix,char *port_str); |