Go to the documentation of this file.
31 m_help =
"Write data to a file";
46 for (
Size i = 1; i < nparams; i++)
#define EXIT_FAILURE
Unsuccessful termination.
ssize_t write(int fildes, const void *buf, size_t nbyte)
Write on a file.
C int errno
The lvalue errno is used by many functions to return error values.
Size length() const
Same as count().
Builtin command for the Shell.
const char * m_help
Command help text.
int open(const char *path, int oflag,...)
Open file relative to directory file descriptor.
#define O_WRONLY
Open for writing only.
int close(int fildes)
Close a file descriptor.
char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
unsigned int Size
Any sane size indicator cannot go negative.
virtual int execute(const Size nparams, const char **params)
Executes the command.
#define ERROR(msg)
Output an error message.
WriteCommand()
Constructor function.