summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Reorganize to handleChristopher Faylor2003-11-071-0/+5
| | | | freeing of memory on error condition.
* * cygthread.cc (cygthread::freerange): Set inuse count. Avoid setting ev fromChristopher Faylor2003-11-073-27/+45
| | | | | | | h as h would be NULL at this point. (cygthread::operator new): Issue debugging info when overflowing the thread pool. (cygthread::cygthread): Set ev from h here after h has been initialized.
* 2003-11-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-072-2/+7
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be referring to _NO_LONGLONG macro.
* 2003-11-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-0638-37/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/linux/linuxthreads/td_init.c: Replace function name in LOG() macro so this will compile on gcc 3.4 and up. * libc/sys/linux/linuxthreads/td_log.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
* * Missing patch to cygwin.din.Corinna Vinschen2003-11-061-0/+8
|
* * bsdlib.cc (_vwarnx): New function.Corinna Vinschen2003-11-064-1/+123
| | | | | | | | | | | | | | (vwarn): Ditto. (vwarnx): Ditto. (warn): Ditto. (warnx): Ditto. (verr): Ditto. (verrx): Ditto. (err): Ditto. (errx): Ditto. * cygwin.din: Export above functions. * include/err.h: New file. * include/cygwin/version.h: Bump API minor number.
* * syscalls.cc (getshmlba): New function.Corinna Vinschen2003-11-067-9/+28
| | | | | | | | * external.cc (cygwin_internal): Add CW_GET_SHMLBA handling. * mmap.cc (mmap64): Call getshmlba to evaluate granularity. * winsup.h (getshmlba): Add declaration. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_SHMLBA.
* * winsup.h: Declare access_worker.Christopher Faylor2003-11-062-1/+8
|
* Fix 'the the' typoNick Clifton2003-11-062-471/+467
|
* * include/cygwin/types.h: Fix preprocessor guards for vm_offset_t andCorinna Vinschen2003-11-062-2/+12
| | | | vm_size_t. Add typedef for vm_object_t.
* * ppc.h (R_PPC_RELAX32PC): Define.Alan Modra2003-11-062-6/+11
|
* 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-063-11/+119
| | | | | | | | | | Artem B. Bityuckiy <mail_lists@mail.ru> * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for %ls, %S, %lc, and %C format specifiers. (get_arg): Ditto. * libc/stdio/sprintf.c: Add documentation regarding new format specifiers added in vfprintf.c.
* 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-062-16/+29
| | | | | * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes to make code work as specified in standard.
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Detect attempt to open aChristopher Faylor2003-11-052-2/+12
| | | | directory which lacks read privileges.
* Entry "Where is the su command?" -> "Why doesn't su work?"David Starks-Browning2003-11-041-6/+9
|
* * external.cc (cygwin_internal): Add CW_GET_POSIX_SECURITY_ATTRIBUTECorinna Vinschen2003-11-046-16/+42
| | | | | | | | | | handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_POSIX_SECURITY_ATTRIBUTE. * exceptions.cc (init_global_security): Move from here... * sec_helper.cc (init_global_security): ...to here.
* * net.cc (dup_ent): Use IsBadStringPtr for alignment checks. Don't use a knownChristopher Faylor2003-11-042-5/+9
| | | | bad pointer.
* * passwd.c (PrintPW): Turn around meaning printed for "Password notCorinna Vinschen2003-11-042-11/+22
| | | | | | required" option to be in line with Windows meaning. (main): Use more appropriate 1008 option when calling NetUserSetInfo to change flag values.
* * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).Corinna Vinschen2003-11-042-35/+134
| | | | | | | | | | | | | | | (version): Bump version number to 1.5. (longopts): Add -c, -C, -e, -E, -p, -P options. (opts): Ditto. (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress correct system password settings just because the account has admin privileges. (usage): Define as "noreturn" function. Restructure and rephrase output. Accomodate new options. (print_version): Fix copyright dates. (main): Accomodate new options for setting UF_PASSWD_CANT_CHANGE, UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
* * net.cc (dup_ent): Move Win 95 misalignment recogition beforeCorinna Vinschen2003-11-032-10/+20
| | | | trying to evaluate string length.
* * sim-frv.h: New file.Kevin Buettner2003-11-012-0/+57
|
* * thread.cc (pthread::thread_init_wrapper): Initialize exception handling.Thomas Pfaff2003-10-312-0/+13
|
* Rename pthread::running to pthread::valid throughout.Thomas Pfaff2003-10-313-7/+46
| | | | | | | | | * thread.h: (pthread::suspend_all_except_self): New static method. (pthread::resume_all): Ditto. (pthread::suspend_except_self): New method. (pthread::resume): Ditto. * thread.cc (pthread::suspend_except_self): Implement. (pthread::resume): Ditto.
* * include/stdint.h: Prevent signed->unsigned conversion for 32 andCorinna Vinschen2003-10-292-13/+18
| | | | 64 bit min value constants.
* * path.cc (dot_special_chars): New global variable.Christopher Faylor2003-10-292-2/+22
| | | | | | (special_name): Make files ending in "." special. (fnunmunge): Allow encoded ".". (mount_item::fnmunge): Handle trailing ".".
* * include/stdint.h: Duplicate below effort for rest of *64_*.Christopher Faylor2003-10-282-5/+9
|
* * include/stdint.h: Correctly define INT64_MAX.Christopher Faylor2003-10-282-1/+5
|
* * include/math.h: Guard ISO C99 additions with __cplusplusDanny Smith2003-10-272-1/+6
| | | | not __GLIBCPP__.
* * thread.h (fast_mutex::init): Initialize lock_counter.Thomas Pfaff2003-10-272-0/+5
|
* 2003-10-27 Bernardo Innocenti <bernie@develer.com>Jeff Johnston2003-10-274-16/+93
| | | | | | | | * m68k/asm.h: Add macros for -fPIC, -msep-data and -mid-shared-library support. * m68k/crt0.S: Use macros for -fPIC, -msep-data and -mid-shared-library support. * m68k/sim-crt0.S: Likewise.
* * Makefile.in (OBSOLETE_FUNCTION): Add tmpfile.Corinna Vinschen2003-10-274-2/+12
| | | | | | (NEW_FUNCTIONS): Add _tmpfile64 -> tmpfile translation. * cygwin.din: Export _tmpfile64 * include/cygwin/version.h: Bump api minor number.
* * cygwin.din: Add sem_close, sem_getvalue, sem_open and sem_timedwait.Corinna Vinschen2003-10-277-19/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * pthread.cc (+mangle_sem_name): New function. (sem_open): Ditto. (sem_close: Ditto. (sem_timedwait): Ditto. (sem_getvalue): Ditto. * thread.cc (semaphore::semaphore): Rearrange member initialization. Use appropriate security attribute for process shared semaphores. (semaphore::semaphore): New constructor for named semaphores. (semaphore::~semaphore): Care for semaphore name. (semaphore::_post): Accomodate failing ReleaseSemaphore. Use value returned by ReleaseSemaphore vor currentvalue. (semaphore::_getvalue): New method. (semaphore::_timedwait): Ditto. (semaphore::_fixup_after_fork): Rearrange. Don't fail for process shared semaphores. (semaphore::open): New method. (semaphore::timedwait): Ditto. (semaphore::post): Fix return value. Set errno appropriately. (semaphore::getvalue): New method. * thread.h (class semaphore): Add prototypes for open, getvalue, timedwait, _getvalue, _timedwait. Add prototypes for new constructor. Add name member. * include/semaphore.h: Add prototypes for sem_open, sem_close, sem_timedwait and sem_getvalue. include/cygwin/version.h: Bump API minor number.
* * miscfunc.cc (__check_invalid_read_ptr): New function.Corinna Vinschen2003-10-273-0/+14
| | | | * winsup.h: Declare.
* * security.h (cygpsid::debug_print): Avoid compiler warnings.Corinna Vinschen2003-10-262-1/+5
|
* Remove file that was supposed to have disappeared a month ago.Christopher Faylor2003-10-262-569/+0
|
* * path.cc (normalize_posix_path): Test runs of more than twoCorinna Vinschen2003-10-252-1/+13
| | | | dots for being a run of only dots. Let it pass if not.
* * fhandler.cc (fhandler_base::ioctl): Handle FIONBIO.Corinna Vinschen2003-10-252-6/+19
|
* Rename native_mutex to fast_mutex throughout.Thomas Pfaff2003-10-243-98/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename pthread_key::save_key_to_buffer to pthread_key::_fixup_before_fork throughout. Rename pthread_key::recreate_key_from_buffer to pthread_key::_fixup_after_fork throughout. * thread.cc (native_mutex::init): Remove. (native_mutex::lock): Ditto. (native_mutex::unlock): Ditto. (pthread::push_cleanup_handler): InterlockedExchangePointer is not needed here. (pthread_rwlock::pthread_rwlock): Initialize readers list mutex. (pthread_rwlock::add_reader): Add reader via List_insert. (pthread_rwlock::lookup_reader): Lock list while walking through. (pthread_cond::init): Locking the init mutex is now void. (pthread_rwlock::init): Ditto. (pthread_mutex::init): Ditto. * thread.h: Include security.h. (fast_mutex): New class. Replacement for native_mutex. (List_insert): New template function. (List_remove): Ditto. (List::List): Initialize synchronising mutex. (List::fixup_after_fork): New method. (List::insert): Add node via List_insert. (List::remove): Remove node via List_remove. (List::pop): Remove. (List::for_each): Lock list while walking through. (List::mx_init): New method. (pthread_mutex::fixup_after_fork): Fixup mutex list after fork. (pthread::fixup_after_fork): Ditto. (pthread_conds::fixup_after_fork): Ditto. (pthread_rwlock::fixup_after_fork): Ditto. (semaphore::fixup_after_fork): Ditto. (pthread_rwlock::readers_mx): New member.
* bfd/H.J. Lu2003-10-242-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-24 H.J. Lu <hongjiu.lu@intel.com> * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Look up hash table for real symbols. include/ 2003-10-24 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_elf_version_expr): Add "symbol" and remove "wildcard". ld/ 2003-10-24 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (lang_vers_match): Check "symbol" instead of "wildcard" and "pattern". Fix a typo. (lang_finalize_version_expr_head): Likewise. (lang_register_vers_node): Likewise. (realsymbol): New function. (lang_new_vers_pattern): Set "symbol" and remove "wildcard". * ldlex.l (V_IDENTIFIER): Allow '\\'.
* * fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND whenCorinna Vinschen2003-10-242-1/+6
| | | | both O_NONBLOCK/O_NDELAY are set for F_SETFL.
* * path.cc (win32_device_name): Fix comment.Corinna Vinschen2003-10-242-2/+7
|
* * fhandler_tty.cc (fhandler_tty_slave::ioctl): Properly set return value inChristopher Faylor2003-10-242-3/+10
| | | | FIONBIO case.
* 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-10-233-96/+93
| | | | | | * configure.in: Use absolute newlib basedir when forming CC_FOR_NEWLIB include options. * configure: Regenerated.
* 2003-10-23 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-10-236-19/+113
| | | | | | | | * libc/string/wcsnlen.c: New file. * libc/include/wchar.h: Add wcsnlen prototype. * libc/string/Makefile.am: Add wcsnlen support. * libc/string/Makefile.in: Regenerated. * libc/string/wcstrings.tex: Add wcsnlen documentation.
* * sh.h (EF_SH4A, EF_SH4AL_DSP, EF_SH4_NOFPU, EF_SH4A_NOFPU): New.Corinna Vinschen2003-10-232-1/+26
| | | | (EF_SH_MERGE_MACH): Combine them.
* * fhandler_proc.cc (format_proc_partitions): Use new device codeCorinna Vinschen2003-10-232-11/+24
| | | | to get major and minor device numbers. Fix size evaluation.
* merge from gccDJ Delorie2003-10-232-14/+41
|
* * external.cc (cygwin_internal): Add CW_GET_ERRNO_FROM_WINERRORCorinna Vinschen2003-10-224-2/+18
| | | | | | | handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_ERRNO_FROM_WINERROR.
* * Makefile.in: Add $(LIBSERVER) rule.Corinna Vinschen2003-10-2215-461/+331
| | | | | | | | | | | | | | | | | | | | | * cygserver.h: Moved from include/cygwin to here. * cygserver_ipc.h: Moved from ../cygserver to here. * cygserver_shm.h: Ditto. * cygwin.din: Add shmat, shmctl, shmdt and shmget. * fhandler_tty.cc (fhandler_tty_slave::open): Don't warn about handle dup'ing if not build with USE_SERVER. * shm.cc: Include cygerrno.h unconditionally. (shmat): Set errno to ENOSYS and return -1 if not build with USE_SERVER. (shmctl): Ditto. (shmdt): Ditto. (shmget): Ditto. * woutsup.h: Remove. * include/cygwin/cygserver_process.h: Moved to ../cygserver directory. * include/cygwin/cygserver_transport.h: Ditto. * include/cygwin/cygserver_transport_pipes.h: Ditto. * include/cygwin/cygserver_transport_sockets.h: Ditto. * include/cygwin/version.h: Bump API minor number.
* Accomodate moving cygserver header files from cygwin/include/cygwinCorinna Vinschen2003-10-2215-252/+334
| | | | | | | | | | | | | to here and cygwin dir. * Makefile.in (EXEEXT): Drop as unused. (EXEEXT_FOR_BUILD): Ditto. (all): Don't build libcygserver.a. * cygserver_process.h: Moved from cygwin/include/cygwin to here. * cygserver_transport.h: Ditto. * cygserver_transport_pipes.h: Ditto. * cygserver_transport_sockets.h: Ditto. * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h. * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.