home *** CD-ROM | disk | FTP | other *** search
- /*++
- /* NAME
- /* defs 5
- /* SUMMARY
- /* program-independent definitions
- /* PROJECT
- /* pc-mail
- /* PACKAGE
- /* all
- /* SYNOPSIS
- /* #include "defs.h"
- /* DESCRIPTION
- /* .nf
-
- /* /* this file is for program-independent definitions */
-
- #include <stdio.h>
-
- extern int errno;
- extern char *sys_errlist[];
-
- #define hidden static /* for functions local to a module */
- #define public /* for globally visible functions/data */
-
- /* /*
- * Take care of differences between various flavours of C library
- * function names. Define macros where functions are missing.
- */
-
- #if (SIII|SYSV|MSDOS)
- # define index strchr
- # define rindex strrchr
- #endif
-
- #ifdef unix
- # define rename(from,to) (link(from,to) || unlink(from))
- #endif
-
- /* /*
- * The delay macro is used during the dial-out sequence, e.g. when we
- * are sending commands to a modem. It is supposed to produce a short
- * delay of a few milliseconds so that the modem can see a small gap
- * between successive characters.
- */
-
- #define delay() chdir(".")
-
- /* /*
- * Standard macros.
- */
-
- #define MIN(a,b) ((a) < (b) ? (a) : (b))
- #define MAX(x,y) ((x) > (y) ? (x) : (y))
- #define CALL(p) (*(p))
-
- /* /* library functions with non-default return types */
-
- extern char *strtok();
- extern char *fgets();
- extern char *strcpy();
- extern char *strncpy();
- extern char *strcat();
- extern char *strncat();
- extern char *malloc();
- extern void free();
- extern char *getenv();
- extern char *asctime();
- extern long time();
- extern char *index();
- extern char *rindex();
- extern char *memcpy();
- extern void exit();
-
- /* /* local utility functions with non-default return types */
-
- extern char *myalloc();
- extern char *strcons();
- extern char **strvec();
- extern char *vecstr();
- /* SEE ALSO
- /* path(5) system-dependent path names
- /* AUTHOR(S)
- /* W.Z. Venema
- /* Eindhoven University of Technology
- /* Department of Mathematics and Computer Science
- /* Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
- /* CREATION DATE
- /* Mon Apr 6 16:58:42 GMT+1:00 1987
- /* LAST MODIFICATION
- /* Wed Apr 6 00:19:43 MET 1988
- /* VERSION/RELEASE
- /* 1.4
- /*--*/
-
-