~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: deff0227a3d5004e863c2005fa0bf02183809dfb CTU-FEE-B0B35APO-Semestral-project/file-browser/include/file_execute.h -rw-r--r-- 387 bytes
deff0227 — František Boháček feat: implement device mount using system 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <unistd.h>
#include <stdbool.h>

typedef struct {
  pid_t pid;
  int output_signal;
  bool exited;
} executing_file_t;

typedef struct {
  bool error;
  executing_file_t file;
} executing_file_error_t;

executing_file_error_t executing_file_execute(char *path, char *args);
int executing_file_wait(executing_file_t *file);
bool executing_file_has_ended(executing_file_t *file);
Do not follow this link