Subject: bin/368: comsat uses un-cast lseek
To: None <gnats-admin>
From: Peter Galbavy <>
List: netbsd-bugs
Date: 07/27/1994 11:20:05
>Number:         368
>Category:       bin
>Synopsis:       comsat does not work on my "endian" sparc, cause lseek is incorrectly used
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 27 11:20:03 1994
>Originator:     Peter Galbavy
>Release:        NetBSD-1.0_BETA
System: NetBSD 1.0_BETA NetBSD 1.0_BETA (DUMPTY) #5: Mon Jul 25 20:36:25 BST 1994 sparc

When I use biff 'y' I always get given the first few lines of my
mailbox, not the incoming message. Afetr further investigation I
found consat is using lseek without including <unistd.h> and not
decalring lseek's args (only return value).

Use 'biff y' on a big-endian machine and watch it repeat your first
e-mail over and over again.

I guess include <unistd.h> in comsat.c ?