www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/31/07:37:47

Date: Sun, 31 Oct 1999 09:58:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Galik <garehbuxton AT bournemouth-net DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Record Locking (Portable?)
In-Reply-To: <3819dca2.834915@news.valhalla.net>
Message-ID: <Pine.SUN.3.91.991031095807.2988X-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 29 Oct 1999, Galik wrote:

> Can anyone tell me how a good place to find info on
> record locking under DOS and UNIX.Are there portable
> library routines in DJGPP to achieve this between the two OSs?

Unix systems have `flock' and `lockf'; DOS/Windows have either `lock'
and `unlock' or `_dos_lock' and `_dos_unlock'.  DJGPP doesn't provide
`lockf' and `flock' currently, but you could easily implement them
using `lock' and `unlock'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019