MK\_CMDS(1) General Commands Manual MK\_CMDS(1)

# [NAME](#NAME)

mk\_cmds - error table compiler

# [SYNOPSIS](#SYNOPSIS)

**mk\_cmds** file

# [DESCRIPTION](#DESCRIPTION)

**Mk\_cmds** converts a table listing command names and associated help messages into a C source file suitable for use with the [*ss*(3)](/man/os/e2fsprogs/ss.3) library.

The source file name must end with a suffix of \`\`.ct''; the file consists of a declaration supplying the name of the command table:

**command\_table** *name*

followed by entries of the form:

\[ **request** | **unimplemented** ] *name,* " *string* "\[, abbrev]...;

and a final

**end**

to indicate the end of the table.

A C source file is generated which should be compiled and linked with the object files use the ss library.

A \`\`#'' in the source file is treated as a comment character, and all remaining text to the end of the source line will be ignored.

# [BUGS](#BUGS)

Since the original **mk\_cmds** uses a very simple parser based on [*yacc*(1)](/man/os/e2fsprogs/yacc.1), and this current version of **mk\_cmds** uses an awk/sed combination of scripts, its error recovery leaves much to be desired.

# [SEE ALSO](#SEE_ALSO)

[ss (3)](/man/os/e2fsprogs/ss.3)

2003 E2FSPROGS

---

Document: mk_cmds(1) from e2fsprogs 1.47.4-r2 (Chainguard OS)
Source: https://github.com/tytso/e2fsprogs
