summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * net.cc (get_95_ifconf): Using other registry values pointing toCorinna Vinschen2001-10-102-49/+31
| | | | correct networkdevice identification for Windows95.
* New entries:David Starks-Browning2001-10-101-2/+29
| | | | | | | My application cannot locate cygncurses5.dll!!! Why is Cygwin suddenly @emph{so} slow? Modified: Why doesn't //c (for C:) work anymore?
* Throughout, rename PROC_FORK1 to PROC_FORK.Christopher Faylor2001-10-106-41/+73
| | | | | | | | | | | | | | | | | | * child_info.h: Rename PROC_* to _PROC_*. Define PROC_* with additional testing magic. Eliminate old PROC_FORK and rename PROC_FORK1 to PROC_FORK. * dcrt0.cc (_cygwin_testing_magic): New variable. Added to magic number in proc_info. (alloc_stack): Eliminate old PROC_FORK test. (dll_crt0_1): Ditto. Use _PROC_* enums for test. Subtract _cygwin_testing_magic from child_proc_info->type so that normal cygwin programs invoked by test suite programs do not consider themselves to be in a cygwin environment. (_dll_crt0): Ditto. Move environment checks to initial_env function to conserve on stack space. (initial_env): New function. Checks for testing and debugging environment variables. * init.cc (cygwin_hmodule): Move declaration. * winsup.h: Declare variables used for cygwin testing.
* * Makefile.in (MINGW_INCLUDES): Accomodate changes in Makefile.common.Christopher Faylor2001-10-102-1/+5
|
* * Makefile.common: Avoid adding -I options to compile if they already exist inChristopher Faylor2001-10-102-5/+24
| | | | CC or C*FLAGS. This prevents warnings from newer versions of gcc.
* * uinfo.cc (internal_getlogin): Reorganize slightly to minimize work in defaultChristopher Faylor2001-10-095-14/+24
| | | | condition.
* fix typosEgor Duda2001-10-091-6/+6
|
* * fhandler.cc (fhandler_disk_file::open): Add missing case clash check.Corinna Vinschen2001-10-092-0/+11
|
* * winsup.api/mmaptest01.c: Add several tests on mmaps. Use libltp.Corinna Vinschen2001-10-083-19/+87
| | | | * winsup.api/winsup.exp: Link all tests agains libltp.
* * dtable.cc (dtable::build_fhandler): Allocate correct amount for givenChristopher Faylor2001-10-083-28/+48
| | | | | | fhandler class. * fhandler.h (fhandler_union): Properly define rather than relying on fhandler_console being "big enough".
* * external.cc (fillout_pinfo): Reset counter whenever we initialize the pidChristopher Faylor2001-10-082-2/+10
| | | | list.
* * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor cleanup.Christopher Faylor2001-10-083-22/+21
|
* * path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it hasChristopher Faylor2001-10-073-3/+22
| | | | | special meaning on NT. * syscalls.cc (access): Use stat_worker.
* merge from gccDJ Delorie2001-10-073-6/+11
|
* fix typoChristopher Faylor2001-10-061-1/+1
|
* * fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record itChristopher Faylor2001-10-063-10/+19
| | | | | | | as non-inheritable for debugging purposes in case there is a subsequent fork or exec. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Allow fork_fixup to call ProtecHandle.
* * path.cc (get_raw_device_number): Correct length arguments for wdeveqn.Christopher Faylor2001-10-052-2/+7
|
* * winsup.api/nullgetcwd.c: New file. Check that NULL first argument to getcwdChristopher Faylor2001-10-052-0/+21
| | | | works.
* * path.cc (getcwd): Allow NULL first argument.Christopher Faylor2001-10-052-1/+5
|
* Revert incorrect checkins.Christopher Faylor2001-10-053-8/+1
|
* * heap.h (inheap): Check for NULL.Christopher Faylor2001-10-055-2/+13
|
* Add second path_conv * argument to fstat()s throughout.Christopher Faylor2001-10-058-213/+223
| | | | | | | | | | | | | | | | | | | | | | * fhandler.h: Change read and fstat to regparm/stdcall throughout. (fhandler_base::fstat): Just declare. Don't define. (fhandler_disk_file::fstat_helper): Declare. * fhandler.cc (fhandler_base::fstat): Move here from fhandler.h, adapt from former stat_dev(). (fhandler_disk_file::fstat): Move most of the disk-file-specific logic from stat_worker to here. Use fstat_helper to derive final fstat output. (fhandler_disk_file::fstat_helper): New method, renamed from former fstat method. (num_entries): Moved here from syscalls.cc. * fhandler_mem.cc (fhandler_dev_mem::fstat): Use base class to initialize most stuff. Invert has_physical_mem_access test for establishing permissions. * fhandler_raw.cc (fhandler_dev_raw::fstat): Eliminate unneed test and memory clearing. Use base class to initialize most stuff. * syscalls.cc (stat_dev): Eliminate. (stat_worker): Simply call fstat method to generate fstat output. Move all device specific code to appropriate fstats. * dir.cc (opendir): Pass correct arg to stat_worker to allow following symlinks.
* * winsup.api/systemcall.c (main): Change some messages for clarity.Christopher Faylor2001-10-052-2/+6
|
* * winsup.api/systemcall.c: New file. Check for system call problems.Christopher Faylor2001-10-052-0/+62
|
* * spawn.cc (perhaps_suffix): Return NULL on non-existence of file as well asChristopher Faylor2001-10-052-1/+7
| | | | | "directoryness". Previous code modified on 2001/09/30 actually had an arguable bug which was unmasked by the change on that day.
* * path.cc (path_conv::check): Return ENOTDIR when leading device and trailingChristopher Faylor2001-10-052-0/+10
| | | | component.
* * syscalls.cc (stat_worker): Make global. Accept path_conv parameter forChristopher Faylor2001-10-056-60/+102
| | | | | | | | | | | passing information back to caller. * winsup.h: Declare stat_worker. * dir.cc (opendir): Use stat_worker rather than stat and pass path_conv parameter to stat_worker for later inspection. * syslog.cc (syslog): Teach syslog about syslog priorities other than LOG_ERR, LOG_WARNING and LOG_INFO * path.cc (path_conv::check): Don't perform file system or rootdir checks on devices.
* * dcrt0.cc (dll_crt0_1): Don't close hexec_proc if it is NULL.Christopher Faylor2001-10-0422-208/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fork.cc (vfork): Add debugging statements. * path.cc (get_device_number): Make static. Rewrite to inspect both unix and windows paths. (get_raw_device_number): Just check for parts of raw device that we care about. (get_devn): New function, pulled from get_device_number. (win32_device_name): Accomodate arg changes to get_device_number. (mount_info::get_device_number): Call get_device_number on translated Windows path. * spawn.cc (spawn_guts): Don't treat P_VFORK differently from P_NOWAIT. Add handle to child's shared region to child so that it will be preserved if the parent goes away. * fhandler.h: Throughout, simplify to one open method for all fhandler classes, requiring a path_conv first element. * fhandler.cc (fhandler_base::open): Remove obsolete method. Generalize to require path_conv * as first argument. (fhandler_disk_file::open): Remove obsolete method. (fhandler_disk_file::open): Use path_conv pointer rather than reference. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Use new open method. (fhandler_dev_clipboard::open): Accomodate new argument for open methods. * fhandler_console.cc (fhandler_console::open): Ditto. (fhandler_console::dup): Use new open method. (fhandler_console::fixup_after_fork): Ditto. (fhandler_console::fixup_after_exec): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::open): Accomodate new argument for open methods. * fhandler_floppy.cc (fhandler_dev_floppy::open): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_random (fhandler_dev_random::open): Ditto. * fhandler_raw.cc (fhandler_dev_raw::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tape.cc (fhandler_dev_tape::open): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. (fhandler_pty_master::open): Ditto. * fhandler_windows.cc (fhandler_windows::open): Ditto. * fhandler_zero.cc (fhandler_dev_zero::open): Ditto. * fhandler_socket.cc (fhandler_socket::set_connect_secret): Accomodate new argument for open methods. * syscalls.cc (_open): Ditto. (stat_worker): Ditto.
* Add support for -z nocopyreloc.Alan Modra2001-10-032-0/+8
|
* * cygheap.cc (cfree): Remove malloc debugging probe.Christopher Faylor2001-10-038-76/+120
| | | | | | | | | | | | | | | | | | | | | | | * dlmalloc.c (errprint): Remove abort() call which causes interesting error message printing to abort prematurely. * environ.cc: Sprinkle MALLOC_CHECKs liberally throughout. (_addenv): Allocate two empty elements at end of environ to (apparently) work around problems with some buggy applications. (winenv): Avoid calling alloca if no forced environment variable is present. * exceptions.cc (open_stackdumpfile): Don't print "Dumping stack trace to..." when running in a cygwin environment (i.e., the parent is a cygwin process). * dtable.cc (dtable::init_std_file_from_handle): Move device type detection code from build_fhandler here since it is only used by this function. (dtable::build_fhandler_from_name): New method. Renamed from dtable::build_fhandler. (dtable::build_fhandler): Use build_fhandler_from_name. (cygwin_attach_handle_to_fd): Ditto. * syscalls.cc (_open): Ditto. (stat_worker): Ditto. * dtable.h (dtable::build_fhandler_from_name): Rename declaration from dtable::build_fhandler.
* * gettext.m4: Test po/POTFILES.in exists before trying to read.Alan Modra2001-10-032-2/+6
|
* Tue Oct 2 22:25:23 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-10-022-0/+69
| | | | * how-fhandlers-work.txt: New file.
* * common.h (NLM_CAT, NLM_CAT3): Don't define.Alan Modra2001-10-022-26/+31
| | | | | (NLM_CAT4): Update conditions under which this is defined. Document why CONCAT4 can't be used.
* * dtable.h (dtable::build_fhandler): Make path_conv parameter non-optional.Christopher Faylor2001-10-026-88/+103
| | | | | | | | | | | | | | | | | | | | (dtable::init_std_file_from_handle): Eliminate name parameter. * dtable.cc (stdio_init): Don't pass bogus name to init_std_file_from_handle. The function will figure out the name itself. (dtable::init_std_file_from_handle): Eliminate name parameter. Assume that we're always called with an appropriate fd. Pass name as NULL if we can't simply figure it out from context. (cygwin_attach_handle_to_fd): Pass path_conv argument to build_fhandler. (dtable::build_fhandler): Make path_conv argument mandatory. Eliminate specific call to get_device_number. With unknown device names, set name from handle context for parsing by path_conv. (dtable::build_fhandler): Pass path_conv argument to build_fhandler. * path.h (path_conv::set_isdisk): Set disk device type. (path_conv::is_device): Don't consider FH_DISK a "device". * syscalls.cc (_open): Pass path_conv argument by reference. (stat_worker): Ditto. (_rename): Use path_conv operators. Add bounds to DeleteFile/MoveFile for loop.
* * cygwin.din: export strtoll and strtoullChristopher Faylor2001-10-012-0/+8
|
* 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>Jeff Johnston2001-10-0110-22/+325
| | | | | | | | | | | | | | | | | | | * libc/include/stdlib.h: add declarations for _strtoull_r, _strtoll_r, strtoull, and strtoll. * libc/stdio/local.h: remove declarations of __strtoull_r and __strtoll_r. * libc/stdio/vfscanf.c(__svfscanf_r): call _strtoull_r instead of __strtoull_r. Ditto _strtoll_r vs. __strtoll_r. * libc/stdlib/Makefile.am: add new files to .c list and .def list * libc/stdlib/Makefile.in: regenerate * libc/stdlib/strtoll_r.c: rename __strtoll_r as _strtoll_r * libc/stdlib/strtoull_r.c: rename __strtoull_r as _strtoull_r * libc/stdlib/strtoull.c: new file * libc/stdlib/strtoll.c: new file
* Add "path.h" include throughout, where needed. Use new path_conv methods andChristopher Faylor2001-10-0137-292/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | operators to simplify testing for directory and attributes, throughout. * path.h (path_conv::exists): New method. (path_conv::has_attribute): Ditto. (path_conv::isdir): Ditto. (path_conv::DWORD &): New operator. (path_conv::int &): Ditto. * dir.cc (rmdir): Eliminate a goto. * dtable.cc (dtable::build_fhandler): Accept opt and suffix info for path_conv.check. Return fh == NULL on path_conv error. Pass unit to set_name as appropriate. (dtable::reset_unix_path_name): New method. * dtable.h (dtable): Declare new method. Reflect arg changes to build_fhandler. * fhandler.cc (fhandler_disk_dummy_name): Eliminate. (fhandler_base::set_name): Expect paths to be NULL. Build unix_path_name from win32_path_name when it is a device. (fhandler_base::reset_unix_path_name): New method. (fhandler_base::raw_read): Report EISDIR when ERROR_INVALID_FUNCTION or ERROR_INVALID_PARAMETER and reading a directory. (fhandler_disk_file::fstat): Don't call stat_dev since we should now never be calling fhandler_disk_file methods with devices. (fhandler_base::fhandler_base): Clear {unix,win32}_path_name. (fhandler_base::~fhandler_base): Always free {unix,win32}_path_name. (fhandler_disk_file::fhandler_disk_file): Remove set_no_free_names kludge. (fhandler_disk_file::open): Ditto. * fhandler.h (fhandler_base::no_free_names): Eliminate. (fhandler_base::set_no_free_names): Ditto. * fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Don't set unix_path_name here. * path.cc (fchdir): Lock fd table throughout. Use new dtable::reset_unix_path_name method to reset path. * syscalls.cc (stat_worker): Reorganize to always call fstat method. Pass path_conv method to fhandler_*::open. (chroot): Elminate a goto.
* * environ.cc (winenv): Allocate exact amount of space needed for forced windowsChristopher Faylor2001-09-302-3/+11
| | | | environment variable rather than just using MAX_PATH.
* * Makefile.in: Depend on stamp to ensure rebuilding. Remove stamp file whenChristopher Faylor2001-09-302-1/+10
| | | | we've just built the DLL.
* Mon Oct 1 00:34:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-09-302-2/+7
| | | | | * thread.cc (pthread_cond_dowait): Hopefully eliminate a race on multiple thread wakeups.
* * Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).Alexandre Oliva2001-09-292-2/+6
|
* Sat Sep 29 18:26:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-09-294-153/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pthread.cc (pthread_cond_timedwait): Deleted - exported from thread.cc. (pthread_cond_wait): Deleted - exported from thread.cc. * thread.cc (pthread_cond::BroadCast): Update to use the new syntax for verifyable_object_isvalid (). (pthread_cond::Signal): Ditto. Also attempt to fix the lost signal race with pthread_cond::TimedWait(). (check_valid_pointer): Change definiton to void const *. (verifyable_object_isvalid): Add new parameter to allow identification of static initializers, and return a enum rather than magic numbers. (__pthread_create): Ditto. (__pthread_cleanup): Ditto. (__pthread_attr_init): Ditto. (__pthread_attr_getinheritsched): Ditto. (__pthread_attr_getschedparam): Ditto. (__pthread_attr_getschedpolicy): Ditto. (__pthread_attr_getscope): Ditto. (__pthread_attr_setdetachstate): Ditto. (__pthread_attr_getdetachstate): Ditto. (__pthread_attr_setinheritsched): Ditto. (__pthread_attr_setschedparam): Ditto. (__pthread_attr_setschedpolicy): Ditto. (__pthread_attr_setscope): Ditto. (__pthread_attr_setstacksize): Ditto. (__pthread_attr_getstacksize): Ditto. (__pthread_attr_destroy): Ditto. (__pthread_join): Ditto. (__pthread_detach): Ditto. (__pthread_suspend): Ditto. (__pthread_continue): Ditto. (__pthread_getschedparam): Ditto. (__pthread_getsequence_np): Ditto. (__pthread_key_create): Ditto. (__pthread_key_delete): Ditto. (__pthread_setschedparam): Ditto. (__pthread_setspecific): Ditto. (__pthread_getspecific): Ditto. (__pthread_cond_destroy): Ditto. (__pthread_cond_init): Ditto. (__pthread_cond_broadcast): Ditto. (__pthread_cond_signal): Ditto. (__pthread_condattr_init): Ditto. (__pthread_condattr_getpshared): Ditto. (__pthread_condattr_setpshared): Ditto. (__pthread_condattr_destroy): Ditto. (__pthread_kill): Ditto. (__pthread_mutex_init): Ditto. (__pthread_mutex_getprioceiling): Ditto. (__pthread_mutex_lock): Ditto. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): Ditto. (__pthread_mutexattr_getprotocol): Ditto. (__pthread_mutexattr_getpshared): Ditto. (__pthread_mutexattr_gettype): Ditto. (__pthread_mutexattr_init): Ditto. (__pthread_mutexattr_destroy): Ditto. (__pthread_mutexattr_setprotocol): Ditto. (__pthread_mutexattr_setprioceiling): Ditto. (__pthread_mutexattr_getprioceiling): Ditto. (__pthread_mutexattr_setpshared): Ditto. (__pthread_mutexattr_settype): Ditto. (__sem_init): Ditto. (__sem_destroy): Ditto. (__sem_wait): Ditto. (__sem_trywait): Ditto. (__sem_post): Ditto. (__pthread_cond_dowait): New function, contains core logic from __pthread_cond_wait and __pthread_cond_timedwait. Decrement (*cond)->waiting before reentering the cond access mutex to allow detection of lost signals. (__pthread_cond_timedwait): Rename to pthread_cond_timedwait, and call __pthread_cond_dowait after calculating the wait length. (__pthread_cond_wait): Rename to pthread_cond_wait, and call __pthread_cond_dowait. * thread.h: New enum for use with verifyable_object_isvalid. Remove the extern exporting of __pthread_cond_timedwait and __pthread_cond_wait.
* * pipe.cc (fhandler_pipe::fixup_after_fork): New method.Christopher Faylor2001-09-293-4/+24
| | | | * fhandler.h (fhandler_pipe::fixup_after_fork): Declare new method.
* * config.sub, config.guess: Import latest from subversions.Hans-Peter Nilsson2001-09-283-63/+61
|
* * passwd.cc (read_etc_passwd): Bother with unlocking when not in cygwinChristopher Faylor2001-09-283-0/+16
| | | | | initialization. * grp.cc (read_etc_group): Ditto.
* * passwd.cc (read_etc_passwd): Don't bother with locking whenChristopher Faylor2001-09-283-14/+33
| | | | | in cygwin initialization since there is only one thread. * grp.cc (read_etc_group): Ditto.
* * pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is no EOFChristopher Faylor2001-09-282-1/+6
| | | | event available.
* * mmap.cc (mmap): Move setting the access after evaluating fd.Corinna Vinschen2001-09-272-24/+26
| | | | | | | | Remove useless comment. Explain copy-on-write problem of 9x more detailed. Don't set access to FILE_MAP_COPY on 9x only when anonymous mapping is requested. (fhandler_disk_file::mmap): Remove useless device check. Add debug output.
* Thu Sep 27 22:00:00 2001 Robert Collins rbtcollins@itdomain.com.auRobert Collins2001-09-272-2/+6
| | | | * Makefile.in: Only stamp winver_stamp on success.
* Remove spurious commentNick Clifton2001-09-272-2/+5
|