~kris/9p

9hist

ref: c3b19abc5d32280eacfb7c9f12bfacf4b65d894e 9hist/pc/kpmemmove.c -rw-r--r-- 313 bytes
c3b19abc — David du Colombier Plan 9 from Bell Labs 2001-02-02 25 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include	"u.h"
#include	"../port/lib.h"
#include	"mem.h"
#include	"dat.h"
#include	"fns.h"
#include	"../port/error.h"

#undef memmove

void	*
kpmemmove(void *s, void *d, long n)
{
	void *p;
	if(up == nil)
		return memmove(s, d, n);

	up->kppc = getcallerpc(&s);
	p = memmove(s, d, n);
	up->kppc = 0;
	return p;
}