summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * miscfuncs.cc (check_iovec_for_read): Don't check buffer when zero lengthChristopher Faylor2002-08-308-130/+288
| | | | | | | | | | | | | | | | | | | | iov_len. (check_iovec_for_write): Ditto. * fhandler.h (fhandler_base::readv): New method. (fhandler_base::writev): Ditto. * fhandler.cc (fhandler_base::readv): New method. (fhandler_base::writev): Ditto. * syscalls.cc (_read): Delegate to readv(2). (_write): Ditto, mutatis mutandi. (readv): Rewrite, based on the old _read code, to use the new fhandler_base::readv method. Improve access mode handling and ensure all calls reach the final strace statement. (writev): Ditto, mutatis mutandi. * include/sys/uio.h (struct iovec): Change field types to match SUSv3. * winsup.h (check_iovec_for_read): New function. (check_iovec_for_write): Ditto. * miscfuncs.cc (check_iovec_for_read): Ditto. (check_iovec_for_write): Ditto.
* Sigh, mbsrtowcs was still missing...Corinna Vinschen2002-08-301-0/+2
|
* * cygwin.din: Add more prototypes for new wchar functions in newlib.Corinna Vinschen2002-08-302-0/+18
|
* * cygwin.din: Add prototypes for new wchar functions in newlib.Corinna Vinschen2002-08-303-1/+45
| | | | * include/cygwin/version.h: Bump API minor number.
* * how-api.texinfo: Remove a line from the CRLF discussion about lseek notChristopher Faylor2002-08-302-6/+7
| | | | working. Answer thread safe question more simply.
* * poll.cc (poll): Peek sockets ready for read to see if there'sCorinna Vinschen2002-08-292-1/+28
| | | | actually data.
* * cygthread.cc (hthreads): Remove unneeded global.Christopher Faylor2002-08-293-14/+72
| | | | | | | | | | (cygthread::simplestub): New static member function. (cygthread::runner): Don't set hthreads. (cygthread::freerange): New member function. (cygthread::operator new): Call freerange if all cygwin slots are used up. (cygthread::exit_thread): Don't mess with event if freerange thread. (cygthread::detach): Ditto. * cygthread.h (class cygthread): Declare new member functions and variables.
* removeChristopher Faylor2002-08-291-0/+0
|
* * include/w32api.h: Increment version to 2.1.Earnie Boyd2002-08-283-2/+7
| | | | * Makefile.in: Ditto.
* * include/sys/param.h: Add ENDIAN defines.Danny Smith2002-08-283-1/+13
| | | | * test_headers.c: Include sys/param.h.
* removeChristopher Faylor2002-08-281-29/+0
|
* * malloc.cc: Protect some definitions to avoid a compile time warning.Christopher Faylor2002-08-282-0/+8
|
* * calls.texinfo: Add getc_unlocked, getchar_unlocked, putc_unlockedCorinna Vinschen2002-08-282-4/+9
| | | | and putchar_unlocked.
* * cygwin.din: Export getc_unlocked, getchar_unlocked,Corinna Vinschen2002-08-283-1/+17
| | | | | putc_unlocked, putchar_unlocked functions. * include/cygwin/version.h: Bump api minor.
* * fhandler_socket.cc (fhandler_socket::recvfrom): Eliminate flagsCorinna Vinschen2002-08-284-3/+26
| | | | | | | | | not understood by WinSock. (fhandler_socket::sendto): Ditto. If WinSock sendto() returns WSAESHUTDOWN, change errno to EPIPE and raise SIGPIPE if MSG_NOSIGNAL isn't set in flags. * include/cygwin/socket.h: Define MSG_WINMASK and MSG_NOSIGNAL. * include/cygwin/version.h: Bump API minor number.
* * poll.cc (poll): Eliminate erroneous POLLERR conditional.Corinna Vinschen2002-08-282-2/+4
|
* * test_headers.c: Don't include varargs.h.Danny Smith2002-08-283-7/+16
| | | | | * Makefile.in (test_headers): Don't use -std=xx with -xc++. Test -std=gnu89, gnu99 also.
* fragging mumble bruggum newlibChristopher Faylor2002-08-281-0/+0
|
* * fhandler_socket.cc (fhandler_socket::check_peer_secret_event):Corinna Vinschen2002-08-274-25/+50
| | | | | | | | | | | | | | | | | | | | | | | | | Fix strace message. (fhandler_socket::connect): Remove sigframe. (fhandler_socket::accept): Ditto. (fhandler_socket::getsockname): Ditto. (fhandler_socket::getpeername): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::close): Ditto. (fhandler_socket::ioctl): Ditto. * ioctl.cc (ioctl): Add sigframe. *net.cc (cygwin_sendto): Ditto. (cygwin_recvfrom): Ditto. (cygwin_recvfrom): Ditto. (cygwin_connect): Ditto. (cygwin_shutdown): Ditto. (cygwin_getpeername): Ditto. (cygwin_accept): Ditto. Improve strace message. (cygwin_getsockname): Ditto. Ditto. (cygwin_recvmsg): Ditto. Ditto. (cygwin_sendmsg): Fix strace message.
* * child_info.h: Add _PROC_WHOOPS enum value.Christopher Faylor2002-08-277-19/+42
| | | | | | | | | | | | | | | (CURR_CHILD_INFO_MAGIC): Update. (child_info::magic): Make 'long'. * cygheap.h: Export _cygheap_start. * cygheap.cc: Don't declare _cygheap_start. * cygmagic: Use cksum to produce checksums. Append 'U' to end of checksum. * dcrt0.cc (initial_env): Calculate sleep ms before reusing buffer. (_dll_crt0): Detect cygheap mismatch as indicative of different cygwin version. Set child_proc_info to NULL when _PROC_WHOOPS. (multiple_cygwin_problem): If child_info specific problem, then set child_proc_info type to _PROC_WHOOPS. * shared_info.h (CURR_MOUNT_MAGIC): Update. (CURR_SHARED_MAGIC): Ditto.
* 2002-08-26 Bart Oldeman <bart.oldeman@btinternet.com>Danny Smith2002-08-266-12/+202
| | | | | | | | | | | | | | | | | | | | | | * include/winsock2.h (SOCKET_ADDRESS): Define if __CSADDR_T_DEFINED is not defined (copied from nspapi.h) (CSADDR_INFO): Ditto. (nspapi.h) : Don't include. Removed FIXME comment. * include/nspapi.h (SOCKET_ADDRESS) Only define if __CSADDR_T_DEFINED is not defined. (CSADDR_INFO): Ditto. (BLOB): Added structure and typedef if not already defined. (NS_*): Add defines. (SERVICE_*): Ditto. (SERVICE_ADDRESS): Add structure and typedefs. (SERVICE_ADDRESSES): Ditto. (SERVICE_INFO[AW]): Ditto, and add UNICODE mappings. (LPSERVICE_ASYNC_INFO): Add typedef. (SetService[AW], GetAddressByName[AW]): Add prototypes and UNICODE mappings. * include/wsipx.h: New file. * include/svcguid.h: New file. * lib/test.c: Include wspix.h and svcguid.h.
* 2002-08-26 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith2002-08-263-0/+98
| | | | | * include/wsahelp.h: New file. * lib/test.c: Include wsahelp.h.
* * dll.sgml: Remove indirect reference to older gccs.Christopher Faylor2002-08-261-0/+4
|
* * fhandler.h (fhandler_socket::recvfrom): Fix prototype.Corinna Vinschen2002-08-265-24/+51
| | | | | | | | | | | | | | | | | | | | | | | (fhandler_socket::sendto): Ditto. * fhandler_socket.cc (fhandler_socket::recvfrom): Ditto. (fhandler_socket::sendto): Ditto. * include/sys/socket.h (recv): Fix prototype. (recvfrom): Ditto. (send): Ditto. (sendto): Ditto. * net.cc (cygwin_sendto): Ditto. Improve strace message (cygwin_recvfrom): Ditto. Ditto. (cygwin_setsockopt): Improve strace message. (cygwin_getsockopt): Ditto. (cygwin_connect): Ditto. (cygwin_accept): Ditto. (cygwin_bind): Ditto. (cygwin_getsockname): Ditto. (cygwin_getpeername): Ditto. (cygwin_recv): Fix prototype. (cygwin_send): Ditto. (cygwin_recvmsg): Improve strace message. (cygwin_sendmsg): Ditto.
* * sec_acl.cc (getacl): Check ace_sid == well_known_world_sidCorinna Vinschen2002-08-263-170/+108
| | | | | | | | | | before owner_sid and group_sid so that well_known_world_sid means "other" even when owner_sid and/or group_sid are Everyone. * security.cc (get_attribute_from_acl): Created from code common to get_nt_attribute() and get_nt_object_attribute(), with same reordering as in getacl() above. (get_nt_attribute): Call get_attribute_from_acl(). (get_nt_object_attribute): Ditto.
* * Makefile.in (cygcheck.exe): Make a -mno-cygwin program.Christopher Faylor2002-08-264-17/+43
| | | | | | * cygrun.c (main): Export CYGWIN=ntsec unless otherwise set. * shared.cc (shared_name): Only add build date to shared name when *testing*.
* * Makefile.in (RUNTEST): Use Makefile's srcdir and bupdir* macros, whereChristopher Faylor2002-08-263-7/+12
| | | | | | appropriate. * winsup.api/winsup.exp: Use -nodefaultlibs when linking executable to avoid potentially linking installed dll.
* * Makefile.in (DLL_IMPORTS): Move libuuid.a and libshell32.a to list ratherChristopher Faylor2002-08-252-6/+14
| | | | | than referring to them via -l. Add DLL imports last in link line for new-cygwin.dll and cygrun.exe.
* output some newlines.Christopher Faylor2002-08-231-2/+2
|
* * dll.sgml: Remove indirect reference to older gccs.Christopher Faylor2002-08-211-1/+1
|
* * dll.sgml: Refine dll build instructions.Christopher Faylor2002-08-213-39/+35
| | | | * ntsec.html: Correct some typos.
* fix some glitchesChristopher Faylor2002-08-211-5/+5
|
* * include/sys/param.h: New File.Earnie Boyd2002-08-212-0/+35
|
* * include/_mingw.h: Increment version to 2.2.Earnie Boyd2002-08-213-2/+7
| | | | Makefile.in: Ditto.
* * include/commctrl.h (NMCUSTOMDRAW): Fix lItemlParam.Earnie Boyd2002-08-212-1/+6
| | | | Thanks to: "Phil Dempster" <p_dempster@yahoo.co.uk>.
* * include/math.h (asm): Change to __asm__ throughout.Danny Smith2002-08-202-14/+20
| | | | | Expose ISO C99 functions if __GLIBCPP__. (hypotf): Use hypot, not _hypot in stub..
* * include/tchar.h: Ansi-fy another comment.Danny Smith2002-08-202-2/+6
|
* * include/tchar.h: Ansi-fy comment.Danny Smith2002-08-202-2/+5
|
* * test_headers.c : New file.Danny Smith2002-08-203-1/+77
| | | | | * Makefile.in (test_headers): New target, using it, (SRCDIST_FILES): Distribute it.
* * include/ws2spi.h: Modify comment about being part ofDanny Smith2002-08-202-2/+7
| | | | | mingw32 package. (winsock2.h): Change "" to <>.
* 2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith2002-08-203-0/+207
| | | | | * include/ws2spi.h: New file. * lib/test.c: Include ws2spi.h.
* * include/winsock2.h (WSAIsBlocking,WSAUnhookBlockingHook,Danny Smith2002-08-202-3/+9
| | | | | WSASetBlockingHook,WSACancelBlockingCall): Expose deprecated functions.
* * pinfo.h (pinfo::remember): Arrange for destructor call if proc_subprocChristopher Faylor2002-08-193-5/+17
| | | | | | returns error. * sigproc.cc (zombies): Store 1 + total zombies since proc_subproc uses NZOMBIES element.
* * pwdgrp.h (pwdgrp_read::pwdgrp_read): Remove.Corinna Vinschen2002-08-192-13/+10
| | | | | | (pwdgrp_read::~pwdgrp_read): Ditto. (pwdgrp_read::open): Reset fh to NULL instead of INVALID_HANDLE_VALUE. (pwdgrp_read::close): Ditto.
* * fhandler.h (fhandler_console::send_winch_maybe): New method.Christopher Faylor2002-08-194-25/+45
| | | | | | | | | * fhandler_console.cc (set_console_state_for_spawn): Remove if 0'ed code. (fhandler_console::send_winch_maybe): Define new method. (fhandler_console::read): Use send_winch_maybe where appropriate. (fhandler_console::init): Just call all tcsetattr rather than output_tcsetattr. * select.cc (peek_console): Reorganize so that send_winch_maybe is called for everything but keyboard input.
* * perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.Christopher Faylor2002-08-189-19/+99
| | | | | | | | | | | | | | | | | (vfork_save::restore_pid): New method. (vfork_save::restore_exit): New method. * fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to "parent". Use exitval field if exiting but never created a new process. * syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that pid will be allocated (UGLY!). (getsid): New function. * dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a vfork. * spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for returning from vfork. * cygwin.din: Export getsid. * include/cygwin/version.h: Bump api minor number. * malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
* * cygmalloc.h (MORECORE_CANNOT_TRIM): Define.Christopher Faylor2002-08-182-1/+4
|
* * sigproc.cc (sigCONT): Define.Christopher Faylor2002-08-185-16/+32
| | | | | | | | | * sigproc.h (sigCONT): Declare. (wait_sig): Create sigCONT event here. * exceptions.cc (sig_handle_tty_stop): Wait for sigCONT event rather than stopping thread. (sig_handle): Set sigCONT event as appropriate on SIGCONT rather than calling ResumeThread.
* * malloc.cc: Update to 2.7.2.Christopher Faylor2002-08-183-10/+19
| | | | | * malloc_wrapper.cc (malloc_init): Call user level mallocs to determine if the malloc has been wrapped.
* * Makefile.in: Change COMPILE_C* definitions.Christopher Faylor2002-08-171-0/+4
|