1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 04:12:51 +00:00

Create unixfork.h to declare functions defined in unixfork.c

Update files that depend on unixfork functions to include unixfork.h
Declare as static all functions in unixfork.c that are not needed externally.
Add dependencies to makefile-tail.

	modified:   makefile-tail
	new file:   ../inc/unixfork.h
	modified:   ../src/ldeboot.c
	modified:   ../src/main.c
	modified:   ../src/unixfork.c
This commit is contained in:
Nick Briggs
2017-06-30 15:10:52 -07:00
parent 16583b3b53
commit 730ff30b86
5 changed files with 18 additions and 6 deletions

View File

@@ -40,6 +40,8 @@ static char *id = "$Id: ldeboot.c,v 1.3 1999/01/03 02:07:13 sybalsky Exp $ Copyr
#include <stdlib.h>
#include <unistd.h>
#include "unixfork.h"
#ifdef XWINDOW
#ifndef SYSVONLY
#include <strings.h>
@@ -49,7 +51,6 @@ static char *id = "$Id: ldeboot.c,v 1.3 1999/01/03 02:07:13 sybalsky Exp $ Copyr
#include <X11/Xutil.h>
#include "XVersion.h"
#define LDEX "ldex"
extern char *getenv();
#endif /* XWINDOW */
#define LDEMONO "ldesingle"

View File

@@ -22,6 +22,8 @@ static char *id = "$Id: main.c,v 1.4 2001/12/26 22:17:03 sybalsky Exp $ Copyrigh
#include "lispemul.h"
#include "dbprint.h"
#include "unixfork.h"
#include <sys/types.h>
#ifndef DOS
#include <sys/param.h>

View File

@@ -92,6 +92,8 @@ typedef int clockid_t;
#include <sgtty.h>
#endif
#include "unixfork.h"
/* The following globals are used to communicate between Unix
subprocesses and LISP */
@@ -127,9 +129,9 @@ loop:
/* Creates a PTY connection to a csh */
#ifdef FULLSLAVENAME
ForkUnixShell(int slot, char *PtySlave, char *termtype, char *shellarg)
int ForkUnixShell(int slot, char *PtySlave, char *termtype, char *shellarg)
#else
ForkUnixShell(int slot, char ltr, char numb, char *termtype, char *shellarg)
int ForkUnixShell(int slot, char ltr, char numb, char *termtype, char *shellarg)
#endif
{
#ifdef FULLSLAVENAME