Beispiel #1
0
void *uade_ipc_set_output(const char *output)
{
  int fd;
  if ((fd = url_to_fd(output, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) {
    __android_log_print(ANDROID_LOG_VERBOSE, "UADE", "Cannot open output file %s: %s\n", output, strerror(errno));
    exit(1);
  }
  return (void *) ((intptr_t) fd);
}
Beispiel #2
0
void *uade_ipc_set_output(const char *output)
{
  int fd;
  if ((fd = url_to_fd(output, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) {
    fprintf(stderr, "can not open output file %s: %s\n", output, strerror(errno));
    exit(-1);
  }
  return (void *) ((intptr_t) fd);
}
Beispiel #3
0
void *uade_ipc_set_input(const char *input)
{
  int fd;
  if ((fd = url_to_fd(input, O_RDONLY, 0)) < 0) {
    __android_log_print(ANDROID_LOG_VERBOSE, "UADE", "Cannot open input file %s: %s\n", input, strerror(errno));
    exit(1);
  }
  return (void *) ((intptr_t) fd);
}
Beispiel #4
0
void *uade_ipc_set_input(const char *input)
{
  int fd;
  if ((fd = url_to_fd(input, O_RDONLY, 0)) < 0) {
    fprintf(stderr, "can not open input file %s: %s\n", input, strerror(errno));
    exit(-1);
  }
  return (void *) ((intptr_t) fd);
}