真鍋 裕一
システムコール比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−
cre_prc(LINK* lnk, W pri, MESSAGE *msg);
引数 on BTRON1
LINK* lnk LINKPTR lnk
W pri WORD pri
MESSAGE *msg MESSAGE *msg
ext_prc(W exit_code);
引数 on BTRON1
W exit_code WORD exit_code
ter_prc(W pid, W abote_code, W opt);
引数 on BTRON1
W pid WORD pid
W abote_code WORD abote_code
W opt UWORD opt
chg_pri(W pid, W new_pri, W opt);
引数 on BTRON1
W pid WORD pid
W new_pri WORD new_pri
W opt UWORD opt
wai_prc(W time);
引数 on BTRON1
W time LONG time
prc_sts(W pid, P_STATE *buff, TC *path);
引数 on BTRON1
W pid WORD pid
P_STATE *buff P_STATE *buff (* 内部に一部違いあり *)
chg_usr(P_USER *buff);
引数 on BTRON1
P_USER *buff P_USER *buff
get_usr(W pid, P_USER *buff);
引数 on BTRON1
W pid WORD pid
P_USER *buff P_USER *buff
get_inf(W pid, P_INFO *buff);
引数 on BTRON1
W pid WORD pid
P_INFO *buff P_INFO *buff (* 内部に一部違いあり *)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−
構造体比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−
typedef struct{ (on BTRIN1)
UW state; (UWORD state)
W priority; (WORD priority)
W parpid; (WORD parpid)
}P_STATE;
typedef struct{ (on BTRIN1)
TC usr_name[14]; ()
TC grp_name1[14]; ()
TC grp_name2[14]; ()
TC grp_name3[14]; ()
TC grp_name4[14]; ()
W level; (WORD level)
W net_level; (WORD net_level)
}P_USER;
typedef struct{ (on BTRIN1)
UW etime; (ULONG etime)
UW utime; (ULONG utime)
UW stime; (ULONG stime)
W tmem; (LONG tmem)
W wmem; (LONG wmem)
W revs[11]; (LONG reve[11])
}P_INFO
typedef struct{ (on BTRON1)
W msg_type; (WORD msg_type)
W msg_size; (WORD msg_size)
MSGBODY msg_body; (BYTE msg_body[n])
}MESSAGE;
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−
定数定義比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−
(on BTRON1)
ter_prc(,,opt)で使用する
#define TERM_NRM (0x0000)
#define TERM_ALL (0x0001)
chg_pri(,,opt)で使用する
#define P_ABS (0x0000)
#define P_REL (0x0001)
P_STATE.stateで使用する
#define P_LOCK BTRON1 ONLY (0x0001)
#define P_WAIT 0x00004000 (0x4000)
#define P_RUN 0x00008000 (0x8000)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−