Re: libtrivfs/glibc questions

2001-01-03 Thread Marcus Brinkmann
On Wed, Jan 03, 2001 at 06:38:16PM +0100, Marcus Brinkmann wrote: > data_len is the size of the buffer *data (note that data is a pointer to a > buffer pointer, read: an array). You can fill up to data_len bytes in the > buffer *data[0] to *data[data_len - 1]. Make this *data_len instead data_len

Re: libtrivfs/glibc questions

2001-01-03 Thread Marcus Brinkmann
On Wed, Jan 03, 2001 at 12:51:44AM +0100, Moritz Schulte wrote: > Hi, > > can anybody please explain me what this 'data_len' parameter in > trivfs_S_io_read() trans/hello.c is for? > Where does it come from? data_len is the size of the buffer *data (note that data is a pointer to a buffer pointe

Re: libtrivfs/glibc questions

2001-01-03 Thread Farid Hajji
Hello, > can anybody please explain me what this 'data_len' parameter in > trivfs_S_io_read() trans/hello.c is for? > Where does it come from? /* Read data from an IO object. If OFFSet is -1, read from the object maintained file pointer. If the object is not seekable, OFFSet is ignored.

Re: libtrivfs/glibc questions

2001-01-03 Thread Neal H Walfield
> Sorry, i still don't understand this. > > If i do a normal read() on a Trivfs translator, trivfs_S_io_read in my > translator gets called. OK. But, in the read() call, i haven't > specified a datalen. Now, at which point does this datalen parameter > get "created"? > > I guess, it's a quiet si

Re: libtrivfs/glibc questions

2001-01-03 Thread Moritz Schulte
Neal H Walfield <[EMAIL PROTECTED]> writes: Hi Neal, > > can anybody please explain me what this 'data_len' parameter in > > trivfs_S_io_read() trans/hello.c is for? > > > > Where does it come from? > > How much data is in the array DATA; this does not have to match amount > nor the size of DAT

Re: libtrivfs/glibc questions

2001-01-02 Thread Alexey Dejneka
On Wed, Jan 03, 2001 at 00:51:44 +0100, Moritz Schulte wrote: > If i have a trivfs translator, who exactly calls (for example) > libtrivfs_S_io_read()? See _generated_ file libtrivfs/ioServer.c ___ Help-hurd mailing list [EMAIL PROTECTED] http://mail.gn

Re: libtrivfs/glibc questions

2001-01-02 Thread Neal H Walfield
On Wed, Jan 03, 2001 at 12:51:44AM +0100, Moritz Schulte wrote: > Hi, > > can anybody please explain me what this 'data_len' parameter in > trivfs_S_io_read() trans/hello.c is for? > > Where does it come from? How much data is in the array DATA; this does not have to match amount nor the size of

libtrivfs/glibc questions

2001-01-02 Thread Moritz Schulte
Hi, can anybody please explain me what this 'data_len' parameter in trivfs_S_io_read() trans/hello.c is for? Where does it come from? And some more general questions: If i have a trivfs translator, who exactly calls (for example) libtrivfs_S_io_read()? In the glibc, what does it mean if a func