home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / sysutils / msshell / changes next >
Text File  |  1992-06-20  |  3KB  |  85 lines

  1. Shell Version 2.0    CHANGES                April 1992
  2.  
  3.  MS-DOS SHELL - Copyright (c) 1990,1,2 Data Logic Limited and Charles Forsyth
  4.  
  5.  This code is based on (in part) the shell program written by Charles
  6.  Forsyth and is subject to the following copyright restrictions:
  7.  
  8.  1.  Redistribution and use in source and binary forms are permitted
  9.      provided that the above copyright notice is duplicated in the
  10.      source form and the copyright notice in file sh6.c is displayed
  11.      on entry to the program.
  12.  
  13.  2.  The sources (or parts thereof) or objects generated from the
  14.      sources (or parts of sources) cannot be sold under any circumstances.
  15.  
  16.     $Header: c:/usr/src/shell/rcs/changes 2.0 1992/04/13 17:40:33 Ian_Stewartson Exp $
  17.  
  18.     $Log: changes $
  19.     Revision 2.0  1992/04/13  17:40:33  Ian_Stewartson
  20.     MS-Shell 2.0 Baseline release
  21.  
  22.     
  23. ________________________________________________________________________________
  24.  
  25. We have standardised our MSDOS and Unix include files such that the same
  26. include file exists our Unix system and MSDOS systems.  This makes porting
  27. a lot easier.  If you don't want to edit the standard include files, you will
  28. have to generate an new include file for the shell and include it as the first
  29. include in all the C sources for the additional library functions and the
  30. Shell itself.
  31.  
  32. These are the changes to the Microsoft C 5.1 and 6.0 include files.
  33.  
  34. The files changed are:
  35.  
  36.     limits.h - add missing definitions
  37.     sys/stat.h - add missing definitions
  38.     sys/types.h - add missing definitions
  39.  
  40. 1.    limits.h
  41.  
  42. #ifdef OS2
  43. #define NAME_MAX    63        /* Maximum file name length    */
  44. #define PATH_MAX    256        /* Maximum path name length    */
  45. #else
  46. #define NAME_MAX    13        /* Maximum file name length    */
  47. #define PATH_MAX    128        /* Maximum path name length    */
  48. #endif
  49.  
  50. 2.    sys/stat.h
  51.  
  52. #define S_ISDIR(m)    ((((m) & S_IFMT) == S_IFDIR))
  53. #define S_ISCHR(m)    ((((m) & S_IFMT) == S_IFCHR))
  54. #define S_ISREG(m)    ((((m) & S_IFMT) == S_IFREG))
  55. #define S_ISBLK(m)    ((((m) & S_IFMT) == S_IFBLK))
  56.  
  57. extern mode_t _FAR_ _cdecl    umask (mode_t);
  58.  
  59. 3.    sys/types.h
  60.  
  61. /*
  62.  * Additional typedefs
  63.  */
  64.  
  65. typedef unsigned char    bool;    /* Boolean: 0 = false, 1 = true        */
  66. typedef unsigned short    ushort;    /* 2-byte unsigned            */
  67. typedef ushort        u_short;
  68. typedef ushort        mode_t;
  69. typedef short        nlink_t;
  70. typedef int        pid_t;
  71. typedef ushort        uid_t;
  72. typedef ushort        gid_t;
  73. typedef short        nlink_t;
  74.  
  75. /*
  76.  * System Constants
  77.  */
  78.  
  79. #ifndef FALSE
  80. #define FALSE    ((bool)0)    /* Boolean 'false'            */
  81. #endif
  82. #ifndef TRUE
  83. #define TRUE    ((bool)1)    /* Boolean 'true'            */
  84. #endif
  85.