*BSD News Article 43686


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!milo.mcs.anl.gov!hera!winans
From: winans@hera.aps.anl.gov (John R. Winans)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: ftrunctate fails in popper
Date: 5 May 1995 13:34:08 GMT
Organization: Argonne National Laboratory, Chicago Illinois
Lines: 22
Message-ID: <3od9gg$qf8@milo.mcs.anl.gov>
References: <3o0n2m$a9c_001@mstar.morningstar.com>
NNTP-Posting-Host: hera.aps.anl.gov

In article <3o0n2m$a9c_001@mstar.morningstar.com> laine@morningstar.com (Laine Stump) writes:
>We are trying to setup a pop server on a NetBSD  1.0 system. Both the Berkeley 
>and the Qualcomm popper compile and run just fine, but both of them fail to 
>delete mail from the user's mail spool. We looked into the source and found that 
>a call to ftruncate() is failing with EINVAL. At the time it fails, ps shows 
>that popper is running as the user who owns the file, and fstat shows that 
>nobody else has the file open.
>

I had some trouble building Berkeley version 1.831 until I included the 
unistd.h and doc'd out the conflicting sys_errlist junk (that is very typical
as far as problems are concerned with building net-packages.)

An interesting note in my case was that I was getting real live PANICs from
system calls that wanted off_t to be 64-bits (without the proper function
declarations, the parms were being passed as 32-bits.)

-- 
! John Winans                     Advanced Photon Source  (Controls)    !
! winans@aps.anl.gov              Argonne National Laboratory, Illinois !
!                                                                       !
!"The large print giveth, and the small print taketh away." - Tom Waits !