~kris/9p

9hist

ref: d4fb2760f209aa12ced6f31f2d0d6bcb0fefb7e8 9hist/pc/kpmemmove.c -rw-r--r-- 313 bytes
d4fb2760 — David du Colombier Plan 9 from Bell Labs 2001-04-21 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;
}