lib_def_h

/*
**	Copyright 1996, Universities Research Association.  All rights reserved.
*/
/******************************************************************************/
/* lib_def.h
**  
**	prototypes for DEC's runtime library (LIB$) functions
**
*/
/******************************************************************************/

#ifndef LIB_DEF_DEFINED				/* do this only once */
#define	LIB_DEF_DEFINED

#include "sys_def.h"

/******************************************************************************/
/*
**	prototypes for runtime library (LIB$) routines
*/
/******************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

int lib_addx(int *, int *, int *, ...);
int lib_analyze_sdesc(char *, int *, int *);
int lib_asn_wth_mbx(char *, int *, int *, int *, int *);
int lib_ast_in_prog();
int lib_attach(int *);
int lib_bbcci(int *, int *);
int lib_bbssi(int *, int *);
int lib_callg(int *, int *);
int lib_char(char *, char *);
int lib_crc(int *, int *, char *);
void lib_crc_table(int *, int *);
int lib_create_dir(char *, ...);
int lib_create_user_vm_zone(int *, ...);
void lib_crf_ins_key(int **, char *, int *, int *);
void lib_crf_ins_ref(int **, int *, char *, int *, int *);
void lib_crf_output(int **, int *, int *, int *, int *, int *);
int lib_currency(char *, ...);
int lib_cvt_dtb(int, char *, int *);
int lib_cvt_dx_dx(int *, int *, ...);
int lib_cvt_from_internal_time(unsigned int *operation,
			       unsigned int *resultant_time,
			       UQUAD_WORD *input_time);
int lib_cvt_htb(int, char *, int *);
int lib_cvt_otb(int, char *, int *);
int lib_cvt_to_internal_time(unsigned int *operation,
			     int *input_time, UQUAD_WORD *resultant_time);
int lib_date_time(char *);
int lib_day(int *, ...);
int lib_day_of_week(int *, int *);
int lib_decode_fault(int *, int *, int *, ...);
int lib_dec_over(char *);
int lib_delete_file(char *, ...);
int lib_delete_logical(char *, ...);
int lib_delete_symbol(struct dsc_descriptor_s *symbol, ...);
int lib_delete_vm_zone(int *);
int lib_digit_sep(char *, ...);
int lib_disable_ctrl(int *, ...);
int lib_down_scroll();
int lib_do_command(char *, ...);
int lib_ediv(int *, int *, int *, int *);
int lib_emodd(double *, char *, double *, int *, double *);
int lib_emodf(float *, char *, float *, int *, float *);
int lib_emodg(double *, char *, double *, int *, double *);
int lib_emodh();
int lib_emul(int *multiplier, int *multiplicand,
	     int *addend, QUAD_WORD *product);
int lib_emulate(int *, int *);
int lib_enable_ctrl(int *, ...);
int lib_erase_line();
int lib_erase_page();
int lib_extv(int *, char *, int);
int lib_extzv(int *, char *, int);
int lib_ffc(int *, char *, int *, int *);
int lib_ffs(int *, char *, int *, int *);
int lib_file_scan(int **, int *, int *, ...);
int lib_file_scan_end();
int lib_find_file(char *file_name,
		  char *ret_file_name,
		  unsigned int *context,
		  char *default_file_name,
		  char *related_file_name,
		  unsigned int *status, unsigned int *flags);
int lib_find_file_end(unsigned int *context);
int lib_find_image_symbol(char *filename,
			  char *symbol,
			  int *symbol_value, ...);
int lib_fixup_flt(int *signal_arguments, int *mechanism_arguments, ...);
int lib_flt_under(char *);
int lib_free_ef(unsigned int *event_flag_number);
int lib_free_lun(int *);
int lib_free_timer(int **);
int lib_free_vm_page(int *, int **);
int lib_getdvi(int *, ...);
int lib_getjpi(int *, ...);
int lib_getsyi(int *, ...);
int lib_get_command(char *, ...);
int lib_get_common(char *, ...);
int lib_get_ef(unsigned int *event_flag_number);
int lib_get_foreign(char *, ...);
int lib_get_input(char *, ...);
int lib_get_lun(int *);
int lib_get_screen(char *, ...);
int lib_get_symbol(struct dsc_descriptor_s *symbol,
		   struct dsc_descriptor_s *value, ...);
int lib_get_vm_page(int *, int **);
int lib_ichar(char *);
int lib_index(char *, char *);
int lib_init_timer();
int lib_insert_tree(int *, char *, int *, int *, int *, int *, ...);
int lib_insqhi(QUAD_WORD*, QUAD_WORD*, ...);
int lib_insqti(QUAD_WORD*, QUAD_WORD*, ...);
void lib_insv(int *, int *, char *, int **);
int lib_int_over(unsigned int *);
int lib_len(char *);
int lib_locc(char *, char *);
int lib_lookup_key(char *, int *, ...);
int lib_lookup_tree(int *, char *, int *, int *);
int lib_lp_lines();
int lib_matchc(char *, char *);
int lib_match_cond(unsigned int *, unsigned int *, ...);
void lib_movc3(int *, int *, int *);
int lib_movtc(char *, char *, char *, char *);
int lib_movtuc(char *, char *, char *, char *, ...);
int lib_pause();
int lib_polyd(double *, int *, double *, double *);
int lib_polyf(float *, int *, float *, float *);
int lib_polyg(double *, int *, double *, double *);
int lib_polyh();
int lib_put_buffer();
int lib_put_common(char *, ...);
int lib_put_line(char *, ...);
int lib_put_output(char *);
int lib_put_screen(char *, ...);
int lib_radix_point(char *, ...);
int lib_remqhi(QUAD_WORD*, int **, ...);
int lib_remqti(QUAD_WORD*, int **, ...);
int lib_rename_file(char *, char *, ...);
int lib_reserve_ef(int *);
int lib_revert();
int lib_run_program(char *);
int lib_scanc(char *, char *, char);
int lib_scopy_dxdx(char *, char *);
int lib_scopy_r_dx(int *, char *, char *);
int lib_screen_info(int *, ...);
int lib_set_buffer(char *, ...);
int lib_set_cursor(int *, int *);
int lib_set_logical(char *logical_name, ...);
int lib_set_output(int *, ...);
int lib_set_scroll(int *, int *);
int lib_set_symbol(char *symbol_name,
		   char *value_string, ...);
int lib_sfree1_dd(QUAD_WORD*);
int lib_sfreen_dd(int *, QUAD_WORD*);
int lib_sget1_dd(int *, QUAD_WORD*);
int lib_show_timer();
int lib_show_vm(int *, ...);
int lib_sig_to_ret(int *, int *);
int lib_sig_to_stop(int *, int *);
int lib_sim_trap(int *, int *);
int lib_skpc(char *, char *);
int lib_spanc(char *, char *, char *);
int lib_spawn(...);
int lib_stat_timer(int *, int *, ...);
int lib_stat_vm(int *, int *);
int lib_stop_output(int *);
int lib_subx(int *, int *, int *, ...);
int lib_sub_times(UQUAD_WORD *time1, UQUAD_WORD *time2,
		  UQUAD_WORD *resultant_time);
int lib_sys_asctim();
int lib_sys_fao(char *, ...);
int lib_sys_faol(char *, int *, char *, int *, int *, int *, int *, int *,
		 int *, int *, int *, int *, int *);
int lib_sys_getmsg(int *, ...);
int lib_sys_trnlog(char *, ...);
int lib_tparse(int *, int *, int *);
int lib_traverse_tree(int *, int *, ...);
int lib_tra_asc_ebc(char *, char *);
int lib_tra_ebc_asc(char *, char *);
int lib_trim_filespec(char *, char *, ...);
int lib_up_scroll();
int lib_wait(float *);

#ifdef __cplusplus
}
#endif


/******************************************************************************/
/*
**	equivalent name definitions
*/
/******************************************************************************/

#define	LIB_ADDX			lib_addx
#define	LIB_ANALYZE_SDESC		lib_analyze_sdesc
#define	LIB_ASN_WTH_MBX			lib_asn_wth_mbx
#define	LIB_AST_IN_PROG			lib_ast_in_prog
#define	LIB_ATTACH			lib_attach
#define	LIB_BBCCI			lib_bbcci
#define	LIB_BBSSI			lib_bbssi
#define	LIB_CALLG			lib_callg
#define	LIB_CHAR			lib_char
#define	LIB_CRC				lib_crc
#define	LIB_CRC_TABLE			lib_crc_table
#define	LIB_CREATE_DIR			lib_create_dir
#define	LIB_CREATE_USER_VM_ZONE		lib_create_user_vm_zone
#define	LIB_CRF_INS_KEY			lib_crf_ins_key
#define	LIB_CRF_INS_REF			lib_crf_ins_ref
#define	LIB_CRF_OUTPUT			lib_crf_output
#define	LIB_CURRENCY			lib_currency
#define	LIB_CVT_DTB			lib_cvt_dtb
#define	LIB_CVT_DX_DX			lib_cvt_dx_dx
#define	LIB_CVT_FROM_INTERNAL_TIME	lib_cvt_from_internal_time
#define	LIB_CVT_HTB			lib_cvt_htb
#define	LIB_CVT_OTB			lib_cvt_otb
#define	LIB_CVT_TO_INTERNAL_TIME	lib_cvt_to_internal_time
#define	LIB_DATE_TIME			lib_date_time
#define	LIB_DAY				lib_day
#define	LIB_DAY_OF_WEEK			lib_day_of_week
#define	LIB_DECODE_FAULT		lib_decode_fault
#define	LIB_DEC_OVER			lib_dec_over
#define	LIB_DELETE_FILE			lib_delete_file
#define	LIB_DELETE_LOGICAL		lib_delete_logical
#define	LIB_DELETE_SYMBOL		lib_delete_symbol
#define	LIB_DELETE_VM_ZONE		lib_delete_vm_zone
#define	LIB_DIGIT_SEP			lib_digit_sep
#define	LIB_DISABLE_CTRL		lib_disable_ctrl
#define	LIB_DOWN_SCROLL			lib_down_scroll
#define	LIB_DO_COMMAND			lib_do_command
#define	LIB_EDIV			lib_ediv
#define	LIB_EMODD			lib_emodd
#define	LIB_EMODF			lib_emodf
#define	LIB_EMODG			lib_emodg
#define	LIB_EMODH			lib_emodh
#define	LIB_EMUL			lib_emul
#define	LIB_EMULATE			lib_emulate
#define	LIB_ENABLE_CTRL			lib_enable_ctrl
#define	LIB_ERASE_LINE			lib_erase_line
#define	LIB_ERASE_PAGE			lib_erase_page
#define	LIB_EXTV			lib_extv
#define	LIB_EXTZV			lib_extzv
#define	LIB_FFC				lib_ffc
#define	LIB_FFS				lib_ffs
#define	LIB_FILE_SCAN			lib_file_scan
#define	LIB_FILE_SCAN_END		lib_file_scan_end
#define	LIB_FIND_FILE			lib_find_file
#define	LIB_FIND_FILE_END		lib_find_file_end
#define	LIB_FIND_IMAGE_SYMBOL		lib_find_image_symbol
#define	LIB_FIXUP_FLT			lib_fixup_flt
#define	LIB_FLT_UNDER			lib_flt_under
#define	LIB_FREE_EF			lib_free_ef
#define	LIB_FREE_LUN			lib_free_lun
#define	LIB_FREE_TIMER			lib_free_timer
#define	LIB_FREE_VM_PAGE		lib_free_vm_page
#define	LIB_GETDVI			lib_getdvi
#define	LIB_GETJPI			lib_getjpi
#define	LIB_GETSYI			lib_getsyi
#define	LIB_GET_COMMAND			lib_get_command
#define	LIB_GET_COMMON			lib_get_common
#define	LIB_GET_EF			lib_get_ef
#define	LIB_GET_FOREIGN			lib_get_foreign
#define	LIB_GET_INPUT			lib_get_input
#define	LIB_GET_LUN			lib_get_lun
#define	LIB_GET_SCREEN			lib_get_screen
#define	LIB_GET_SYMBOL			lib_get_symbol
#define	LIB_GET_VM_PAGE			lib_get_vm_page
#define	LIB_ICHAR			lib_ichar
#define	LIB_INDEX			lib_index
#define	LIB_INIT_TIMER			lib_init_timer
#define	LIB_INSERT_TREE			lib_insert_tree
#define	LIB_INSQHI			lib_insqhi
#define	LIB_INSQTI			lib_insqti
#define	LIB_INSV			lib_insv
#define	LIB_INT_OVER			lib_int_over
#define	LIB_LEN				lib_len
#define	LIB_LOCC			lib_locc
#define	LIB_LOOKUP_KEY			lib_lookup_key
#define	LIB_LOOKUP_TREE			lib_lookup_tree
#define	LIB_LP_LINES			lib_lp_lines
#define	LIB_MATCHC			lib_matchc
#define	LIB_MATCH_COND			lib_match_cond
#define	LIB_MOVC3			lib_movc3
#define	LIB_MOVTC			lib_movtc
#define	LIB_MOVTUC			lib_movtuc
#define	LIB_PAUSE			lib_pause
#define	LIB_POLYD			lib_polyd
#define	LIB_POLYF			lib_polyf
#define	LIB_POLYG			lib_polyg
#define	LIB_POLYH			lib_polyh
#define	LIB_PUT_BUFFER			lib_put_buffer
#define	LIB_PUT_COMMON			lib_put_common
#define	LIB_PUT_LINE			lib_put_line
#define	LIB_PUT_OUTPUT			lib_put_output
#define	LIB_PUT_SCREEN			lib_put_screen
#define	LIB_RADIX_POINT			lib_radix_point
#define	LIB_REMQHI			lib_remqhi
#define	LIB_REMQTI			lib_remqti
#define	LIB_RENAME_FILE			lib_rename_file
#define	LIB_RESERVE_EF			lib_reserve_ef
#define	LIB_REVERT			lib_revert
#define	LIB_RUN_PROGRAM			lib_run_program
#define	LIB_SCANC			lib_scanc
#define	LIB_SCOPY_DXDX			lib_scopy_dxdx
#define	LIB_SCOPY_R_DX			lib_scopy_r_dx
#define	LIB_SCREEN_INFO			lib_screen_info
#define	LIB_SET_BUFFER			lib_set_buffer
#define	LIB_SET_CURSOR			lib_set_cursor
#define	LIB_SET_LOGICAL			lib_set_logical
#define	LIB_SET_OUTPUT			lib_set_output
#define	LIB_SET_SCROLL			lib_set_scroll
#define	LIB_SET_SYMBOL			lib_set_symbol
#define	LIB_SFREE1_DD			lib_sfree1_dd
#define	LIB_SFREEN_DD			lib_sfreen_dd
#define	LIB_SGET1_DD			lib_sget1_dd
#define	LIB_SHOW_TIMER			lib_show_timer
#define	LIB_SHOW_VM			lib_show_vm
#define	LIB_SIG_TO_RET			lib_sig_to_ret
#define	LIB_SIG_TO_STOP			lib_sig_to_stop
#define	LIB_SIM_TRAP			lib_sim_trap
#define	LIB_SKPC			lib_skpc
#define	LIB_SPANC			lib_spanc
#define	LIB_SPAWN			lib_spawn
#define	LIB_STAT_TIMER			lib_stat_timer
#define	LIB_STAT_VM			lib_stat_vm
#define	LIB_STOP_OUTPUT			lib_stop_output
#define	LIB_SUBX			lib_subx
#define	LIB_SUB_TIMES			lib_sub_times
#define	LIB_SYS_ASCTIM			lib_sys_asctim
#define	LIB_SYS_FAO			lib_sys_fao
#define	LIB_SYS_FAOL			lib_sys_faol
#define	LIB_SYS_GETMSG			lib_sys_getmsg
#define	LIB_SYS_TRNLOG			lib_sys_trnlog
#define	LIB_TPARSE			lib_tparse
#define	LIB_TRAVERSE_TREE		lib_traverse_tree
#define	LIB_TRA_ASC_EBC			lib_tra_asc_ebc
#define	LIB_TRA_EBC_ASC			lib_tra_ebc_asc
#define	LIB_TRIM_FILESPEC		lib_trim_filespec
#define	LIB_UP_SCROLL			lib_up_scroll
#define	LIB_WAIT			lib_wait

#define LIB_EF_ALRFRE			(424242)

#endif