artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a11cae1
)
Bring back a local copystr() declaration, as copy{in,out} still make us of it
author
miod
<miod@openbsd.org>
Sat, 7 Jan 2023 17:29:37 +0000
(17:29 +0000)
committer
miod
<miod@openbsd.org>
Sat, 7 Jan 2023 17:29:37 +0000
(17:29 +0000)
but its body is in locore.
sys/arch/powerpc64/powerpc64/machdep.c
patch
|
blob
|
history
diff --git
a/sys/arch/powerpc64/powerpc64/machdep.c
b/sys/arch/powerpc64/powerpc64/machdep.c
index
df73b09
..
7602bbd
100644
(file)
--- a/
sys/arch/powerpc64/powerpc64/machdep.c
+++ b/
sys/arch/powerpc64/powerpc64/machdep.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: machdep.c,v 1.7
3 2022/10/30 17:43:39 guenther Exp $
*/
+/* $OpenBSD: machdep.c,v 1.7
4 2023/01/07 17:29:37 miod Exp $
*/
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@
-623,6
+623,10
@@
copyout(const void *kaddr, void *uaddr, size_t len)
return 0;
}
+/* in locore.S */
+extern int copystr(const void *, void *, size_t, size_t *)
+ __attribute__ ((__bounded__(__string__,2,3)));
+
int
copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done)
{