Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2001-04-12 * configure.in: Remove PTH_ALLOW.Robert Collins
* cygwin.din: Remove @PTH_ALLOW@ prefixes to pthread functions. Add new pthread exports. * pthread.cc: New wrapper functions for the above new exports. * sched.cc (valid_sched_parameters): New function. (sched_setparam): Use it. (sched_set_thread_priority): New function. Used by pthread_sched*. * thread.cc (pthread_key_destructor::InsertAfter): New function. (pthread_key_destructor::UnlinkNext): New function. (pthread_key_destructor::Next): New function. (pthread_key_destructor_list::Insert): New function. (pthread_key_destructor_list::Remove): New function. (pthread_key_destructor_list::Pop): New function. (pthread_key_destructor::pthread_key_destructor): New function. (pthread_key_destructor_list::IterateNull): New function. (MTinterface::Init): Initialise new member. (pthread::pthread): Initialise new members. (pthread::create): Copy new attributes. Set the new thread priority. (pthread_attr::pthread_attr): Initialise new members. (pthread_key::pthread_key): Setup destructor function. (pthread_key::~pthread_key): Remove destructor function. (pthread_mutexattr::pthread_mutexattr): New function. (pthread_mutexattr::~pthread_mutexattr): New function. (__pthread_once): New function. (__pthread_cleanup): New function. (__pthread_cancel): New function. (__pthread_setcancelstate): New function. (__pthread_setcanceltype): New function. (__pthread_testcancel): New function. (__pthread_attr_getinheritsched): New function. (__pthread_attr_getschedparam): New function. (__pthread_attr_getschedpolicy): New function. (__pthread_attr_getscope): New function. (__pthread_attr_setinheritsched): New function. (__pthread_attr_setschedparam): New function. (__pthread_attr_setschedpolicy): New function. (__pthread_attr_setscope): New function. (__pthread_exit): Call any key destructors on thread exit. (__pthread_join): Use the embedded attr values. (__pthread_detach): Use the embedded attr values. (__pthread_getconcurrency): New function. (__pthread_getschedparam): New function. (__pthread_key_create): Pass the destructor on object creation. (__pthread_key_delete): Correct incorrect prototype. (__pthread_setconcurrency): New function. (__pthread_setschedparam): New function. (__pthread_cond_timedwait): Support static mutex initialisers. (__pthread_cond_wait): Ditto. (__pthread_mutex_getprioceiling): New function. (__pthread_mutex_lock): Support static mutex initialisers. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): New function. (__pthread_mutexattr_getprotocol): New function. (__pthread_mutexattr_getpshared): New function. (__pthread_mutexattr_gettype): New function. (__pthread_mutexattr_init): New function. (__pthread_mutexattr_destroy): New function. (__pthread_mutexattr_setprotocol): New function. (__pthread_mutexattr_setprioceiling): New function. (__pthread_mutexattr_getprioceiling): New function. (__pthread_mutexattr_setpshared): New function. (__pthread_mutexattr_settype): New function. Remove stubs for non MT_SAFE compilation. * thread.h: Remove duplicate #defines. Add prototypes for new functions in thread.cc. (pthread_key_destructor): New class. (pthread_key_destructor_list): New class. (pthread_attr): Add new members. (pthread): Remove members that are duplicated in the pthread_attr class. (pthread_mutex_attr): Add new members. (pthread_once): New class. * include/pthread.h: Add prototypes for new functions exported from cygwin1.dll. Remove typedefs. * include/sched.h: Add prototypes for new functions in sched.cc. * include/cygwin/types.h: Add typedefs from pthread.h
2001-04-12 * include/windows.h (#include <winsock.h>): Include <winsock2.h>Earnie Boyd
instead if (_WIN32_WINNT >= 0x0400)&&(__W32API_MAJOR_VERSION > 0).
2001-04-122001-04-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>Earnie Boyd
* include/winuser.h (WM_IME_*): Remove defines (now in imm.h).
2001-04-12 * include/windef.h (*PBOOL): Unprotect from XFree86Server.Earnie Boyd
(*LPBOOL): Ditto.
2001-04-11* path.cc (struct symlink_info): Add extn and ext_tacked_on fields.Christopher Faylor
(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.
2001-04-11* mkgroup.c (uni2ansi): Use native method to convert from UnicodeEgor Duda
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.
2001-04-09* fhandler.h (class fhandler_socket): Add members and methods toEgor Duda
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.
2001-04-09Work around new g++ problem.Christopher Faylor
2001-04-09* include/winnt.h (GetCurrentFiber): Make "external __inline" or asm code willChristopher Faylor
be included in every module which includes this header. (GetFiberData): Ditto.
2001-04-09remove extra whitespace.Christopher Faylor
2001-04-09* Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needsChristopher Faylor
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.
2001-04-08 * include/winnt.h (GetCurrentFiber): Fix typo.Earnie Boyd
2001-04-08 * include/shellapi.h: (CommandLineToArgvW): Add WINAPI declaration.Earnie Boyd
* 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.
2001-04-06 * syscalls.cc (stat_worker): Fix conditional which still allowedCorinna Vinschen
successful stat'ing of non-existant files.
2001-04-04* child_info.h: Bump magic number for fork/exec/spawn.Christopher Faylor
2001-04-03 * errno.cc (errmap): Map ERROR_FILE_INVALID to ENXIO.Corinna Vinschen
2001-04-03 * winsup.api/mmaptest01.c: New test.Corinna Vinschen
2001-04-03* cygrun.c (main): Fix compiler warning.Christopher Faylor
* 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.
2001-04-03* mount.cc (main): Use getopt_long for parsing arguments.Christopher Faylor
(usage): Reformat, show long and short options. * umount.cc (main): Ditto, all of the above.
2001-04-02* mount.cc (show_mounts): Change format string to more closely resemble UNIXChristopher Faylor
when displaying mount table.
2001-04-02 * fhandler.cc (fhandler_disk_file::open): Avoid checking a magicCorinna Vinschen
number of a directory.
2001-04-02* shared_info.h (mount_info): Remove mnt_ elements.Christopher Faylor
* thread.h (struct _winsup_t): Add mnt_ elements. * path.cc (fillout_mntent): Use mnt_ elements from reent_winsup ().
2001-04-02* exceptions.cc (sigframe::call_signal_handler): Return value ofChristopher Faylor
call_signal_handler_now. * sigproc.h (sigframe): Use constructor. * syscalls.cc (_read): Correct errno test prior to calling signal handler.
2001-04-02Fix typo.Christopher Faylor
2001-04-01* exceptions.cc (sigframe::call_signal_handler): Move out side of "C" block orChristopher Faylor
some compilers will complain.
2001-04-01* exceptions.cc (call_signal_handler_now): Rename from call_signal_handler toChristopher Faylor
avoid C++ confusion.
2001-04-01* path.cc (fillout_mntent): Always remove drive root directories from futureChristopher Faylor
consideration by "/cygdrive" reporting. (cygdrive_getmnt): Avoid reporting removable drives or drives with no media mounted.
2001-04-01* thread.h (struct _winsup_t): Remove obsolete elements. Add available_drivesChristopher Faylor
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.
2001-04-01* sigproc.h (class sigframe): Implement 'unregister()' method.Christopher Faylor
(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.
2001-04-01* fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles withChristopher Faylor
ForceCloseHandle or suffer spurious warnings.
2001-04-01* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.Christopher Faylor
2001-03-31 Fix formatting.Corinna Vinschen
2001-03-31 * fhandler.h (class fhandler_console): Add members `insert_mode'.Corinna Vinschen
* 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).
2001-03-31Fix strange formatting.Christopher Faylor
2001-03-31Fix strange formatting.Christopher Faylor
2001-03-30 * include/winuser.h (RT_CURSOR): Add protection for XFree86Server.Earnie Boyd
(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>
2001-03-30 * fhandler.h (class fhandler_console): Add members `savebufsiz' andCorinna Vinschen
`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* path.cc (chdir): Eat trailing whitespace on input path.Christopher Faylor
2001-03-28* lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to beChristopher Faylor
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.
2001-03-27 * mmap.cc (mmap): Fix conditional for previous patch.Corinna Vinschen
2001-03-27add missing stuff.Christopher Faylor
2001-03-26 * mmap.cc (mmap): Outflank copy-on-write problem on 9x byCorinna Vinschen
setting access mode to FILE_MAP_READ when read access is requested.
2001-03-26* dlfcn.cc (check_access): Eliminate.Christopher Faylor
(check_path_access): Use passed in path_conv buf. (get_full_path_of_dll): Use passed in name buf to avoid a static. Rip out most of the path checking since LoadLibrary will do all of this automatically. (dlopen): Set errno when appropriate (may not be compliant?). * environ.cc (posify): Don't pass in "native" path if it seems to actually be posix.
2001-03-23* fhandler.h (fhandler_dev_clipboard): Extend to support writing.Christopher Faylor
* fhandler_clipboard.cc (fhandler_dev_clipboard::fhandler_dev_clipboard): Initialize new fields. Open clipboard here. (fhandler_dev_clipboard::dup): New method. (fhandler_dev_clipboard::open): Accomodate new fields. Register clipboard here, if appropriate. (set_clipboard): New function. Moves buffer to clipboard. (fhandler_dev_clipboard::write): Truly implement clipboard writing. (fhandler_dev_clipboard::read): Reimplement to allow successive reads. (fhandler_dev_clipboard::lseek): Truly implement seeks in clipboard. (fhandler_dev_clipboard::close): Clear out new fields. Support sequential reads and sequential writes. Support for binary data via a native clipboard format.
2001-03-22* fhandler_console.cc (fhandler_console::set_default_attr): Update consoleChristopher Faylor
color attributes on tty reset.
2001-03-22* autoload.cc (kernel32_init): New function for kernel32 autoloadChristopher Faylor
initialization. (SignalObjectAndWait): Add conditional load of this function when it is available.
2001-03-21add new file.Christopher Faylor
2001-03-21Add missing files.Christopher Faylor
2001-03-21* sched.cc: New file. Implement sched*.Christopher Faylor
* include/sched.h: New file. User land includes for sched*. * Makefile.in: Add sched.o * cygwin.din: Add exports for sched*.
2001-03-20* dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixingChristopher Faylor
winsock*.h and sys/types.h. * fhandler_socket.cc: Ditto. * net.cc: Ditto. * select.cc: Ditto. * exceptions.cc: Remove unneeded define.