7a4078ee34Change check_null_empty_path* to check_null_empty_str* throughout. * path.cc (path_conv::check): Add signal protection here since retrieving info about remote shares can take some time. * path.h (check_null_empty_str_errno): Convert to a function prototype. * path.cc (check_null_empty_str): Move to miscfuncs.cc. * miscfuncs.cc (check_null_empty_str_errno): New function. (__check_null_invalid_struct): Ditto. (__check_null_invalid_struct_errno): Ditto. (check_null_empty_str): Change from VirtualQuery to IsBadWritePtr. * thread.cc (check_valid_pointer): Ditto. * resource.cc (getrlimit): Use check_null_invalid_struct macro for checking validity of pointer. (setrlimit): Ditto.
Christopher Faylor
2001-06-28 02:19:57 +0000
c135faa8b3* regtool.cc (find_key): Allow '/' as a synonym for '\\'.
Christopher Faylor
2001-06-27 17:38:40 +0000
07c3cd5bb1* fhandler.cc (fhandler_disk_file::fstat): Don't rely on exactly 3 characters being read for executable test since we could be checking for less than that. * syscalls.cc (stat_worker): Try opening the file the "correct" way first so that #! processing can potentially happen. If that fails, then use "query open" method. * spawn.cc (spawn_guts): Delay processing of signal until after we've notified parent about reparenting.
Christopher Faylor
2001-06-26 21:03:08 +0000
32c3034969Remove trailing tabs.
Christopher Faylor
2001-06-26 14:57:33 +0000
462f4effb1* mmap.cc: Clean up *ResourceLock calls throughout. * thread.cc (pthread_cond::TimedWait): Check for WAIT_TIMEOUT as well as WAIT_ABANDONED. (__pthread_cond_timedwait): Calculate a relative wait from the abstime parameter.
Christopher Faylor
2001-06-26 14:47:48 +0000
d006404daeforced commit
Christopher Faylor
2001-06-24 22:26:53 +0000
7333875c53Fix typo
Christopher Faylor
2001-06-24 22:00:04 +0000
125205875b* exceptions.cc (interrupt_setup): Move actions from setup_handler to here. (setup_handler): Move actions after a successful interrupt to interrupt_setup. * fork.cc (vfork): Augment debugging output. * sigproc.cc (proc_subproc): Ditto. * spawn.cc (spawn_guts): Ditto. Correctly fill out progname when spawn NO_WAIT. Call signal handler when a signal arrives. * sigproc.h: Declare a function.
Christopher Faylor
2001-06-24 21:57:50 +0000
50b1264871* fhandler.h class fhandler_socket): Declare new method `set_close_on_exec'. * fhandler_socket.cc (fhandler_socket::set_close_on_exec): New method.
Corinna Vinschen
2001-06-22 20:53:45 +0000
3b295174e3* fhandler_tape.cc (fhandler_dev_tape::tape_erase): Set size parameter to value expected by GetTapeParameters().
Corinna Vinschen
2001-06-22 20:13:00 +0000
26da27a5f6* fhandler_console.cc (fhandler_console::read): Detect AltGr more robustly on WinNT.
Corinna Vinschen
2001-06-22 20:08:06 +0000
9cc97acbd0* fhandler.cc (fhandler_base::open): Work around windows bug when CreateFile() with dwDesiredAccess == 0 called on remote share returns valid handle even if file doesn't exist.
Egor Duda
2001-06-20 07:44:33 +0000
ae036f47c5* fhandler_socket.cc (fhandler_socket::signal_secret_event): New function. * fhandler.h: Declare it. * fhandler_socket.cc (fhandler_socket::create_secret_event): Don't signal secret event immediately. (fhandler_socket::check_peer_secret_event): Do it after peer event was opened. * net.cc (cygwin_connect): Or if socket is non-blocking. (cygwin_accept): Ditto.
Egor Duda
2001-06-20 06:50:13 +0000
4abaaac33c* lib/kernel32.def: Add LanguageGroup and UILanguage symbols. Thanks to Kevin Chase <kevincha99@hotmail.com>.
Earnie Boyd
2001-06-19 13:49:40 +0000
d7700ba108* Makefile.in: Revert 2001-06-17. (VER): If AM_INIT_AUTOMAKE uses BFD_VERSION, get version from bfd/.
Alan Modra
2001-06-19 09:21:33 +0000
20a2c44362* fhandler_tty.cc (fhandler_tty_slave::init): Revert 2001-06-16 change. * fork.cc (fork_copy): Print more debugging info. (fork_parent): Change order of arguments to accomdate buggy gcc. (fork): Ditto. * syscalls.cc (_unlink): Reorganize to try harder to delete file with DeleteFile and to recover more gracefully if FILE_FLAG_DELETE_ON_CLOSE doesn't work properly.
Christopher Faylor
2001-06-18 21:18:59 +0000
36623e6535Remove blank line.
Christopher Faylor
2001-06-18 01:41:08 +0000
13749aa4e82001-06-17 H.J. Lu <hjl@gnu.org>
H.J. Lu
2001-06-17 18:40:29 +0000
99a5bd2fab* exceptions.cc (sig_handle_tty_stop): Reset PID_STOPPED if not actually stopping. * fhandler_console.cc (fhandler_console::fixup_after_fork): Don't set controlling terminal if just inheriting a handle. (fhandler_console::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_slave::init): Ditto. * signal.cc (kill_worker): Set appropriate errno if proc_exists determines that process does not really exist.
Christopher Faylor
2001-06-16 17:09:19 +0000
947ab99ee9* path.cc (path_conv::check): Deal more robustly with foo/ behavior.
Christopher Faylor
2001-06-15 20:35:51 +0000
db77b1b43e* dwarf2.h: Partial merge with gcc version. (enum dwarf_descrim_list): Fix typo -> dwarf_discrim_list. (DW_LANG_Java): Use value from dwarf 2.1 draft (also used in gcc).
Per Bothner
2001-06-15 19:53:18 +0000
ed5d7131a9* bfdlink.h (struct bfd_link_info): New member export_dynamic.
Hans-Peter Nilsson
2001-06-15 12:57:02 +0000
4d52d5b0fb* fhandler_tape.cc (fhandler_dev_tape::tape_status): Set size parameter to value expected by GetTapeParameters().
Corinna Vinschen
2001-06-15 09:17:10 +0000
12a9c87480* mkpasswd.c (main): Output passwd file in binary mode so that there are no CRs in the file. * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive mounts.
Christopher Faylor
2001-06-15 04:50:57 +0000
e8d6e78f34* fhandler.cc (fhandler_disk_file::fstat): Properly set executable bits for directory when !ntsec && !ntea. Also move common code prior to call to get_attributes.
Christopher Faylor
2001-06-15 00:21:06 +0000
47132198ad* thread.cc (pthread_cond::Signal): Release the condition access variable correctly.
Christopher Faylor
2001-06-14 23:53:27 +0000
96d95e535e* fhandler.cc (fhandler_base::open): Set win32 access flags to 0, when requested. * fhandler.h: New status flag FH_QUERYOPEN. (fhandler::get_query_open): New function. (fhandler::set_query_open): Ditto. * syscalls.cc (stat_worker): Request query-only open mode.
Egor Duda
2001-06-14 18:21:17 +0000
c66261a731Remove reference to Cygnus.
David Starks-Browning
2001-06-14 08:43:42 +0000
f87da0d4f3teeny tiny typo
David Starks-Browning
2001-06-14 08:38:24 +0000
c683e18af5Handle GDB's gdb/version.in.
Andrew Cagney
2001-06-13 19:00:22 +0000
340d35ad0b* who.texinfo: Oops. Add a couple of important folk.
Christopher Faylor
2001-06-13 17:54:55 +0000
f569bfcfb2Add missing entry.
Christopher Faylor
2001-06-11 18:20:53 +0000
37fb7a2ccb* include/stdio.h (swscanf): Make first arugument const. * include/wchar.h (swscanf): Ditto. * include/tchar.h (_tfopen): New _UNICODE define. (_tgetenv): Ditto. (_tsetlocale): Ditto.
Earnie Boyd
2001-06-11 18:13:15 +0000
3ecfcf5715* pinfo.cc: Use autoloaded ToolHelp functions throughout for Win9x. * autoload.cc: Autoload ToolHelp functions.
Christopher Faylor
2001-06-11 17:57:10 +0000
a179327987* include/basetsd.h: RC_INVOKED protection and realignment. Thanks to: Colin Peters <colinpeters@users.sourceforge.net>
Earnie Boyd
2001-06-11 17:29:54 +0000
f375b8d9f4* path.cc (chdir): Fix call to path_conv constructor so that it REALLY doesn't check for the null/non-empty path.
Christopher Faylor
2001-06-11 15:20:49 +0000
fc633b63a2* path.cc (path_conv::update_fs_info): Don't consider remote drives to be NTFS. Set root_dir before invoking GetDriveType (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>). Eliminate extra checks for rootdir.
Christopher Faylor
2001-06-11 03:38:32 +0000
02782489a9* path.cc (chdir): Pre-check path for validity before eating trailing space. Then, ensure that path_conv doesn't check the path for validity again.
Christopher Faylor
2001-06-11 00:24:28 +0000
161edfaa00* exceptions.cc (sigdelayed): Ensure that signal is cleared as the last operation or suffer races. * sigproc.cc (proc_subproc): Deal with zombie array overflow.
Christopher Faylor
2001-06-10 16:00:23 +0000
463513f0e2* cygwin.din: Add fchdir symbols. * path.cc (chdir): Guard against invalid parameter. (fchdir): New function. * include/cygwin/version.h: Bump API minor version to 40. * uinfo.cc (internal_getlogin): Remove unused variable.
Corinna Vinschen
2001-06-10 10:00:21 +0000
d4217d5680* syscalls.cc (seteuid): Set environment variables USERNAME and USERDOMAIN before impersonation to workaround a LookupAccountSid() misbehaviour. * uinfo.cc (internal_getlogin): Revert most of the previous change. Don't set environment variables USERNAME and USERDOMAIN. That's the job of seteuid() now. Try to get logon server from Lsa only if logon server isn't already known.
Corinna Vinschen
2001-06-09 21:25:55 +0000
41476ab0bd* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If gcc/xgcc is built, use -print-prog-name to find out the program name to use.
Alexandre Oliva
2001-06-08 03:24:41 +0000
5691881058* thread.cc (pthread_cond::Broadcast): Don't print error messages on invalid mutexs - user programs are allowed to call pthread_cond_broadcast like that. (__pthread_cond_timedwait): Initialise themutex properly. (__pthread_cond_wait): Initialise themutex properly.
Christopher Faylor
2001-06-07 19:55:06 +0000
5a2f66ab43* Makefile.in (bindist): Reassign value of exec_prefix on make command line.
Earnie Boyd
2001-06-06 19:02:59 +0000
235661a37f* fhandler_console.cc (fhandler_console::dup): Allocate space for savebuf on Cygwin heap. (fhandler_console::char_command): Ditto. Use correct values for size.
Corinna Vinschen
2001-06-05 17:59:46 +0000
149da470f3* security.h (NTWriteEA): Change prototype. * ntea.cc (NTReadEA): Don't check for global ntea setting, now it's caller responsibility. (NTWriteEA): Ditto. * security.cc (get_file_attribute): Read attribute from EA only if 'ntea' is enabled. (set_file_attribute): Ditto. * path.h: (class path_conv): Add members to store file system information. (path_conv::get_drive_type): New function. * syscalls.cc (stat_worker): Use it. * path.cc (path_conv::update_fs_info): New functions. (path_conv::check): Get file system information from device where file resides. On NTFS, try to read symlink contents from EA. (get_symlink_ea): New function. (set_symlink_ea): Ditto. (symlink): Store symlink in extended attribute, if possible.
Egor Duda
2001-06-05 10:45:52 +0000
fa821be37b* fhandler.cc (fhandler_disk_file::fstat): Always reset file position to original value after checking for executable magic.
Corinna Vinschen
2001-06-05 09:21:39 +0000
aa7a61121e* dlfcn.cc (dlclose): Do not call FreeLibrary if the symbol to close was obtained by dlopen(NULL,...).
Christopher Faylor
2001-06-03 14:13:12 +0000
77d130214c* syscalls.cc (sleep): Try to be a little more accomodating of signal arrival. Ensure that the signal handler is called.
Christopher Faylor
2001-06-03 03:13:14 +0000
7ceb1cac3a* cygheap.cc (cygheap_root::cygheap_rot): Remove constructor. (cygheap_root::~cygheap_root): Remove destructor. (cygheap_root::operator =): Remove. (cygheap_root::set): New method. * cygheap.h (cygheap_root): Reflect above changes. Store root info in mount-like structure. (cygheap_root:posix_ok): New method. (cygheap_root::ischroot_native): Ditto. (cygheap_root::unchroot): Ditto. (cygheap_root::exists): Ditto. (cygheap_root::posix_length): Ditto. (cygheap_root::posix_path): Ditto. (cygheap_root::native_length): Ditto. (cygheap_root::native_path): Ditto. * dir.cc (opendir): Remove special chroot test. * path.cc (path_prefix_p): Remove front end. (normalize_posix_path): Reorganize chroot tests to accomodate new convention of allowing paths using posix chroot prefix. (path_conv::check): Pass a "already ran normalize" option to conv_to_win32_path. Return if there is an error from this function. (mount_info::conv_to_win32_path): Add extra argument. Don't call normalize_posix_path if caller has already done so. Substitute chroot setting, if any, for root translation. Add chroot checking to final output step. * shared_info (mount_info): Accomodate additional argument to conv_to_win32_path. * syscalls.cc (chroot): Store both normalized posix path and native path in chroot.
Christopher Faylor
2001-06-03 02:31:16 +0000
bb8251474c* path.cc (chdir): Really make sure that isspace gets only an unsigned char.
Christopher Faylor
2001-06-01 14:57:52 +0000
bc28fe9599* syscalls.cc (_rename): Handle the case that `foo' is renamed to `bar' while `bar.lnk' is an existing shortcut-symlink.
Corinna Vinschen
2001-06-01 11:53:20 +0000
9e3b6f5411revert.
Christopher Faylor
2001-06-01 01:45:53 +0000
1de197515e* fhandler.cc (fhandler_disk_file::fstat): Avoid clearing S_IFMT bits since we've already pre-cleared everything anyway.
Christopher Faylor
2001-05-31 19:58:59 +0000
fd047fb9d5Maintain 80 col line length.
Christopher Faylor
2001-05-31 17:35:32 +0000
ecfb6f11bc* path.cc (chdir): Always send unsigned chars to isspace since newlib's isspace doesn't deal well with "negative" chars. * fhandler.cc (fhandler_disk_file::open): Propagate remote status of file garnered from path_conv. Move #! checking to fstat. (fhandler_disk_file::fstat): Reorganize st_mode setting to eliminate duplication. Move check for #! here from fhandler::open. * fhandler.h (fhandler_base::isremote): New method. (fhandler_base::set_isremote): Ditto. (fhandler_base::set_execable_p): Also record "don't care if executable state". (fhandler_base::dont_care_if_execable): New method. * path.cc (path_conv::check): Clear new flags. Appropriately set vol_flags, drive_type, and is_remote_drive. * path.h: Add new flags and methods for manipulating them. * syscalls.cc (_unlink): Use isremote() to determine if a path is remote rather than calling GetDriveType. (stat_worker): Ditto. * security.cc (get_file_attribute): Or attribute with result of NTReadEA to be consistent with get_nt_attribute.
Christopher Faylor
2001-05-31 05:25:46 +0000
b70261ef60New entry "How do I print under Cygwin?"
David Starks-Browning
2001-05-30 09:42:36 +0000
389c930097New entry "Where is Objective C?"
David Starks-Browning
2001-05-30 09:26:59 +0000
90c0221f27New entry "How do I contribute to Cygwin?"
David Starks-Browning
2001-05-30 09:17:59 +0000
bd77a6f48d* Makefile.in: Tweak to attempt to accomodate older texi2html.
Christopher Faylor
2001-05-30 01:30:38 +0000
b2939a814c* sec_helper.cc (cygsid::getfrompw): Change parameter to `const'. (cygsid::getfromgr): Ditto. * security.cc: Use `sys_mbstowcs' and `sys_wcstombs' throughout. (extract_nt_dom_user): Try to get user and domain from SID in pw->pw_gecos first. * security.h (class cygsid): Change parameter of getfrompw() and getfromgr() to `const'. * uinfo.cc (internal_getlogin): Change order for evaluating user information in winNT case. Drop usage of NetWkstaUserGetInfo().
Corinna Vinschen
2001-05-29 20:43:40 +0000
98ae4ae7d5* Makefile.in: Accomodate newer versions of docbook and openjade.
Christopher Faylor
2001-05-29 20:25:21 +0000
4c172dcc9dAvoid NAME too long error.
Christopher Faylor
2001-05-29 20:24:51 +0000
84f6caacfbExpand entry "why doesn't my script work"
David Starks-Browning
2001-05-29 18:11:29 +0000
5b71b48d0cUpdate entry about PATH, now done in /etc/profile not cygwin.bat. Remove entry "Where can I find 'which'" since it's included now.
David Starks-Browning
2001-05-29 15:19:25 +0000
1d99023da5Add pointer to google for searching list archives.
David Starks-Browning
2001-05-29 15:00:42 +0000
d3135ef378Remove distinction between latest and contrib in list of packages.
David Starks-Browning
2001-05-29 14:42:07 +0000
792ca1c2fe* shortcut.c (check_shortcut): Treat only Cygwin shortcuts as symlinks.
Corinna Vinschen
2001-05-29 08:04:55 +0000
5a77fe8ae5* ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++ shared libraries when using g++ with native linker.
Alexandre Oliva
2001-05-28 21:05:35 +0000
188bc140c0Handle printf ("%#.0o",0);
Nick Clifton
2001-05-28 18:22:44 +0000
51352f8ed0Fix some entries.
Alan Modra
2001-05-28 10:37:50 +0000
2ce884182cFix bug when both pointers have matching, non-word alignment, and the length is <= 4 but more than enough to move them over a word boundary. Add comments explaining what each instruction does.
Nick Clifton
2001-05-25 21:17:06 +0000
b9ce814089* path.cc (symlink_info::check): Correctly set 'ext_tacked_on'. Use this to determine if user specified 'foo.lnk' explicitly. Reorganize slightly to get rid of one goto.
Christopher Faylor
2001-05-25 15:07:46 +0000
fdc5ebe9bf* path.cc (symlink_info::check): Add a check to return correctly if incoming `*.lnk' file is not a symlink.
Corinna Vinschen
2001-05-25 08:31:57 +0000
3ed3570b68Support for xcoff64, enable ld for aix
Tom Rix
2001-05-24 21:06:16 +0000
0f674cdc0fSupport for xcoff64
Tom Rix
2001-05-24 20:32:58 +0000
52cd2f88cd* exceptions.cc (handle_exceptions): Bump repeat count for debugging kick out. * fhandler.h (fhandler_dev_dsp): Add a fixup_after_exec. * fhandler_dsp.cc (class Audio): Add TOT_BLOCK_SIZE to enum. (operator new): New. (bigwavebuffer): Declare using TOT_BLOCK_SIZE to avoid buffer overruns. (Audio::Audio): Optimize slightly. (fhandler_dev_dsp::open): Allocate s_audio using static buffer. (fhandler_dev_dsp::fixup_after_exec): New function. Ditto.
Christopher Faylor
2001-05-24 05:20:17 +0000
ffa9dc2c1cAdd MIPS r12k support
Nick Clifton
2001-05-23 17:26:39 +0000
7b9a10a60c* syscalls.cc (seteuid): Restrict overriding external provided user tokens to ntsec. Don't test external tokens for primary group to evaluate if it should be overridden. Restrict creating internal tokens to ntsec.
Corinna Vinschen
2001-05-23 15:49:22 +0000
865cf1b95c2001-05-23 John Healy <jhealy@redhat.com>
John Healy
2001-05-23 15:34:43 +0000