version 1.13, 2000/10/10 05:23:20 |
version 1.14, 2000/10/11 06:56:02 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.12 2000/03/10 12:24:38 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.13 2000/10/10 05:23:20 ohara Exp $ */ |
|
|
/* |
/* |
This module includes functions for sending/receiveng CMO's. |
This module includes functions for sending/receiveng CMO's. |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
#include <errno.h> |
|
#include <fcntl.h> |
#include <fcntl.h> |
#include <sys/file.h> |
#include <sys/file.h> |
#include <time.h> |
#include <time.h> |
Line 85 static cmo *call_hook_after_send_cmo(OXFILE *oxfp, cmo |
|
Line 84 static cmo *call_hook_after_send_cmo(OXFILE *oxfp, cmo |
|
return hook_after_send_cmo(oxfp, c); |
return hook_after_send_cmo(oxfp, c); |
} |
} |
return c; |
return c; |
} |
|
|
|
int oxf_read(void *buffer, size_t size, size_t num, OXFILE *oxfp) |
|
{ |
|
return read(oxfp->fd, buffer, size*num); |
|
/* return fread(buffer, size, num, oxfp->fp); */ |
|
} |
|
|
|
int oxf_write(void *buffer, size_t size, size_t num, OXFILE *oxfp) |
|
{ |
|
return write(oxfp->fd, buffer, size*num); |
|
/* return fwrite(buffer, size, num, oxfp->fp); */ |
|
} |
} |
|
|
/* Handling an error. */ |
/* Handling an error. */ |