Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int nacl_dyncode_copy ( void *  dest,
const void *  src,
size_t  size 

Validates and dynamically loads executable code.

dest Destination address. Must be in the code region and be instruction-bundle-aligned.
src Source address. Does not need to be aligned.
size This must be a multiple of the bundle size.
Returns zero on success, -1 on failure. Sets errno to EINVAL if validation fails, if src or size are not properly aligned, or the destination is invalid or has already had code loaded into it.

Definition at line 13 of file dyncode_copy.c.

  int retval = NACL_SYSCALL(dyncode_copy)(dest, src, size);
  if (retval < 0) {
    errno = -retval;
    return -1;
  return retval;

Generated by  Doxygen 1.6.0   Back to index