mars_dosutils-0.10
This commit is contained in:
62
net.h
62
net.h
@@ -1,4 +1,4 @@
|
||||
/* net.h: 01-Feb-96 */
|
||||
/* net.h: 20-May-96 */
|
||||
|
||||
/****************************************************************
|
||||
* (C)opyright (C) 1993,1996 Martin Stover, Marburg, Germany *
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef unsigned int UI;
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned char UC;
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned short int uint16;
|
||||
@@ -103,15 +104,31 @@ typedef struct {
|
||||
#define NWBIND 5
|
||||
|
||||
/* net.c */
|
||||
extern char *funcname;
|
||||
extern char *funcname;
|
||||
extern char prgpath[];
|
||||
|
||||
extern int call_func_entry(int argc, char *argv[]);
|
||||
|
||||
/* tools.c */
|
||||
extern void clear_kb(void);
|
||||
extern int key_pressed(void);
|
||||
extern int ask_user(char *p, ...);
|
||||
#define xfree(p) x_x_xfree((char **)&(p))
|
||||
extern void x_x_xfree(char **p);
|
||||
extern char *xmalloc(uint size);
|
||||
extern char *xcmalloc(uint size);
|
||||
|
||||
extern int strmaxcpy(char *dest, char *source, int len);
|
||||
extern char *xadd_char(char *s, int c, int maxlen);
|
||||
extern uint8 *upstr(uint8 *s);
|
||||
extern void korrpath(char *s);
|
||||
extern void get_path_fn(char *s, char *p, char *fn);
|
||||
|
||||
#define reb(s) deb((s)),leb((s))
|
||||
|
||||
extern void deb(uint8 *s);
|
||||
extern void leb(uint8 *s);
|
||||
|
||||
|
||||
#define add_char(s, c) xadd_char((s), (c), -1)
|
||||
|
||||
@@ -124,17 +141,11 @@ extern int putglobenv(char *option);
|
||||
#define DRIVE_DELETE 3
|
||||
|
||||
typedef struct {
|
||||
uint8 drivenummer; /* 0xff, 0xfe f<EFBFBD>r DOSPATH mit Pfad */
|
||||
uint8 flags;
|
||||
union {
|
||||
struct {
|
||||
char dospath[65];
|
||||
} d;
|
||||
struct fs {
|
||||
uint8 connid;
|
||||
uint8 dhandle;
|
||||
} fs;
|
||||
} u;
|
||||
uint8 drivenummer; /* 0xff=last of list, 0xfe only DOSPATH */
|
||||
uint8 flags; /* 0x80 = local drive */
|
||||
char dospath[65];
|
||||
uint8 connid;
|
||||
uint8 dhandle;
|
||||
} SEARCH_VECTOR_ENTRY;
|
||||
|
||||
typedef SEARCH_VECTOR_ENTRY SEARCH_VECTOR[17];
|
||||
@@ -180,23 +191,30 @@ extern int ncp_17_4b(uint8 *cryptkey, uint8 *objname, uint16 objtyp,
|
||||
int passwx, uint8 *newpassword);
|
||||
|
||||
/* map.c */
|
||||
extern int func_map(int argc, char *argv[]);
|
||||
extern int func_path(int argc, char *argv[]);
|
||||
extern int func_map (int argc, char *argv[], int mode);
|
||||
extern int func_path (int argc, char *argv[], int mode);
|
||||
|
||||
/* login.c */
|
||||
extern int func_login(int argc, char *argv[]);
|
||||
extern int func_logout(int argc, char *argv[]);
|
||||
extern int func_passwd(int argc, char *argv[]);
|
||||
extern int func_login (int argc, char *argv[], int mode);
|
||||
extern int func_logout (int argc, char *argv[], int mode);
|
||||
extern int func_passwd (int argc, char *argv[], int mode);
|
||||
extern int func_profile(int argc, char *argv[], int mode);
|
||||
extern int func_cwd (int argc, char *argv[], int mode);
|
||||
extern int func_echo (int argc, char *argv[], int mode);
|
||||
extern int func_exec (int argc, char *argv[], int mode);
|
||||
extern int read_command_file(char *fstr);
|
||||
|
||||
/* slist.c */
|
||||
extern int func_slist(int argc, char *argv[]);
|
||||
extern int func_slist (int argc, char *argv[], int mode);
|
||||
|
||||
/* nwdebug.c */
|
||||
extern int func_debug(int argc, char *argv[]);
|
||||
extern int func_debug (int argc, char *argv[], int mode);
|
||||
|
||||
/* nwtests.c */
|
||||
extern int func_tests(int argc, char *argv[]);
|
||||
|
||||
extern int func_tests (int argc, char *argv[], int mode);
|
||||
|
||||
/* capture.c */
|
||||
extern int func_capture(int argc, char *argv[], int mode);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user