home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: A few UNIX questions
- Message-ID: <1992Aug27.132544.10264@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1992Aug26.081414.6932@sniap.mchp.sni.de> <169@sc.sni.ie>
- Date: Thu, 27 Aug 1992 13:25:44 GMT
- Lines: 27
-
- In article <169@sc.sni.ie>,
- bsullivn@sc.sni.ie (Bryan O'Sullivan) writes:
- |>
- |>
- |> frank@D012S436.sniap.mchp.sni.de writes:
- |>
- |> ::Because lseek() needs to be able to return -1 on error, and not have it
- |> ::look like a valid file offset.
- |>
- |> :Umm, and a *signed* file size helps, does it?
- |>
- |> RTFM. Lseek(2) returns the current position in the file, or -1 on
- |> error. If you can think of any way to produce -1 by using unsigned
- |> values, well ...
-
- ~0 works for me.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-