summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* fix typoChristopher Faylor2003-06-071-1/+1
|
* * poll.cc: Define FD_SETSIZE to ridiculously large number so that there will beChristopher Faylor2003-06-072-0/+6
| | | | no artificially large limits.
* * fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last ttyChristopher Faylor2003-06-072-1/+7
| | | | closes.
* * fhandler_socket.cc (fhandler_socket::connect): Change errorThomas Pfaff2003-06-072-6/+14
| | | | | handling for nonblocking connects to return EALREADY when connect is called more than once for the same socket.
* * cygwin.din: Add vsyslog.Corinna Vinschen2003-06-066-7/+28
| | | | | | | | | | * fhandler.cc (fhandler_base::write): Only make file sparse if the seeked area is >= 128K. * syslog.cc (vsyslog): New function, overtaking functionality from syslog. (syslog): Just call vsyslog. * include/cygwin/version.h: Bump API minor. * include/sys/syslog.h: Add vsyslog declaration.
* * cygthread.cc (cygthread::terminate_thread): Change system_printf toChristopher Faylor2003-06-052-1/+6
| | | | debug_printf.
* * shared.cc (shared_info::heap_chunk_size): Be really defensive about makingChristopher Faylor2003-06-052-0/+7
| | | | sure that heap_chunk is set.
* * path.cc (conv_path_list): Use correct value when calculating length to avoidChristopher Faylor2003-06-042-1/+6
| | | | a potential SEGV.
* 2003-06-03 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2003-06-042-25/+17
| | | | | | | * fhandler_disk_file.cc (fhandler_disk_file::fstat): Mark the pc as non-executable if the file cannot be opened for read. Retry query open only if errno is EACCES. Never change the mode, even if it is 000 when query open() fails.
* * configure.in: Allow any i?86 variant.Christopher Faylor2003-06-041-0/+5
| | | | * configure: Regenerate.
* * configure.in: Allow any i?86 variant.Christopher Faylor2003-06-032-2/+2
| | | | * configure: Regenerate.
* * fhandler_socket.cc (connect_thread): Remove.Corinna Vinschen2003-06-033-55/+77
| | | | | | | | | (accept_thread): Remove. (fhandler_socket::connect): Remove all special blocking handling. (fhandler_socket::accept): Ditto. * net.cc (cygwin_connect): Make blocking sockets temporarily non-blocking and call cygwin_select on them to be interruptible. (cygwin_accept): Ditto.
* * spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.Christopher Faylor2003-06-032-2/+6
|
* * cygthread.h (cygthread::terminate_thread): Mark private.Christopher Faylor2003-06-023-5/+16
| | | | | * cygthread.cc (cygthread::terminate_thread): Deallocate free_range thread stuff.
* * fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'Corinna Vinschen2003-06-022-2/+7
| | | | to `interrupted' as used in fhandler_socket::connect.
* * fhandler_socket.cc (fhandler_socket::connect): Simplify previousCorinna Vinschen2003-06-022-28/+16
| | | | | patch. (fhandler_socket::accept): Ditto.
* * fhandler_socket.cc: Include cygthread.h.Corinna Vinschen2003-06-022-110/+71
| | | | | | | | | (class sock_event): Remove. (thread_connect): New function. (thread_accept): Ditto. (fhandler_socket::connect): Use cygthread instead of socket event handling for blocking sockets. (fhandler_socket::accept): Ditto.
* * fhandler.cc (fhandler_base::write): Correct minor printf formatting styleChristopher Faylor2003-06-022-1/+6
| | | | glitch.
* 2003-06-01 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2003-06-012-12/+17
| | | | | * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Assume an existing directory is a root if FindFirstFile fails.
* * path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok wasChristopher Faylor2003-05-302-3/+9
| | | | actually valid. Fix it.
* * cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's haveChristopher Faylor2003-05-304-15/+22
| | | | | | problems with. * path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple exec tests away from filesystem tests.
* * include/sys/param.h: Add DEV_BSIZE.Corinna Vinschen2003-05-302-1/+10
|
* * fhandler_socket.cc (fhandler_socket::dup): Rearrange. FixCorinna Vinschen2003-05-292-22/+29
| | | | conditional.
* * mkvers.sh: Avoid "-dontuse" tags.Christopher Faylor2003-05-295-35/+74
| | | | | | | | | | * path.cc (path_conv::check): Set exec state based on known situations. * path.cc (mount_item::fnmunge): New function. (mount_item::build_win32): New function. (mount_info::conv_to_win32_path): Use build_win32 to build windows path. * path.h (mount_item::fnmunge): Declare new function. (mount_item::build_win32): Ditto. * sys/mount.h (MOUNT_ENC): Define.
* * fhandler_socket.cc (fhandler_socket::dup): If running impersonated,Corinna Vinschen2003-05-282-10/+24
| | | | | | revert to original account before calling fixup_before_fork_exec and impersonate again afterwards. Change comment accordingly. Clean up error handling and debug output.
* * fhandler_socket.cc (sock_event::~sock_event): New method.Thomas Pfaff2003-05-272-21/+34
| | | | | | | (sock_event::load): Change to void. Check if winsock2 is available. (socke_event::wait): Return 0 if interruptible mode is not available. (fhandler_socket::connect): Remove checks for winsock2 availability. (fhandler_socket::accept): Ditto.
* * fhandler_socket.cc (fhandler_socket::dup): First try duplicatingCorinna Vinschen2003-05-272-7/+13
| | | | using WSADuplicateSocket/WSASocket, if that fails, try DuplicateHandle.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): FilterCorinna Vinschen2003-05-272-0/+8
| | | | permissions throug umask on FAT or if ntsec is off.
* * syscalls.cc (statfs): Call GetDiskFreeSpaceEx before GetDiskFreeSpace.Corinna Vinschen2003-05-262-3/+10
|
* * fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZECorinna Vinschen2003-05-262-1/+6
| | | | instead of numeric constant.
* * fhandler_socket.cc (fhandler_socket::connect): Guard calls toCorinna Vinschen2003-05-262-3/+9
| | | | | sock_event methods by a check for WinSock2 availability. (fhandler_socket::accept): Ditto.
* * fhandler.h: Rename FH_W95LSBUG flag to FH_LSEEKED.Corinna Vinschen2003-05-264-54/+92
| | | | | | | | | | | | | | (fhandler_base::set_did_lseek): Rename from set_check_win95_lseek_bug. (fhandler_base::get_did_lseek): Rename from get_check_win95_lseek_bug. (fhandler_base::set_fs_flags): New method. (fhandler_base::get_fs_flags): Ditto. * fhandler.cc (fhandler_base::write): Make 64 bit clean. Convert file to a "sparse" file when writing after a long lseek (>64K) beyond EOF. (fhandler_base::lseek): Call set_did_lseek() instead of set_check_win95_lseek_bug(). (fhandler_base::fhandler_base): Initialize fs_flags to 0. * fhandler_disk_file.cc (fhandler_disk_file::open): Don't create files as "sparse" unconditionally. Set fs_flags member.
* * autoload.cc (GetDiskFreeSpaceEx): Add.Corinna Vinschen2003-05-254-35/+45
| | | | | | | | * syscalls.cc (statfs): Call full_path.root_dir() instead of rootdir(full_path). Use GetDiskFreeSpaceEx when available and report space available in addition to free space. * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Do not call FindFirstFile for disk root directories.
* * fhandler_process.cc (format_process_stat): use PagefileUsageCorinna Vinschen2003-05-242-2/+8
| | | | | instead of VirtualSize. (get_mem_values): Ditto.
* * shared_info.h: Match shared_name declaration with below change.Corinna Vinschen2003-05-216-14/+35
| | | | | | | | | | | * shared.cc (shared_name): Use incoming char * parameter instead of local static buffer. (open_shared): Accomodate new calling convention for shared_name. * exceptions.cc (events_init): Ditto. * sigproc.cc (getsem): Ditto. * syscalls.cc (login): Ditto. (logout): Ditto. (pututline): Ditto.
* * fhandler_socket.cc (secret_event_name): Return void. Use incomingCorinna Vinschen2003-05-202-9/+16
| | | | | | | char *parameter instead of local static buffer. (fhandler_socket::create_secret_event): Accomodate new calling convention for secret_event_name. (fhandler_socket::close_secret_event): Ditto.
* * fhandler_socket.cc (SECRET_EVENT_NAME): Remove.Corinna Vinschen2003-05-205-36/+122
| | | | | | | | | | | | | | | | | (ENTROPY_SOURCE_NAME): Ditto. (secret_event_name): New static function. Create shared event name with "Global\" prefix on systems supporting terminal services. (fhandler_socket::set_connect_secret): Fix conditional. (fhandler_socket::create_secret_event): Create secret event using secret_event_name(). (fhandler_socket::close_secret_event): Ditto. * shared.cc (shared_name): Create shared object name with "Global\" prefix on systems supporting terminal services. * wincap.cc: Set has_terminal_services capability throughout. (wincap_2003): New global object representing Windows 2003 Server capabilities. (wincapc::init): Accomodate Windows 2003 Server. * wincap.h (struct wincaps): Add has_terminal_services capability.
* * winsup/cygwin/include/cygwin/version.h: Bump API minor version.Corinna Vinschen2003-05-205-15/+78
| | | | | | * winsup/cygwin/include/cygwin/types.h: Define key_t as long long. * winsup/cygwin/cygwin.din: Add ftok, _ftok. * winsup/cygwin/ipc.cc (ftok): Rework implementation.
* * spawn.cc (spawn_guts): Show more of command line in strace output.Christopher Faylor2003-05-192-4/+8
|
* * thread.h (pthread::init_mainthread): Remove function parameter.Thomas Pfaff2003-05-154-13/+23
| | | | | | | | | | | (MTinterface::Init): Ditto. * thread.cc (MTinterface::Init): Remove function parameter. Always initialize reent_key. (pthread::init_mainthread): Remove function parameter. (MTinterface::fixup_after_fork): Fix pthread::init_mainthread call. * dcrt0.cc (dll_crt_0_1) Fix calls to MTinterface::Init and pthread::init_mainthread. Call pthread::init_mainthread only when not forked.
* * fhandler_proc.cc (format_proc_meminfo): Make swap memory outputCorinna Vinschen2003-05-152-2/+7
| | | | Linux style values.
* * include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.Corinna Vinschen2003-05-132-0/+12
|
* * Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS.Corinna Vinschen2003-05-1211-12/+368
| | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_virtual::fstat): Remove useless declaration. * fhandler_virtual.cc: Remove _COMPILING_NEWLIB define. * ipc.cc (ftok): Use stat64. * syscalls.cc (_fstat64): Remove alias. (_fstat): Ditto. (_stat): Ditto. (_fstat64_r): New function. (_fstat_r): Ditto. (_stat64_r): Ditto. (stat_r): Ditto. * crt0.o: New file, moved from newlib. * include/sys/param.h: Ditto. * include/sys/utime.h: Ditto. * include/sys/utmp.h: Ditto. * include/sys/dirent.h: Ditto. Expose different struct dirent, dependening of the environment.
* Replace ino_t by __ino64_t throughout.Corinna Vinschen2003-05-117-8/+13
|
* * include/cygwin/types.h: Add key_t typedef.Corinna Vinschen2003-05-112-0/+9
|
* * dir.cc (readdir): Fill out new old_d_ino field.Christopher Faylor2003-05-1111-56/+82
| | | | | | | | | | | | | | | | * fhandler.h (fhandler_base::namehash): Define as ino_t. (fhandler_base::get_namehash): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Accommodate new 64 bit st_ino. * fhandler_socket.cc (fhandler_socket::fstat): Ditto. * path.cc (hash_path_name): Return ino_t. * syscalls.cc (stat64_to_stat32): Convert 64 bit inode to 32 bit. * winsup.h (hash_path_name): Declare as returning ino_t. * include/cygwin/stat.h (__stat32): Use 32 bit st_ino. (__stat64): Use 64 bit st_ino. * include/cygwin/types.h (__ino64_t): Define. (__ino32_t): Ditto. (ino_t): Define appropriately.
* * Makefile.in (NEW_FUNCTIONS): All 32/64 from 0.79 API getCorinna Vinschen2003-05-094-93/+104
| | | | | | leading underscore. * cygwin.din: Ditto. * include/cygwin/version.h: Bump API minor number.
* * include/cygwin/config.h: New file.Corinna Vinschen2003-05-092-0/+43
|
* revert errnoneous checkinChristopher Faylor2003-05-091-129/+127
|
* * cygthread.cc (cygthread::detach): Prioritize waiting for I/O completion overChristopher Faylor2003-05-093-132/+139
| | | | waiting for signal delivery.