home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12347 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.8 KB  |  52 lines

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!newserve!bingnews!consp03
  2. From: consp03@bingsuns.cc.binghamton.edu (Kriston J. Rehberg)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Changing Attributes And Timestamp
  5. Message-ID: <CONSP03.92Aug15133341@bingsunp.cc.binghamton.edu>
  6. Date: 15 Aug 92 18:33:41 GMT
  7. Sender: usenet@newserve.cc.binghamton.edu (Mr News)
  8. Distribution: comp
  9. Organization: Binghamton University Computing Services - The POD Staff
  10. Lines: 39
  11. Nntp-Posting-Host: bingsunp.pod.binghamton.edu
  12.  
  13. Hi.
  14.  
  15. I'm using DICE, and I've been toying with the freeze program for UNIX.
  16. It's functionally identical to compress(1) but it has the quality of
  17. using LZHUF compression (otherwise known as the -lh5- compression of
  18. LHa).
  19.  
  20. Now, I've gotten it to compile by #ifdef'ing out the references to
  21. these UNIX system calls (it's very few!):
  22.  
  23. utime (or utimes for old BSD systems)
  24. chmod (change file mode (read: attributes))
  25. chown (useless for Amiga)
  26.  
  27. And it complains of "file not found" after it tries to unlink (ie,
  28. delete) a file.
  29.  
  30. Now for the problem:
  31.  
  32. I need a way similar to utime to read and preserve the file's original
  33. creation and modification dates (just like the UNIX version does).  I
  34. also need to preserve the file's attributes.
  35.  
  36. Am I hitting on some unimplemented ioctl calls?  My manuals for DICE
  37. tell me that some of the UNIX system calls are there but not
  38. implemented (that is, they are callable but just return exit codes).
  39.  
  40. Any help would be greatly appreciated.
  41.  
  42. Would switching to GCC 2.2.2 and its libraries/includes help at all?
  43.  
  44. Thanks!
  45.  
  46. Kris
  47. --
  48. Kriston J. Rehberg, POD Consultant          consp03@bingsuns.cc.binghamton.edu
  49. Binghamton University Computing Services    CONSP03@BINGVAXA.BITNet
  50. #include <stddisclaimer.h>                  "Labra lege:  Hackito ergo sum"
  51. "Your lack of common decency reminds me of a computer" - emacs M-x flame
  52.