version 1.10, 2000/01/20 15:38:12 |
version 1.12, 2000/03/10 12:24:38 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.9 2000/01/20 08:46:44 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.11 2000/02/04 08:01:30 ohara Exp $ */ |
|
|
/* |
/* |
This module includes functions for sending/receiveng CMO's. |
This module includes functions for sending/receiveng CMO's. |
|
|
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <sys/file.h> |
#include <sys/file.h> |
#include <gmp.h> |
|
|
|
#include "mysocket.h" |
#include "mysocket.h" |
#include "ox.h" |
#include "ox_toolkit.h" |
#include "parse.h" |
#include "parse.h" |
|
|
static int cmolen_cmo_int32(cmo_int32* c); |
static int cmolen_cmo_int32(cmo_int32* c); |
Line 82 static char* new_string_set_cmo_int32(int integ |
|
Line 81 static char* new_string_set_cmo_int32(int integ |
|
static char* new_string_set_cmo_list(cmo_list *c); |
static char* new_string_set_cmo_list(cmo_list *c); |
static char* new_string_set_cmo_zz(cmo_zz *c); |
static char* new_string_set_cmo_zz(cmo_zz *c); |
|
|
|
int ssh_ox_server(char *, char *, char *, short, short); |
|
|
int current_fd = 0; |
int current_fd = 0; |
int set_current_fd(int fd) |
int set_current_fd(int fd) |
{ |
{ |
Line 560 int print_cmo(cmo* c) |
|
Line 561 int print_cmo(cmo* c) |
|
{ |
{ |
int tag = c->tag; |
int tag = c->tag; |
|
|
symbol* symp = lookup_by_tag(tag); |
symbol_t symp = lookup_by_tag(tag); |
if (symp != NULL) { |
if (symp != NULL) { |
fprintf(stderr, "(%s", symp->key); |
fprintf(stderr, "(%s", symp->key); |
}else { |
}else { |
Line 801 ox_file_t ox_start(char* host, char* ctl_prog, char* d |
|
Line 802 ox_file_t ox_start(char* host, char* ctl_prog, char* d |
|
char *oxlog; |
char *oxlog; |
|
|
/* not overwrite */ |
/* not overwrite */ |
|
#if 0 |
setenv("OpenXM_HOME", "/usr/local/OpenXM", 0); |
setenv("OpenXM_HOME", "/usr/local/OpenXM", 0); |
|
#endif |
|
if (getenv("OpenXM_HOME") == NULL) { |
|
putenv("OpenXM_HOME=/usr/local/OpenXM"); |
|
} |
|
|
oxlog = concat_openxm_home_bin("oxlog"); |
oxlog = concat_openxm_home_bin("oxlog"); |
ctl_prog = concat_openxm_home_bin(ctl_prog); |
ctl_prog = concat_openxm_home_bin(ctl_prog); |
Line 1348 static cmo_list* make_list_of_id(int ver, char* ver_s, |
|
Line 1354 static cmo_list* make_list_of_id(int ver, char* ver_s, |
|
static cmo_list *make_list_of_tag(int type) |
static cmo_list *make_list_of_tag(int type) |
{ |
{ |
cmo_list *li = new_cmo_list(); |
cmo_list *li = new_cmo_list(); |
symbol *symp; |
symbol_t symp; |
int i = 0; |
int i = 0; |
while((symp = lookup(i++))->key != NULL) { |
while((symp = lookup(i++))->key != NULL) { |
if (symp->type == type) { |
if (symp->type == type) { |
Line 1453 static char *new_string_set_cmo_list(cmo_list *m) |
|
Line 1459 static char *new_string_set_cmo_list(cmo_list *m) |
|
|
|
char *new_string_set_cmo(cmo *m) |
char *new_string_set_cmo(cmo *m) |
{ |
{ |
symbol *symp; |
symbol_t symp; |
switch(m->tag) { |
switch(m->tag) { |
case CMO_ZZ: |
case CMO_ZZ: |
return new_string_set_cmo_zz((cmo_zz *)m); |
return new_string_set_cmo_zz((cmo_zz *)m); |