aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* (options):Miles Bader1997-02-121-5/+5
| | | | Update to reflect some minor changes in the way argp works.
* Doc fix.Miles Bader1997-02-121-2/+5
|
* (__argp_state_help): Use __argp_help, not argp_help.Miles Bader1997-02-121-2/+2
|
* (__argp_fmtstream_printf): Remove weak alias.Miles Bader1997-02-121-1/+0
|
* (__argp_parse): Renamed from argp_parse.Miles Bader1997-02-121-10/+13
| | | | | | | | | [weak_alias] (argp_parse): New weak alias. (argp_default_parser, parser_finalize): Use __argp_state_help, not argp_state_help. (argp_version_parser): Use __argp_error, not argp_error. (convert_options, calc_sizes): Use __option_is_end, not _option_is_end. (convert_options): Use __option_is_short, not _option_is_short.
* .Miles Bader1997-02-121-0/+70
|
* (SRCS):Miles Bader1997-02-121-4/+8
| | | | | | | | Add argp-fmtstream.c, argp-fs-xinl.c, and argp-xinl.c. Remove argp.c. (installhdrs): Define explicitly. (LCLHDRS): Define in terms of $(installhdrs) + others. (CFLAGs): Add -DHAVE_LINEWRAP_H & -DHAVE_CTHREADS_H.
* Supplanted by argp-xinl.cMiles Bader1997-02-121-2/+0
|
* Initial checkin.Miles Bader1997-02-126-0/+916
|
* (__argp_parse, __argp_help, __argp_state_help, __argp_error, __argp_usage,Miles Bader1997-02-121-44/+101
| | | | | | | | | | | | | | | | | | | | __argp_failure, __option_is_short, __option_is_end): New declarations. (argp_usage, _option_is_end, _option_is_short): Inline definitions replaced by __-prefixed versions, and protected by __OPTIMIZE__. [__OPTIMIZE__ && !_LIBC] (__argp_usage, __argp_state_help, __option_is_short, __option_is_end): Add redefs (& later undefs) of __ versions of inline definitions so they define the correct name for the environment (libc vs. non-libc), (struct argp_option, struct argp, struct argp_child, struct argp_state): Use __const instead of const. (argp_parse, argp_help, argp_state_help, argp_error, argp_usage, argp_failure, _option_is_short, _option_is_end): Use __P macro for function declarations. [HAVE_CONFIG_H] <config.h>: New include. [__GNU_LIBRARY__] <sys/cdefs.h>: New include. [!__const] (__const): New macro.
* Largely rewritten to clean up the code, avoid using nested functions, andMiles Bader1997-02-121-375/+536
| | | | adapt namespace and locking in preparation for moving into libc.
* (argp_doc):Miles Bader1997-02-121-140/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use strchr instead of index. (__argp_error): Renamed from argp_error. (__argp_state_help, __argp_error, __argp_failure): Use __PROGNAME_FULL instead of PROGRAM_INVOCATION_NAME. (until_short): Return correct key. (__progname, __progname_full): New declarations. (__argp_failure): Renamed from argp_failure. [weak_alias] (argp_help, argp_state_help, argp_error, argp_failure): New weak aliases. (__argp_state_help): Renamed from argp_state_help. (hol_entry_cmp): Use __strcasecmp instead of strcasecmp. (hol_append): Use memcpy instead of bcopy. (__argp_help): Renamed from argp_help. (hol_entry_cmp, usage_argful_short_opt, usage_long_opt): Don't use ?: operator. (make_hol): Increment default group for option headers. Make static. (group_cmp): Put group 0 before other groups, not in the middle. (indent_to, arg, struct pentry_state, print_header, comma, hol_entry_help, hol_help, usage_argful_short_opt, usage_long_opt, hol_usage, argp_args_usage, argp_doc, argp_help): Use argp_fmtstream_t & associated functions instead of stdio streams. "argp-namefrob.h": New include. "argp-fmtstream.h": New include. <linewrap.h>: Include removd.
* (argp_default_parser):Miles Bader1997-02-111-5/+5
| | | | | | Use strrchr instead of rindex. (argp_parse): Use strchr instead of index, memset instead of bzero.
* .Miles Bader1997-02-091-0/+36
|
* (argp_parse):Miles Bader1997-02-091-34/+44
| | | | | Support ARGP_LONG_ONLY. Don't parse OPTION_DOC options.
* (hol_entry_short_iterate, hol_entry_long_iterate):Miles Bader1997-02-091-143/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add COOKIE argument, also to signature of FUNC. (oshort): Exclude options for which odoc is true. (struct pentry_state): New type. (until_short): New function, from old nested function func1 in hol_entry_first_short. Only return short key when oshort is true. (hol_entry_first_short): Remove func1 and use until_short instead. (add_argless_short_opt, usage_argful_short_opt, usage_long_opt): New functions (were nested in hol_usage). (hol_usage): Use un-nested functions. (hol_entry_qcmp): New function. (hol_sort): Remove cmp and use hol_entry_qcmp instead. (hol_entry_cmp): Correctly place odoc options. (canon_doc_option): New function. (odoc): New macro. (arg, print_header, comma): New functions (were nested in hol_entry_help) (hol_entry_help): Correctly output odoc options. Use un-nested helper functions, with state block. (argp_state_help): Add ARGP_HELP_LONG_ONLY to FLAGS if STATE has ARGP_LONG_ONLY set.
* (OPTION_DOC):Miles Bader1997-02-091-7/+26
| | | | | | New macro. (ARGP_LONG_ONLY, ARGP_HELP_LONG_ONLY): New macros.
* (main):Miles Bader1997-02-061-0/+4
| | | | Deal with crypt failing.
* .Miles Bader1997-02-061-0/+1
|
* .Miles Bader1997-02-061-0/+3
|
* (main):Miles Bader1997-02-061-2/+5
| | | | | Look for NOBODY in ARGS_DEFS too, and use a last ditch default if we can't find it anywhere.
* .Miles Bader1997-02-061-0/+49
|
* (_diskfs_translator_callback2_fn):Miles Bader1997-02-061-3/+4
| | | | | Expect COOKIE2 to be a pointer to a struct diskfs_trans_callback_cookie2, and use that to pass args to diskfs_make_peropen.
* (struct diskfs_trans_callback_cookie2):Miles Bader1997-02-061-1/+9
| | | | New type.
* (diskfs_make_peropen):Miles Bader1997-02-061-2/+4
| | | | Add & use DEPTH argument.
* (diskfs_lookup):Miles Bader1997-02-061-63/+92
| | | | | Add DEPTH & NEW_DEPTH arguments. Implement new fs-root detection using them.
* (diskfs_S_fsys_getroot):Miles Bader1997-02-061-3/+5
| | | | | | Supply DEPTH argument to diskfs_make_peropen. Pass new type of cookie2 to fshelp_fetch_root, as expected by _diskfs_translator_callback2.
* (diskfs_S_file_exec):Miles Bader1997-02-061-2/+3
| | | | Supply DEPTH argument to diskfs_make_peropen.
* (diskfs_S_dir_unlink):Miles Bader1997-02-061-2/+2
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_S_dir_rmdir):Miles Bader1997-02-061-2/+2
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_S_dir_reparent):Miles Bader1997-02-061-1/+26
| | | | Implement.
* (checkpath, diskfs_rename_dir):Miles Bader1997-02-061-6/+7
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_S_dir_rename):Miles Bader1997-02-061-5/+12
| | | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup. Translate EAGAIN (meaning root's parent) to EINVAL.
* (diskfs_S_dir_mkfile):Miles Bader1997-02-061-1/+1
| | | | New file's depth is one greater than CRED's.
* (diskfs_S_dir_mkfile):Miles Bader1997-02-061-2/+3
| | | | Supply DEPTH argument to diskfs_make_peropen.
* (diskfs_S_dir_mkdir):Miles Bader1997-02-061-2/+3
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_S_dir_lookup):Miles Bader1997-02-061-7/+16
| | | | | | | | Add DEPTH variable. Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup. Supply DEPTH argument diskfs_make_peropen. Pass new type of cookie2 to fshelp_fetch_root, as expected by _diskfs_translator_callback2.
* (diskfs_S_dir_link):Miles Bader1997-02-061-2/+5
| | | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup. Translate EAGAIN (meaning root's parent) to EINVAL.
* (diskfs_init_dir):Miles Bader1997-02-061-3/+3
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_clear_directory):Miles Bader1997-02-061-3/+3
| | | | Supply DEPTH & NEW_DEPTH arguments to diskfs_lookup.
* (diskfs_start_bootstrap, diskfs_S_exec_startup_get_info,Miles Bader1997-02-061-5/+5
| | | | | diskfs_execboot_fsys_startup, diskfs_S_fsys_init): Supply DEPTH argument to diskfs_make_peropen.
* (diskfs_lookup):Miles Bader1997-02-061-4/+14
| | | | | | | | Add DEPTH & NEW_DEPTH arguments. (diskfs_make_peropen): Add DEPTH argument. (struct peropen): Add DEPTH field.
* .Miles Bader1997-02-061-0/+4
|
* Initial checkinMiles Bader1997-02-061-0/+33
|
* (diskfs_S_fsys_getfile):Miles Bader1997-02-061-28/+93
| | | | Implement (code from ufs).
* (diskfs_S_file_getfh):Miles Bader1997-02-061-18/+50
| | | | Implement (code from ufs).
* .Miles Bader1997-02-062-3/+5
|
* (diskfs_S_file_getfh, diskfs_S_fsys_getfile): Functions removed.Miles Bader1997-02-061-126/+0
|
* (diskfs_S_fsys_getfile):Miles Bader1997-02-061-2/+3
| | | | Pass new DEPTH argument to diskfs_make_peropen.
* (w_get_host):Miles Bader1997-02-061-2/+2
| | | | Don't use strlen on it if *HOST is 0.