Dave Korn
79f24ec37d
* cygpath.cc (dowin): Remove stray debugging printf statement.
2006-01-18 12:34:59 +00:00
Christopher Faylor
a39cfda7ba
* Makefile.in: Link cygcheck with libwininet.a.
...
* cygcheck.cc: Add includes.
(grep_packages): New global variable.
(display_internet_error): New function.
(safe_chars): New global variable.
(base_url): Ditto.
(package_grep): New function.
(usage): Reword --help output for clarity. Document new argument.
(longopts): Add 'package-query' option.
(opts): Add 'p' option, reorder to be consistent with 'longopts'.
(main): Accommodate new option.
* utils.sgml (cygcheck): Update --help output. Document new -p option.
2005-11-22 17:19:17 +00:00
Christopher Faylor
ac674bc896
* cygcheck.cc (cygwin_internal): Define as a "C" function.
...
* strace.cc (cygwin_internal): Ditto.
* cygpath.cc (print_version): Update copyright.
2005-05-17 01:26:16 +00:00
Christopher Faylor
5f8e4efa67
* cygpath.cc (usage): Pass in one more copy of program_name to printf to avoid
...
a SEGV.
2005-03-06 18:00:03 +00:00
Joshua Daniel Franklin
4c6344923e
* cygpath.cc (usage): Clarify help output to indicate acceptance
...
of multiple file names as arguments.
2005-02-24 04:32:45 +00:00
Christopher Faylor
befdf18b4d
* cygpath.cc (usage): Don't issue helpful message if -i is used.
...
(from Igor Pechtchanski)
2004-03-15 21:34:12 +00:00
Christopher Faylor
f135dd3ee7
* cygpath.cc (long_options): Add "mode" option.
...
(options): Ditto.
(usage): Report on new option.
(report_mode): New function.
(main): Implement -M option.
2004-02-25 01:23:20 +00:00
Christopher Faylor
7c03f79971
* Makefile.in (build_dumper): Detect missing iconv library.
...
* cygpath.cc (dowin): Report on filename conversion errors.
(doit): Ditto.
* strace.cc (main): Use symbolic constant for _STRACE_ALL when setting mask.
2004-02-21 04:51:15 +00:00
Corinna Vinschen
30352c261c
* cygpath.cc (dowin): Revert accidental checkin from November.
2004-01-22 09:21:56 +00:00
Corinna Vinschen
0a5ea9471b
* cygpath.cc (main): Allow multiple pathnames on command line.
2003-11-07 18:30:35 +00:00
Christopher Faylor
ce17145aa8
revert accidental checkin
2003-10-17 17:20:06 +00:00
Christopher Faylor
fa10472e4a
* cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2003-10-17 17:19:31 +00:00
Christopher Faylor
bd79b736d4
* Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
...
* cygcheck.cc: Just include <getopt.h> rather than cygwin version.
(pretty_id): Avoid compiler warnings.
* cygpath.cc (usage): Ditto.
2003-09-11 02:56:40 +00:00
Christopher Faylor
cc3ce0bb5f
Throughout, always return error when GetShortPathName returns 0.
2003-06-12 20:40:58 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Christopher Faylor
7ca68b7ec3
* cygpath.cc (doit): Allocate more space for non-path filename.
2003-02-12 22:48:13 +00:00
Christopher Faylor
cf157504a8
* cygpath.cc (get_long_path_name_w32impl): Define similarly to GetLongPathName.
...
(get_long_name): Correctly prototype GetLongPathName.
(get_long_paths): Implement using get_long_name to cut down on code
duplication.
(doit): Do various things to make path output work predictably.
2002-10-31 02:40:26 +00:00
Christopher Faylor
0fa64fa3a7
* cygpath.cc (close_arg): Remove unused static.
...
* mkgroup.c (enum_local_users): Avoid compiler warning.
(enum_users): Ditto.
* mkpasswd.c: Ditto throughout.
* ssp.c: Ditto throughout.
2002-09-30 03:01:17 +00:00
Joshua Daniel Franklin
9b566b9695
2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
...
* cygpath.cc (options) New global variable.
(main) Make short options global for easier change.
(print_version) Add a missing newline.
2002-09-15 15:19:49 +00:00
Christopher Faylor
02eb4ad4d4
output some newlines.
2002-08-23 15:46:00 +00:00
Christopher Faylor
1050e57c9a
* mount.cc (main): Ensure that mount_already_exists() also gets default flag
...
that is passed to do_mount.
* cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and
"type" to use NULL flag.
(usage): Clean up usage output (more), accomodate new options.
(main): Add --dos and --mixed options; accomodate all output forms in --type.
Make UNIXy output default.
2002-07-01 20:54:35 +00:00
Christopher Faylor
33bd2d1268
* cygpath.cc (usage): Clean up usage output.
...
(dowin): Correct output of -t mixed for -ADHPSW options.
2002-06-19 02:09:41 +00:00
Christopher Faylor
2bd6505b39
* cygpath.cc: Add option to output windows paths in different formats: "dos"
...
and "mixed".
(main): Process options.
(doit): Check new options flags.
2002-06-07 19:25:26 +00:00
Corinna Vinschen
5bb52de4e2
* cygpath.cc (usage): Change usage output slightly.
...
* cygpath.cc (main): Add option l to support conversion to
Windows long file names. Refactured code for capital options.
Support of options from file for capital options.
(dowin): New function. Refactured from main.
(doit): Call long path conversion.
(get_long_name): New function.
(get_long_paths): New function.
(get_long_path_name_w32impl): New function. Reimplementation
of Windows API function GetLongPathName (only 98/Me/2000/XP or
higher).
(get_short_name): Call GetShortPathName only once.
(get_short_paths): Fix calculating buffer size.
* utils.sgml: Update cygpath section for l option.
2002-05-22 10:05:41 +00:00
Corinna Vinschen
e355de817c
* cygpath.cc (get_short_paths): Fix more error checking.
...
(get_short_name): Ditto.
* cygpath.cc (main): Add option H to show the Windows' profiles
directory. Support short names for options DPSW. Clean up
copied code lines.
* utils.sgml: Update cygpath section for H option and s support.
2002-05-15 11:36:00 +00:00
Corinna Vinschen
5588e28765
* cygpath.cc (get_short_name): Fix error checking.
2002-05-14 16:07:26 +00:00
Christopher Faylor
6a34460970
* cygpath.cc: Reformat.
...
* cygpath.cc (print_version): New function.
(main): Accommodate new version function. Initialize 'o' to prevent warning.
* cygcheck.cc (main): Eliminate non-GNU formatting glitch.
2002-03-07 03:00:14 +00:00
Christopher Faylor
9737b9b4de
Change copyright format.
2002-02-27 21:20:09 +00:00
Corinna Vinschen
3cdacffcb2
* cygpath.cc (main): Add options to show Desktop and Start
...
Menu's Programs directory for current user or all users.
Move bulk of DPWS options outside the getopt case statement.
* utils.sgml: Update cygpath section for ADPWS options.
2002-01-17 16:54:01 +00:00
Corinna Vinschen
7b5c105b61
* cygpath.cc (doit): Empty file ignored using option -i.
2002-01-15 14:07:42 +00:00
Christopher Faylor
c02e32c9bd
* cygpath.cc (doit): Detect and warn about an empty path. Detect and warn
...
about errors converting a path.
(main): Set prog_name correctly -- don't leave an extra slash or backslash at
the beginning of it.
2001-12-26 17:46:12 +00:00
Christopher Faylor
e05f3227be
* Makefile.in: Add define to CXXFLAGS.
2001-12-11 22:51:01 +00:00
Christopher Faylor
48f939e29f
* cygcheck.cc (usage): Add -c description.
...
* cygpath.cc (usage): Alphabetize options.
* strace.cc (usage): Ditto.
2001-12-04 04:12:39 +00:00
Christopher Faylor
da3ea61edd
* cygpath.cc (main): Support -w for Windows (System) directories and return
...
physical correct orthography for the Windows System dir.
2001-08-15 03:24:18 +00:00
Christopher Faylor
eedc36cb12
Cleanup formatting on some files. Remove excessive whitespace.
2000-10-28 05:00:00 +00:00
Christopher Faylor
45b80bb4ce
* cygpath.cc: Add new options: -s and -i.
...
* utils.sgml: Document the new options.
2000-09-19 01:26:45 +00:00
DJ Delorie
f00c1d2ccd
* cygpath.cc: add --windir/--sysdir options
...
* utils.sgml: and document them
2000-05-19 17:06:28 +00:00
Christopher Faylor
e73a56e982
* Makefile.in: Eliminate WINSUP_DEPS.
...
* cygpath.cc: Reorganize includes to accomodate sys/cygwin.h changes.
* mkgroup.c: Ditto.
* mkpasswd.c: Ditto.
* mount.cc: Ditto. Eliminate use of cygwin source specific includes.
* ps.cc: Ditto.
* cygwin.cc: Eliminate obsolete file.
2000-05-18 18:39:11 +00:00
Christopher Faylor
418068d4b0
* cygpath.cc (main): Add -a -o and -c options.
...
(doit): Ditto.
2000-04-13 05:23:30 +00:00
Christopher Faylor
138d4f510e
* cygpath.cc (main): Add -f option for processing a group of paths from a file.
...
(doit): New function.
2000-04-11 02:57:25 +00:00
Christopher Faylor
1fd5e000ac
import winsup-2000-02-17 snapshot
2000-02-17 19:38:33 +00:00