delorie.com/archives/browse.cgi | search |
From: | Martin Str|mberg <ams AT ludd DOT luth DOT se> |
Message-Id: | <200001201824.TAA22264@father.ludd.luth.se> |
Subject: | _llseek |
To: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
Date: | Thu, 20 Jan 100 19:24:43 +0100 (MET) |
Cc: | djgpp-workers AT delorie DOT com (DJGPP-WORKERS) |
X-Mailer: | ELM [version 2.4ME+ PL15 (25)] |
MIME-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Hmm. It seems that lseek() works as good as _llseek() except it should be able to return values in the range [-1, 2^32-2]. (It's because the DOZE call wraps around at 2^32, so -X and 2^32-X is equvalent in this call, so yes it'll work for lseek(fd, -3, SEEK_CUR).) So either we change the return type of lseek() to long long or we have to add _llseek(). Glass, Satyagraha, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |