home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!newserve!bingnews!consp03
- From: consp03@bingsuns.cc.binghamton.edu (Kriston J. Rehberg)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Changing Attributes And Timestamp
- Message-ID: <CONSP03.92Aug15133341@bingsunp.cc.binghamton.edu>
- Date: 15 Aug 92 18:33:41 GMT
- Sender: usenet@newserve.cc.binghamton.edu (Mr News)
- Distribution: comp
- Organization: Binghamton University Computing Services - The POD Staff
- Lines: 39
- Nntp-Posting-Host: bingsunp.pod.binghamton.edu
-
- Hi.
-
- I'm using DICE, and I've been toying with the freeze program for UNIX.
- It's functionally identical to compress(1) but it has the quality of
- using LZHUF compression (otherwise known as the -lh5- compression of
- LHa).
-
- Now, I've gotten it to compile by #ifdef'ing out the references to
- these UNIX system calls (it's very few!):
-
- utime (or utimes for old BSD systems)
- chmod (change file mode (read: attributes))
- chown (useless for Amiga)
-
- And it complains of "file not found" after it tries to unlink (ie,
- delete) a file.
-
- Now for the problem:
-
- I need a way similar to utime to read and preserve the file's original
- creation and modification dates (just like the UNIX version does). I
- also need to preserve the file's attributes.
-
- Am I hitting on some unimplemented ioctl calls? My manuals for DICE
- tell me that some of the UNIX system calls are there but not
- implemented (that is, they are callable but just return exit codes).
-
- Any help would be greatly appreciated.
-
- Would switching to GCC 2.2.2 and its libraries/includes help at all?
-
- Thanks!
-
- Kris
- --
- Kriston J. Rehberg, POD Consultant consp03@bingsuns.cc.binghamton.edu
- Binghamton University Computing Services CONSP03@BINGVAXA.BITNet
- #include <stddisclaimer.h> "Labra lege: Hackito ergo sum"
- "Your lack of common decency reminds me of a computer" - emacs M-x flame
-