mirror of https://github.com/sheumann/dmake.git
132 lines
3.5 KiB
C
132 lines
3.5 KiB
C
/* RCS -- $Header: /u/dvadura/src/generic/dmake/src/RCS/extern.h,v 1.2 1992/04/07 04:42:46 dvadura Exp $
|
|
-- SYNOPSIS -- external declarations for dmake functions.
|
|
--
|
|
-- DESCRIPTION
|
|
-- ANSI is a macro that allows the proper handling of ANSI style
|
|
-- function declarations.
|
|
--
|
|
-- AUTHOR
|
|
-- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
|
|
-- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
|
|
--
|
|
-- COPYRIGHT
|
|
-- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
|
|
--
|
|
-- This program is free software; you can redistribute it and/or
|
|
-- modify it under the terms of the GNU General Public License
|
|
-- (version 1), as published by the Free Software Foundation, and
|
|
-- found in the file 'LICENSE' included with this distribution.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warrant of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
--
|
|
-- 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
--
|
|
-- LOG
|
|
-- $Log: extern.h,v $
|
|
* Revision 1.2 1992/04/07 04:42:46 dvadura
|
|
* Changed namemax.h to posix.h.
|
|
*
|
|
* Revision 1.1 1992/01/24 03:26:52 dvadura
|
|
* dmake Version 3.8, Initial revision
|
|
*
|
|
*/
|
|
|
|
#ifndef EXTERN_h
|
|
#define EXTERN_h
|
|
|
|
/* this is for testing only */
|
|
#if defined(__GNUC__)
|
|
#define __ORCAC__
|
|
#endif
|
|
|
|
/* Define this for the RS/6000 if it breaks something then we have to put a
|
|
* #ifdef around it. */
|
|
#if defined(rs6000)
|
|
#define _POSIX_SOURCE
|
|
#endif
|
|
|
|
#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#if defined(__GNUC__)
|
|
# include <varargs.h>
|
|
#else
|
|
# include <stdarg.h>
|
|
#endif
|
|
#if defined (_MPW)
|
|
# include <types.h>
|
|
# include <time.h>
|
|
#else
|
|
# include <sys/types.h>
|
|
# include <sys/stat.h>
|
|
#endif
|
|
#include <signal.h>
|
|
#include <fcntl.h>
|
|
#if defined(GNO)
|
|
# if !defined(__GNUC__)
|
|
# include <gno/gno.h>
|
|
# endif
|
|
# include <unistd.h>
|
|
#endif
|
|
#include "itypes.h"
|
|
#include "stdmacs.h"
|
|
#include "alloc.h"
|
|
#include "db.h"
|
|
#include "dmake.h"
|
|
#include "struct.h"
|
|
#include "vextern.h"
|
|
#include "public.h"
|
|
|
|
/* Include this last as it invalidates some functions that are defined
|
|
* externally above and turns them into no-ops. Have to do this after
|
|
* the extern declarations however. */
|
|
#include "config.h"
|
|
#include "posix.h"
|
|
|
|
#if defined(__ORCAC__)
|
|
|
|
/* show some declarations for porting purposes */
|
|
int Push_dir (char *dir, char *name, int ignore ); /* from make.c */
|
|
void Error (char *fmt, ...);
|
|
void Fatal (char *fmt, ...);
|
|
void Warning (char *fmt, ...);
|
|
int Make (CELLPTR cp, CELLPTR setdirroot);
|
|
int _explode_graph(CELLPTR cp, LINKPTR parent, CELLPTR setdirroot );
|
|
int touch_arch (char *name, char *lib);
|
|
void void_lcache (char *lib, char *member );
|
|
int unlink (char *path);
|
|
|
|
#endif
|
|
|
|
#if defined(__GNUC__)
|
|
#define SYSERR -1
|
|
int needsgno(void);
|
|
int fprintf(FILE *, char *, ...);
|
|
int printf(char *, ...);
|
|
int system (char *);
|
|
int setvbuf(FILE *, char *, int, int);
|
|
int fclose(FILE *);
|
|
int vfprintf(FILE *, char *, va_list);
|
|
int initenv(void);
|
|
int puts(char *);
|
|
int fputs(char *, FILE *);
|
|
int fread(char *, int, int, FILE *);
|
|
int fseek(FILE *, long, int);
|
|
int dup(int);
|
|
int close(int);
|
|
int rewind(FILE *);
|
|
int fflush(FILE *);
|
|
int fputc(char, FILE *);
|
|
int getpid(void);
|
|
int chdir(char *);
|
|
char *mktemp(char *);
|
|
#endif
|
|
#endif
|