Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 1995 16:18:58 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        current@freebsd.org, fredriks@mcs.com
Subject:   Re: xdrrec_getpos and xdrrec_setpos
Message-ID:  <199511010518.QAA16021@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Subject: xdrrec_getpos and xdrrec_setpos

>	What is the side-effect by having these routines return
>off_t? They both mess with file offsets and call lseek, but currently
>they assume off_t is a long.

They also assume that sizeof(int) == sizeof_long().

I dont know about side effects.  There may be some sign extension bugs
from switching to a signed type.

The mem and stdio getpos and setpos functions are also broken.  The
mem functions assume that size_t is u_int and ths stdio functions
assume that fpos_t is u_int.  The stdio functions might be impossible
to implement if fpos_t is a hairy struct.

Bruce



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