Article View: comp.sys.atari.st
Article #40242LHARC source not all that portable
From: Daniel A. Glasser
Date: Thu, 11 Jan 1990 21:09
Date: Thu, 11 Jan 1990 21:09
20 lines
1455 bytes
1455 bytes
The sources to LHARC posted recently to comp.sources.atari.st are not
all that portable across *nix systems. There is a routine gettz() in
lharc.c that is specific to BSD4.X, and the use of ftruncate, mkdir,
rmdir, and rename is not flagged as a system dependency.
The routine gettz() uses structures and a subroutine call which are
not available on many systems, and it is unclear from the code if
they are required for proper operation.
The routines ftruncate(), rename(), mkdir(), and rmdir() are used.
On older Unix systems (binary license) these routines are not available
in the standard libraries.
Before people move to LHARC format wholesale, a version of the lharc sources
should be created which is portable to a larger number of *nix varients.
--
_____________________________________________________________________________
Daniel A. Glasser "Their brains were small and they died."
uwvax.cs.wisc.edu!per2.uucp!dag
---Persoft, Inc.---------465 Science Drive-------Madison, WI 53711-----------
Technical Details
Message-ID:
<891@per2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!uakari.primate.wisc.edu!uwm.edu!uwvax!per2!dagShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!uakari.primate.wisc.edu!uwm.edu!uwvax!per2!dag From: dag@per2.UUCP (Daniel A. Glasser) Newsgroups: comp.sys.atari.st Subject: LHARC source not all that portable Keywords: LHARC source ftruncate mkdir rename rmdir timezone Message-ID: <891@per2.UUCP> Date: 11 Jan 90 21:09:25 GMT Organization: Persoft Inc., Madison, WI Lines: 20