Re: is fstat or printf error?
- From: Marcel Bruinsma <we-love-all-spam@xxxxxxxxx>
- Date: Fri, 30 May 2008 05:15:35 +0200
In article
<97a1ac8b-2643-4f70-a369-f143ac181273@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
ssszer@xxxxxxxxx wrote:
int
main()
{
FILE *tmpfl = tmpfile();
struct stat st;
fstat(fileno(tmpfl), &st);
printf("dev:%d, %d, %d\n", st.st_dev, 1, 5); // <======
printf("%d, %d, %d", 1, 5,7);
getchar();
}
$cc t.c
$./a.out
dev:2049, 0, 1
1, 5, 7
$
// <====== is error. Would you give me some clue?
/usr/include/bits/typesizes.h:
#define __DEV_T_TYPE __UQUAD_TYPE
.
- Follow-Ups:
- Re: is fstat or printf error?
- From: ssszer
- Re: is fstat or printf error?
- References:
- is fstat or printf error?
- From: ssszer
- is fstat or printf error?
- Prev by Date: is fstat or printf error?
- Next by Date: Re: is fstat or printf error?
- Previous by thread: is fstat or printf error?
- Next by thread: Re: is fstat or printf error?
- Index(es):