Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.unix-wizards Subject: Re: Q: lseek returns long or int? (BSD 4.2) Message-ID: <4327@utzoo.UUCP> Date: Mon, 17-Sep-84 13:38:02 EDT Article-I.D.: utzoo.4327 Posted: Mon Sep 17 13:38:02 1984 Date-Received: Mon, 17-Sep-84 13:38:02 EDT References: <119@cybvax0.UUCP> Organization: U of Toronto Zoology Lines: 13 > Does lseek return a long or an int, and is the argument offset a long > or an 'int'. (On other machines it returns a long) This is yet another piece of gratuitous brain-damage brought to you by the morons at Berkeley. The returned value from lseek is of type long on all real UNIX systems. There are a number of places in 4.2 where the code has a wired-in assumption that the machine has 32 bits (not 16, not 64, not anything else either) and that long == int. -- "4.2BSD does everything UNIX does, only differently." Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry