summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * include/math.h (sqrt): Remove inline definition.Danny Smith2002-11-093-25/+31
| | | | | | | | | | (sqrtf): Replace inline definition with prototype. (sqrtl): Likewise. * mingwex/math/sqrtf.c (sqrtf): Set domain error if argument less than zero. * mingwex/math/sqrtf.c (sqrtl): Likewise. Correct typo in 2002-10-30 ChangeLog entry.
* * fhandler.h (class fhandler_pipe): New ioctl() method.Christopher Faylor2002-11-093-0/+34
| | | | * pipe.cc (fhandler_pipe::ioctl): New.
* * setfacl.c (usage): Add missing LF.Corinna Vinschen2002-11-082-1/+5
|
* * include/oleauto.h (DeregisterTypeLib): Remove.Danny Smith2002-11-082-1/+6
| | | | (UnRegisterTypeLib): Add prototype.
* * fhandler_serial.cc (fhandler_serial::ioctl): Fix typo.Christopher Faylor2002-11-072-1/+5
|
* * include/cygwin/fs.h: New file.Corinna Vinschen2002-11-074-1/+175
| | | | | | * include/cygwin/hdreg.h: New file. * fhandler_floppy.cc (fhandler_floppy::ioctl): Add implementation for HDIO_GETGEO, BLKGETSIZE, BLKGETSIZE64, BLKRRPART and BLKSSZGET ioctls.
* * include/winioctl.h: Add definition for IOCTL_DISK_UPDATE_DRIVE_SIZE.Corinna Vinschen2002-11-072-0/+5
|
* * fhandler_socket.cc (fhandler_socket::ioctl): Return correct flagsCorinna Vinschen2002-11-072-1/+7
| | | | for loopback interface when name is given on input instead of address.
* * cygwin.din: Export fseeko() and ftello().Corinna Vinschen2002-11-073-1/+11
| | | | * include/cygwin/version.h: Bump API minor version.
* minor reformatChristopher Faylor2002-11-071-1/+2
|
* * fhandler_console.cc (keytable[]): Revert previous change. It would break tooChristopher Faylor2002-11-072-5/+10
| | | | many things.
* * fhandler_console.cc (keytable[]): Redefine F1 - F5 to something a little moreChristopher Faylor2002-11-071-0/+5
| | | | sensical.
* * syscalls.cc (getutid): Use UT_IDLEN where appropriate.Christopher Faylor2002-11-073-6/+10
|
* * include/cygwin/version.h: Bump API minor number for below export.Christopher Faylor2002-11-075-15/+44
| | | | | | | | | | | * cygwin.din (pututline): New exported function. * syscalls.cc (login): Use pututiline(). (setutent): Open utmp as read/write. (endutent): Check if utmp file is open. (utmpname): call endutent() to close current utmp file. (getutid): Enable all cases, use strncmp() to compare ut_id fields. (pututline): New. * tty.cc (create_tty_master): Set ut_pid to current pid.
* * fhandler_serial.cc (fhandler_serial::ioctl): Don't try to figure out if OSChristopher Faylor2002-11-062-35/+25
| | | | | has the capability to retrieve RTS/CTS. Just set default values if DeviceIoControl fails. (suggested by Sergey Okhapkin)
* * fhandler_serial.cc (fhandler_serial::raw_read): Use correct type forChristopher Faylor2002-11-053-7/+17
| | | | | | | minchars. (fhandler_serial::ioctl): Set errno if the ClearCommError fails. (fhandler_serial::tcsetattr): Use correct value for vmin_. (fhandler_serial::tcgetattr): Ditto.
* * fhandler_socket.cc (fhandler_socket::recvmsg): Call if from == NULLChristopher Faylor2002-11-052-8/+12
| | | | WSARecvFrom with fromlen = NULL.
* * pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.Christopher Faylor2002-11-052-1/+6
|
* * pinfo.cc (_pinfo::commune_send): Set priority low when sleeping, waiting forChristopher Faylor2002-11-052-1/+12
| | | | commune completion so that we don't spin waiting for lower priority processes.
* revert erroneous checkinsChristopher Faylor2002-11-052-3/+1
|
* * sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.Christopher Faylor2002-11-054-2/+8
|
* * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.Christopher Faylor2002-11-052-0/+9
|
* * fhandler_process.cc (fhandler_process::fill_filebuf): Deal with errorChristopher Faylor2002-11-052-1/+6
| | | | condition from cmdline retrieval.
* * sigproc.cc (WAIT_SIG_PRIORITY): Bump to highest priority.Christopher Faylor2002-11-052-1/+5
|
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2002-11-042-1/+5
|
* * fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errnoChristopher Faylor2002-11-043-85/+131
| | | | | appropriately. Exit from the bottom. Correctly deal with third argument for TCFLSH. (Suggested by Sergey Okhapkin)
* * include/winnt.h (VerSetConditionMask): Add prototype.Danny Smith2002-11-043-0/+11
| | | | * lib/kernel32.def (VerifyVersionInfo[AW]): Add stubs.
* * fhandler_tty.cc (fhandler_tty_slave::ioctl): Do nothing if the new windowChristopher Faylor2002-11-042-9/+32
| | | | | | | size is equal to the old one. Send SIGWINCH if slave connected to a pseudo tty. (fhandler_pty_master::ioctl): Do nothing if the new window size is equal to the old one.
* spaceChristopher Faylor2002-11-023-3/+3
|
* 2002-10-31 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2002-11-012-1/+5
| | | | * fhandler.cc (fhandler_base::open): Verify pc isn't NULL.
* * cygpath.cc (get_long_path_name_w32impl): Define similarly to GetLongPathName.Christopher Faylor2002-10-312-132/+105
| | | | | | | (get_long_name): Correctly prototype GetLongPathName. (get_long_paths): Implement using get_long_name to cut down on code duplication. (doit): Do various things to make path output work predictably.
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2002-10-302-1/+5
|
* * external.cc (cygwin_internal): Implement CW_CMDLINE.Christopher Faylor2002-10-3013-38/+434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pinfo.h (SIGCOMMUNE): New signal type. (commune_result): New structure for commune functions. (picom): New enum for commune functions. (_pinfo::hello_pid): New. Pid who's communicating with me. (_pinfo::tothem): New. Handle of communicating pipe. (_pinfo::fromthem): Ditto. (_pinfo::commune_recv): Declare. (_pinfo::commune_send): Declare. (_pinfo::alive): Declare. (_pinfo::cmdline): Declare. (_pinfo::lock): Declare. * pinfo.cc (set_myself): Initialize new _pinfo lock. (_pinfo::alive): Define. Determines if process still exists. (_pinfo::commune_recv): Define. Receive info from another cooperating process. (_pinfo::commune_send): Define. Send info to another cooperating process. (_pinfo::cmdline): Define. Determine command line of a given process. * include/sys/cygwin.h (CW_CMDLINE): Define. *sigproc.cc (talktome): Communicate with any processes who want to talk to me. (wait_sig): Honor __SIGCOMMUNE. * fhandler.cc (fhandler_virtual::fixup_after_exec): Declare. * fhandler_proc.cc: Use malloc/free/realloc throughout rather than cmalloc since buffers don't need to be propagated to subprocesses. * fhandler_registry.cc: Ditto. * fhandler_virtual.cc: Ditto. (fhandler_virtual::fixup_after_exec): Define. * fhandler_process.cc: Ditto for malloc/free/realloc. (process_listin): Add "cmdline". (fhandler_process::fill_filebuf): Implement PROCESS_CMDLINE. * miscfuncs.cc (isalpha_array): New array populated with xor values for alpha characters to switch from one case to another. * string.h (cygwin_strcasematch): New asm implementation of case match. * string.h (cygwin_nstrcasematch): New asm implementation of counted case match.
* 2002-10-30 Guido Serassio <serassio@libero.it>Danny Smith2002-10-302-1/+10
| | | | | * include/stdio.h (_getnaxstdio): Add prototype. (_setmaxstdio): Likewise.
* * pwdgrp.h (pwdgrp_read::open): Compare fh to INVALID_HANDLE_VALUE.Christopher Faylor2002-10-242-3/+6
|
* * ntsec.sgml: Correct some minor grammatical errors.Joshua Daniel Franklin2002-10-232-10/+15
|
* * dll.sgml: Simplify dll build instructions.Joshua Daniel Franklin2002-10-232-13/+36
|
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Nevermind. RevertChristopher Faylor2002-10-232-27/+30
| | | | everything to previous state wrt ntsec and exec bits.
* * shared.cc (shared_info::initialize): Use correct value for versionChristopher Faylor2002-10-233-2/+9
| | | | | | comparison. * include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD for magic calculation.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only do theChristopher Faylor2002-10-222-28/+34
| | | | | executable thing for #! scripts since .exe files wouldn't be executable in ntsec case regardless.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always considerChristopher Faylor2002-10-222-26/+34
| | | | .exe files and '#!' shell scripts to be executable.
* * cygthread.cc (cygthread::exiting): New variable.Christopher Faylor2002-10-225-105/+65
| | | | | | | | | | | | | | | | | | (cygthread::initialized): Delete. (cygthread::stub): Use exiting variable to determine when to exit. (cygthread::runner): Delete. (cygthread_protect): New variable. (cygthread::init): Don't start runner thread. Initialize muto for list protection. (cygthread::freerange): Return pointer to cygthread. (cygthread::operator new): Change logic to start threads on an as-needed basis. (cygthread::detach): Don't zero id. (cygthread::terminate): Don't kill any executing threads. Just set exiting flag. * cygthread.h (cygthread): Reflect above changes. * dcrt0.cc (dll_crt0_1): Move cygthread initialization later. * fork.cc (fork_child): Do fdtab fixup after dll fixup or (apparently) winsock may allocate memory in dll load address.
* * sec_helper.cc (cygsid::get_id): If the sid matches a sid stored inChristopher Faylor2002-10-223-25/+42
| | | | | | | cygheap->user, return the uid or gid from myself. * security.cc (alloc_sd): If gid == myself->gid, return the group sid from cygheap->user. Remove the test for uid == original_uid, which is counter-productive.
* * cygheap.cc (cygheap_fixup_in_child): Use user_heap element in cygheap.Christopher Faylor2002-10-2211-89/+142
| | | | | | | | | | | | | | | | (init_cheap): Ditto for declaration. * fork.cc (fork_parent): Use user_heap element in cygheap. * heap.h (inheap): Ditto. * heap.cc (sbrk): Ditto. (heap_init): Ditto. Reorganize to shrink heap chunk as required and record new value in cygheap. * dcrt0.cc (dll_crt0_1): More "move the cygthread init" games. * shared.cc (open_shared): Rework memory protection to properly deal with relocated shared segment. (shared_info::heap_chunk_size): Rename element to 'heap_chunk'. * shared_info.h (shared_info): Ditto for declaration. * strace.cc (strace::hello): Report on heap chunk size from cygheap since it may shrink.
* Change _function() to function() throughout.Christopher Faylor2002-10-2117-126/+164
| | | | | | | | | | | | | | | | | | * cygwin.din: Remove last vestiges (?) of newlib wrappers. * cygthread.cc (cygthread::detach): Always wait for event or suffer an apparently inavoidable race. * dcrt0.cc (dll_crt0_1): Allocate threads after stack has been relocated. * debub.cc (lock_debug): Don't acquire lock on exit. * fork.cc (fork_child): Recreate mmaps before doing anything else since Windows has a habit of using blocks of memory in the child that could previously have been occupied by shared memory in the parent. * mmap.cc (fhandler_disk_file::fixup_mmap_after_fork): Issue error here and provide some details about what went wrong. (fixup_mmaps_after_fork): Remove error message. * shared.cc (open_shared): Move warning message so that more detail is possible. * sigproc.cc (sigproc_init): Initialize sync_proc_subproc to avoid a race. (sigproc_terminate): Specifically wait for process thread to terminate.
* * cygthread.cc (cygthread::stub): Fix typo.Christopher Faylor2002-10-202-3/+9
| | | | (cygthread::terminate): Don't zero thread handle prior to using it.
* fix typoChristopher Faylor2002-10-201-1/+1
|
* missed checkinChristopher Faylor2002-10-201-1/+1
|
* fix typoChristopher Faylor2002-10-201-1/+1
|
* 2002-10-19 Kang Li <rubylith@users.sourceforge.net>Danny Smith2002-10-202-1/+5
| | | | * include/fcntl.h (O_SEQUENTIAL): Correct typo.