27 int rm(
const char *path)
30 size_t path_sz = strlen(path) + 1;
32 memcpy(rm_cmd->
path, path, path_sz);
37 errmsg =
"Unable to write DELETE_FILE.";
40 fputs(
"Checking reply: \n", stderr);
46 errmsg =
"Unable to read DELETE_FILE";
53 fputs(
"Operation failed.\nlast_reply=", stderr);
57 errmsg =
"`DELETE_FILE` was denied.";
60 errmsg =
"`DELETE_FILE` was successful.";
Error enumerations and decriptions.
#define print_bytes(buf, len)
#define packet_alloc(type, extra)
EXTERN int(* ev3_read_timeout)(void *, u8 *, size_t, int milliseconds)
EV3_COMMAND_FIELDS u8 path[]
int rm(const char *path)
removes files and directories at path. path is always relative to /home/root/lms2012/prjs/sys/ ...
packed structs for the packets.
base packet for SYSTEM REPLIES
EXTERN const char * errmsg
global variable for last error message
contains declarations for ev3 commands
EXTERN int(* ev3_write)(void *, const u8 *, size_t)