home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mlib32d.zoo / diffh < prev    next >
Text File  |  1993-06-17  |  22KB  |  688 lines

  1. diff -cr /src/mntinc31/PatchLev.h ./PatchLev.h
  2. *** /src/mntinc31/PatchLev.h    Thu May 27 04:37:58 1993
  3. --- ./PatchLev.h    Fri Jun  4 02:17:42 1993
  4. ***************
  5. *** 3,6 ****
  6.    *    directory.
  7.    */
  8.    
  9. ! #define _PatchLevel "31"
  10. --- 3,6 ----
  11.    *    directory.
  12.    */
  13.    
  14. ! #define _PatchLevel "32"
  15. diff -cr /src/mntinc31/compiler.h ./compiler.h
  16. *** /src/mntinc31/compiler.h    Sun May 23 10:58:42 1993
  17. --- ./compiler.h    Sun Jun  6 06:19:50 1993
  18. ***************
  19. *** 13,23 ****
  20.   #endif
  21.   
  22.   /* symbols to identify the type of compiler */
  23.   #ifdef __SOZOBONC__
  24.   #define __SOZOBON__ __SOZOBONC__
  25.   #else
  26.   # ifdef SOZOBON
  27. ! # define __SOZOBON__ SOZOBON
  28.   # endif
  29.   #endif
  30.   
  31. --- 13,26 ----
  32.   #endif
  33.   
  34.   /* symbols to identify the type of compiler */
  35.   #ifdef __SOZOBONC__
  36.   #define __SOZOBON__ __SOZOBONC__
  37.   #else
  38.   # ifdef SOZOBON
  39. !   /* The "real" Sozobon, as distinct from HSC.  Don't want to assume any
  40. !      features about it, so set version number to 0. */
  41. ! # define __SOZOBON__ 0
  42.   # endif
  43.   #endif
  44.   
  45. ***************
  46. *** 91,114 ****
  47.   
  48.   #ifdef __SOZOBON__
  49.   /*
  50. !  * Temporary hacks to overcome 1.33i's short symbol names. Hopefully future
  51. !  * versions will allow the extended Sozobon symbol format.
  52.    */
  53. ! #define _mallocChunkSize _sc_mCS
  54. ! #define _malloczero _sc_mz
  55. ! #define _console_read_byte _sc_crb
  56. ! #define _console_write_byte _sc_cwb
  57.   
  58. - /* Doesn't know (void *) is special (but can handle it); this works better. */
  59.   #define __NULL (0L)
  60. ! #ifdef OLD_SOZOBON
  61. ! #define void char
  62.   #endif
  63.   #define __SIZE_TYPEDEF__ unsigned int
  64.   #define __PTRDIFF_TYPEDEF__ long
  65.   #define __WCHAR_TYPEDEF__ char
  66.   #define __EXITING void
  67. ! #define __MSHORT__
  68.   #endif /* __SOZOBON__ */
  69.   
  70.   #ifdef __TURBOC__
  71. --- 94,121 ----
  72.   
  73.   #ifdef __SOZOBON__
  74.   /*
  75. !  * Temporary hacks to overcome 1.33i's short symbol names.  As of 2.01i,
  76. !  * this restriction is removed, but can be reinstated for compatibility
  77. !  * via the -8 compiler flag.  -- sb 5/26/93
  78.    */
  79. ! #if __SOZOBON__ < 0x201 || !defined(__HSC_LONGNAMES__)
  80. ! #  define _mallocChunkSize _sc_mCS
  81. ! #  define _malloczero _sc_mz
  82. ! #  define _console_read_byte _sc_crb
  83. ! #  define _console_write_byte _sc_cwb
  84. ! #endif
  85.   
  86.   #define __NULL (0L)
  87. ! #if __SOZOBON__ < 0x122        /* previous versions didn't grok (void *) */
  88. ! #  define void char
  89.   #endif
  90.   #define __SIZE_TYPEDEF__ unsigned int
  91.   #define __PTRDIFF_TYPEDEF__ long
  92.   #define __WCHAR_TYPEDEF__ char
  93.   #define __EXITING void
  94. ! #if __SOZOBON__ < 0x201        /* 2.01 now #define's this */
  95. ! #  define __MSHORT__
  96. ! #endif
  97.   #endif /* __SOZOBON__ */
  98.   
  99.   #ifdef __TURBOC__
  100. diff -cr /src/mntinc31/ctype.h ./ctype.h
  101. *** /src/mntinc31/ctype.h    Fri May 15 19:17:02 1992
  102. --- ./ctype.h    Tue Jun 15 15:02:56 1993
  103. ***************
  104. *** 35,44 ****
  105.   #define    isspace(c)    (_ctype[(unsigned char)(c)]&_CTs)
  106.   #define    isupper(c)    (_ctype[(unsigned char)(c)]&_CTu)
  107.   #define    isxdigit(c)    (_ctype[(unsigned char)(c)]&_CTx)
  108. - #define iswhite(c)    isspace(c)
  109.   
  110.   #define    _toupper(c)    ((c)^0x20)
  111.   #define    _tolower(c)    ((c)^0x20)
  112.   #define    toascii(c)    ((c)&0x7F)
  113.   
  114.   #ifdef __GNUC__
  115. --- 35,46 ----
  116.   #define    isspace(c)    (_ctype[(unsigned char)(c)]&_CTs)
  117.   #define    isupper(c)    (_ctype[(unsigned char)(c)]&_CTu)
  118.   #define    isxdigit(c)    (_ctype[(unsigned char)(c)]&_CTx)
  119.   
  120.   #define    _toupper(c)    ((c)^0x20)
  121.   #define    _tolower(c)    ((c)^0x20)
  122. + #ifndef _POSIX_SOURCE
  123. + #define iswhite(c)    isspace(c)
  124.   #define    toascii(c)    ((c)&0x7F)
  125.   
  126.   #ifdef __GNUC__
  127. ***************
  128. *** 79,84 ****
  129. --- 81,87 ----
  130.   #define iscym(c)    (isalnum(c) || ((c) == '_') )
  131.   
  132.   #endif /* __GNUC__ */
  133. + #endif /* _POSIX_SOURCE */
  134.   
  135.   __EXTERN int    toupper    __PROTO((int));
  136.   __EXTERN int     tolower    __PROTO((int));
  137. diff -cr /src/mntinc31/errno.h ./errno.h
  138. *** /src/mntinc31/errno.h    Sun Feb 28 13:02:56 1993
  139. --- ./errno.h    Sun Jun  6 10:07:16 1993
  140. ***************
  141. *** 76,87 ****
  142. --- 76,91 ----
  143.   # define ENOTTY         87
  144.   # define ERANGE         88
  145.   # define EDOM         89
  146. + #define EIO         90        /* I/O error */
  147. + #define ENOSPC         91        /* disk full */
  148.   
  149.   #define EINTR            128        /* this *should* be fake */
  150.   
  151. + #ifndef AssemB
  152.   extern    int    errno;
  153.   extern    int    sys_nerr;
  154.   extern    char *    sys_errlist[];
  155. + #endif /* AssemB */
  156.   
  157.   #ifdef __cplusplus
  158.   }
  159. diff -cr /src/mntinc31/fcntl.h ./fcntl.h
  160. *** /src/mntinc31/fcntl.h    Sun Feb 28 13:03:02 1993
  161. --- ./fcntl.h    Thu Jun 10 06:32:22 1993
  162. ***************
  163. *** 40,45 ****
  164. --- 40,46 ----
  165.   #ifndef __MINT__
  166.   # define O_PIPE        0x2000        /* serial pipe     */
  167.   #endif
  168. + #define O_NOCTTY    0x4000        /* do not open new controlling tty */
  169.   
  170.   /*
  171.    * defines for the access() function
  172. ***************
  173. *** 73,78 ****
  174. --- 74,82 ----
  175.       short l_pid;
  176.   };
  177.   #endif /* __MINT__ */
  178. + /* Mask for close-on-exec bit in the flags retrieved/set by F_GETFD/F_SETFD */
  179. + #define FD_CLOEXEC 0x01
  180.   
  181.   /* smallest valid gemdos handle */
  182.   /* note handle is only word (16 bit) negative, not long negative,
  183. diff -cr /src/mntinc31/float.h ./float.h
  184. *** /src/mntinc31/float.h    Sat Sep  5 18:21:44 1992
  185. --- ./float.h    Thu Jun 10 03:26:08 1993
  186. ***************
  187. *** 27,39 ****
  188.   
  189.      /* Radix of exponent representation */
  190.   #define FLT_RADIX 2
  191. !    /* Number of base-FLT_RADIX digits in the mantissa of a float */
  192.   #define FLT_MANT_DIG 24
  193.      /* Number of decimal digits of precision in a float */
  194.   #define FLT_DIG 7
  195.      /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  196.   #define FLT_ROUNDS 1
  197. !    /* Minimum float x such that 1.0+x != 1.0 */
  198.   #define FLT_EPSILON ((float)1.192092891e-07)
  199.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  200.   #define FLT_MIN_EXP (-63)
  201. --- 27,39 ----
  202.   
  203.      /* Radix of exponent representation */
  204.   #define FLT_RADIX 2
  205. !    /* Number of base-FLT_RADIX digits in the significand of a float */
  206.   #define FLT_MANT_DIG 24
  207.      /* Number of decimal digits of precision in a float */
  208.   #define FLT_DIG 7
  209.      /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  210.   #define FLT_ROUNDS 1
  211. !    /* Difference between 1.0 and the minimum float greater than 1.0 */
  212.   #define FLT_EPSILON ((float)1.192092891e-07)
  213.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  214.   #define FLT_MIN_EXP (-63)
  215. ***************
  216. *** 79,92 ****
  217.   
  218.      /* Radix of exponent representation */
  219.   #define FLT_RADIX 2
  220. !    /* Number of base-FLT_RADIX digits in the mantissa of a float */
  221.   #define FLT_MANT_DIG 24
  222.      /* Number of decimal digits of precision in a float */
  223.   #define FLT_DIG 6
  224.      /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  225.   #define FLT_ROUNDS 1
  226. !    /* Minimum float x such that 1.0+x != 1.0 */
  227. ! #define FLT_EPSILON 5.96046519e-08F
  228.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  229.   #define FLT_MIN_EXP (-125)
  230.      /* Minimum normalised float */
  231. --- 79,92 ----
  232.   
  233.      /* Radix of exponent representation */
  234.   #define FLT_RADIX 2
  235. !    /* Number of base-FLT_RADIX digits in the significant of a float */
  236.   #define FLT_MANT_DIG 24
  237.      /* Number of decimal digits of precision in a float */
  238.   #define FLT_DIG 6
  239.      /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  240.   #define FLT_ROUNDS 1
  241. !    /* Difference between 1.0 and the minimum float greater than 1.0 */
  242. ! #define FLT_EPSILON 1.19209290e-07F
  243.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  244.   #define FLT_MIN_EXP (-125)
  245.      /* Minimum normalised float */
  246. ***************
  247. *** 100,111 ****
  248.      /* Maximum int x such that 10**x is a representable float */
  249.   #define FLT_MAX_10_EXP 38
  250.   
  251. !    /* Number of base-FLT_RADIX digits in the mantissa of a double */
  252.   #define DBL_MANT_DIG 53
  253.      /* Number of decimal digits of precision in a double */
  254.   #define DBL_DIG 15
  255. !    /* Minimum double x such that 1.0+x != 1.0 */
  256. ! #define DBL_EPSILON 1.1107651257113995e-16
  257.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
  258.   #define DBL_MIN_EXP (-1021)
  259.      /* Minimum normalised double */
  260. --- 100,111 ----
  261.      /* Maximum int x such that 10**x is a representable float */
  262.   #define FLT_MAX_10_EXP 38
  263.   
  264. !    /* Number of base-FLT_RADIX digits in the significand of a double */
  265.   #define DBL_MANT_DIG 53
  266.      /* Number of decimal digits of precision in a double */
  267.   #define DBL_DIG 15
  268. !    /* Difference between 1.0 and the minimum double greater than 1.0 */
  269. ! #define DBL_EPSILON 2.2204460492503131e-16
  270.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
  271.   #define DBL_MIN_EXP (-1021)
  272.      /* Minimum normalised double */
  273. ***************
  274. *** 115,144 ****
  275.      /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
  276.   #define DBL_MAX_EXP 1024
  277.      /* Maximum double */
  278. ! /*#define DBL_MAX 1.7976931348623157e+308*/
  279. ! #define DBL_MAX 1.7976931348623158e+308
  280.      /* Maximum int x such that 10**x is a representable double */
  281.   #define DBL_MAX_10_EXP 308
  282.   
  283. !    /* Number of base-FLT_RADIX digits in the mantissa of a long double */
  284. ! #define LDBL_MANT_DIG 53
  285.      /* Number of decimal digits of precision in a long double */
  286. ! #define LDBL_DIG 15
  287. !    /* Minimum long double x such that 1.0+x != 1.0 */
  288. ! #define LDBL_EPSILON 1.1107651257113995e-16L
  289.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
  290. ! #define LDBL_MIN_EXP (-1021)
  291.      /* Minimum normalised long double */
  292. ! #define LDBL_MIN 2.2250738585072014e-308L
  293.      /* Minimum int x such that 10**x is a normalised long double */
  294. ! #define LDBL_MIN_10_EXP (-307)
  295.      /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
  296. ! #define LDBL_MAX_EXP 1024
  297.      /* Maximum long double */
  298. ! /*#define LDBL_MAX 1.7976931348623157e+308L*/
  299. ! #define LDBL_MAX 1.7976931348623158e+308
  300.      /* Maximum int x such that 10**x is a representable long double */
  301. ! #define LDBL_MAX_10_EXP 308
  302.   
  303.   #endif /* __SOZOBON__ */
  304.   
  305. --- 115,151 ----
  306.      /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
  307.   #define DBL_MAX_EXP 1024
  308.      /* Maximum double */
  309. ! #define DBL_MAX 1.7976931348623157e+308
  310.      /* Maximum int x such that 10**x is a representable double */
  311.   #define DBL_MAX_10_EXP 308
  312.   
  313. !    /* Number of base-FLT_RADIX digits in the significand of a long double */
  314. ! #undef LDBL_MANT_DIG
  315. ! #define LDBL_MANT_DIG 64
  316.      /* Number of decimal digits of precision in a long double */
  317. ! #undef LDBL_DIG
  318. ! #define LDBL_DIG 18
  319. !    /* Difference between 1.0 and the minimum long double greater than 1.0 */
  320. ! #undef LDBL_EPSILON
  321. ! #define LDBL_EPSILON 1.084202172485504434001e-19L
  322.      /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
  323. ! #undef LDBL_MIN_EXP
  324. ! #define LDBL_MIN_EXP (-16382)
  325.      /* Minimum normalised long double */
  326. ! #undef LDBL_MIN
  327. ! #define LDBL_MIN 1.68105157155604675313e-4932L
  328.      /* Minimum int x such that 10**x is a normalised long double */
  329. ! #undef LDBL_MIN_10_EXP
  330. ! #define LDBL_MIN_10_EXP (-4931)
  331.      /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
  332. ! #undef LDBL_MAX_EXP
  333. ! #define LDBL_MAX_EXP 16384
  334.      /* Maximum long double */
  335. ! #undef LDBL_MAX
  336. ! #define LDBL_MAX 1.18973149535723176502e4932L
  337.      /* Maximum int x such that 10**x is a representable long double */
  338. ! #undef LDBL_MAX_10_EXP
  339. ! #define LDBL_MAX_10_EXP 4932
  340.   
  341.   #endif /* __SOZOBON__ */
  342.   
  343. diff -cr /src/mntinc31/ioctl.h ./ioctl.h
  344. *** /src/mntinc31/ioctl.h    Mon May 17 11:32:58 1993
  345. --- ./ioctl.h    Mon Jun  7 11:34:24 1993
  346. ***************
  347. *** 40,45 ****
  348. --- 40,48 ----
  349.   #define TIOCGFLAGS    (('T'<< 8) | 22)
  350.   #define TIOCSFLAGS    (('T'<< 8) | 23)
  351.   
  352. + /* faked by the library */
  353. + #define TIOCNOTTY    (('T'<<8) | 251)
  354.   /* not yet implemented in MiNT */
  355.   #define TIOCGETD    (('T'<<8) | 252)
  356.   #define TIOCSETD    (('T'<<8) | 253)
  357. diff -cr /src/mntinc31/osbind.h ./osbind.h
  358. *** /src/mntinc31/osbind.h    Tue May 25 12:16:34 1993
  359. --- ./osbind.h    Sun Jun  6 05:15:44 1993
  360. ***************
  361. *** 855,861 ****
  362.           movw    %2,sp@-; \
  363.           movw    %1,sp@-; \
  364.           trap    #1;    \
  365. !         addw    #16,sp "                    \
  366.       : "=r"(retvalue)            /* outputs */        \
  367.       : "g"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs  */    \
  368.       : "d0", "d1", "d2", "a0", "a1", "a2", "memory"            \
  369. --- 855,861 ----
  370.           movw    %2,sp@-; \
  371.           movw    %1,sp@-; \
  372.           trap    #1;    \
  373. !         addw    #14,sp "                    \
  374.       : "=r"(retvalue)            /* outputs */        \
  375.       : "g"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs  */    \
  376.       : "d0", "d1", "d2", "a0", "a1", "a2", "memory"            \
  377. ***************
  378. *** 1688,1694 ****
  379.           movw    %2,sp@-;                    \
  380.           movw    %1,sp@-;                    \
  381.           trap    #14;                        \
  382. !         addqw   #6,sp "                        \
  383.       : "=r"(retvalue)            /* outputs */        \
  384.       : "g"(n), "r"(_a), "r"(_b), "r"(_c)    /* inputs  */        \
  385.       : "d0", "d1", "d2", "a0", "a1", "a2"    /* clobbered regs */    \
  386. --- 1688,1694 ----
  387.           movw    %2,sp@-;                    \
  388.           movw    %1,sp@-;                    \
  389.           trap    #14;                        \
  390. !         addw    #10,sp "                    \
  391.       : "=r"(retvalue)            /* outputs */        \
  392.       : "g"(n), "r"(_a), "r"(_b), "r"(_c)    /* inputs  */        \
  393.       : "d0", "d1", "d2", "a0", "a1", "a2"    /* clobbered regs */    \
  394. diff -cr /src/mntinc31/setjmp.h ./setjmp.h
  395. *** /src/mntinc31/setjmp.h    Fri Sep 11 01:59:34 1992
  396. --- ./setjmp.h    Thu Jun 10 08:23:24 1993
  397. ***************
  398. *** 19,30 ****
  399.   
  400.   #else /* __TURBOC__ */
  401.   
  402. ! typedef char *jmp_buf[14];
  403.   
  404.   #endif /* __TURBOC__ */
  405.   
  406.   __EXTERN int    setjmp    __PROTO((jmp_buf));
  407.   __EXTERN void    longjmp    __PROTO((jmp_buf, int));
  408.   
  409.   #ifndef __MINT__
  410.   # ifndef __cplusplus
  411. --- 19,49 ----
  412.   
  413.   #else /* __TURBOC__ */
  414.   
  415. ! typedef char *jmp_buf[15]; /* retaddr, 12 regs, sigmask, savemask */
  416.   
  417.   #endif /* __TURBOC__ */
  418.   
  419. + #ifndef __STRICT_ANSI__
  420. + typedef jmp_buf sigjmp_buf;
  421. + __EXTERN int    sigsetjmp  __PROTO((sigjmp_buf env, int savemask));
  422. + __EXTERN int    siglongjmp __PROTO((sigjmp_buf env, int val));
  423. + #ifdef _BSD_SOURCE
  424. + /* BUG: we lose if _BSD_SOURCE && __STRICT_ANSI__ */
  425. + #define _setjmp(_jb)    (sigsetjmp((sigjmp_buf) _jb, 0))
  426. + #define _longjmp(_jb)    (siglongjmp((sigjmp_buf) _jb))
  427. + #define setjmp(_jb)    (sigsetjmp((sigjmp_buf) _jb, 1))
  428. + #define longjmp(_jb)    (siglongjmp((sigjmp_buf) _jb))
  429. + #endif /* _BSD_SOURCE */
  430. + #endif /* __STRICT_ANSI__ */
  431. + #ifndef _BSD_SOURCE
  432.   __EXTERN int    setjmp    __PROTO((jmp_buf));
  433.   __EXTERN void    longjmp    __PROTO((jmp_buf, int));
  434. + #endif /* not _BSD_SOURCE */
  435.   
  436.   #ifndef __MINT__
  437.   # ifndef __cplusplus
  438. diff -cr /src/mntinc31/signal.h ./signal.h
  439. *** /src/mntinc31/signal.h    Sat Sep  5 18:33:26 1992
  440. --- ./signal.h    Mon Jun  7 08:56:40 1993
  441. ***************
  442. *** 68,77 ****
  443.   #define SA_NOCLDSTOP    1    /* don't send SIGCHLD when they stop */
  444.   };
  445.   
  446. ! __EXTERN long    sigsetmask __PROTO((long mask));
  447. ! __EXTERN long    sigblock   __PROTO((long mask));
  448. ! __EXTERN int    sigaction  __PROTO((int, const struct sigaction *,
  449. !                 struct sigaction *));
  450.   /* a mask for signals */
  451.   #define sigmask(sig) (1L << (sig))
  452.   # endif /* __STRICT_ANSI__ */
  453. --- 68,100 ----
  454.   #define SA_NOCLDSTOP    1    /* don't send SIGCHLD when they stop */
  455.   };
  456.   
  457. ! #define _SIGSET_INDEX(_sig)    (_sig / 32)
  458. ! #define _SIGSET_BITPOS(_sig)    (_sig % 32)
  459. ! #define _SIGSET_MAX_INDEX    ((NSIG + 31) / 32) 
  460. ! typedef struct {
  461. !   long _sigset_data[_SIGSET_MAX_INDEX];
  462. ! } sigset_t;
  463. ! __EXTERN long    sigsetmask  __PROTO((long mask));
  464. ! __EXTERN long    sigblock    __PROTO((long mask));
  465. ! __EXTERN int    sigaction   __PROTO((int, const struct sigaction *,
  466. !                     struct sigaction *));
  467. ! __EXTERN int    sigaddset   __PROTO((sigset_t *set, int signo));
  468. ! __EXTERN int    sigdelset   __PROTO((sigset_t *set, int signo));
  469. ! __EXTERN int    sigemptyset __PROTO((sigset_t *set));
  470. ! __EXTERN int    sigfillset  __PROTO((sigset_t *set));
  471. ! __EXTERN int    sigismember __PROTO((sigset_t *set, int signo));
  472. ! __EXTERN int    sigpending  __PROTO((sigset_t *set));
  473. ! __EXTERN int    sigprocmask __PROTO((int how, const sigset_t *set,
  474. !                     sigset_t *oset));
  475. ! __EXTERN int    sigsuspend  __PROTO((const sigset_t *sigmask));
  476. ! /* values for "how" parameter to sigprocmask() */
  477. ! #define SIG_BLOCK    0
  478. ! #define SIG_UNBLOCK    1
  479. ! #define SIG_SETMASK    2
  480.   /* a mask for signals */
  481.   #define sigmask(sig) (1L << (sig))
  482.   # endif /* __STRICT_ANSI__ */
  483. diff -cr /src/mntinc31/stat.h ./stat.h
  484. *** /src/mntinc31/stat.h    Fri May 15 21:23:00 1992
  485. --- ./stat.h    Tue Jun  8 10:21:24 1993
  486. ***************
  487. *** 43,48 ****
  488. --- 43,62 ----
  489.   #define S_IMEM            0140000
  490.   #define    S_IFLNK            0160000
  491.   
  492. + #define S_ISCHR(m)        ((m & S_IFMT) == S_IFCHR)
  493. + #define S_ISDIR(m)        ((m & S_IFMT) == S_IFDIR)
  494. + #define S_ISBLK(m)        ((m & S_IFMT) == S_IFBLK)
  495. + #define S_ISREG(m)        ((m & S_IFMT) == S_IFREG)
  496. + #define S_ISFIFO(m)        ((m & S_IFMT) == S_IFIFO)
  497. + #ifndef _POSIX_SOURCE
  498. + #define S_ISMEM(m)        ((m & S_IFMT) == S_IMEM)
  499. + #define S_ISLNK(m)        ((m & S_IFMT) == S_IFLNK)
  500. + #endif /* _POSIX_SOURCE */
  501. + #define S_IRWXU            0700
  502. + #define S_IRWXG            0070
  503. + #define S_IRWXO            0007
  504.   #define    S_ISUID            04000
  505.   #define    S_ISGID            02000
  506.   #define    S_ISVTX            01000
  507. diff -cr /src/mntinc31/stdio.h ./stdio.h
  508. *** /src/mntinc31/stdio.h    Sun Oct 18 16:33:26 1992
  509. --- ./stdio.h    Sun Jun  6 07:23:56 1993
  510. ***************
  511. *** 78,83 ****
  512. --- 78,84 ----
  513.   /* object of type capable of recording uniquely every position in a file */
  514.   typedef unsigned long fpos_t;
  515.   
  516. + #define L_ctermid    128
  517.   #define    L_tmpnam    128
  518.   #define    TMP_MAX        100
  519.   
  520. ***************
  521. *** 96,101 ****
  522. --- 97,104 ----
  523.   
  524.   
  525.   /* function definitions */
  526. + __EXTERN char *    ctermid    __PROTO((char *));
  527.   
  528.   __EXTERN int    remove    __PROTO((const char *));
  529.   __EXTERN int    rename    __PROTO((const char *, const char *));
  530. diff -cr /src/mntinc31/support.h ./support.h
  531. *** /src/mntinc31/support.h    Tue May 25 12:15:44 1993
  532. --- ./support.h    Thu Jun 17 04:42:58 1993
  533. ***************
  534. *** 67,74 ****
  535.   __EXTERN void _mcleanup __PROTO((void));
  536.   __EXTERN int profil __PROTO((void *buff, unsigned long bufsiz, unsigned long offset, int shift));
  537.   
  538. ! __EXTERN int link __PROTO((const char *old, const char *new));
  539. ! __EXTERN int symlink __PROTO((const char *old, const char *new));
  540.   __EXTERN int readlink __PROTO((char *filename, char *linkto, int siz));
  541.   
  542.   __EXTERN long a64l __PROTO((const char *s));
  543. --- 67,74 ----
  544.   __EXTERN void _mcleanup __PROTO((void));
  545.   __EXTERN int profil __PROTO((void *buff, unsigned long bufsiz, unsigned long offset, int shift));
  546.   
  547. ! __EXTERN int link __PROTO((const char *oldname, const char *newname));
  548. ! __EXTERN int symlink __PROTO((const char *oldname, const char *newname));
  549.   __EXTERN int readlink __PROTO((char *filename, char *linkto, int siz));
  550.   
  551.   __EXTERN long a64l __PROTO((const char *s));
  552. ***************
  553. *** 75,80 ****
  554. --- 75,82 ----
  555.   __EXTERN char *l64a __PROTO((long l));
  556.   
  557.   __EXTERN long tfork __PROTO((int (*func)(long), long arg));
  558. + __EXTERN int _isctty __PROTO((int));
  559.   
  560.   #ifdef __cplusplus
  561.   }
  562. diff -cr /src/mntinc31/unistd.h ./unistd.h
  563. *** /src/mntinc31/unistd.h    Thu May 27 09:31:42 1993
  564. --- ./unistd.h    Thu Jun 10 05:35:08 1993
  565. ***************
  566. *** 104,111 ****
  567.   __EXTERN _UID_T    geteuid    __PROTO((void));
  568.   __EXTERN _GID_T    getgid    __PROTO((void));
  569.   __EXTERN char *    getlogin    __PROTO((void));
  570. - __EXTERN int    getopt    __PROTO((int, char * const *, const char *));
  571.   #ifndef _POSIX_SOURCE
  572.   __EXTERN int    getpagesize __PROTO((void));
  573.   #endif
  574.   __EXTERN int    getpid    __PROTO((void));
  575. --- 104,111 ----
  576.   __EXTERN _UID_T    geteuid    __PROTO((void));
  577.   __EXTERN _GID_T    getgid    __PROTO((void));
  578.   __EXTERN char *    getlogin    __PROTO((void));
  579.   #ifndef _POSIX_SOURCE
  580. + __EXTERN int    getopt    __PROTO((int, char * const *, const char *));
  581.   __EXTERN int    getpagesize __PROTO((void));
  582.   #endif
  583.   __EXTERN int    getpid    __PROTO((void));
  584. ***************
  585. *** 180,194 ****
  586.   __EXTERN int    _bsd_setpgrp __PROTO((int, int));
  587.   #endif    /* _POSIX_SOURCE */
  588.   
  589. ! #if defined (_BSD_PGRP) && !defined(_POSIX_SOURCE)
  590.   #define getpgrp _bsd_getpgrp
  591.   #define setpgrp _bsd_setpgrp
  592. ! #else /* not _BSD_PGRP */
  593.   __EXTERN _PID_T    getpgrp    __PROTO((void));
  594.   #ifndef _POSIX_SOURCE
  595.   __EXTERN int    setpgrp    __PROTO((void));
  596.   #endif /* _POSIX_SOURCE */
  597. ! #endif /* not _BSD_PGRP */
  598.   __EXTERN int    setpgid __PROTO((_PID_T, _PID_T));
  599.   __EXTERN int    setsid __PROTO((void));
  600.   
  601. --- 180,194 ----
  602.   __EXTERN int    _bsd_setpgrp __PROTO((int, int));
  603.   #endif    /* _POSIX_SOURCE */
  604.   
  605. ! #if defined (_BSD_SOURCE) && !defined(_POSIX_SOURCE)
  606.   #define getpgrp _bsd_getpgrp
  607.   #define setpgrp _bsd_setpgrp
  608. ! #else /* not _BSD_SOURCE */
  609.   __EXTERN _PID_T    getpgrp    __PROTO((void));
  610.   #ifndef _POSIX_SOURCE
  611.   __EXTERN int    setpgrp    __PROTO((void));
  612.   #endif /* _POSIX_SOURCE */
  613. ! #endif /* not _BSD_SOURCE */
  614.   __EXTERN int    setpgid __PROTO((_PID_T, _PID_T));
  615.   __EXTERN int    setsid __PROTO((void));
  616.   
  617. diff -cr /src/mntinc31/utime.h ./utime.h
  618. *** /src/mntinc31/utime.h    Sat Dec 12 14:20:04 1992
  619. --- ./utime.h    Thu Jun 10 05:05:18 1993
  620. ***************
  621. *** 1,9 ****
  622.   #ifndef _U_TIME_H
  623.   #define _U_TIME_H
  624.   
  625.   struct utimbuf {            /* type for times() call */
  626.       time_t    actime;
  627.       time_t    modtime;
  628.   };
  629.   
  630. ! #endif _U_TIME_H
  631. --- 1,15 ----
  632.   #ifndef _U_TIME_H
  633.   #define _U_TIME_H
  634.   
  635. + #ifndef _COMPILER_H
  636. + #include <compiler.h>
  637. + #endif
  638.   struct utimbuf {            /* type for times() call */
  639.       time_t    actime;
  640.       time_t    modtime;
  641.   };
  642.   
  643. ! __EXTERN int utime __PROTO((const char *path, const struct utimbuf *times));
  644. ! #endif  /* _U_TIME_H */
  645. diff -cr /src/mntinc31/vdibind.h ./vdibind.h
  646. *** /src/mntinc31/vdibind.h    Tue Feb 23 05:18:54 1993
  647. --- ./vdibind.h    Sun Jun  6 05:15:48 1993
  648. ***************
  649. *** 332,339 ****
  650.    * Set FSM error mode.
  651.    * mode=1: (default) errors go to screen.
  652.    * mode=0: errors reported in error variable `errorvar'.
  653.    */
  654. ! __EXTERN void vst_error __PROTO((int handle, int mode, int *errorvar));
  655.   
  656.   /*
  657.    * v_gtext with optional shadow attribute
  658. --- 332,341 ----
  659.    * Set FSM error mode.
  660.    * mode=1: (default) errors go to screen.
  661.    * mode=0: errors reported in error variable `errorvar'.
  662. +  *   NOTICE: the pointer for errorvar is a pointer to short
  663. +  *           (in 32 bit mode it would make a difference)
  664.    */
  665. ! __EXTERN void vst_error __PROTO((int handle, int mode, short *errorvar));
  666.   
  667.   /*
  668.    * v_gtext with optional shadow attribute
  669.