From owner-freebsd-hackers Wed Jan 21 21:47:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA14453 for hackers-outgoing; Wed, 21 Jan 1998 21:47:38 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from atohasi.mickey.ai.kyutech.ac.jp (atohasi.mickey.ai.kyutech.ac.jp [131.206.21.80]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA14420 for ; Wed, 21 Jan 1998 21:47:14 -0800 (PST) (envelope-from ohashi@atohasi.mickey.ai.kyutech.ac.jp) Received: (from ohashi@localhost) by atohasi.mickey.ai.kyutech.ac.jp (8.8.7/8.8.7) id OAA00696; Thu, 22 Jan 1998 14:46:48 +0900 (JST) (envelope-from ohashi) Date: Thu, 22 Jan 1998 14:46:48 +0900 (JST) Message-Id: <199801220546.OAA00696@atohasi.mickey.ai.kyutech.ac.jp> To: hackers@FreeBSD.ORG Cc: daniel_sobral@voga.com.br Subject: Re: uiomove() In-Reply-To: Your message of "Thu, 22 Jan 1998 10:39:37 +1100 (EDT)". <199801212341.PAA11488@hub.freebsd.org> From: ohashi@mickey.ai.kyutech.ac.jp (Takeshi Ohashi) X-Mailer: mnews [version 1.20] 1996-12/08(Sun) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Hi, >>In some mail from daniel_sobral@voga.com.br, sie said: >>> >>> Still more questions. I'm a bottomless pit of them. :-) >>> >>> Can I make multiple uiomove()'s? Or, more to the point (as I should have >>> done, anyway :), I'm using a circular buffer, and this means some read()'s >>> or write()'s may only be completed up to the size requested by making two >>> consecutive uiomove()'s. How can I do this? Does uiomove()'s update uio >>> structure, should I do it myself, or what? >> >>uiomove() may be called multiple times - it updates the uio struct itself. I wrote a driver which call uiomove() multiple times. Please refer scc.c in PAO package. US - http://Makefile.ORG/FreeBSD/PAO/ Japan - http://www.jp.FreeBSD.org/PAO/ I remeber that uiomove() in early 2.1.X was buggy. Nowadays it works fine. -- Takeshi OHASHI