32 size_t path_sz = strlen(path) + 1;
34 memcpy(mk->
path, path, path_sz);
38 errmsg =
"Unable to write CREATE_DIR.";
41 fputs(
"Checking reply: \n", stderr);
47 errmsg =
"Unable to read CREATE_DIR_REPLY";
54 fputs(
"Operation failed.\nlast_reply=", stderr);
58 errmsg =
"`CREATE_DIR` was denied.";
62 errmsg =
"`CREATE_DIR` was successful.";
EV3_COMMAND_FIELDS u8 path[]
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)
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)
int mkdir(const char *path)
creates directory structures relative to /home/root/lms2012/prjs/sys/