DragonFly BSD
DragonFly bugs List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Nitpicking: small correction to the "Creating a Portable User API" chapter


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 4 Jul 2004 09:54:46 -0700 (PDT)

    Heh.  its only example code, but I corrected it.  Thanks!

					-Matt


:Hello,
:
:a small correction to the example code in the "userapi" chapter on your site: 
:the read() function shall not update the [per-thread] errno value if it is 
:..
:(shouldn't it be returned from the kernel just as in the case of successful 
:read?):
:
:	error = lwkt_domsg(&syscall_port, msg);
:	if (error) {
:		curthread->td_errno = error;
:		msg->result = -1;
:	}
:	return(msg->result);
:
:Regards,
:Alexey.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]