summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define.Corinna Vinschen2005-05-292-2/+4
|
* * thread.h (pthread_key::set): Inline.Christopher Faylor2005-05-293-20/+10
| | | | | | (pthread_key::get): Ditto. * thread.cc (pthread::set): Delete. (pthread::get): Ditto.
* * cygwin.din: Remove signal front end from pthread_[gs]etspecific.Christopher Faylor2005-05-292-2/+6
|
* * fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.Christopher Faylor2005-05-292-1/+5
|
* * times.cc (time_ms::usecs): Coerce comparison to signed or whole test is aChristopher Faylor2005-05-282-1/+6
| | | | no-op.
* white spaceChristopher Faylor2005-05-271-1/+1
|
* * cygheap.h: Reference _cygheap_start via .cygheap section.Christopher Faylor2005-05-273-3/+13
| | | | | * environ.cc: Fix force_into_environment typo throughout. (spenvs): Export CYGWIN_DEBUG if DEBUGGING.
* * include/cygwin/version.h: Bump DLL minor number to 18.Christopher Faylor2005-05-262-1/+5
|
* * ChangeLog: Remove accidentally checked in entry.Corinna Vinschen2005-05-251-17/+0
|
* * fhandler.h (fhandler_base::mkdir): New virtual method.Christopher Faylor2005-05-256-98/+161
| | | | | | | | | | | | | | (fhandler_base::rmdir): Ditto. (fhandler_disk_file:mkdir): New method. (fhandler_disk_file:rmdir): Ditto. * dir.cc (mkdir): Implement with fhandlers. (rmdir): Ditto. * fhandler.cc (fhandler_base::mkdir): New virtual method. (fhandler_base::rmdir): Ditto. (fhandler_disk_file::mkdir): New method. (fhandler_disk_file::rmdir): Ditto. fhandler_random.cc: white space.
* * include/cygwin/version.h: Bump API minor number to 129.Christopher Faylor2005-05-252-1/+6
|
* Add top commentChristopher Faylor2005-05-251-0/+6
|
* * cygwin.din: Export mkdtemp.Christopher Faylor2005-05-254-2/+190
| | | | | * mktemp.cc: New file. * Makefile.in (DLL_OFILES): Add mktemp.o
* * include/stdint.h (INTMAX_C, UINTMAX_C): Fix definition.Corinna Vinschen2005-05-232-2/+23
|
* * spawn.cc (find_exec): Accept a PATH-like string in place of an environmentChristopher Faylor2005-05-226-8/+38
| | | | | | | | | | variable. * dlfcn.cc (get_full_path_of_dll): Search /usr/bin (for windows compatibility) and /usr/lib (for UNIX compatibility) when looking for shared libraries. * environ.cc (conv_envvars): Put back LD_LIBRARY_PATH since it is used by get_full_path_of_dll(). * errno.cc (errmap): Map MOD_NOT_FOUND to ENOENT. * cygmagic: Remove debugging cruft.
* * include/cygwin/in.h: Add comment.Corinna Vinschen2005-05-192-1/+7
|
* * include/cygwin/in.h: Define IPPROTO_xxx values as macros toCorinna Vinschen2005-05-192-1/+16
| | | | accomodate SUSv3.
* fix commentChristopher Faylor2005-05-191-1/+1
|
* fix commentChristopher Faylor2005-05-191-1/+1
|
* * include/limits.h: Include features.h, as on linux.Christopher Faylor2005-05-192-1/+8
|
* * include/endian.h: New file.Christopher Faylor2005-05-192-0/+21
|
* * cygwin.sc: Add Dwarf-2 debug sections.Corinna Vinschen2005-05-192-0/+17
|
* * mmap.cc (mmap64): Make granularity an automatic variable.Corinna Vinschen2005-05-192-1/+5
|
* * fhandler.h (fhandler_cygdrive::seekdir): Delete declaration.Christopher Faylor2005-05-194-26/+16
| | | | | | | | | | (fhandler_cygdrive::seekdir): Delete. * fhandler.h (fhandler_cygdrive::iscygdrive_root): Delete method. (fhandler_cygdrive::telldir): Delete declaration. * fhandler_disk_file.cc: Remove all uses of fhandler_cygdrive::iscygdrive_root. (fhandler_disk_file::mkdir): New method. (fhandler_disk_file::rmdir): Ditto. (fhandler_cygdrive::telldir): Delete.
* * external.cc: Move pids declaration to file scope and use less enthusiasticChristopher Faylor2005-05-195-4/+15
| | | | | | | | constructor. * pinfo.h (winpids::winpids): Remove default setting. * fhandler_fifo.cc (fhandler_fifo::open_not_mine): Accommodate removal of default setting. * fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* * cygtls.h (_local_storage::unknown_thread_name): New buffer.Christopher Faylor2005-05-186-65/+75
| | | | | | | | * tlsoffsets.h: Regenerate. * cygthread.cc (cygthread::name): Use new thread-local buffer. * exceptions.cc (handle_exceptions): Avoid unnecessary initialization of static variables to zero. * fork.cc (slow_pid_reuse) Ditto.
* * mmap.cc (mmap64): Avoid compiler warning.Corinna Vinschen2005-05-184-4/+8
| | | | | * ntea.cc (NTReadEA): Ditto. * hires.h (hires_base): Remove useless usecs function.
* * fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it'sCorinna Vinschen2005-05-183-7/+6
| | | | | equivalent to fhandler_virtual::telldir now anyway. * fhandler.h (class fhandler_netdrive): Remove telldir.
* * fhandler_netdrive.cc (fhandler_netdrive::telldir): Implement.Corinna Vinschen2005-05-182-5/+16
| | | | | | (fhandler_netdrive::seekdir): Implement. (fhandler_netdrive::closedir): Call rewinddir to have only one point of calling WNetCloseEnum.
* * fhandler.h (class fhandler_netdrive): Add method rewinddir.Corinna Vinschen2005-05-173-36/+116
| | | | | | | | | | | | * fhandler_netdrive.cc (struct netdriveinf): New structure to store thread arguments. (thread_netdrive): Thread handling all potentially blocking WNet... calls. (create_thread_and_wait): Start and wait for above thread. (fhandler_netdrive::exists): Change to call create_thread_and_wait instead of calling WNet... function. (fhandler_netdrive::readdir): Ditto. Fix error handling. (fhandler_netdrive::rewinddir): New method.
* * external.cc (cygwin_internal): Avoid compiler warning.Corinna Vinschen2005-05-172-1/+6
|
* white spaceChristopher Faylor2005-05-171-1/+1
|
* * dcrt0.cc (dll_crt0_0): Don't do fixup_after_exec if dynamically loaded sinceChristopher Faylor2005-05-172-2/+7
| | | | the state of fds is unknown at this point.
* * include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.Christopher Faylor2005-05-174-4/+16
| | | | | * external.cc (cygwin_internal): Implement CW_DEBUG_SELF. * init.cc (dll_entry): Minor rearrangement of code.
* * path.cc (path_conv::check): Remove embedded dots before slashes.Christopher Faylor2005-05-172-2/+6
|
* * environ.cc (conv_envvars): Remove LD_LIBRARY_PATH entirely.Corinna Vinschen2005-05-162-4/+5
| | | | It doesn't belong here.
* * environ.cc (conv_envvars): Treat LD_LIBRARY_PATH as path list.Corinna Vinschen2005-05-152-2/+8
|
* * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): CheckCorinna Vinschen2005-05-143-2/+14
| | | | | | return code from GetFileSize and set file size to 0 if necessary. * fhandler_netdrive.cc (fhandler_netdrive::fstat): Set permissions to read/execute for all.
* really fix typo.Christopher Faylor2005-05-131-1/+1
|
* fix typoChristopher Faylor2005-05-131-1/+1
|
* * path.cc (normalize_posix_path): Do normalization on . and .. after a '//'.Christopher Faylor2005-05-132-5/+6
|
* * fhandler.h (fhandler_netdrive::readdir): Remove useless comment.Corinna Vinschen2005-05-132-1/+4
|
* * autoload.cc (WNetGetResourceParentA): Import.Corinna Vinschen2005-05-134-4/+125
| | | | | | | | | | | | | | | (WNetOpenEnumA): Import. (WNetEnumResourceA): Import. (WNetCloseEnum): Import. * fhandler.h (fhandler_netdrive::telldir): Add declaration. (fhandler_netdrive::seekdir): Ditto. (fhandler_netdrive::closedir): Ditto. * fhandler_netdrive.cc: Drop explicit including windows.h. Include winnetwk.h instead of shlwapi.h. Include dirent.h. (fhandler_netdrive::readdir): Implement. (fhandler_netdrive::telldir): New method. (fhandler_netdrive::seekdir): New method. (fhandler_netdrive::closedir): Ditto.
* Remove PC_FULL from path_conv usage throughout.Christopher Faylor2005-05-1310-28/+34
| | | | | | * path.h (enum pathconv_arg): Change PC_FULL to PC_NOUILL. * path.cc (path_conv::check): Test for PC_NOFULL rather than !PC_FULL. (cygwin_conv_to_win32_path): Use PC_NOFULL to force non-absolute path.
* * fhandler_netdrive.cc (fhandler_netdrive::exists): Assert that "//" exists.Christopher Faylor2005-05-132-1/+9
|
* * cygtls.cc (_cygtls::remove): Eliminate compiler warning.Christopher Faylor2005-05-138-25/+71
| | | | | | | | | | | | | | | * dir.cc (mkdir): Check path for writability. (rmdir): Ditto. Remove check for special directories. * path.cc (path_conv::check): Set PATH_RO for virtual devices. Set error if read-only and asked for writability. * path.h (pathconv_arg): Add PC_WRITABLE. (path_types): Add PATH_RO. (path_conv::isro): Add (currently unused) check for read-only filesystem. Return "ENOSHARE" when we know a share doesn't exist. * include/sys/mount.h: Add MOUNT_RO flag. * autoload.cc (WNetGetResourceInformationA): Import. * fhandler_netdrive.cc (fhandler_netdrive::exists): Detect actual existence of remote system rather than always assuming that it exists.
* * dcrt0.cc (do_global_dtors): Don't call dll_global_dtors here.Christopher Faylor2005-05-112-4/+12
| | | | | | (__main): Reinstate atexit of do_global_dtors. (cygwin_exit): Call dll_global_dtors here. (do_exit): And here.
* * cygtls.cc (_cygtls::remove): Clear exitsock after close.Christopher Faylor2005-05-113-4/+14
| | | | | * fhandler_console.cc (fhandler_console::write_normal): Store character in a local variable for potential future inspection.
* * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o.Corinna Vinschen2005-05-1012-803/+1179
| | | | | | | | | | | | | | | | | | | | | | | | * devices.h (FH_KMSG): Define new device. * devices.in: Add "/dev/kmsg" entry. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Handle case FH_KMSG. * fhandler.h (class fhandler_mailslot): New class. (class select_stuff): Add device_specific_mailslot pointer. * fhandler_mailslot.cc: New file. * select.cc (peek_mailslot): New function. (verify_mailslot): Ditto. (struct mailslotinf): New stuct to handle select on mailslots. (thread_mailslot): New function. (start_thread_mailslot): Ditto. (mailslot_cleanup): Ditto. (fhandler_mailslot::select_read): New method. * syslog.cc (klog_guard): New muto. (dev_kmsg): Local mailslot for kernel message device. (vklog): New function. (klog): Ditto. * winsup.h (vklog): Declare. (klog): Ditto. * include/sys/syslog.h: Define _PATH_KLOG.
* * dcrt0.cc (dll_crt0_1): Call cygwin_exit to ensure that destructors areChristopher Faylor2005-05-102-1/+8
| | | | handled correctly.