From owner-freebsd-hackers Thu Nov 4 8:41:57 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 7140614CB2 for ; Thu, 4 Nov 1999 08:41:46 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p22-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.151]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id BAA07693; Fri, 5 Nov 1999 01:41:38 +0900 (JST) Message-ID: <3821B6BD.D48EEB1C@newsguy.com> Date: Fri, 05 Nov 1999 01:39:25 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Ricardo Bernardini Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: aio Functions References: <19991104145050.77627.qmail@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ricardo Bernardini wrote: > > Well !! That's far more than the things I'm having trouble with!! I'm not > being able to make ONE asynchronous read. I've tried the aio functions with > file I/O and it worked fine, I've also tried the socket I/O with read() and > it worked fine too. But when I issue the read to the async queue an try to > get its status aio_error returns -1 and sets errno to EINVAL. > Anyway this is a test program just to become familiar with the fucntions > before actually using them, so I really need more information about them, > and the aiocb_t struct. Be aware that aio is not implemented for all things that you can get an fd for. It was originally implemented *only* for files, though I was under the impression that support for sockets was later added. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org What y'all wanna do? Wanna be hackers? Code crackers? Slackers Wastin' time with all the chatroom yakkers? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message