text: /*
   * Copyright 2008 The Native Client Authors. All rights reserved.
   * Use of this source code is governed by a BSD-style license that can
   * be found in the LICENSE file.
   */
  
  /*
   * Wrapper for syscall.
   */
  
  #include <errno.h>
  #include <sys/types.h>
  #include <sys/nacl_syscalls.h>
  
  #include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h"
  
  int imc_mem_obj_create(size_t nbytes) {
    int retval = NACL_SYSCALL(imc_mem_obj_create)(nbytes);
    if (retval < 0) {
      errno = -retval;
      return -1;
    }
    return retval;
  }
  