Date: Tue, 6 Oct 1998 21:16:10 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Justin Murdock <justin@vide.coventry.ac.uk>, questions@FreeBSD.ORG Subject: Re: Help! FreeBSD 2.2.7 error?; fstat/stat Message-ID: <19981006211610.A3506@emsphone.com> In-Reply-To: <199810061837.TAA24511@mascarpone.coventry.ac.uk>; from "Justin Murdock" on Tue Oct 6 19:37:00 GMT 1998 References: <199810061837.TAA24511@mascarpone.coventry.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 06), Justin Murdock said: > Perhaps I'm missing something, but on my (reasonably) freshly installed 2.2.7 > (CD set) box > > printf("%s: %d, %d\n", argv[1], mysb.st_size, myfdsb.st_size); > > produces a binary that does this: > > % ./a.out /usr/home/jlocal/a.out > /usr/home/jlocal/a.out: 8808, 0 > > My expectaton would be for both numbers to be 8808 Problem is, st_size is a 64-bit integer. You need to print them with "%qd". -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981006211610.A3506>