Hi,
FSG QA <fsgqa@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Date: Fri Sep 28 02:49:27 PDT 2001
> Workarea: snort.melbourne.sgi.com:/diskb/build4/fsgqa/isms/2.4.x-xfs
(snip)
> cmd/xfsdump/common/stkchk.c - 1.2
> - make a size long so comparison works for ia32/ia64 with ptr
I have a question.
The type of sc_sz in struct stkchk is changed to long from int,
but get_stacksz() is left decrare to return int.
stkchk.c line 90:
stkchkp->sc_sz = get_stacksz( );
Further more, I'm wondering because it seems that rlim_cur is
defined as unsigned long.
[My box is RedHat 7.1]
$ grep rlim_cur /usr/include/*/*.h
/usr/include/bits/resource.h: rlim_t rlim_cur;
/usr/include/bits/resource.h: rlim64_t rlim_cur;
(snip)
/usr/include/linux/resource.h: unsigned long rlim_cur;
$ grep rlim_t /usr/include/*/*.h
/usr/include/bits/resource.h:typedef __rlim_t rlim_t;
/usr/include/bits/resource.h:typedef __rlim64_t rlim_t;
/usr/include/bits/resource.h: rlim_t rlim_cur;
/usr/include/bits/resource.h: rlim_t rlim_max;
/usr/include/bits/types.h:typedef __u_long __rlim_t; /* Type of resource
counts. */
Which is correct?
Takayuki
|