summaryrefslogtreecommitdiffstats
path: root/winsup/utils/umount.cc
Commit message (Collapse)AuthorAgeFilesLines
* * mount.cc (NT_MAX_PATH): Define.Corinna Vinschen2008-08-131-98/+2
| | | | | | | | | | | | | | | | | | | | | | | | (longopts): Rename mount-commands option to mount-entries. (opts): Remove removed options. (struct opt): Move up in file to allow using it in usage. (usage): Change text for --mount-entries option. Remove -X option. Add valid options output. (main): Remove handling -b option. (convert_spaces): New static function to convert spaces to "\040" string. (mount_entries): Renamed from mount_commands. Rewrite to emit /etc/fstab compatible output. (show_cygdrive_info): Print "nouser" rather than "system". * umount.cc (longopts): Remove remove-all-mounts, remove-cygdrive-prefix, remove-system-mounts, system and user options. (opts): Remove A, c, s, S, u options. (usage): Remove text for all removed options. (main): Remove handling for all removed options. (remove_all_mounts): Remove. (remove_all_system_mounts): Remove. (remove_cygdrive_prefix): Remove. * utils.sgml: Fix mount and umount documentation. Move description of (cyg,not)exec options to mount table section.
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-0/+2
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * mount.cc (main): Use default system/user flag for cygdrive stuff, too.Christopher Faylor2002-06-091-2/+2
| | | | | | (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
* * umount.cc (version): New global variable.Christopher Faylor2002-06-041-6/+45
| | | | | | | | (longopts): Accommodate new --version option. (opts): Ditto. (usage): Standardize usage output. (print_version): New function. (main): Accommodate --help, --version options.
* * mount.cc (do_mount): Default to non-exec option for remote drives. ReportChristopher Faylor2002-05-121-2/+4
| | | | | | | | | | | warnings before attempting a mount. (longopts): Add no-executable option. (mount_commands): Ditto. (opts): Ditto. (usage): Ditto. Indicate that system mount is now the default. (main): Accommodate no-executable option. Make system mount the default. * umount.cc (usage): Indicate that system umount is now the default. (main): Make system umount the default.
* * Makefile.in: Add define to CXXFLAGS.Christopher Faylor2001-12-111-1/+1
|
* * mkpasswd.c (main): Output passwd file in binary mode so that there are no CRsChristopher Faylor2001-06-151-2/+4
| | | | | in the file. * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive mounts.
* * mount.cc (longopts): Add help to options list.Christopher Faylor2001-04-161-1/+2
| | | | | | (opts): Add 'h' to options string. * umount.cc (longopts): Add help to options list. (opts): Add 'h' to options string and change 'R' to 'A'.
* * mount.cc (main): Use getopt_long for parsing arguments.Christopher Faylor2001-04-031-86/+88
| | | | | (usage): Reformat, show long and short options. * umount.cc (main): Ditto, all of the above.
* Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor2000-10-281-7/+12
|
* * utils/mount.cc (main): Add --show-cygdrive-prefixes option.Christopher Faylor2000-07-281-2/+18
| | | | | | | (show_cygdrive_prefixes): New function. * utils/umount.cc (main): Add --remove-cygdrive-prefix option. (error): Change signature from 'char *' to 'const char *'. (remove_cygdrive_prefix): New function.
* mount.cc (error): New function to report an error and exit.Corinna Vinschen2000-06-081-9/+19
| | | | | | | umount.cc (error): Ditto. (remove_all_automounts): Check return status of cygwin_umount. (remove_all_user_mounts): Ditto. (remove_all_system_mounts): Ditto.
* * mount.cc: add stdlib.h for exitDJ Delorie2000-06-051-0/+1
| | | | | * umount.cc: ditto * strace.cc: add #define for alloca
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+173