Unix and Linux Discussions Tagged with segmentation fault |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
14 |
6,465 |
Programming |
|
|
|
11 |
8,201 |
Programming |
|
|
|
1 |
3,058 |
Shell Programming and Scripting |
|
|
|
2 |
17,890 |
Fedora |
|
|
|
14 |
9,575 |
Programming |
|
|
|
2 |
3,659 |
Programming |
|
|
|
1 |
3,466 |
Ubuntu |
|
|
|
23 |
17,023 |
Programming |
|
|
|
2 |
3,371 |
Programming |
|
|
|
1 |
6,186 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,340 |
Programming |
|
|
|
2 |
3,166 |
Programming |
|
|
|
4 |
17,114 |
Red Hat |
|
|
|
1 |
2,952 |
Programming |
|
|
|
1 |
11,356 |
IP Networking |
|
|
|
9 |
33,666 |
Programming |
|
|
|
1 |
5,497 |
AIX |
|
|
|
1 |
19,078 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,192 |
Programming |
|
|
|
1 |
5,065 |
Shell Programming and Scripting |
|
|
|
6 |
28,168 |
Solaris |
|
|
|
5 |
14,124 |
UNIX for Dummies Questions & Answers |
|
|
|
22 |
14,125 |
Programming |
|
|
|
8 |
11,520 |
Linux |
|
|
|
2 |
21,705 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,566 |
Programming |
|
|
|
2 |
234,839 |
Programming |
|
|
|
1 |
7,803 |
Programming |
|
|
|
6 |
4,244 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,809 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,557 |
UNIX for Dummies Questions & Answers |
uucopy(2) System Calls uucopy(2)
NAME
uucopy - no-fault memory-to-memory copy
SYNOPSIS
#include <strings.h>
int uucopy(const void *s1, void *s2, size_t n);
DESCRIPTION
The uucopy() function copies n bytes from memory area s1 to s2. Copying between objects that overlap could corrupt one or both buffers.
Unlike bcopy(3C), uucopy() does not cause a segmentation fault if either the source or destination buffer includes an illegal address.
Instead, it returns -1 and sets errno to EFAULT. This error could occur after the operation has partially completed, so the contents of the
buffer at s2 are defined if the operation fails.
RETURN VALUES
Upon successful completion, uucopy() returns 0. Otherwise, the function returns -1 and set errno to indicate the error.
ERRORS
The uucopy() function will fail if:
EFAULT Either the s1 or s2 arguments points to an illegal address.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
bcopy(3C), attributes(5)
SunOS 5.11 12 Sep 2006 uucopy(2)