Unix/Linux Go Back    

OpenSolaris 2009.06 - man page for uucopy (opensolaris section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

uucopy(2)				   System Calls 				uucopy(2)

       uucopy - no-fault memory-to-memory copy

       #include <strings.h>

       int uucopy(const void *s1, void *s2, size_t n);

       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  con-
       tents of the buffer at s2 are defined if the operation fails.

       Upon  successful  completion,  uucopy() returns 0.  Otherwise, the function returns -1 and
       set errno to indicate the error.

       The uucopy() function will fail if:

       EFAULT	 Either the s1 or s2 arguments points to an illegal address.

       See attributes(5) for descriptions of the following attributes:

       |      ATTRIBUTE TYPE	     |	    ATTRIBUTE VALUE	   |
       |Interface Stability	     |Evolving			   |
       |MT-Level		     |MT-Safe			   |

       bcopy(3C), attributes(5)

SunOS 5.11				   12 Sep 2006					uucopy(2)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 01:24 AM.