# IncludeLibrary_NTD_interface.h File Reference

`#include <IncludeLibrary_server_interface.h>`

## Defines

#define | __NTD_API
#define | __Engine_API
#define | ind_init_ntd 0
#define | ind_movc3 1
#define | ind_movc5 2
#define | ind_ntd_connect 3
#define | ind_ntd_disconnect 4
#define | ind_ntd_free 5
#define | ind_ntd_gravity 6
#define | ind_ntd_read 7
#define | ind_ntd_reada 8
#define | ind_ntd_select 9
#define | ind_ntd_write 10
#define | ind_osd_dclast 11
#define | ind_osd_exitodeb 12
#define | ind_osd_go 13
#define | ind_osd_host_addr 14
#define | ind_osd_setimer 15
#define | ind_osd_stop 16
#define | ind_osd_synch 17
#define | ind_srvsts 18
#define | ind_osd_host_addr_tcp 19
#define | ind_ntd_iserdisc 20
#define | ind_Get_Engine_Path 21
#define | ind_Act_Sigio_Handler 22
#define | ind_Load_Engine 23
#define | ind_osd_nodename_tcp 24
#define | ind_strsts 25
#define | ind_osd_getmsg 26
#define | ind_osd_wpipe 27
#define | ind_Env_Engine 28
#define | nbr_address 29

## Functions

void __NTD_API | Get_Vector (int **K_VERBOSE, void(***vector_addr)(), int *nbr_addr)
void __NTD_API | Act_Sigio_Handler ()
void __NTD_API | Set_Engine_Path (char *path)
char __NTD_API * | Get_Engine_Path (void)
int __NTD_API | Env_Engine (int *lnk, int k_do_exec, int K_START, char *Engine_Path_Name, char **Engine_Path, char **Engine_Name)
int __NTD_API | Load_Engine (char *Engine_Path, char *Engine_Name, int KVERBOSEINIT, int *nbr_ret_func, PVOID_FUNCTION *TABRETFUNC, int nbrptrfunc, PVOID_FUNCTION *TABFUNC, int nbrptr, void **TABPTR, int nbrval, int *TABVAL)
int __NTD_API | init_ntd (PSRV_CTL srvctl, int k_synch, int **uic, char **usr, int **pid, int k_serpc)
int __NTD_API | ntd_listener (int k_synch, char **server, PREAD_AST_MBX read_ast_mbx, PSTATUS sts, int *lnk)
int __NTD_API | ntd_confirm (int id, int reply, PAST_ADDR_V ast, int param, PSTATUS sts)
int __NTD_API | ntd_connect (int prtcl, char *node, char *server, int verbose, int k_synch, PAST_ADDR_PV astaddr, void *param, int *id, PSTATUS sts)
int __NTD_API | ntd_disconnect (int id, int how, PAST_ADDR_PV astaddr, void *param, PSTATUS sts)
int __NTD_API | ntd_resume (int *id, int k_free, PSTATUS sts)
int __NTD_API | ntd_chown (int id, int pid, PSTATUS sts)
int __NTD_API | ntd_synch (int CHAN, PSTATUS status_synch)
int __NTD_API | ntd_stop (int CHAN)
int __NTD_API | ntd_read (int CHAN, int *BUFFER, int LEN, PAST_ADDR_PV rpc_intr_read_ast, void *, int *READLEN, PSTATUS rpc_status)
int __NTD_API | ntd_reada (int CHAN, int *BUFFER, int LEN, PAST_ADDR_PV rpc_intr_read_ast, void *, int *READLEN, PSTATUS rpc_status)
int __NTD_API | ntd_iserdisc (PSTATUS status)
int __NTD_API | ntd_dassign (int CHAN, PSTATUS status)
int __NTD_API | ntd_free (int *CHAN, PSTATUS status)
int __NTD_API | ntd_write (int CHAN, int *BUFFER, int LEN, PAST_ADDR_PV rpc_write_ast, void *, int *LLEN, PSTATUS rpc_statusa)
int __NTD_API | ntd_select (int CHAN)
int __NTD_API | do_lstr_a_synch (int k_synch)
int __NTD_API | do_socket_a_synch (int sock_desc, int k_synch)
int __NTD_API | ntd_go (int CHAN, PSTATUS rpc_status)
int __NTD_API | ntd_gravity (PSTATUS sts)
int __NTD_API | ntd_message (void *numlnk, PSTATUS sts, char *msg, int lmax, int *lmsg)
int __NTD_API | osd_dclast (PAST_ADDR_PV rpc_write_ast, void *, PSTATUS rpc_status)
int __NTD_API | osd_dclastw (PAST_ADDR_PV rpc_write_ast, void *, PSTATUS rpc_statusa)
int __NTD_API | osd_setimer (unsigned int delay, PAST_ADDR_PV timer_ast, void *, PSTATUS sts)
char __NTD_API * | osd_getsymbol (char *)
void __NTD_API | osd_hiber ()
char __NTD_API * | osd_getuname ()
void __NTD_API | osd_exitodeb ()
void __NTD_API | osd_child (char *)
void __NTD_API | osd_wpipe ()
int __NTD_API | osd_nodename_dec (char *nodloc, int len, PSTATUS rpc_status)
int __NTD_API | osd_nodename_tcp (char *nodloc, int len, PSTATUS rpc_status)
int __NTD_API | osd_host_addr_tcp (char *node, unsigned char intadr[], PSTATUS sts)
int __NTD_API | osd_host_addr (char intadr[])
int __NTD_API | osd_getuic (int *retuic, PSTATUS sts)
int __NTD_API | osd_getpid ()
int __NTD_API | osd_geteuic (int *reteuic)
int __NTD_API | osd_setuic (int *setuic)
int __NTD_API | osd_usruic (char *usrnam, int retuic[], PSTATUS status, int lenusr)
void __NTD_API __fastcall | rspreorder (PBUF_RSP buffer)
void __NTD_API __fastcall | lreorder (unsigned int *hdr)
void __NTD_API __fastcall | cmdreorder (PBUF BUFFER)
void __NTD_API __fastcall | cnxassreorder (PCMD_BUFF BUFFER)
void __NTD_API __fastcall | reorder (int l, char *p)
void __NTD_API __fastcall | movc3 (int srclen, char *srcadr, char *dstadr)
void __NTD_API __fastcall | movc5 (int srclen, char *srcadr, char fill, int dstlen, char *dstadr)
int __NTD_API | srvsts (void *, char *, int, PSTATUS sts, int lg, char *msg, int *lgmsg)
int __NTD_API | osd_realpath (char *path, char *resolved_path, int pathlen, PSTATUS sts)
int __NTD_API | strsts (void *numlnk, char code[], char stat, PSTATUS status, int lgmsg, char msgerr[], int *lenerr)
void __NTD_API | osd_putoutput (char *msg)
int __NTD_API | srvctl_ast (void *param, PSTATUS status, int *msg, int *msglen)
int | Dnet_listener (char *server, int isrv, PREAD_AST_MBX func, PSTATUS sts)
int __NTD_API | Inet_listener (char *server, int isrv, int k_synch, PREAD_AST_MBX func, PSTATUS sts)
int | gethostname (char *, int)

## Variables

int __NTD_API | K_VERBOSE_INIT
char __NTD_API | level_engine [81]

## Define Documentation

#define __Engine_API

#define __NTD_API

#define ind_Act_Sigio_Handler 22

#define ind_Env_Engine 28

#define ind_Get_Engine_Path 21

#define ind_init_ntd 0

#define ind_Load_Engine 23

#define ind_movc3 1

#define ind_movc5 2

#define ind_ntd_connect 3

#define ind_ntd_disconnect 4

#define ind_ntd_free 5

#define ind_ntd_gravity 6

#define ind_ntd_iserdisc 20

#define ind_ntd_read 7

#define ind_ntd_reada 8

#define ind_ntd_select 9

#define ind_ntd_write 10

#define ind_osd_dclast 11

#define ind_osd_exitodeb 12

#define ind_osd_getmsg 26

#define ind_osd_go 13

#define ind_osd_host_addr 14

#define ind_osd_host_addr_tcp 19

#define ind_osd_nodename_tcp 24

#define ind_osd_setimer 15

#define ind_osd_stop 16

#define ind_osd_synch 17

#define ind_osd_wpipe 27

#define ind_srvsts 18

#define ind_strsts 25

#define nbr_address 29

## Function Documentation

void __NTD_API Act_Sigio_Handler | ( |  | ) |

void __NTD_API __fastcall cmdreorder | ( | PBUF | BUFFER | ) |

void __NTD_API __fastcall cnxassreorder | ( | PCMD_BUFF | BUFFER | ) |

int Dnet_listener | ( | char * | server,
|  | int | isrv,
|  | PREAD_AST_MBX | func,
|  | PSTATUS | sts
| ) |

int __NTD_API do_lstr_a_synch | ( | int | k_synch | ) |

int __NTD_API do_socket_a_synch | ( | int | sock_desc,
|  | int | k_synch
| ) |

int __NTD_API Env_Engine | ( | int * | lnk,
|  | int | k_do_exec,
|  | int | K_START,
|  | char * | Engine_Path_Name,
|  | char ** | Engine_Path,
|  | char ** | Engine_Name
| ) |

char __NTD_API* Get_Engine_Path | ( | void |  | ) |

void __NTD_API Get_Vector | ( | int ** | K_VERBOSE,
|  | void(***)() | vector_addr,
|  | int * | nbr_addr
| ) |

int gethostname | ( | char * | ,
|  | int |
| ) |

int __NTD_API Inet_listener | ( | char * | server,
|  | int | isrv,
|  | int | k_synch,
|  | PREAD_AST_MBX | func,
|  | PSTATUS | sts
| ) |

int __NTD_API init_ntd | ( | PSRV_CTL | srvctl,
|  | int | k_synch,
|  | int ** | uic,
|  | char ** | usr,
|  | int ** | pid,
|  | int | k_serpc
| ) |

int __NTD_API Load_Engine | ( | char * | Engine_Path,
|  | char * | Engine_Name,
|  | int | KVERBOSEINIT,
|  | int * | nbr_ret_func,
|  | PVOID_FUNCTION * | TABRETFUNC,
|  | int | nbrptrfunc,
|  | PVOID_FUNCTION * | TABFUNC,
|  | int | nbrptr,
|  | void ** | TABPTR,
|  | int | nbrval,
|  | int * | TABVAL
| ) |

void __NTD_API __fastcall lreorder | ( | unsigned int * | hdr | ) |

void __NTD_API __fastcall movc3 | ( | int | srclen,
|  | char * | srcadr,
|  | char * | dstadr
| ) |

void __NTD_API __fastcall movc5 | ( | int | srclen,
|  | char * | srcadr,
|  | char | fill,
|  | int | dstlen,
|  | char * | dstadr
| ) |

int __NTD_API ntd_chown | ( | int | id,
|  | int | pid,
|  | PSTATUS | sts
| ) |

int __NTD_API ntd_confirm | ( | int | id,
|  | int | reply,
|  | PAST_ADDR_V | ast,
|  | int | param,
|  | PSTATUS | sts
| ) |

int __NTD_API ntd_connect | ( | int | prtcl,
|  | char * | node,
|  | char * | server,
|  | int | verbose,
|  | int | k_synch,
|  | PAST_ADDR_PV | astaddr,
|  | void * | param,
|  | int * | id,
|  | PSTATUS | sts
| ) |

int __NTD_API ntd_dassign | ( | int | CHAN,
|  | PSTATUS | status
| ) |

int __NTD_API ntd_disconnect | ( | int | id,
|  | int | how,
|  | PAST_ADDR_PV | astaddr,
|  | void * | param,
|  | PSTATUS | sts
| ) |

int __NTD_API ntd_free | ( | int * | CHAN,
|  | PSTATUS | status
| ) |

int __NTD_API ntd_go | ( | int | CHAN,
|  | PSTATUS | rpc_status
| ) |

int __NTD_API ntd_gravity | ( | PSTATUS | sts | ) |

int __NTD_API ntd_iserdisc | ( | PSTATUS | status | ) |

int __NTD_API ntd_listener | ( | int | k_synch,
|  | char ** | server,
|  | PREAD_AST_MBX | read_ast_mbx,
|  | PSTATUS | sts,
|  | int * | lnk
| ) |

int __NTD_API ntd_message | ( | void * | numlnk,
|  | PSTATUS | sts,
|  | char * | msg,
|  | int | lmax,
|  | int * | lmsg
| ) |

int __NTD_API ntd_read | ( | int | CHAN,
|  | int * | BUFFER,
|  | int | LEN,
|  | PAST_ADDR_PV | rpc_intr_read_ast,
|  | void * | ,
|  | int * | READLEN,
|  | PSTATUS | rpc_status
| ) |

int __NTD_API ntd_reada | ( | int | CHAN,
|  | int * | BUFFER,
|  | int | LEN,
|  | PAST_ADDR_PV | rpc_intr_read_ast,
|  | void * | ,
|  | int * | READLEN,
|  | PSTATUS | rpc_status
| ) |

int __NTD_API ntd_resume | ( | int * | id,
|  | int | k_free,
|  | PSTATUS | sts
| ) |

int __NTD_API ntd_select | ( | int | CHAN | ) |

int __NTD_API ntd_stop | ( | int | CHAN | ) |

int __NTD_API ntd_synch | ( | int | CHAN,
|  | PSTATUS | status_synch
| ) |

int __NTD_API ntd_write | ( | int | CHAN,
|  | int * | BUFFER,
|  | int | LEN,
|  | PAST_ADDR_PV | rpc_write_ast,
|  | void * | ,
|  | int * | LLEN,
|  | PSTATUS | rpc_statusa
| ) |

void __NTD_API osd_child | ( | char * |  | ) |

int __NTD_API osd_dclast | ( | PAST_ADDR_PV | rpc_write_ast,
|  | void * | ,
|  | PSTATUS | rpc_status
| ) |

int __NTD_API osd_dclastw | ( | PAST_ADDR_PV | rpc_write_ast,
|  | void * | ,
|  | PSTATUS | rpc_statusa
| ) |

void __NTD_API osd_exitodeb | ( |  | ) |

int __NTD_API osd_geteuic | ( | int * | reteuic | ) |

int __NTD_API osd_getpid | ( |  | ) |

char __NTD_API* osd_getsymbol | ( | char * |  | ) |

int __NTD_API osd_getuic | ( | int * | retuic,
|  | PSTATUS | sts
| ) |

char __NTD_API* osd_getuname | ( |  | ) |

void __NTD_API osd_hiber | ( |  | ) |

int __NTD_API osd_host_addr | ( | char | intadr[] | ) |

int __NTD_API osd_host_addr_tcp | ( | char * | node,
|  | unsigned char | intadr[],
|  | PSTATUS | sts
| ) |

int __NTD_API osd_nodename_dec | ( | char * | nodloc,
|  | int | len,
|  | PSTATUS | rpc_status
| ) |

int __NTD_API osd_nodename_tcp | ( | char * | nodloc,
|  | int | len,
|  | PSTATUS | rpc_status
| ) |

void __NTD_API osd_putoutput | ( | char * | msg | ) |

int __NTD_API osd_realpath | ( | char * | path,
|  | char * | resolved_path,
|  | int | pathlen,
|  | PSTATUS | sts
| ) |

int __NTD_API osd_setimer | ( | unsigned int | delay,
|  | PAST_ADDR_PV | timer_ast,
|  | void * | ,
|  | PSTATUS | sts
| ) |

int __NTD_API osd_setuic | ( | int * | setuic | ) |

int __NTD_API osd_usruic | ( | char * | usrnam,
|  | int | retuic[],
|  | PSTATUS | status,
|  | int | lenusr
| ) |

void __NTD_API osd_wpipe | ( |  | ) |

void __NTD_API __fastcall reorder | ( | int | l,
|  | char * | p
| ) |

void __NTD_API __fastcall rspreorder | ( | PBUF_RSP | buffer | ) |

void __NTD_API Set_Engine_Path | ( | char * | path | ) |

int __NTD_API srvctl_ast | ( | void * | param,
|  | PSTATUS | status,
|  | int * | msg,
|  | int * | msglen
| ) |

int __NTD_API srvsts | ( | void * | ,
|  | char * | ,
|  | int | ,
|  | PSTATUS | sts,
|  | int | lg,
|  | char * | msg,
|  | int * | lgmsg
| ) |

int __NTD_API strsts | ( | void * | numlnk,
|  | char | code[],
|  | char | stat,
|  | PSTATUS | status,
|  | int | lgmsg,
|  | char | msgerr[],
|  | int * | lenerr
| ) |

## Variable Documentation

int __NTD_API K_VERBOSE_INIT

char __NTD_API level_engine[81]