#include #include #include int __fastcall__ _syschdir (const char* name) { size_t namelen = strlen (name); if (namelen > 255) { errno = EINVAL; return -1; } while (namelen) { ria_push_char (name[--namelen]); } return ria_call_int (RIA_OP_CHDIR); }