Subject: Quad problems?
To: None <current-users@netbsd.org>
From: Rafal Boni <r-boni@uiuc.edu>
List: current-users
Date: 12/11/1994 23:53:26
Before I send this off through send-pr, is printf *really* broken wrt. to 64bit
types [ie, off_t's]?? This is what I get on my system, running current as of
2 or 3 days ago [completely rebuilt], x86-port.
Any clues appreciated...
--rafal
---- BEGIN SCRIPT --------
Script started on Sun Dec 11 23:46:50 1994
$ cat foo.c
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
main()
{
int fd;
off_t foo;
char buf[505];
fd = open("foo.c", O_RDONLY, 0);
read(fd, buf, 101);
foo = lseek(fd, 0, SEEK_CUR);
printf("[Int] Foo is: %d\n", foo);
printf("[Quad] Foo is: %q\n", foo);
}
$ cc foo.c
$ ./a.out
[Int] Foo is: 101
[Quad] Foo is:
$ exit
Script done on Sun Dec 11 23:47:09 1994
---- END OF SCRIPT --------
+--------------------------------------------------------+ +------------------+
| In search of the stress-strain relationship governing |/| Rafal Boni |
| students of mechanics... Experimentally. |\| r-boni@uiuc.edu |
+--------------------------------------------------------+ +------------------+