VMS system.h bit
Avoid some duplicate declarations for VMS. The one for lseek() has become an issue--not fixed here--and this narrows it down to one place.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 system.h $NHDT-Date: 1501723401 2017/08/03 01:23:21 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.13 $ */
|
||||
/* NetHack 3.6 system.h $NHDT-Date: 1550268586 2019/02/15 22:09:46 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.17 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2017. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -165,20 +165,18 @@ E long FDECL(lseek, (int, off_t, int));
|
||||
/* Ultrix 3.0 man page mistakenly says it returns an int. */
|
||||
E int FDECL(write, (int, char *, int));
|
||||
E int FDECL(link, (const char *, const char *));
|
||||
#else
|
||||
#ifndef bsdi
|
||||
#else /*!ULTRIX*/
|
||||
#if !(defined(bsdi) || defined(VMS))
|
||||
E long FDECL(lseek, (int, long, int));
|
||||
#endif
|
||||
#if defined(POSIX_TYPES) || defined(__TURBOC__)
|
||||
#ifndef bsdi
|
||||
E int FDECL(write, (int, const void *, unsigned));
|
||||
#endif
|
||||
#else
|
||||
#ifndef __MWERKS__ /* metrowerks defines write via universal headers */
|
||||
E int FDECL(write, (int, genericptr_t, unsigned));
|
||||
#endif
|
||||
#endif
|
||||
#endif /* ULTRIX */
|
||||
#endif /*?(POSIX_TYPES || __TURBOC__)*/
|
||||
#endif /*!(bsdi || VMS)*/
|
||||
#endif /*?ULTRIX*/
|
||||
|
||||
#ifdef OS2_CSET2 /* IBM CSet/2 */
|
||||
#ifdef OS2_CSET2_VER_1
|
||||
@@ -273,7 +271,7 @@ E int VDECL(creat, (const char *, unsigned, ...));
|
||||
E int FDECL(delete, (const char *));
|
||||
E int FDECL(fstat, (/*_ int, stat_t * _*/));
|
||||
E int FDECL(isatty, (int)); /* 1==yes, 0==no, -1==error */
|
||||
E long FDECL(lseek, (int, long, int));
|
||||
E off_t FDECL(lseek, (int, off_t, int));
|
||||
E int VDECL(open, (const char *, int, unsigned, ...));
|
||||
E int FDECL(read, (int, genericptr_t, unsigned));
|
||||
E int FDECL(rename, (const char *, const char *));
|
||||
|
||||
Reference in New Issue
Block a user