home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3107 / PORTING < prev    next >
Encoding:
Text File  |  1991-03-22  |  2.1 KB  |  45 lines

  1. I have not made any effort to port dls/describe to any other version
  2. of Unix (this is because I don't have access to any other versions of Unix).
  3. It runs under DYNIX version 3.0.12, which is based on 4.2 bsd, so it should
  4. be fairly portable.
  5.  
  6. I will list the things that might need consideration when porting:
  7.  
  8. 1.   DBM.  The description records are stored using dbm or ndbm.
  9.      If you want to use ndbm or an ndbm-compatible library, define
  10.      NDBM when compiling.
  11.  
  12. 2.   Directory reading routines.  I have used the opendir/readdir
  13.      calls that come with DYNIX.  There is a non-commercial version
  14.      of this for most versions of Unix nowdays.  I would note that
  15.      the DYNIX version uses a "struct direct".  Some use a
  16.      "struct dirent".
  17.  
  18. 3.   Scanf.  I use scanf to read strings containing white-space.
  19.      There may be some simpler versions out there that cannot do this
  20.      (I'm really not sure, though).
  21.  
  22. 4.   Uid/gid types.  Newer versions of Unix define uid_t and gid_t,
  23.      and use them in all situations.  DYNIX makes half an effort, so
  24.      things aren't too clean on this one.
  25.  
  26. 5.   Include files.  I wrote up my own version of string.h ages ago
  27.      when I started adding some of the more recent str* routines, so I
  28.      always use that.  It wasn't in DYNIX when we got it, though
  29.      (strings.h was instead).  There may be other changes necessary.
  30.  
  31. 6.   Strchr.  The worlds most common porting consideration.
  32.  
  33. 7.   strpbrk.  Wasn't in DYNIX.  I have provided source for others who
  34.      don't already have it.
  35.  
  36. 8.   I have made a fair bit of use of void in the source.  If your
  37.      compiler can't handle void (I imagine there are few such compilers
  38.      left in the world), you will have to make adjustments for this.
  39.  
  40. Of course, I am interested in seeing the results of any porting efforts,
  41. so that I can incorporate them in later releases.  Depending on the level
  42. of my spare time, I would even be prepared to assist you in porting this
  43. to your particular brand of Unix.  I have a desire to see this propagate
  44. as far as possible around the world of Unix anonymous FTP sites.
  45.