home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / archive / emx / patches / patch04 < prev    next >
Encoding:
Text File  |  1993-01-19  |  2.3 KB  |  77 lines

  1. Subject: emx 0.8f patch #4: _ea_get()
  2.  
  3.  
  4. I forgot to add eatest to /emx/test/makefile.  As result, a bug in
  5. _ea_get() wasn't found.
  6.  
  7. Here's a patch for /emx/lib/io/eaget.c:
  8.  
  9. *** eaget.c~    Tue Jan 12 00:48:04 1993
  10. --- eaget.c    Tue Jan 12 00:48:04 1993
  11. ***************
  12. *** 83,89 ****
  13.             errno = ENOMEM;
  14.             return (-1);
  15.           }
  16. !       memcpy (dst->value, pfea->szName + pfea->cbName, pfea->cbValue);
  17.       }
  18.     dst->flags = pfea->fEA;
  19.     dst->size = pfea->cbValue;
  20. --- 83,89 ----
  21.             errno = ENOMEM;
  22.             return (-1);
  23.           }
  24. !       memcpy (dst->value, pfea->szName + pfea->cbName + 1, pfea->cbValue);
  25.       }
  26.     dst->flags = pfea->fEA;
  27.     dst->size = pfea->cbValue;
  28.  
  29. Here's a patch for /emx/test/makefile:
  30.  
  31. *** makefile.~    Tue Jan 12 00:44:16 1993
  32. --- makefile    Tue Jan 12 00:45:18 1993
  33. ***************
  34. *** 47,54 ****
  35.   
  36.   dosonly:        hw_mem.exe vmode.exe
  37.   
  38. ! os2only:        dlltest1 far16.exe fork.exe idle.exe kbd.exe msgtest \
  39. !                 os2test.exe pm1.exe pipe.exe popen.exe read_kbd.exe \
  40.                   select.exe showmem.exe testdll1.dll threads.exe thunk.exe \
  41.                   vio.exe
  42.   
  43. --- 47,54 ----
  44.   
  45.   dosonly:        hw_mem.exe vmode.exe
  46.   
  47. ! os2only:        dlltest1 far16.exe eatest.exe fork.exe idle.exe kbd.exe \
  48. !                 msgtest os2test.exe pm1.exe pipe.exe popen.exe read_kbd.exe \
  49.                   select.exe showmem.exe testdll1.dll threads.exe thunk.exe \
  50.                   vio.exe
  51.   
  52. ***************
  53. *** 107,112 ****
  54. --- 107,114 ----
  55.                   $(I)io.h
  56.   idle.o:         idle.c $(I)stdio.h $(I)process.h $(I)string.h $(I)os2emx.h \
  57.                   $(I)stdlib.h
  58. + eatest.o:       eatest.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)getopt.h \
  59. +                 $(I)io.h $(I)sys/ea.h
  60.   eatool.o:       eatool.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)sys/ead.h \
  61.                   $(I)getopt.h $(I)sys/nls.h $(I)os2.h
  62.   math.o:         math.c $(I)stdio.h $(I)stdlib.h $(I)math.h
  63. ***************
  64. *** 274,279 ****
  65. --- 276,284 ----
  66.   
  67.   kbd.exe:        kbd.c $(LIBS) $(LIBOS2)
  68.       $(CC) -o kbd.exe kbd.c -Zomf -Zsys -T 0x10000
  69. + eatest.exe:     eatest.o $(LIBS) $(LIBOS2)
  70. +     $(CC) -o eatest.exe eatest.o
  71.   
  72.   eatool.exe:     eatool.o $(LIBS) $(LIBOS2)
  73.       $(CC) -o eatool.exe eatool.o
  74.  
  75. Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
  76.