Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Dec 2000 10:01:04 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        "G. Adam Stanislav" <adam@whizkidtech.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Trouble with lseek 
Message-ID:  <69375.977475664@critter>
In-Reply-To: Your message of "Thu, 21 Dec 2000 19:16:38 CST." <20001221191638.A284@whizkidtech.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20001221191638.A284@whizkidtech.net>, "G. Adam Stanislav" writes:

>I am trying to determine the size of a file passed as a command line
>argument. I am using SYS_lseek. Here is the code up to that point:

You should use SYS_stat or SYS_fstat

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69375.977475664>