Christopher Faylor
6da0fb340e
top level overview of vfork.
2001-09-05 19:43:52 +00:00
Corinna Vinschen
5bcf2f939e
* winver.rc: Change copyright to include 2001.
2001-09-05 19:36:49 +00:00
Corinna Vinschen
37c23731c7
* fhandler_floppy.cc (fhandler_floppy::lseek): Remove iswinnt check.
2001-09-05 10:14:15 +00:00
Corinna Vinschen
669153e144
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
...
according to MSDN.
2001-09-05 09:35:08 +00:00
Corinna Vinschen
47497e6243
* net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handling
...
for non-blocking sockets.
2001-09-05 08:16:51 +00:00
Christopher Faylor
d72a655937
* exceptions.cc (ctrl_c_handler): Only send SIGINT when we have a controlling
...
terminal and we are the head of the process group.
2001-09-05 02:42:49 +00:00
Earnie Boyd
615a70a882
2001-09-04 Earnie Boyd <earnie@SF.Net>
...
* lib/Makefile.in: Move the setting of variable libdir to after the
setting of exec_prefix since the value of libdir is dependant on it.
2001-09-04 20:56:23 +00:00
Christopher Faylor
c729f22799
* thread.cc (InterlockedExchangePointer): Don't define if it already exists.
2001-09-04 20:48:45 +00:00
Corinna Vinschen
37f75da24d
* uname.cc (uname): Eliminate os specific retrieving of x86
...
processor type.
2001-09-04 20:16:33 +00:00
Christopher Faylor
fb7369b515
* winbase.h: Add missing closing parentheses to InterlockedExchangePointer
...
declaration.
2001-09-04 18:19:33 +00:00
Earnie Boyd
2d54484a72
2001-09-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shlobj.h (CFSTR_* ): Add new defines.
Thanks to: "Ron" <ron@debian.org> .
Unicode them.
2001-09-04 14:57:51 +00:00
Corinna Vinschen
29ebba7050
2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
...
* fhandler_console.cc (fhandler_console::char_command): Save the cursor
position relative to the top of the window.
* fhandler_cc (fhandler_console::write): Ditto.
2001-09-04 10:45:54 +00:00
Christopher Faylor
f90e39b55e
* mount.cc (mount_commands): Don't write /cygdrive/u mount points.
2001-09-04 01:09:39 +00:00
Christopher Faylor
bee722a5e7
* mount.cc (longopts): Add mount-commands to options list.
...
(usage): Add mount-commands option.
(mount_commands): New function. Write commands to recreate current mounts.
2001-09-03 22:02:54 +00:00
Christopher Faylor
7170a41bc8
*** empty log message ***
2001-09-03 20:36:52 +00:00
Corinna Vinschen
2321ebb2aa
* dir.cc (opendir): Write version information to __d_dirent->d_version.
2001-09-03 19:06:58 +00:00
Corinna Vinschen
a71aee46c4
* cygwin.din: Add `dirfd'.
...
* dir.cc (dirfd): New function.
(opendir): Open a directory file descriptor and save it in
__d_dirent->d_fd.
(closedir): Close directory file descriptor.
* include/cygwin/version.h: Bump API minor version to 44.
2001-09-03 16:36:54 +00:00
Christopher Faylor
9867ecfdb3
* child_info.h: Modify magic number.
...
* dcrt0.cc (_cygwin_testing): Define.
(_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists.
Don't issue "conflicting versions" error if _cygwin_testing is true.
* shared.cc (shared_name): Use _cygwin_testing global rather than testing the
environment.
* syscalls.cc (_write): Remove debugging info.
2001-09-03 02:13:05 +00:00
Christopher Faylor
db8b09c306
* mount.cc (main): Eliminate excess arguments in printf.
2001-09-01 19:58:40 +00:00
Christopher Faylor
2bcd6fb89d
* include/winnt.h: Use defined(_ANONYMOUS_STRUCT) to determine if anonymous
...
structs are available rather than just testing preprocessor variable directly.
2001-09-01 14:42:57 +00:00
Christopher Faylor
2496a3637f
* tty.cc (tty::create_inuse): Eliminate unneeded argument.
...
* tty.h: Reflect above change.
* fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout.
Always make inuse inheritable.
2001-09-01 05:38:46 +00:00
Christopher Faylor
e62ac9e869
* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
...
(setclexec_pid): New function for marking saved handle as close-on-exec.
(delete_handle): New function.
(debug_fixup_after_fork): New function.
* debug.h: Declare new functions, remove obsolete ones.
* fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles.
* fhandler.cc (fhandler_disk_file::close): Minor reorg.
(fhandler_base::set_inheritance): Set flag appropriately for debugging when
close-on-exec so forked process can delete closed handles.
* tty.h (open_output_mutex): Eliminate unneeded argument.
(open_input_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument
changes.
* fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool.
* tty.cc (tty::get_event): Eliminate unneeded argument.
(tty::common_init): Reflect change to get_event. Events should always be
inherited.
2001-09-01 05:17:34 +00:00
Corinna Vinschen
dc8c4c68b7
* security.cc (create_token): Change initialization of `exp' to comply
...
with new LARGE_INTEGER definition in winnt.h.
2001-08-31 19:48:34 +00:00
Corinna Vinschen
75f259bfe3
* include/winnt.h: Change definition of `SYSTEM_LUID' to comply
...
with new `LARGE_INTEGER' definition.
2001-08-31 19:48:04 +00:00
Christopher Faylor
5ac73dfead
* cygwin.sc: Revert to previous NO_COPY behavior.
...
* winsup.h: Ditto.
* sigproc.cc: Ditto.
* autoload.cc: Ditto.
2001-08-31 18:16:16 +00:00
Christopher Faylor
5e2ccd4bc2
minor wording change.
2001-08-31 05:24:36 +00:00
Christopher Faylor
fcc46b19d3
space reduction.
2001-08-31 05:23:04 +00:00
Christopher Faylor
fff42f4172
space reduction.
2001-08-31 05:17:47 +00:00
Christopher Faylor
5835f2cf8d
* cygwin.sc: New file -- linker script for building cygwin DLL.
...
* Makefile.in: Use linker script to control location of cygheap.
* cygheap.cc (buckets): Make static.
(init_cheap): Remove special iswinnt handling. Allocate cygheap at a fixed
location. Display more info when allocation fails.
(cygheap_fixup_in_child): Try harder to move cygheap to correct location.
Display more info when allocation fails.
* fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state.
* net.cc (cygwin_shutdown): Set appropriate shutdown value for future use.
* select.cc (select_stuff::cleanup): New method.
(cygwin_select): Call cleanup explicitly to avoid a race.
(select_stuff:~select_stuff): Call cleanup chain via cleanup method.
(fhandler_socket::select_read): Set *_ready when shutdown has been called on
the socket.
(fhandler_socket::select_write): Ditto.
(fhandler_socket::select_except): Ditto.
* winsup.h: Move NO_COPY to "COMMON" section.
* autoload.cc (wsock_started): Avoid initializing NO_COPY value.
* sigproc.cc: Remove initialization from NO_COPY variables.
(sigproc_init): Initialize sig_loop_wait here, rather than via initialization.
(subproc_init): Initialize proc_loop_wait here, rather than via initialization.
2001-08-31 05:06:14 +00:00
Egor Duda
33bc82476e
* dumper.h: Update copyright notice.
...
* dumper.cc: Ditto.
* dumper.cc: (dumper::print_core_section_list): New function.
* dumper.h: (dumper::print_core_section_list): Declare it.
* dumper.cc (print_section_name): New function.
(dumper::collect_process_information): Augment debugging output.
Stop debugee processing if it posts double exception.
(usage): Fix typo in option name.
2001-08-30 16:47:51 +00:00
Christopher Faylor
4208d592f3
* include/winsock2.h: Remove "extra token" after #endif.
2001-08-30 13:37:23 +00:00
Corinna Vinschen
f0b4b3865d
* select.cc (select_read): Add setting read_ready flag.
...
(select_write): Add setting write_ready flag.
2001-08-30 08:21:09 +00:00
Earnie Boyd
bca00ab4b6
* config.guess: Remove the \r from the end of line.
...
* config.sub: Ditto.
* include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER
if __cplusplus as well as if _ANONYMOUS_STRUCT.
* config.guess: Add the MSYS system.
* config.sub: Ditto.
* include/winsock.h: Add the __INSIDE_MSYS__ protections.
* incldue/winsock2.h: Ditto.
2001-08-30 04:29:49 +00:00
Earnie Boyd
d1b093d567
* include\winnt.h: Allow anonymous (Xxx.LowPart) or
...
non-anonymous (Xxx.u.LowPart) access to HighPart and
LowPart of a LARGE_INTEGER or ULARGE_INTEGER.
* include/wingdi.h (HANGUL_CHARSET): Add define.
2001-08-29 13:45:46 +00:00
Earnie Boyd
375dab8418
* include/stdarg.h (va_list): Typedef as __builtin_va_list if
...
__GNUC__ >= 3.
* include/varargs.h (va_list): Ditto.
* include/stdio.h (va_list): Ditto.
2001-08-29 13:43:59 +00:00
Christopher Faylor
41d53c9845
* path.cc (path_conv::check): Avoid splitting off leading '/' in path component
...
when building a symlink.
2001-08-29 04:43:19 +00:00
Corinna Vinschen
e4a17c6d11
* resource.cc (getrlimit): Return actual values on RLIMIT_STACK.
2001-08-28 22:48:23 +00:00
Christopher Faylor
955dfa520a
oops
2001-08-28 20:39:22 +00:00
Christopher Faylor
ffe94510f5
* dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.
2001-08-28 20:38:07 +00:00
Christopher Faylor
34971f0f8c
* mount.cc (main): Issue correct warning for 'not enough arguments'.
2001-08-28 18:48:38 +00:00
Christopher Faylor
8d661d3658
* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
...
(select_stuff::wait): Ditto.
2001-08-27 15:59:26 +00:00
Christopher Faylor
e32b4e81cb
* syscalls.cc (check_tty_fds): New function. Check whether there is a fd
...
referring to pty slave.
(setsid): Don't detach console if the process has a pty slave.
2001-08-25 17:27:31 +00:00
Corinna Vinschen
5d0fe6351a
* net.cc (free_addr_list): Add define for symmetry.
...
(free_hostent_ptr): Use free_addr_list to free h_addr_list element.
(dup_addr_list): New static function.
(dup_hostent_ptr): Use dup_addr_list instead of dup_char_list in order
to handle embedded null characters.
2001-08-24 06:57:53 +00:00
Christopher Faylor
ecaff08ccd
* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.
...
* syscalls.cc: Minor code cleanup.
(fpathconf): Check for bad fd before doing anything else.
* termios.cc (tcsetattr): Don't convert to new termios if bad fd.
(tcgetattr): Minor debugging tweak.
2001-08-23 02:27:01 +00:00
Corinna Vinschen
cb19ccf4b5
* net.cc (cygwin_inet_ntoa): Rearrange previous patch to use
...
thread local buffer space when compiled thread safe.
(cygwin_getprotobyname): Ditto.
(cygwin_getprotobynumber): Ditto.
(cygwin_getservbyname): Ditto.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname.
* thread.h (struct _winsup_t): Add pointers for above used buffer space.
* passwd.cc (getpwduid): Remove initializing passwd.
(setpwent): Ditto.
(endpwent): Ditto.
(setpassent): Ditto.
2001-08-22 21:51:48 +00:00
Christopher Faylor
0a047e8f32
* smallprint.c (console_printf): New function.
...
* dcrt0.cc (dll_crt0_1): Use console_printf for debugging output.
* debug.cc (debug_mark_closed): New function.
(close_handle): Use debug_mark_closed.
* debug.h: Declare new functions.
* dtable.cc (dtable::build_fhandler): Remove unneeded extern.
* spawn.cc: Cosmetic changes.
* winsup.h: Define NO_COPY for C files, too. Declare a global.
2001-08-22 17:50:22 +00:00
Corinna Vinschen
1fdc8df95d
* net.cc (free_char_list): New static function.
...
(dup_char_list): Ditto.
(free_protoent_ptr): Ditto.
(dup_protoent_ptr): Ditto.
(free_servent_ptr): Ditto.
(dup_servent_ptr): Ditto.
(free_hostent_ptr): Ditto.
(dup_hostent_ptr): Ditto.
(cygwin_inet_ntoa): Use local static buffer to allow propagating of
the result to child processes.
(cygwin_getprotobyname): Ditto.
(cygwin_getprotobynumber): Ditto.
(cygwin_getservbyname): Ditto.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto.
2001-08-22 15:31:59 +00:00
Christopher Faylor
d4d65813a7
fix typo.
2001-08-22 02:40:22 +00:00
Earnie Boyd
de8e9cfb39
* include/setupapi.h : New file.
...
* lib/setupapi.def:New file.
* lib/test.c: Include setupapi.h.
* include/winioctl.h (_DISK_PERFORMANCE): Correct typo.
* include/richedit.h (ENLINK): Add structure definition.
(EM_AUTOURLDETECT, EN_LINK, ENM_LINK): Add defines.
* include/shlobj.h (CMIC_*): Remove duplicate defines.
(CMDSTR_*): Remove duplicates; UNICODE string constants.
(GCS_*): Make UNICODE.
(CSIDL_*): Add more defines.
* include/winioctl.h (_MEDIA_TYPE): Add pointer typedef.
(_DISK_GEOMETRY): Ditto.
(_DISK_PERFORMANCE): Ditto.
* include/winbase.h (HasOverlappedIoCompleted): Add macro.
* include/winnt.h: Move CHAR, SHORT and LONG typedefs outside
of block protected by #ifndef VOID.
(This reverts 1998-12-01 Anders Norlander change.)
* include/odbcinst.h: End file with newline.
* include/raserror.h: Ditto.
* include/winsock2.h (#include <wtypes.h): Don't.
(_BLOB): Define instead, if not already done.
(__BLOB_T_DEFINED: New define for guarding _BLOB.
* include/wtypes.h (_BLOB): Guard against prior definition.
* include/oaidl.h (tagVARIANT): Mark anonymous structs and unions
as __extension__.
(tagTYPEDESC): Ditto.
(_wireBRECORD): Add structure definition.
(_wireSAFEARR_BRECORD): Ditto.
(_wireSAFEARR_HAVEIID): Ditto.
(_wireSAFEARRAY_UNION.u): Add fields SAFEARR_BRECORD RecordStr,
SAFEARR_HAVEIID HaveIidStr.
(tagVariant): Add fields _VARIANT_BOOL bool,*pbool.
(_wireVARIANT): Change field parray to type wirePSAFEARRAY,
pparray to wirePSAFEARRAY*.
(_wireVARIANT): Add field wireBRECORD brecVal.
(wireVARIANT): Change typedef to struct _wireVariant*.
(IRecordInfo): Add interface definition.
(LPRECORDINFO): Add typedef for IRecordInfo*.
(IID_IRecordInfo): Add forward decalaration.
* include/lmcons.h: Guard CNLEN and UNCLEN against prior definition.
* include/nddeapi.h: Likewise.
* ChangeLog: Formatting and typo fixes.
2001-08-21 13:58:52 +00:00
Christopher Faylor
d9b68c2c7d
debug
2001-08-20 16:03:54 +00:00