summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * include/windows.h (#include <winsock.h>): Include <winsock2.h>Earnie Boyd2001-04-122-0/+14
| | | | instead if (_WIN32_WINNT >= 0x0400)&&(__W32API_MAJOR_VERSION > 0).
* 2001-04-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>Earnie Boyd2001-04-122-13/+4
| | | | * include/winuser.h (WM_IME_*): Remove defines (now in imm.h).
* * include/windef.h (*PBOOL): Unprotect from XFree86Server.Earnie Boyd2001-04-122-1/+7
| | | | (*LPBOOL): Ditto.
* * libc/include/sys/features.h: Add appropriate defines for Cygwin pthreadChristopher Faylor2001-04-124-4/+28
| | | | | | | support. * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection. * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads types. Include <cygwin/types.h> for the cygwin specific typedefs.
* * path.cc (struct symlink_info): Add extn and ext_tacked_on fields.Christopher Faylor2001-04-112-7/+25
| | | | | | (path_conv::check): Only tack on extension if a known one didn't already exist. (suffix_scan::has): Return pointer to known extension. (symlink_info::check): Record location of extension, if any.
* * mkgroup.c (uni2ansi): Use native method to convert from UnicodeEgor Duda2001-04-113-14/+22
| | | | | | | | | to multi-byte strings. * mkpasswd.c (uni2ansi): Ditto. (enum_users): Pass buffer size when converting string. (enum_local_groups): Ditto. * mkgroup.c (enum_groups): Ditto. (enum_local_groups): Ditto.
* * fhandler.h (class fhandler_socket): Add members and methods toEgor Duda2001-04-094-9/+200
| | | | | | | | | | | | | | | | | support secure connections on AF_UNIX sockets. * fhandler_socket.cc (fhandler_socket::set_connect_secret): New method. (fhandler_socket::get_connect_secret): Ditto. (fhandler_socket::create_secret_event): Ditto. (fhandler_socket::close_secret_event): Ditto. (fhandler_socket::check_peer_secret_event): Ditto. (fhandler_socket::fixup_after_fork): Duplicate secret event to child. (fhandler_socket::dup): Copy address family. (fhandler_socket::close): Close secret event. * net.cc (get_inet_addr): Read secret cookie. (cygwin_connect): Check if peer knows secret cookie value. (cygwin_accept): Ditto. Copy address family to newly created socket. (cygwin_bind): Generate and write secret cookie. (wsock_init): Initialize random number generator.
* Work around new g++ problem.Christopher Faylor2001-04-091-0/+1
|
* * include/winnt.h (GetCurrentFiber): Make "external __inline" or asm code willChristopher Faylor2001-04-092-7/+12
| | | | | be included in every module which includes this header. (GetFiberData): Ditto.
* remove extra whitespace.Christopher Faylor2001-04-091-1/+1
|
* * Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needsChristopher Faylor2001-04-098-444/+521
| | | | | | | | | | | | | | it. * cygwin.din: Remove obsolete "__empty" export. * exceptions.cc (call_signal_handler_now): Force inclusion of function even when -finline-functions is specified. * sigproc.h: Remove obsolete call_signal_handler declaration. * fhandler_console.cc (cp_get_internal): New function. (cp_convert): New function. (con_to_str): New function. (str_to_con): New function. (fhandler_console::read): Replace OemToCharBuff with con_to_str. (fhandler_console::write_normal): Replace CharToOemBuff with str_to_con.
* * include/winnt.h (GetCurrentFiber): Fix typo.Earnie Boyd2001-04-082-1/+5
|
* * include/shellapi.h: (CommandLineToArgvW): Add WINAPI declaration.Earnie Boyd2001-04-088-40/+238
| | | | | | | | | | | | | | | | * include/winbase.h: (GetFileAttributesExW): Fix typo. * include/wingdi.h: (StartDocA): Change LPDOCINFOA to DOCINFOA*. (StartDocB): Chage LNPDOCINFOB to DOCINFOB*. Thanks To: Kent Tamura <tkent@users.sourceforge.net> * include/winnt.h: (GetFiberData): Add __inline assembler coding. (GetCurrentFiber): Ditto. Thanks to: Andy Younger <AndyY@redlemon.com> * include/windef.h: (HMONITOR_DECLARED): New definition to stop DirectX 8 from complaining. Thanks to: Sigbj�rn Lund Olsen <mosikos@online.no> * include/commctrl.h Updated TreeView and ListView defines and macros. * include/winuser.h (MB_SERVICE_NOTIFICATION): Correct value for NT4 and above.
* * syscalls.cc (stat_worker): Fix conditional which still allowedCorinna Vinschen2001-04-052-2/+7
| | | | successful stat'ing of non-existant files.
* * cris.h (enum cris_insn_version_usage): Correct comment forHans-Peter Nilsson2001-04-052-2/+7
| | | | cris_ver_v3p.
* * child_info.h: Bump magic number for fork/exec/spawn.Christopher Faylor2001-04-042-1/+5
|
* * libc/include/machine/ieeefp.h: Comment about new configurationRichard Sandiford2001-04-0441-166/+306
| | | | | | | | macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS. * libm/common/fdlib.h: Define new macros for testing floats. * libm/common/sf_*: Use them. * libm/math/ef_*: Likewise. * libm/math/sf_*: Likewise.
* merge from gccDJ Delorie2001-04-042-0/+32
|
* * errno.cc (errmap): Map ERROR_FILE_INVALID to ENXIO.Corinna Vinschen2001-04-032-0/+5
|
* * winsup.api/mmaptest01.c: New test.Corinna Vinschen2001-04-032-0/+110
|
* * cygrun.c (main): Fix compiler warning.Christopher Faylor2001-04-038-28/+57
| | | | | | | | | | | * gmon.c (_mcleanup): Ditto. * profil.c (profile_off): Ditto. * net.cc (find_winsock_errno): New function. (__set_winsock_errno): Use find_winsock_errno. (cygwin_setsockopt): Detect SO_ERROR for debugging. (cygwin_getsockopt): Ditto. Translate error when getsockopt returns SO_ERROR. * winsup.h: regparmize __set_winsock_errno. * include/sys/strace.h: Document that strace functions can't use regparm.
* * mount.cc (main): Use getopt_long for parsing arguments.Christopher Faylor2001-04-033-154/+208
| | | | | (usage): Reformat, show long and short options. * umount.cc (main): Ditto, all of the above.
* * mount.cc (show_mounts): Change format string to more closely resemble UNIXChristopher Faylor2001-04-022-9/+8
| | | | when displaying mount table.
* * fhandler.cc (fhandler_disk_file::open): Avoid checking a magicCorinna Vinschen2001-04-022-0/+6
| | | | number of a directory.
* * shared_info.h (mount_info): Remove mnt_ elements.Christopher Faylor2001-04-024-22/+25
| | | | | * thread.h (struct _winsup_t): Add mnt_ elements. * path.cc (fillout_mntent): Use mnt_ elements from reent_winsup ().
* * Makefile.in (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS):Alexandre Oliva2001-04-023-5/+33
| | | | | | New macros. (bootstrap, cross): Use RECURSE_FLAGS. * configure.in: Subst CXX_FOR_TARGET_FOR_RECURSIVE_MAKE.
* * exceptions.cc (sigframe::call_signal_handler): Return value ofChristopher Faylor2001-04-024-14/+20
| | | | | | call_signal_handler_now. * sigproc.h (sigframe): Use constructor. * syscalls.cc (_read): Correct errno test prior to calling signal handler.
* Fix typo.Christopher Faylor2001-04-011-1/+1
|
* * exceptions.cc (sigframe::call_signal_handler): Move out side of "C" block orChristopher Faylor2001-04-012-7/+16
| | | | some compilers will complain.
* * exceptions.cc (call_signal_handler_now): Rename from call_signal_handler toChristopher Faylor2001-04-012-10/+15
| | | | avoid C++ confusion.
* * path.cc (fillout_mntent): Always remove drive root directories from futureChristopher Faylor2001-04-012-14/+38
| | | | | | consideration by "/cygdrive" reporting. (cygdrive_getmnt): Avoid reporting removable drives or drives with no media mounted.
* * thread.h (struct _winsup_t): Remove obsolete elements. Add available_drivesChristopher Faylor2001-04-015-145/+140
| | | | | | | | | | | | element. * path.cc (mount_info::getmntent): Report "/cygdrive" drives when mounted drives are exhausted. (fillout_mntent): New function. (mount_item::getmntent): Use fillout_mntent. (cygdrives_mntent): New function. Returns next available "/cygdrive". (setmntent): Initialize available "/cygdrives". * syscalls.cc: Remove some if 0'ed code. * times.cc (timezone): Use more descriptive variable name.
* * sigproc.h (class sigframe): Implement 'unregister()' method.Christopher Faylor2001-04-017-117/+151
| | | | | | | | | | | | | (sigframe::~sigframe): Use unregister method. (sigframe::call_signal_handler): Declare new method. * exceptions.cc (sigframe::call_signal_handler): New method. Unregisters current sigframe before calling signal handler. (setup_handler): Clear waiting threads prior to arming signal_arrived. * syscalls.cc (_read): Change goto to loop. Recalculate sigframe inside of loop so that constructor is called when appropriate. * wait.cc (wait4): Ditto. * signal.cc: Change "sig" to "signal" in debugging messages throughout. * sigproc.cc: Ditto.
* * fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles withChristopher Faylor2001-03-312-2/+7
| | | | ForceCloseHandle or suffer spurious warnings.
* * fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.Christopher Faylor2001-03-312-3/+9
|
* merge from gccDJ Delorie2001-03-312-1/+10
|
* Fix formatting.Corinna Vinschen2001-03-311-1/+1
|
* * fhandler.h (class fhandler_console): Add members `insert_mode'.Corinna Vinschen2001-03-313-13/+49
| | | | | | | | | | | | * fhandler_console.cc (fhandler_console::dup): Duplicate `insert_mode'. (fhandler_console::fhandler_console): Initialize `insert_mode'. fhandler_console::char_command): Add terminal capabilities "enter insert mode" = \E[4h and "exit insert mode" = \E[4l. Care for insert mode on terminal capability "repeat char" = \E[x;yb. (fhandler_console::write_normal): Care for insert mode before writing to the console. (array keytable): Add keymapping for modified cursor and control block keys (xterm like).
* Fix strange formatting.Christopher Faylor2001-03-311-1/+0
|
* Fix strange formatting.Christopher Faylor2001-03-311-5/+3
|
* * include/winuser.h (RT_CURSOR): Add protection for XFree86Server.Earnie Boyd2001-03-305-2/+29
| | | | | | | | | | | (RT_FONT): Ditto. (VK_KANA): New definition. * include/basetsd.h (INT32): Ditto. * include/windef.h (ATOM): Ditto. (BOOL): Ditto. (BYTE): Ditto. * include/winbase.h (FreeResource): Ditto. Thanks to: "Harold Hunt" <huntharo@msu.edu>
* * fhandler.h (class fhandler_console): Add members `savebufsiz' andCorinna Vinschen2001-03-303-0/+65
| | | | | | | | | `savebuf' to allow save/restore of screen. * fhandler_console.cc (fhandler_console::dup): Duplicate savebuf. (fhandler_console::fhandler_console): Initialize `savebufsiz' and `savebuf'. (fhandler_console::char_command): Add terminal capabilities "save screen content" = \E[?47h and "restore screen content" = \E[?47l.
* 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-03-302-0/+6
| | | | | * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode prolog to by-pass possible assembler error.
* * path.cc (chdir): Eat trailing whitespace on input path.Christopher Faylor2001-03-292-0/+12
|
* * lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to beChristopher Faylor2001-03-284-14/+34
| | | | | | | | | defined. Wrap definitions in extern "C". Include winsup.h to assure proper definitions. * dcrt0.cc (dll_crt0_1): Call stdio_init after premain run so that binmode.o, etc., will control default stdio settings. * dtable.cc (dtable::init_std_file_from_handle): Allow __fmode to force binmode/textmode settings. Default pipes to binmode.
* * configure.in (CXX_FOR_TARGET): Use xgcc for libstdc++-v3.Alexandre Oliva2001-03-282-1/+5
|
* * mmap.cc (mmap): Fix conditional for previous patch.Corinna Vinschen2001-03-272-1/+5
|
* add missing stuff.Christopher Faylor2001-03-261-0/+8
|
* oops - omitted from previous deltaNick Clifton2001-03-261-0/+375
|
* * mmap.cc (mmap): Outflank copy-on-write problem on 9x byCorinna Vinschen2001-03-262-1/+10
| | | | setting access mode to FILE_MAP_READ when read access is requested.