* memmove quick question ....
@ 2006-01-09 23:01 Himanshu Raj
2006-01-10 10:00 ` Vincent Hanquez
2006-01-10 10:09 ` Keir Fraser
0 siblings, 2 replies; 3+ messages in thread
From: Himanshu Raj @ 2006-01-09 23:01 UTC (permalink / raw)
To: xen-devel
Hi Guys,
Quick question.
Does memmove ensure that there will be a NULL put after the last element in dest?
Correctness of pirq_guest_unbind, e.g., depends on it.
Thanks,
Himanshu
--
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: memmove quick question ....
2006-01-09 23:01 memmove quick question Himanshu Raj
@ 2006-01-10 10:00 ` Vincent Hanquez
2006-01-10 10:09 ` Keir Fraser
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Hanquez @ 2006-01-10 10:00 UTC (permalink / raw)
To: Himanshu Raj; +Cc: xen-devel
On Mon, Jan 09, 2006 at 06:01:47PM -0500, Himanshu Raj wrote:
> Does memmove ensure that there will be a NULL put after the last
> element in dest?
no, it copy only N bytes from SRC to DEST.
(if the Nth bytes of SRC is NULL then DEST will be NULL terminated as
well)
--
Vincent Hanquez
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: memmove quick question ....
2006-01-09 23:01 memmove quick question Himanshu Raj
2006-01-10 10:00 ` Vincent Hanquez
@ 2006-01-10 10:09 ` Keir Fraser
1 sibling, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2006-01-10 10:09 UTC (permalink / raw)
To: Himanshu Raj; +Cc: xen-devel
On 9 Jan 2006, at 23:01, Himanshu Raj wrote:
> Quick question.
> Does memmove ensure that there will be a NULL put after the last
> element in dest?
> Correctness of pirq_guest_unbind, e.g., depends on it.
No, memmove does not do that. I think pirq_guest_bind/unbind are
correct -- can you point out how you think they are broken?
Thanks,
Keir
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-10 10:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-09 23:01 memmove quick question Himanshu Raj
2006-01-10 10:00 ` Vincent Hanquez
2006-01-10 10:09 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.