e935fcf08a* fhandler.h (fhandler_termios::fixup_after_exec): New function. * fhandler.cc (fhandler_termios::fixup_after_fork): New function. Fixup output handle. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Output handle is now fixed up in fhandler_termios::fixup_after_fork().
Egor Duda
2001-03-12 21:27:42 +0000
79409dc0a2* fhandler.h (fhandler_termios::fhandler_termios): Enable fixup after fork. * fhandler_console.cc (fhandler_console::fhandler_console): Fixup after fork is now enabled in the base class constructor.
Egor Duda
2001-03-12 20:39:40 +0000
17bd7f5a37* include/commctrl.h (TBSTYLE_FLAT): New definition. (TB_GETBUTTONSIZE): Ditto. (TCS_HOTTRACK): Ditto. Thanks to: Chris Hansen <popeofpop@softhome.net>
Earnie Boyd
2001-03-12 19:26:16 +0000
2b777e2e94* mkvers.sh: Include config.h so that DEBUGGING is correctly defined.
Christopher Faylor
2001-03-12 16:20:30 +0000
941fa5ad96* spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not a cygwin process (suggested by Jason Gouger <cygwin@jason-gouger.com>).
Christopher Faylor
2001-03-12 14:49:29 +0000
d0909d913a* child_info.h: Bump magic number for fork/exec/spawn.
Christopher Faylor
2001-03-11 21:05:49 +0000
abb88b6f53Remove obvious brain freeze problem.
Christopher Faylor
2001-03-11 16:46:28 +0000
2116a17508* autoload.cc (noload): Use proper method for multiline strings or newer gcc's complain. * exceptions.cc (unused_sig_wrapper): Ditto. * fhandler.h (fhandler_base): Make get_io_handle and friends return self. * fhandler_tty.cc (fhandler_pty_common::close_on_exec): Accomodate DEBUGGING flag to avoid spurious warnings when inheritance is set.
Christopher Faylor
2001-03-11 01:58:23 +0000
7cf3b655ec* shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning. * exceptions.cc (setup_handler): Clarify debugging message. * sigproc.cc (proc_subproc): Remove PROC_CHILDSTOPPED test. It is handled by normal PROC_CLEARWAIT case. (wait_sig): Eliminate "dispatched" tracking. Remove __SIGCHILDSTOPPED test. Decrement counter again before jumping out of InterlockedDecrement loop so that subsequent InterlockedIncrement will keep the counter at the correctly decremented value and also detect when there are pending signals. * sigproc.h: Remove __SIGCHILDSTOPPED element. (procstuff): Remove PROC_CHILDSTOPPED element.
Christopher Faylor
2001-03-10 23:37:50 +0000
6a6a6fa2aemerge from gcc
DJ Delorie
2001-03-10 22:23:16 +0000
e2f2a27ee8* syscalls.cc (_rename): Set errno to ENOENT when an old path doesn't exist (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>). Also set EACCES when directory is not writable.
Christopher Faylor
2001-03-10 20:25:19 +0000
766de5ad55* winsup.api/ltp/access01.c: Avoid compilation error if X_OK isn't declared as a constant.
Egor Duda
2001-03-10 16:45:28 +0000
85057d174f* config/default.exp: Remove unneeded debugging output. * Makefile.in: Use correct path to find dejagnu in local tree.
Egor Duda
2001-03-09 15:39:28 +0000
d775a1ab08* rs6000/simulator.S (dup): New syscall.
Geoffrey Keating
2001-03-09 07:31:34 +0000
e69b6f73d72001-03-07 Richard Sandiford <rsandifo@redhat.com>
Jeff Johnston
2001-03-08 21:39:32 +0000
2ea968d3e1* Makefile.in (ALL_GCC, ALL_GCC_C, ALL_GCC_CXX): Set before use.
Alexandre Oliva
2001-03-08 05:50:03 +0000
6198decee3* libc/include/sys/config.h: Use ssize_t for read/write declarations.
Christopher Faylor
2001-03-07 21:03:43 +0000
6ebccdc110* syscalls.cc (_read): Change definition to return ssize_t to be consistent with read. (_write): Change definition to return ssize_t to be consistent with write.
Christopher Faylor
2001-03-07 20:52:33 +0000
8f98585d51Update copyright.
Christopher Faylor
2001-03-07 17:45:03 +0000
efd76e4140* sigproc.h (sigthread): Declare new methods. Create new winapi_lock field. (sigframe:;set): Call get_winapi_lock after frame is set so that signal handler thread knows not to call SuspendThread. (sigframe::~sigframe): Release winapi_lock. * exceptions.cc (sigthread::get_winapi_lock): New method. (sigthread::release_winapi_lock): New method. (setup_handler): Use get_winapi_lock to ensure that signalled thread is not blocked in a Windows API. * path.h (path_types): Avoid broken GCC warning.
Christopher Faylor
2001-03-07 06:19:34 +0000
25ee9ae285merge from gcc
DJ Delorie
2001-03-06 18:26:32 +0000
bf11a54f54* path.cc (suffix_scan::has): Change order of conditionals to allow checking for .lnk suffixes even if in_suffixes is empty.
Corinna Vinschen
2001-03-06 13:05:56 +0000
95a8465ba0* dlopen.c (dlopen): Return NULL when name is NULL (suggested by chrisiasci@aol.com). * cygwin.din: Add a new, internally used export - _check_for_executable. * dcrt0.cc (dll_crt0_1): Set _check_for_executable for older binaries. Pass user_data to premain functions. * fhandler.cc (fhandler_disk_file::open): Only check for executable if the linked program is intereested in the executable bit. (fhandler_disk_file::check_execable_p): Delete. * fhandler.h (executable_states): New enumeration of various states of executable bit caring. (fhandler_base::set_execable_p): New method. * fhandler_termios.cc (fhandler_termios::line_edit): Flag when a signal has been sent to the tty. Return -1 when this is so. * fhandler_console.cc (fhandler_console::read): Return -1 when signal sending character encountered. * path.cc (path_conv::check): Record when path refers to a disk device. Move executable extension check here. (check_sysfile): Accomodate new EXEC path states. (has_suffix): Remove. (next_suffix): Remove. (class suffix_scan): New clas. (suffix_scan::has): New method. (suffix_scan:next): New method. (symlink_info::check): Use suffix_scan method to control for scanning for suffixes. * path.h (path_conv::exec_state): New method. * perprocess.h: Make "C" friendly. * include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_S_IEXEC. Bump CYGWIN_VERSION_API_MINOR. * include/sys/cygwin.h: Change premain declarations. * winsup.h: Move __cplusplus test to after builtin defines.
Christopher Faylor
2001-03-05 06:28:25 +0000
658b5db941* libc/include/sys/stat.h: Use special defines for executable stat bits when compiling for Cygwin. * libc/include/sys/unistd.h: Use special define for X_OK when compiling for Cygwin.
Christopher Faylor
2001-03-05 05:13:06 +0000
306c4b6737* fhandler.h (class fhandler_tty_common): New mutex and event to syncronize input on master tty with slave tty. * fhandler_tty.cc (fhandler_pty_master::accept_input): Use them to syncronize with slave. * fhandler_tty.cc (fhandler_tty_slave::read): Use input mutex and event to syncronize with master. Do not limit amount of data read from master to vmin value. Interrupt on signal and return already read data, if any. * fhandler_tty.cc (fhandler_tty_slave::open): Handle input mutex and event. * fhandler_tty.cc (fhandler_tty_common::close): Ditto. * fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Ditto. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Ditto. * fhandler_tty.cc (fhandler_tty_common::dup): Ditto. * tty.h (tty::open_input_mutex): New function. * tty.cc (tty::common_init): Create input mutex and event.
Egor Duda
2001-03-04 15:34:25 +0000
0312ede431*** empty log message ***
Christopher Faylor
2001-03-03 03:56:34 +0000
19ca46d5fb2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-03-02 23:16:33 +0000
b73ed85e002001-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-03-02 23:13:04 +0000
75c566fc64* cygwinenv.sgml: Add text for `winsymlinks' option. * how-api.texinfo: Add text to explain new symlinks==shortcuts and the CYGWIN setting `(no)winsymlinks'. * how-using.texinfo: Add text that Cygwin now treats shortcuts as symlinks.
Corinna Vinschen
2001-03-02 12:05:31 +0000
e03f5f7338* dir.cc (readdir): Fix shortcut==symlink condition. * environ.cc: Add extern decl for `allow_winsymlinks'. (struct parse_thing): Add entry for `[no]winsymlinks'. * path.cc (symlink): Change to be able to create both, symlink==shortcut and symlink==systemfile, dependent of the setting of `allow_winsymlinks'. * security.cc (cygwin_logon_user): Add debug output. * shortcut.c: Add defines from path.h. (has_exec_chars): Copy from path.h. (check_shortcut): Check for executable file condition if not a shortcut.
Corinna Vinschen
2001-03-02 11:41:09 +0000
d08d72adffmerge from gcc
DJ Delorie
2001-03-02 02:12:03 +0000
903c330dbe* exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if started by non-cygwin parent.
Christopher Faylor
2001-03-02 02:09:40 +0000
d80999a1c4* select.cc (peek_console): Don't report read_ready on mouse events unless we are looking for mouse events. * fhandler.h (fhandler_console::mouse_aware): New method.
Christopher Faylor
2001-03-02 01:55:21 +0000
cf2fe7531d2001-02-27 Philip Blundell <pb@futuretv.com>
Phil Blundell
2001-02-28 10:11:36 +0000
739db26a31* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Determine drive geometry or partition size to allow seeking from the end of raw floppy device. Don't allow positioning past the end of media or to offsets bigger then max off_t.
Egor Duda
2001-02-28 09:59:54 +0000
a53136cc46* fhandler.h (class fhandler_console): Make all variables that describe "state" of console to be members of fhandler_console. default_color is now the color which is set when console recieves reset command. * fhandler_console.cc (fhandler_console::fhandler_console): Turn mouse handling and raw keyboard mode off by default. Initialize state information. * fhandler.cc (fhandler_console::set_raw_win32_keyboard_mode): New function. * fhandler_console.cc (fhandler_console::set_default_attr): New function. Reset console attributes to default values. * fhandler_console.cc (fhandler_console::open): Reset attributes. * fhandler_console.cc (fhandler_console::get_win32_attr): New function. Calculate win32-style console attribute based on terminal attributes. * fhandler_console.cc (fhandler_console::set_cursor_maybe): Use member variable. * fhandler_console.cc (fhandler_console::read): If in raw-win32 keyboard mode, encode win32 keyboard events in \033{x;y;z;t;u;wK sequences. * fhandler_console.cc (fhandler_console::dup): Copy all state information to the dup()ed handle. * fhandler_console.cc (fhandler_console::scroll_screen): Use current fill-in attribute. * fhandler_console.cc (fhandler_console::clear_screen): Ditto. * fhandler_console.cc (fhandler_console::char_command): Check if we saw '?' symbol by member variable. Set terminal attributes on \033[Xm commands. \033[24m - turn off underline mode, \033[27m - turn off reverse mode, \033[39m - restore default foreground color. \033[49m - restore default background color. \033[2000h - turn on raw keyboard mode, \033[2000l - turn off raw keyboard mode. * fhandler_console.cc (fhandler_console::write): Set attribues to default values on reset command.
Egor Duda
2001-02-27 09:14:35 +0000
5b331f1ef1* times.cc (settimeofday): Replace function stub with working code.
Christopher Faylor
2001-02-26 22:36:09 +0000
88429768bb* strace.cc (strace::vprntf): Move prntf functionality to this function adding an va_list interface to strace. (strace::printf): Calls strace::vprntf now. (strace_printf): New function providing an extern "C" interface to trace output. * include/sys/strace.h: Make plain C clean. (class strace): Add `vprntf' method.
Corinna Vinschen
2001-02-26 09:50:24 +0000
55a96ae8b32001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-02-22 22:26:34 +0000
13204a94fa2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-02-22 22:23:23 +0000
ee37ede1d32001-02-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-02-22 22:12:43 +0000
659b480b8a* path.cc (symlink): Keep relative paths relative in the DOS path inside of a shortcut. If that's impossible or the target path is already absolute save an absolute path.
Corinna Vinschen
2001-02-22 16:26:13 +0000
ff413a9894* path.cc (symlink): Keep relative paths relative in the DOS path inside of a shortcut. If that's impossible for some reason, save an absolute path.
Corinna Vinschen
2001-02-22 16:14:59 +0000
c5a4eacc69* cygerrno.h: Revert previous patch. * errno.cc: Ditto. * dir.cc: Eliminate `dir_suffixes'. (opendir): Remove usage of `dir_suffixes'. (rmdir): Ditto. * fhandler.cc (fhandler_disk_file::open): Remove usage of `inner_suffixes'. * path.cc: Rename `inner_suffixes' to `lnk_suffixes'. (path_conv::check): Remove usage of `inner_suffixes'. (symlink): Ditto. (symlink_info::check): Handle checking for `.lnk' in path_conv exclusively here. (chdir): Remove usage of `dir_suffixes'. * shortcut.c: Eliminate debug_printf lines. (check_shortcut): Don't set error except on failing ReadFile. * spawn.cc: Remove ".lnk" from `std_suffixes'. * syscalls.cc (_unlink): Remove usage of `inner_suffixes'. Remove ".lnk" from `stat_suffixes'. (_rename): Add check for renaming a symlink to keep the ".lnk" suffix after renaming.
Corinna Vinschen
2001-02-22 14:51:16 +0000
79e56091c9* shortcut.c: New file. Provides a C interface to reading of Windows shortcuts to avoid compiler flag `-fvtable-thunks'. * shortcut.h: Ditto. * Makefile.in: Add shortcut.o to DLL_OFILES. * cygerrno.h: Provide a C interface to `geterrno_from_win_error' for using in shortcut.c. * errno.cc (geterrno_from_win_error): Define as extern "C". * path.cc (struct symlink_info): Remove methods `check_shortcut' and `check_sysfile'. (shortcut_header): Move to shortcut.c. (shortcut_initalized): Ditto. (create_shortcut_header): Ditto. (cmp_shortcut_header): Ditto. (symlink_info::check_shortcut): Ditto. Reorganize as a plain C function. (symlink_info::check_sysfile): Redefine as a global function using the same parameter list as `check_shortcut' for clearness. (symlink_info::check): Change parameter list for calls to `check_shortcut' and `check_sysfile'.
Corinna Vinschen
2001-02-22 12:56:36 +0000
87e6b0981f* fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when resolving real_path. * path.cc (symlink): Ditto for win32_topath.
Corinna Vinschen
2001-02-22 11:06:25 +0000
3a8fc0e4f12001-02-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-02-21 23:11:06 +0000
fc168ded9eAdd copyright year 2001
Corinna Vinschen
2001-02-21 22:59:11 +0000
10b06c5ee0* Makefile.in: Add `-lshell32 -luuid' to link pass for new-cygwin1.dll. * autoload.cc: Add LoadDLLinitfunc for ole32.dll. Add LoadDLLfuncEx statements for CoInitialize@4, CoUninitialize@0 and CoCreateInstance@20. * dir.cc (dir_suffixes): New datastructure. (readdir): Check for R/O *.lnk files to hide the suffix. (opendir): Use `dir_suffixes' in path conversion. (rmdir): Ditto. * fhandler.cc (fhandler_disk_file::fstat): Add S_IFLNK flag before calling `get_file_attribute'. Take FILE_ATTRIBUTE_READONLY into account only if the file is no symlink. * path.cc (inner_suffixes): New datastructure. (SYMLINKATTR): Eliminated. (path_conv::check): Use `inner_suffixes' on inner path components. (shortcut_header): New global static variable. (shortcut_initalized): Ditto. (create_shortcut_header): New function. (cmp_shortcut_header): Ditto. (symlink): Create symlinks by creating windows shortcuts. Preserve the old code. (symlink_info::check_shortcut): New method. (symlink_info::check_sysfile): Ditto. (symlink_info::check): Check for shortcuts. Move code reading old system attribute symlinks into symlink_info::check_sysfile(). (chdir): Use `dir_suffixes' in path conversion. * security.cc (get_file_attribute): Check for S_IFLNK flag. Force 0777 permissions then. * spawn.cc (std_suffixes): Add ".lnk" suffix. * syscalls.cc (_unlink): Use `inner_suffixes' in path conversion. Check for shortcut symlinks to eliminate R/O attribute before calling DeleteFile(). (stat_suffixes): Add ".lnk" suffix. (stat_worker): Force 0777 permissions if file is a symlink.
Corinna Vinschen
2001-02-21 21:49:37 +0000
441d7aeef1* dcrt0.cc (locale_init): Remove.
Christopher Faylor
2001-02-20 03:28:01 +0000
f97e7d754c* cygwin.din: Export rand48 functions. * thread.cc (MTinterface::Init): Remove the initialization of `reent_data'. * dcrt0.cc: Add the initalizer to the declaration of `reent_data'. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 35.
Christopher Faylor
2001-02-20 02:53:55 +0000
72a82eaa20Add PDP-11 support
Nick Clifton
2001-02-18 23:33:07 +0000
73c93db761Allow configuration of texinfo for Cygwin hosts.
Nick Clifton
2001-02-17 00:53:44 +0000
fc68bf34bb* signal.cc (signal): Prohibit setting handlers for SIGKILL and SIGSTOP * signal.cc (sigaction): Ditto * syscalls.cc (_lseek): Return EINVAL on invalid input
Egor Duda
2001-02-16 18:49:20 +0000
a34c461fbb2001-02-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-02-12 18:17:17 +0000
343329bac2* i386.h (i386_optab): SSE integer converison instructions have 64bit versions on x86-64. * i386-dis.c (prefix_user_t): Add 'Y' to SSE ineger converison instructions. (putop): Handle 'Y'
Jan Hubicka
2001-02-12 16:42:49 +0000
70bf79a017Remove annoying entry....:-)
Nick Clifton
2001-02-10 22:30:07 +0000
da2da20f20Remove extraneous whitespace
Nick Clifton
2001-02-10 22:26:55 +0000
cde0c2fbca* fork.cc (fork_parent): Return EAGAIN when can't record pid. * pinfo.h (pinfo::remember): Return value of call to proc_subproc. * sigproc.cc (proc_subproc): Return error if can't record pid.
Christopher Faylor
2001-02-10 04:20:52 +0000
1e667f61b7Add s390 support
Nick Clifton
2001-02-10 00:58:38 +0000