summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.h (enum conn_state): Add connect_failed state.Corinna Vinschen2005-04-185-17/+50
| | | | | | | | | | | | | | | | | * fhandler_socket.cc (fhandler_socket::connect): Set connect_state to connect_failed when connect failed. * poll.cc (poll): Change errno to EINVAL if allocating memory fails, according to SUSv3. Add socket descriptors always to except_fds. Test for failed connect and set revents flags appropriately. * select.cc (set_bits): Set connect_state to connect_failed when select indicates failed nonblocking connect. (fhandler_dev_null::select_except): Set except_ready to false so that /dev/null is not always in except state. (peek_socket): Fix bogus conditional. (fhandler_socket::select_write): Treat all connect_states except unconnected equivalent to return consistent results. (fhandler_windows::select_except): Set except_ready to false so that /dev/windows is not always in except state.
* * include/cygwin/version.h: Bump DLL minor number to 16.Christopher Faylor2005-04-182-1/+5
|
* * grp.cc (initgroups32): Return the correct value.Corinna Vinschen2005-04-182-1/+5
|
* * configure.host <cris-*-* | crisv32-*-*>: SetHans-Peter Nilsson2005-04-182-0/+6
| | | | default_newlib_io_long_long="yes".
* Actually check in files.Christopher Faylor2005-04-174-10/+10
|
* merge from gccDJ Delorie2005-04-162-0/+10
|
* * fhandler_disk_file.cc (fhandler_base::utimes_fs): IgnoreCorinna Vinschen2005-04-163-2/+18
| | | | | | ERROR_NOT_SUPPORTED to workaround Win9x weirdness. * path.cc (symlink_info::check): Remap ERROR_INVALID_FUNTION to ERROR_FILE_NOT_FOUND for the same reason.
* * security.h (cygsidlist::addfromgr): Allow duplicate entries.Corinna Vinschen2005-04-164-67/+132
| | | | | | | | | | | | (get_server_groups): Declare new function. * security.cc (is_group_member): Simplify. (get_server_groups): New function. (get_initgroups_sidlist): Call get_server_groups. (verify_token): Allow token when supplementary sids are not in /etc/group but are in the token. Streamline the code. * grp.cc (initgroups32): New implementation. (getgroups32): Handle case where the supplementary groups are set.
* * cygwinenv.sgml: Add new words for (no)traverse option.Corinna Vinschen2005-04-162-4/+10
|
* * environ.cc (environ_init): Don't set traverse checking as default.Corinna Vinschen2005-04-162-5/+6
|
* * fhandler_disk_file.cc (fhandler_base::utimes_fs): Drop touchingCorinna Vinschen2005-04-162-4/+7
| | | | ChangeTime.
* * fhandler.cc (fhandler::dup): Duplicate flags, too.Christopher Faylor2005-04-165-8/+32
| | | | | | | | | | | | | | | | | * fhandler.h (fhandler_fifo::owner): Eliminate. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Handle on-disk devices better. (fhandler_base::fstat_helper): Ditto. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Don't initialize obsolete "owner". (fhandler_fifo::open_not_mine): Add some debugging. Duplicate correct handle when we own it. (fhandler_fifo::open): Set flags from input, not from first pipe. Flag that fork fixup is needed. (fhandler_fifo::dup): Set errno correctly when DuplicateHandle fails. * pinfo.cc (commune_send): Add debugging for fifo. * cygwin/version.h: Bump API minor version to 127 to reflect exporting of sigrelese.
* * syscalls.cc (setuid32): Correct debugging output.Corinna Vinschen2005-04-152-1/+6
|
* * dcrt0.cc (do_global_dtors): Run DLL dtors.Christopher Faylor2005-04-1410-18/+62
| | | | | | | | | | | | | | | | | (__main): Don't rely on atexit to run dtors. (do_exit): Specifically call do_global_dtors here. (cygwin_exit): Ditto. * dll_init.cc (dll_global_dtors): Make global. Only run dtors once. (dll_list::init): Just set flag that dtors should be run. Don't rely on atexit. * dll_init.h (dll_global_dtors): Declare. * exceptions.cc (sigrelse): Define. * path.h (is_fs_device): New method. (is_lnk_special): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::link): Use "is_lnk_special" rather than "is_lnk_symlink". * syscalls.cc (rename): Ditto. * hookapi.cc (ld_preload): Use colon as a separator rather than space.
* .Christopher Faylor2005-04-141-3/+1
|
* merge from gccDJ Delorie2005-04-143-3/+18
|
* Move entries in ChangeLog-9103 to appropriate */ChangeLog-9103.H.J. Lu2005-04-136-74/+83
|
* * fhandler.h (class fhandler_socket): Remove utimes.Corinna Vinschen2005-04-133-12/+5
| | | | * fhandler_socket.cc (fhandler_socket::utimes): Remove.
* Move entries to appropriate ChangeLog files.H.J. Lu2005-04-133-77/+73
|
* * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32Corinna Vinschen2005-04-1310-38/+54
| | | | | | | | | | | | | | error code as well as errno. Use throughout where errno is set from NT status. (set_errno): Evaluate val only once. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fix typo in debug output. * fhandler_mem.cc (fhandler_dev_mem::open): Rely on __seterrno_from_nt_status setting Win32 error code in debug output. * fhandler_proc.cc (format_proc_uptime): Ditto. (format_proc_stat): Ditto. * fhandler_process.cc (format_process_stat): Ditto. * sysconf.cc (sysconf): Ditto.
* * fhandler.h (fhandler_base::utimes_fs): New method.Christopher Faylor2005-04-134-4/+29
| | | | | | * fhandler.cc (fhandler_base::utimes): Call utimes_fs if on-disk special file. * fhandler_disk_file.cc (fhandler_disk_file::utimes): Use utimes_fs. (fhandler_base::utimes_fs): Handle on-disk device files.
* * fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errnoCorinna Vinschen2005-04-132-4/+7
| | | | if open fails, it has already been set by open.
* 2005-04-12 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-132-2/+8
| | | | | | * libgloss/arm/Makefile.in (RDPMON_BSP): librdpmon.a was empty due to a typo. Fixed. (RDIMON_BSP): Ditto.
* 2005-04-12 Paul Brook <paul@codesourcery.com>Paul Brook2005-04-122-16/+20
| | | | * opcode/m88k.h: Rename psr macros to avoid conflicts.
* include/opcode/ChangeLog:Mark Kettenis2005-04-122-9/+14
| | | | | | | | * i386.h (i386_optab): Mark VIA PadLock instructions as ImmExt and adjust them accordingly. gas/ChangeLog: * config/tc-i386.c (output_insn): Handle VIA PadLock instructions similar to other instructions now that they're marked as ImmExt.
* * autoload.cc (NtQueryVolumeInformationFile): Add.Corinna Vinschen2005-04-126-66/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.cc (fhandler_base::raw_write): Don't touch has_changed flag. * fhandler.h (enum change_state): Remove. (fhandler_base::status): Revert has_changed to a simple bit. (fhandler_base::fstat_helper): Add nAllocSize parameter. Rename ftCreationTime to ftChangeTime. * fhandler_disk_file.cc: Call fstat_helper with additional allocation size throughout. (fhandler_base::fstat_by_handle): Use NT native functions to get full file information on NT. Call fstat_helper with LastWriteTime as ctime, if ChangeTime is not available. (fhandler_base::fstat_by_name): Call fstat_helper with LastWriteTime as ctime. (fhandler_base::fstat_helper): Add comment. Drop special FAT handling since it's useless. Use nAllocSize for st_blocks if available. (fhandler_disk_file::touch_ctime): Only touch LastWriteTime. (fhandler_disk_file::fchmod): Set has_changed on 9x only. (fhandler_disk_file::fchown): Don't set has_changed. (fhandler_disk_file::facl): Ditto. (fhandler_disk_file::ftruncate): Ditto. (fhandler_disk_file::link): Set has_changed on 9x only and on original file only. (fhandler_base::open_fs): Don't set has_changed in O_TRUNC case. * ntdll.h (FILE_BASIC_INFORMATION): Define. (FILE_STANDARD_INFORMATION): Define. (FILE_INTERNAL_INFORMATION): Define. (FILE_EA_INFORMATION): Define. (FILE_ACCESS_INFORMATION): Define. (FILE_POSITION_INFORMATION): Define. (FILE_MODE_INFORMATION): Define. (FILE_ALIGNMENT_INFORMATION): Define. (FILE_NAME_INFORMATION): Don't define with arbitrary FileName size. (FILE_ALL_INFORMATION): Define. (FILE_INFORMATION_CLASS): Add FileAllInformation. (FILE_FS_VOLUME_INFORMATION): Define. (FS_INFORMATION_CLASS): Define. (NtQueryVolumeInformationFile): Define.
* * mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,Richard Sandiford2005-04-1215-28/+36
| | | | | | | * mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld, * mips/jmr3904app-java.ld, mips/jmr3904app.ld, * mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, * mips/nullmon.ld, mips/pmon.ld: Keep .init and .fini.
* Fix ChangeLog entry.Corinna Vinschen2005-04-111-1/+1
|
* Revert previous patch.Corinna Vinschen2005-04-115-29/+37
| | | | | | | * autoload.cc (GetVolumePathNamesForVolumeNameA): Remove. * autoload.cc (GetVolumeNameForVolumeMountPointA): Add. * syscalls.cc (sync): Rewrite guid case to skip floppies also on Windows 2000.
* * syscalls.cc (sync): Use renamed has_get_volume_pathnames wincap.Corinna Vinschen2005-04-114-15/+23
| | | | | | | * wincap.h (wincaps::has_get_volume_pathnames): Rename from has_guid_volumes * wincap.cc: Accomodate above rename throughout. Set to false on Windows 2000.
* merge from gccDJ Delorie2005-04-112-0/+13
|
* 2005-04-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-04-086-1/+90
| | | | | | | | | | | * libc/include/libgen.h: New file. 2005-04-08 Shaun Jackman <sjackman@gmail.com> * libc/unix/Makefile.am: Add support for basename and dirname. * libc/unix/Makefile.in: Regenerated. * libc/unix/basename.c: New file. * libc/unix/dirname.c: New file.
* * bsd_mutex.cc (msleep_cnt): Remove.Corinna Vinschen2005-04-082-71/+137
| | | | | | | | | | | | | (msleep_max_cnt): Remove. (msleep_arr): Remove. (class msleep_sync_array): New class to encapsulate msleep/wakeup thread synchronization. (msleep_sync): New object pointer. (msleep_init): Initialize new msleep_sync object. (_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for thread synchronization. Improve debug output a bit more. (wakeup): Just call msleep_sync->wakeup(). (wakeup_all): Whitespace fix.
* * pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.Christopher Faylor2005-04-082-6/+5
|
* 2005-04-07 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-072-0/+5
| | | | * libc/sys/linux/inode.c (lchown): New function.
* 2005-04-07 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-073-3/+7
| | | | | | * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no ELIX level is defined. * libc/unix/Makefile.in: Regenerated.
* * syslog.cc (try_connect_guard): Remove useless conditionalized code.Corinna Vinschen2005-04-072-4/+4
|
* * syslog.cc: Include sys/socket.h.Corinna Vinschen2005-04-073-3/+153
| | | | | | | | | | | | | | | | | (try_connect_guard): New static variable. (syslogd_inited): Ditto. (syslogd_sock): Ditto. (try_connect_syslogd): New function to connect and write syslog to local syslogd. (vsyslog): Log to stderr if LOG_PERROR flag has been given to openlog. Try logging to syslogd. Use Event Log resp. log file as fallback. (closelog): Close socket to syslogd. * include/sys/syslog.h (_PATH_LOG): Define. (INTERNAL_NOPRI): Define if SYSLOG_NAMES is defined. (INTERNAL_MARK): Ditto. (struct _code): Ditto. (prioritynames): Ditto. (facilitynames): Ditto.
* * fhandler_socket.cc (get_inet_addr): Add type parameter to returnCorinna Vinschen2005-04-062-4/+28
| | | | | | | | unix socket type. Read socket type from unix socket file. (fhandler_socket::bind): Write socket type to unix socket file. (fhandler_socket::connect): Return with errno EPROTOTYPE if socket type of socket doesn't match socket type of unix socket trying to connect to.
* * security.h (cygsidlist::addfromgr): Avoid duplicate entries.Corinna Vinschen2005-04-063-11/+15
| | | | | * grp.cc (initgrousp): Add syscall_printf. (setgroups): Add syscall_printf and make sure sids are added only once.
* * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.Corinna Vinschen2005-04-068-206/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h. (mtx_init): Initialize lock counter to 0. (_mtx_lock): Increment and log mutex lock counter. (mtx_owned): Add winpid argument. Return true only if mutex is actually owned by process winpid. (_mtx_assert): Add winpid argument accordingly. (_mtx_unlock): Log owner and lock count. (MSLEEP_MUTEX): Remove. (MSLEEP_SEM): Ditto. (MSLEEP_EVENT): Ditto. (msleep_event_name): Ditto. (msleep_cs): New global critical section. (msleep_cnt): New global variable indicating msleep record usage. (msleep_max_cnt): New global variable indicating msleep record size. (msleep_arr): New global pointer to msleep records. (msleep_init): Initialize msleep_cs. Allocate msleep_arr array. (_msleep): Rewrite using new msleep_cs/msleep_arr based thread synchronization. Don't be shy with debug output. (wakeup): Rewrite using new msleep_cs/msleep_arr based thread synchronization. * bsd_mutex.h (struct mtx): Add lock counter for better debugging. (mtx_owned): Declare with winpid argument. (_mtx_assert): Ditto. (mtx_assert): Define with winpid argument. * cygserver.cc (version): Remove. (SERVER_VERSION): New define, decoupling server version information from source code control system. (print_version): Simplify printing server version. * process.cc (process::process): Fix wrong bracketing (and handle leak). (process::~process): Only try to close _signal_arrived if valid. * sysv_sem.cc: Include sys/smallprint.h. (semundo_clear): Define with additional struct thread pointer argument. Accomodate throughout. (SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate throughout. (struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate throughout. (seminit): Improve debugging by adding the semid to the mutex name. (semget): Correctly print key value as 64 bit hex value in debug output. (semexit_myhook): Remove Cygwin specific unlocking of mutexes owned by exiting process. Keep semaphore global lock throughout whole function to avoid races. * sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that Giant is locked.
* 2005-04-06 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-04-063-478/+860
| | | | | | * Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir. (TARGET_CONFIGARGS): Include --with-target-subdir. (configure, all): New macros. Use them throughout.
* * net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_entChristopher Faylor2005-04-062-11/+21
| | | | | | | rather than assuming that tls buffer is valid. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto.
* 2005-04-05 Dave Korn <dave.korn@artimi.com>Jeff Johnston2005-04-052-2/+24
| | | | | * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing something that looks like a "NaN", put back the characters processed.
* * cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being calledChristopher Faylor2005-04-052-9/+17
| | | | in a "non-standard" way.
* 2005-04-05 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-04-053-854/+483
| | | | | * Makefile.tpl: Sync with gcc. * Makefile.in: Regenerate.
* * sync.h (muto::initforce): Delete flawed implementation.Christopher Faylor2005-04-055-5/+12
| | | | | * pwdgrp.h (pwdgrp::pglock): Make static. * grp.cc (pwdgrp::pwdgrp): Eliminate use of initforce.
* * sync.h (muto::initforce): Force initialization even when name != NULL.Christopher Faylor2005-04-053-2/+10
| | | | | * grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is !NO_COPY.
* * sync.h (muto::operator int): New operator.Christopher Faylor2005-04-0519-118/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (locker): Remove unused class. (new_muto): Delete. (new_muto1): Ditto. (new_muto_name): Ditto. * cygheap.cc (cygheap_setup_for_child): Reflect use of static storage for muto rather than pointer. (_csbrk): Ditto. (_cmalloc): Ditto. (_cmalloc): Ditto. (_cfree): Ditto. * cygheap.h (cwdstuff::cwd_lock): Ditto. (cwdstuff::get_drive): Ditto. * cygmalloc.h (__malloc_lock): Ditto. (__malloc_unlock): Ditto. * cygtls.cc (sentry::lock): Ditto. (sentry::sentry): Ditto. (~sentry): Ditto. (_cygtls::init): Ditto. * dcrt0.cc: Ditto. (cygwin_atexit): Ditto. (cygwin_exit): Ditto. * debug.cc (lock_debug::locker): Ditto. (lock_debug::lock_debug): Ditto. (lock_debug::unlock): Ditto. (debug_init): Ditto. * dtable.cc (dtable::init_lock): Ditto. * dtable.h (dtable::lock_cs): Ditto. (dtable::lock): Ditto. (dtable::unlock): Ditto. * exceptions.cc (mask_sync): Ditto. (sighold): Ditto. (set_process_mask_delta): Ditto. (set_signal_mask): Ditto. (events_init): Ditto. * grp.cc (pwdgrp::pwdgrp): Ditto. * malloc_wrapper.cc (mallock): Ditto. (malloc_init): Ditto. * path.cc (cwdstuff::cwd_lock): Ditto. (cwdstuff::get_hash): Ditto. (cwdstuff::get_hash): Ditto. (cwdstuff::init): Ditto. (cwdstuff::set): Ditto. (cwdstuff::get): Ditto. * pwdgrp.h (pwdgrp::pglock): Ditto. (pwdgrp::refresh): Ditto. * sigproc.cc (sync_proc_subproc): Ditto. (get_proc_lock): Ditto. (proc_subproc): Ditto. (_cygtls::remove_wq): Ditto. (proc_terminate): Ditto. (sigproc_init): Ditto. * timer.cc (lock_timer_tracker::protect): Ditto. (lock_timer_tracker::lock_timer_tracker): Ditto. (lock_timer_tracker::~lock_timer_tracker): Ditto. * wininfo.cc (wininfo::_lock;): Ditto. (wininfo::winthread): Ditto. (operator HWND): Ditto. (wininfo::lock): Ditto. (wininfo::release): Ditto. * wininfo.h (wininfo::_lock;): Ditto.
* * path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in endChristopher Faylor2005-04-042-3/+8
| | | | component.