Repository navigation
Expand file tree
/
Copy pathport.h
More file actions
79 lines (74 loc) · 1.88 KB
/
Copy pathport.h
File metadata and controls
79 lines (74 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* port.h General include file that includes all nessecary files
* for the configured system. This is a general file,
* not application dependant. It maybe a bit of overhead
* but simplifies porting greatly.
*
* $Id: port.h,v 1.10 2009-06-06 18:50:42 al-guest Exp $
*
* This file is part of the minicom communications package,
* Copyright 1991-1995 Miquel van Smoorenburg.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifdef ISC
# include <sys/bsdtypes.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <stdlib.h>
#else
char *getenv(void);
#endif
#ifdef HAVE_TERMCAP_H
# include <termcap.h>
#endif
#ifdef HAVE_NCURSES_TERMCAP_H
# include <ncurses/termcap.h>
#endif
#ifdef _UWIN2P0
# include <time.h>
# define MAXNAMLEN 80
#endif
#include <signal.h>
#include <fcntl.h>
#include <setjmp.h>
#include <sys/stat.h>
#ifdef _MINIX
#include <sys/times.h>
#else
#include <time.h>
#include <sys/time.h>
#endif
#include <string.h>
#include <stdio.h>
#include <pwd.h>
#include <ctype.h>
#include <errno.h>
#if defined(_BSD43) || defined(_SYSV) || (defined(BSD) && (BSD >= 199103))
# define NOSTREAMS
# include <sys/file.h>
#endif
#ifndef _NSIG
# ifndef NSIG
# define _NSIG 31
# else
# define _NSIG NSIG
# endif
#endif
/* Enable music routines. Could we use defined(i386) here? */
#if defined(__linux__) || defined(_SCO)
# define VC_MUSIC 1
#endif
extern char **environ;