RTEMS CPU Kit with SuperCore
Data Structures | Macros | Functions | Variables
main_mknod.c File Reference
#include <rtems.h>
#include <rtems/shell.h>
#include <rtems/shellconfig.h>
#include <getopt.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
#include <string.h>
#include <ctype.h>
#include "mknod-pack_dev.h"
#include <setjmp.h>
#include "mknod-pack_dev.c"
Include dependency graph for main_mknod.c:

Data Structures

struct  rtems_shell_mknod_globals
 

Macros

#define __need_getopt_newlib
 
#define exit_jump   &(globals->exit_jmp)
 
#define exit(ec)   rtems_shell_mknod_exit(globals, ec)
 
#define getprogname()   "mknod"
 
#define MAXARGS   3 /* 3 for bsdos, 2 for rest */
 

Functions

int main_mknod (rtems_shell_mknod_globals *globals, int argc, char **argv)
 

Variables

rtems_shell_cmd_t rtems_shell_MKNOD_Command
 

Variable Documentation

◆ rtems_shell_MKNOD_Command

rtems_shell_cmd_t rtems_shell_MKNOD_Command
Initial value:
= {
"mknod",
"mknod mknod [-rR] [-F fmt] [-m mode] name [c | b] minor",
"files",
rtems_shell_main_mknod,
NULL,
NULL
}