/* Amiga Port by William Loftus */ /* Changes are Copyright 1988 by William Loftus. All rights reserved. */ /* * Declarations of gnuucp's system-dependent routines, which * are in the file sysdep.c (a link to one of many system dependent * implementations). */ /* Returns a temp filename, in a static buffer, to use while * receiving the file whose name is passed as argument. */ char * temp_filename(); /* Returns a filename, in a static buffer, which should be used * on the local system to access the file named in a uucp control * file (the argument). E.g. it might turn D.foobarX1234 into * foobar\X1234.D on MSDOS, or to D./D.foobarX1234 on Unix. */ char * munge_filename(); /* * Basement level I/O routines * * xwrite() writes a character string to the serial port * xgetc() returns a character from the serial port, or an EOF for timeout. * sigint() restores the state of the serial port on exit. * openline() opens a serial port for an incoming call, waiting for carrier. * openout() opens a serial port for an outgoing call. */ int xwrite(); /* filedesc, buffer, count */ int xgetc(); /* No arg */ int sigint(); /* No arg */ void openline(); /* ttyname */ int openout(); /* ttyname */ void amiga_setup(); /* No arg */ /* * Uucp work queue scan. * * gotsome = work_scan(hostname); * * Result is 1 if there is work, 0 if none. If result is 1, and work_scan * is called a second time without an intervening work_done, it won't * rescan the directory but simply returns a 1. * * workfile = work_next(); * * Result is char * to static filename; or NULL if no more. * We only read the directory once. If callers want more to rescan it * in case more work is here, they should call work_scan again. * * void work_done(); * Clean up a work scan. No need to call this if work_next returned NULL; * it has cleaned up. */ extern int work_scan(); extern char *work_next(); extern void work_done(); /* SERIAL PORT DELARATIONS ALSO TIMER */ extern struct MsgPort *CreatePort(); extern struct IOExtSer *Read_Request; extern unsigned char rs_in[2]; extern struct IOExtSer *Write_Request; extern unsigned char rs_out[2]; extern struct timerequest Timer; extern struct MsgPort *Timer_Port; #define LOCK_FILE "t:UUCP.LCK"