Commit Graph

145 Commits

Author SHA1 Message Date
David Starks-Browning 5664fa55f4 New maintainer for FAQ (doc/*.texinfo except readme), fix DJ's email address. 2000-05-08 13:41:33 +00:00
Christopher Faylor eafa31fb9f * dcrt0.cc (insert_file): Eliminate unused parameter.
(build_argv): Ditto.
* exceptions.cc (stack): Eliminate unused parameters.
(stackdump): Ditto.
(cygwin_stackdump): Reflect above changes.
(sig_handle): Ditto.
* fhandler.cc (fhandler_base::set_inheritance): Use kludge to avoid unused
parameter warning.
2000-05-07 03:29:08 +00:00
Mumit Khan 60c83af2ad 2000-05-06 Mumit Khan <khan@xraylith.wisc.edu>
* include/wchar.h (wcscmp, wcslen): Fix prototypes.
	* syscalls.cc (wcslen, wcscmp): Adjust.
2000-05-06 17:00:53 +00:00
Christopher Faylor 2a1064aad6 * errno.cc (errmap): Correct DIRECTORY mapping to ENOTDIR. 2000-05-06 03:33:10 +00:00
Mumit Khan 3f7290da25 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
* Makefile.in (install): Install profile startup and library.
2000-05-04 23:19:35 +00:00
Christopher Faylor 8e9b0aee25 * configure.in: Use -gstabs+ as compile debug option. This seems to promote
better handling of symbols.
* configure: Regenerate.
* delqueue.cc (delqueue_list::process_queue): Allow ERROR_ACCESS_DENIED to
indicate that a file is being shared under Windows 95.
* syscalls.cc (_unlink): Use full path name.  Take special action for Windows
95.  Assume that an ERROR_ACCESS_DENIED indicates a sharing violation unless
it's on a remote drive.  Punt if there is an ERROR_ACCESS_DENIED on a remote
drive.
2000-05-04 19:46:32 +00:00
Corinna Vinschen 07a135a6bf * errno.cc (errmap): Map ERROR_BAD_NETPATH to new errno ENOSHARE.
(_sys_errlist): Add entry for ENOSHARE.
        (strerror): Add case for ENOSHARE.
        * syscalls.cc (stat_worker): Check for errno ENOSHARE.
2000-05-03 16:11:11 +00:00
Corinna Vinschen 1c0c369b36 * Makefile.in: Add dependencies for fhandler_random.o
* fhandler.h: Add device type FH_RANDOM. Add class
        fhandler_dev_random.
        * fhandler_random.cc: New file. Implementation of
        fhandler_dev_random.
        * hinfo.cc (build_fhandler): Add case for FH_RANDOM.
        * path.cc: Add device names for random devices to
        windows_device_names.
        (get_device_number): Add if branch for random devices.
        (win32_device_name): Add device name generation for
        random devices.
        winsup.h: Include <wincrypt.h>.
2000-05-03 15:39:10 +00:00
Corinna Vinschen a939e045e7 * ntsec.sgml: Revisited description of `ntsec' according to
the changes in release 1.1.
        * setup.sgml: Include ntsec.
        * setup-net.sgml: Ditto.
2000-05-02 22:26:41 +00:00
DJ Delorie 523ebbe087 * path.cc (mount_info::conv_to_win32_path): Previous patch
failed to set flags on a win32 path.
2000-05-02 15:42:30 +00:00
Corinna Vinschen dd67f9db6a * security.cc (read_sd): Return 1 on success because we
can't rely on the returned SD size from GetFileSecurity.
2000-05-02 09:38:32 +00:00
Corinna Vinschen 64dcb07652 * dcrt0.cc: Add dynamic load code for `OemToCharA' from user32.dll.
* security.cc (read_sd): Call `OemToCharA' to make
        `GetFileSecurity' happy on filenames with umlauts.
2000-05-02 00:25:43 +00:00
DJ Delorie f115d4c2b2 add reference to Makefile.common (srcdir) 2000-04-30 12:59:50 +00:00
Christopher Faylor 0bd0cb4470 Correct contributor email address. 2000-04-30 04:30:46 +00:00
Christopher Faylor 865ab4b83f * mount.cc (main): Add "-X" option to specify a "Cygwin executable". 2000-04-27 03:44:23 +00:00
Christopher Faylor fc6f4e20ec * path.cc (normalize_win32_path): Don't add a trailing slash when one already
exists.
(mount_info::conv_to_win32_path): Use existing code for dealing with relative
path names when input is already a win32 path.
2000-04-27 03:26:23 +00:00
DJ Delorie 97f3429f4f * Makefile.in (install): install regexp.h 2000-04-26 18:19:22 +00:00
Corinna Vinschen 88c9926448 * syscalls.cc (stat_worker): Previous patch could succeed
in stating a non-existant file.
2000-04-26 15:28:06 +00:00
Christopher Faylor 3cac739aca Add another INTERNET_OPTION. 2000-04-26 15:04:53 +00:00
Christopher Faylor 55fc91b9d6 * exceptions.cc (interruptible): Allocate slightly more space for directory
name check.  Windows 95 seems to null-terminate the directory otherwise.
(interrupt_on_return): Issue a fatal error if we can't find the caller's stack.
* spawn.cc (find_exec): Accept a path_conv argument rather than a buffer so
that the caller can find things out about a translated path.
(perhaps_suffix): Ditto.
(spawn_guts): Allocate path_conv stuff here so that we can find out stuff about
the translated path (this is work in progress).
* environ.cc (environ_init): Accept an as-yet unused argument indicating
whether we were invoked from a cygwin parent or not.
(winenv): Ditto.
(posify): Accept an argument indicating whether the path has already been
translated.
* dlfcn.cc (check_access): Provide a path_conv buffer to find_exec.
* exec.cc (sexecvpe): Ditto.
* path.cc (path_conv::check): Rename from path_conv::path_conv.
(mount_item::getmntent): Recognize "Cygwin executable" bit.
(symlink_info::check): Remove debugging statements.
* path.h (class path_conv): Add iscygexec method.  Rewrite constructor to call
"check" method to allow multiple operations on a path_conv variable.
* pinfo.cc (pinfo_init): Pass argument to environ_init.
* shared.h: Bump PROC_MAGIC.
* winsup.h: Reflect above changes to function arguments.
* include/sys/mount.h: Add MOUNT_CYGWIN_EXEC type.
2000-04-26 05:13:32 +00:00
Corinna Vinschen 47eaa6c421 * syscalls.cc (stat_worker): Previous patch failed to stat
each drives root dir on 9X.
2000-04-25 19:39:05 +00:00
Mumit Khan 8017cc0edd 2000-04-25 Mumit Khan <khan@xraylith.wisc.edu>
* include/winspool.h: Add 2 more PRINTER_ATTRIBUTE_* macros.
2000-04-25 19:22:31 +00:00
Mumit Khan 84364d972c 2000-04-25 Martin Kotulla <martin-k@softmaker.de>
* include/ddeml.h (DdeCreateStringHandle{A,W}): Fix prototype.
	* include/shlobj.h (IShellLink{A,W}::GetPath): Fix prototype.
	* include/wingdi.h: Add LPFNDEVMODE and LPFNDEVCAPS callbacks.
	* include/winuser.h: Add WM_* macros. Add PCOPYDATASTRUCT typedef.
2000-04-25 19:13:51 +00:00
Corinna Vinschen d6581f44d4 * fhandler.cc (fhandler_disk_file::open): Check for allow_ntsec
when determining exec flag.
        * path.cc (symlink_info::check): Remove call to get_file_attribute().
        * security.cc (read_sd): Rename, ditto for variables to conform
        to common naming convention. Use GetFileSecurity() instead of
        BackupRead() to avoid permission problems when reading ACLs.
        (write_sd): Same renaming as for read_sd().
        (alloc_sd): Change default permissions according to Linux permissions
        for group and world when write permission is set.
        * syscalls.cc (stat_worker): Avoid different permission problems
        when requesting file informations.
2000-04-25 16:31:14 +00:00
Corinna Vinschen efadc1c152 Forgot ChangeLog 2000-04-25 08:51:40 +00:00
Corinna Vinschen e77d29a973 * net.cc: Avoid a warning in declaration inet_network. 2000-04-25 08:50:22 +00:00
Christopher Faylor 698c627424 * fhandler_console.cc (fhandler_console::read): Detect extended keycode
information for Windows 9x so that function keys will work correctly.
2000-04-24 21:41:11 +00:00
DJ Delorie 046069e449 * net.cc (cygwin_inet_network): new function.
* cygwin.din (inet_network): new export
2000-04-24 15:44:11 +00:00
Christopher Faylor 7203adb1cc Fix handling of /.filename 2000-04-21 14:37:48 +00:00
Christopher Faylor 6b762a4ec6 * path.cc (normalize_posix_path): Previous two patches were still incorrect so
rewrite this function to deal with trailing dots.
(mount_info::conv_to_win32_path): Just check for '/' where appropriate.
Eliminate nofinalslash call since it is handled in normalize_posix_path now.
2000-04-21 05:32:19 +00:00
Christopher Faylor 60bebb0318 * exceptions.cc (handle_exceptions): Search further for stack info to
accomodate Windows 95.
2000-04-20 21:33:58 +00:00
Christopher Faylor db64ab89f0 * path.cc (normalize_posix_path): Previous change failed to take root
access into account.
2000-04-20 20:42:14 +00:00
Corinna Vinschen bf921462e7 * syscalls.cc (_link): Check new link path for trailing dot. 2000-04-20 13:52:41 +00:00
Christopher Faylor d7aac2acf5 * fhandler.h (fhandler_base::hclose): New virtual method.
(fhandler_base::set_inheritance): Make this a method so that we can use the
appropriate close methods.
* fhandler.cc (fhandler_base::set_inheritance): Ditto.
* path.cc (normalize_posix_path): Eliminate /.  trailing path component.
2000-04-20 04:38:10 +00:00
Corinna Vinschen f06a3648d5 * syscalls.cc (setuid): Allow switching user context after
successful call to ImpersonateLogedOnUser (NT only).
	(setgid): Ditto.
	(seteuid): Call setuid.
	(setegid): Call setgid.
2000-04-19 22:33:20 +00:00
Corinna Vinschen ceba50edbe * uinfo.cc (internal_getlogin): Use NetGetDCName() instead
of NetGetAnyDCName().
2000-04-19 20:03:51 +00:00
Christopher Faylor 8c63f3b872 * configure.in: Change HEADER_SUBDIR to mingw32.
* configure: Regenerate.
2000-04-19 17:11:59 +00:00
DJ Delorie ef6581f9ff * syscalls.cc (_rename): Try MoveFile() at first before
MoveFileEx(..., MOVEFILE_REPLACE_EXISTING).
2000-04-19 03:21:13 +00:00
DJ Delorie 7916b1efda don't put api internals in general tarball 2000-04-19 02:35:06 +00:00
DJ Delorie ca271663ab add commands for building a doc kitchen-sink-tarball 2000-04-19 02:31:45 +00:00
DJ Delorie 05357ffef2 clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
Christopher Faylor 25ba8f306f * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS path
spec, even within a quoted string.
2000-04-18 23:16:56 +00:00
Christopher Faylor c845acffda * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS path
spec.
2000-04-18 21:28:45 +00:00
DJ Delorie 2cf2f0980f * remove dependence on where pwd is 2000-04-18 00:37:04 +00:00
Christopher Faylor 08ce80eac2 Remove obsolete setting. 2000-04-16 23:00:38 +00:00
Christopher Faylor fbf23e34c5 * init.cc (dll_entry): Use better check for determining when to set thread
specific stuff.
* syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE
succeeds, if file still exists.
2000-04-16 22:57:05 +00:00
Corinna Vinschen 0ac91154fc * mkpasswd.c (main): Use GetDCName instead of GetAnyDCName.
Don't create extra passwd entry for administrators group
        if local_groups is set.
        (usage): Change usage text slightly.
        (enum_users): Loop while ERROR_MORE_DATA is returned.
        (enum_local_groups): Ditto.
        * mkgroup.c (enum_local_groups): Ditto.
        (enum_groups) Ditto.
        (usage): Change usage text slightly.
2000-04-15 22:30:49 +00:00
Christopher Faylor eed11cf2bb * fhandler_console.cc (keytable): Add support for keypad 5 key, which MS seems
to think is equivalent to VK_CLEAR.
* debug.cc (thread_stub): Eliminate initialization of reent stuff.
* init.cc (dll_entry): Move it here.
2000-04-15 03:52:24 +00:00
Christopher Faylor 2cf9359a8a * dcrt0.cc (insert_file): Avoid freeing previously allocated argument list.
* path.cc (symlink_info::check): Rename from symlink_check_one.  Use new
symlink_info struct for communication.
(path_conv::path_conv): Use symlink_info structure for communication with
symlink_info::check.  Fix typo which resulted in symbolic links always being
resolved.
(readlink): Use stat_suffixes array when resolving a link.
* syscalls.cc (stat_suffixes): Make global.
2000-04-13 22:43:48 +00:00
Corinna Vinschen 8a06963c1c * include/cygwin/version.h: Bump minor api to reflect export change. 2000-04-13 18:52:12 +00:00