OSDN Git Service

* strace.cc (main): Change getopt() to getopt_long().
authorcorinna <corinna>
Sat, 17 Nov 2001 09:48:09 +0000 (09:48 +0000)
committercorinna <corinna>
Sat, 17 Nov 2001 09:48:09 +0000 (09:48 +0000)
commit2804c2144b39d42224f2e1cc0bbe729ddf47ad7c
tree542967a45ba23482d9516b72cca22998c349fe6d
parent20a9d2a78378ad864eb0d1020e00ee66a07a3d1e
* strace.cc (main): Change getopt() to getopt_long().
Add support for help and version info.
Use new parse_mask() function for -m/--mask option.
(longopts): Add long options structure.
(opts): Move options string from getopts call to static var.
(usage): Print usage information.
(SCCSid): Version info.
(version): New function for displaying version info.
(parse_mask): New function supporting parsing of mnemonics,
hex, and basic expressions in masks.
(mnemonic2ul): New mnemonic parsing function.
(tag_mask_mnemonic): New type.
(mnemonic_table): New table of mnemonics for mnemonic2ul() to
search through.
winsup/utils/ChangeLog
winsup/utils/strace.cc