From c6c7133d439179a73fb7e128a546c34d18a594bb Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 2 Jan 2015 18:17:00 -0800 Subject: [PATCH] Drop SunOS 4 support --- nufxlib/SunOS4.h | 46 ---------------------------------------------- nufxlib/SysDefs.h | 4 ---- nulib2/SunOS4.h | 46 ---------------------------------------------- nulib2/SysDefs.h | 4 ---- 4 files changed, 100 deletions(-) delete mode 100644 nufxlib/SunOS4.h delete mode 100644 nulib2/SunOS4.h diff --git a/nufxlib/SunOS4.h b/nufxlib/SunOS4.h deleted file mode 100644 index ea2193b..0000000 --- a/nufxlib/SunOS4.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2000-2007 by Andy McFadden, All Rights Reserved. - * This is free software; you can redistribute it and/or modify it under the - * terms of the BSD License, see the file COPYING-LIB. - * - * This file was adapted from Devin Reade's "sunos4.h" in NuLib 3.2.5. - * It is provided for compilation under SunOS 4.x, when an ANSI compiler - * (such as gcc) is used. The system header files aren't quite sufficient - * to eliminate hordes of warnings. - */ -#ifndef NUFXLIB_SUNOS4_H -#define NUFXLIB_SUNOS4_H - -#ifdef __GNUC__ -extern int _flsbuf(int, FILE*); -extern int _filbuf(FILE*); -#endif - -extern void bcopy(char*, char*, int); -extern int fclose(FILE*); -extern int fflush(FILE*); -extern int fprintf(FILE*, const char*, ...); -extern int fread(char*, int, int, FILE *); -extern int fseek(FILE*, long, int); -extern int ftruncate(int, off_t); -extern int fwrite(const char*, int, int, FILE*); -extern char* mktemp(char *template); -extern time_t mktime(struct tm*); -extern int perror(const char*); -extern int printf(const char*, ...); -extern int remove(const char*); -extern int rename(const char*, const char*); -extern int tolower(int); -extern int setvbuf(FILE*, char*, int, int); -extern int sscanf(char*, const char*, ...); -extern int strcasecmp(const char*, const char*); -extern int strncasecmp(const char*, const char*, size_t); -extern long strtol(const char *, char **, int); -extern int system(const char*); -extern time_t timelocal(struct tm*); -extern time_t time(time_t*); -extern int toupper(int); -extern int vfprintf(FILE*, const char *, va_list); -extern char* vsprintf(char *str, const char *format, va_list ap); - -#endif /*NUFXLIB_SUNOS4_H*/ diff --git a/nufxlib/SysDefs.h b/nufxlib/SysDefs.h index 2b3a01a..86e7aad 100644 --- a/nufxlib/SysDefs.h +++ b/nufxlib/SysDefs.h @@ -133,10 +133,6 @@ # define HAS__FUNCTION__ #endif -#if defined(__sun__) && !defined(__SVR4) -# include "SunOS4.h" -#endif - #if defined(__linux__) # define HAS_MALLOC_CHECK_ #endif diff --git a/nulib2/SunOS4.h b/nulib2/SunOS4.h deleted file mode 100644 index ccf2ba9..0000000 --- a/nulib2/SunOS4.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2000-2007 by Andy McFadden, All Rights Reserved. - * This is free software; you can redistribute it and/or modify it under the - * terms of the BSD License, see the file COPYING-LIB. - * - * This file was adapted from Devin Reade's "sunos4.h" in NuLib 3.2.5. - * It is provided for compilation under SunOS 4.x, when an ANSI compiler - * (such as gcc) is used. The system header files aren't quite sufficient - * to eliminate hordes of warnings. - */ -#ifndef NULIB2_SUNOS4_H -#define NULIB2_SUNOS4_H - -#ifdef __GNUC__ -extern int _flsbuf(int, FILE*); -extern int _filbuf(FILE*); -#endif - -extern void bcopy(char*, char*, int); -extern int fclose(FILE*); -extern int fflush(FILE*); -extern int fprintf(FILE*, const char*, ...); -extern int fread(char*, int, int, FILE *); -extern int fseek(FILE*, long, int); -extern int ftruncate(int, off_t); -extern int fwrite(const char*, int, int, FILE*); -extern char* mktemp(char *template); -extern time_t mktime(struct tm*); -extern int perror(const char*); -extern int printf(const char*, ...); -extern int remove(const char*); -extern int rename(const char*, const char*); -extern int tolower(int); -extern int setvbuf(FILE*, char*, int, int); -extern int sscanf(char*, const char*, ...); -extern int strcasecmp(const char*, const char*); -extern int strncasecmp(const char*, const char*, size_t); -extern long strtol(const char *, char **, int); -extern int system(const char*); -extern time_t timelocal(struct tm*); -extern time_t time(time_t*); -extern int toupper(int); -extern int vfprintf(FILE*, const char *, va_list); -extern char* vsprintf(char *str, const char *format, va_list ap); - -#endif /*NULIB2_SUNOS4_H*/ diff --git a/nulib2/SysDefs.h b/nulib2/SysDefs.h index 215ec94..26bb2a0 100644 --- a/nulib2/SysDefs.h +++ b/nulib2/SysDefs.h @@ -192,10 +192,6 @@ # define HAS__FUNCTION__ #endif -#if defined(__sun__) && !defined(__SVR4) -# include "SunOS4.h" -#endif - /* general defaults, mainly for UNIX */ #ifndef PATH_SEP