@@ -52,10 +52,8 @@ extern struct irx_export_table _exp_ioman;
5252#define MAX_FILES 32
5353#endif
5454
55- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
5655void iomanX_StdioInit (int mode );
5756static int open_tty_handles (const char * tty_name );
58- #endif
5957static int xx_stat (int op , const char * name , iox_stat_t * stat , unsigned int statmask );
6058static int xx_rename (int op , const char * oldname , const char * newname );
6159static int xx_dir (int op , const char * name , int mode );
@@ -64,13 +62,9 @@ static iomanX_iop_file_t *new_iob(void);
6462static iomanX_iop_file_t * get_iob (int fd );
6563static iomanX_iop_device_t * lookup_dev (const char * name , int show_unkdev_msg );
6664static const char * parsefile (const char * path , iomanX_iop_device_t * * p_device , int * p_unit );
67- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
68- static int tty_noop (void );
69- unsigned int iomanX_GetDevType (int fd );
70- #endif
7165static void ShowDrv (void );
72- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
7366static void register_tty (void );
67+ #ifdef _IOP
7468static void register_dummytty (void );
7569#endif
7670
@@ -83,7 +77,6 @@ struct ioman_dev_listentry
8377#endif
8478
8579static int showdrvflag = 1 ;
86- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
8780
8881IOMANX_RETURN_VALUE_IMPL (0 );
8982
@@ -123,6 +116,7 @@ static iomanX_iop_device_t dev_tty = {
123116 "CONSOLE" ,
124117 & dev_tty_dev_operations ,
125118};
119+ #ifdef _IOP
126120static iomanX_iop_device_t dev_dummytty = {
127121 "dummytty" ,
128122 IOP_DT_CHAR ,
@@ -378,7 +372,6 @@ iomanX_iop_file_t *get_file(int fd)
378372}
379373#endif
380374
381- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
382375void iomanX_StdioInit (int mode )
383376{
384377#ifdef _IOP
@@ -432,7 +425,6 @@ static int open_tty_handles(const char *tty_name)
432425 return -1 ;
433426 return 0 ;
434427}
435- #endif
436428
437429int iomanX_open (const char * name , int flags , ...)
438430{
@@ -1212,7 +1204,6 @@ int iomanX_DelDrv(const char *name)
12121204#endif
12131205}
12141206
1215- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
12161207unsigned int iomanX_GetDevType (int fd )
12171208{
12181209 iomanX_iop_file_t * f ;
@@ -1222,7 +1213,6 @@ unsigned int iomanX_GetDevType(int fd)
12221213 return handle_result (- EBADF , f , 0 );
12231214 return f -> device -> type ;
12241215}
1225- #endif
12261216
12271217static void ShowDrv (void )
12281218{
@@ -1247,13 +1237,13 @@ static void ShowDrv(void)
12471237 showdrvflag = 0 ;
12481238}
12491239
1250- #ifndef IOMANX_ENABLE_LEGACY_IOMAN_HOOK
12511240static void register_tty (void )
12521241{
12531242 iomanX_DelDrv (dev_tty .name );
12541243 iomanX_AddDrv (& dev_tty );
12551244}
12561245
1246+ #ifdef _IOP
12571247static void register_dummytty (void )
12581248{
12591249 iomanX_DelDrv (dev_dummytty .name );
0 commit comments