~kris/9p

9hist

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