diff options
author | Roland McGrath <roland@gnu.org> | 1996-03-04 22:45:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-03-04 22:45:04 +0000 |
commit | c3d3967cd2a9ebf8bd312ca5be09b6a844f3edf5 (patch) | |
tree | 36ca152b786abb7f1ce91792207b431d8108bd78 /hurd/hurd | |
parent | 661fa1767388fa7bd859d5fe5497df6794ea1dad (diff) |
Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* hurd/catch-signal.c (hurd_safe_memmove): New function.
(hurd_safe_copyin, hurd_safe_copyout): New functions.
* hurd/hurd/sigpreempt.h: Declare them.
Diffstat (limited to 'hurd/hurd')
-rw-r--r-- | hurd/hurd/sigpreempt.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/hurd/hurd/sigpreempt.h b/hurd/hurd/sigpreempt.h index eed67b2e94..4042ea2448 100644 --- a/hurd/hurd/sigpreempt.h +++ b/hurd/hurd/sigpreempt.h @@ -83,8 +83,20 @@ error_t hurd_catch_signal (sigset_t sigset, /* Convenience functions using `hurd_catch_signal'. */ -error_t hurd_safe_memmove (void *dest, const void *src, size_t nbytes); + +/* Like `memset', but catch faults in DEST. */ error_t hurd_safe_memset (void *dest, int byte, size_t nbytes); +/* Like `memcpy', but catch faults in SRC. */ +error_t hurd_safe_copyin (void *dest, const void *src, size_t nbytes); + +/* Like `memcpy', but catch faults in DEST. */ +error_t hurd_safe_copyout (void *dest, const void *src, size_t nbytes); + +/* Like `memmove', but catch faults in SRC or DEST. + If only one region is expected to fault, it is more efficient + to use `hurd_safe_copyin' or `hurd_safe_copyout' as appropriate. */ +error_t hurd_safe_memmove (void *dest, const void *src, size_t nbytes); + #endif /* hurd/sigpreempt.h */ |