summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.cc (fhandler_base::lseek): Include high order offsetCorinna Vinschen2003-11-172-0/+8
| | | | bits in return value.
* * bsdlib.cc (getprogname): New function.Corinna Vinschen2003-11-174-1/+33
| | | | | | (setprogname): New funtion. * cygwin.din: Export getprogname and setprogname. * include/cygwin/version.h: Bumb API version number.
* * include/limits.h: Revert unsanctioned changes below.Christopher Faylor2003-11-154-4/+10
| | | | | * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
* Add Tab control macroManu B2003-11-152-0/+5
|
* 2003-11-11 Robert Collins <rbtcollins@hotmail.com>Robert Collins2003-11-1441-151/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ron Parker <rdparker@butlermfg.com> * bsdlib.cc: Update throughout to use CYG_MAX_PATH rather than MAX_PATH. * cygheap.h: Ditto. * dcrt0.cc: Ditto. * delqueue.cc: Ditto. * dlfcn.cc: Ditto. * dll_init.cc: Ditto. * dll_init.h: Ditto. * dtable.cc: Ditto. * environ.cc: Ditto. * environ.h: Ditto. * exceptions.cc: Ditto. * external.cc: Ditto. * fhandler_disk_file.cc: Ditto. * fhandler_proc.cc: Ditto. * fhandler_process.cc: Ditto. * fhandler_raw.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_socket.cc: Ditto. * fhandler_virtual.cc: Ditto. * miscfuncs.cc: Ditto. * mmap.cc: Ditto. * netdb.cc: Ditto. * path.cc: Ditto. * path.h: Ditto. * pinfo.cc: Ditto. * pinfo.h: Ditto. * pthread.cc: Ditto. * registry.cc: Ditto. * shared.cc: Ditto. * shared_info.h: Ditto. * smallprint.c: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * thread.h: Ditto. * uinfo.cc: Ditto. * winsup.h: Ditto. * include/limits.h: Ditto. * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
* * mkgroup.c: Avoid compiler warnings throughout.Corinna Vinschen2003-11-144-15/+1258
| | | | | * mkpasswd.c: Ditto. * passwd.c: Ditto.
* * dtable.cc (build_fh_pc): Use DEV_SERIAL_MAJOR to catch all serial ports.Christopher Faylor2003-11-142-9/+9
| | | | Remove redundant FH_CYGDRIVE case since it is handled by DEV_CYGDRIVE_MAJOR.
* minor adjustments to Elfyn's contribution.David Starks-Browning2003-11-132-11/+10
|
* Apply Elfyn's patches as supplied in ↵David Starks-Browning2003-11-133-16/+14
| | | | <http://cygwin.com/ml/cygwin-patches/2003-q3/msg00156.html>.
* 2003-11-13 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith2003-11-135-3/+48
| | | | | | | | | | | | | | | * include/shlobj.h (ILAppendID, ILClone, ILCloneFirst, ILCombine, ILFindChild, ILFindLastID, ILFree, ILGetNext, ILGetSize, ILIsEqual, ILIsParent, ILLoadFromStream, ILRemoveLastID, ILSaveToStream): Add prototypes. * lib/shell32.def: Add stubs. * include/commctrl.h (ListView_FindItem): Add type cast to avoid compiler warnings. 2003-11-13 Hans Leidekker <hans@it.vu.nl> * include/winbase.h (WIN32_STREAM_ID): Correct typedef.
* * thread.cc (pthread::exit): Cleanup on thread exit.Thomas Pfaff2003-11-112-0/+10
| | | | | (__reent_t::init_clib): Set thread local clib __cleanup var appropriately.
* * miscfuncs.cc (low_priority_sleep): Make a "C" function.Christopher Faylor2003-11-103-2/+7
| | | | * winsup.h (low_priority_sleep): Revert previous change to declaration.
* * winsup.h (low_priority_sleep): Fix declaration to avoid linkerCorinna Vinschen2003-11-102-1/+6
| | | | warning.
* * thread.cc (__reent_t::init_clib): Set thread local clibThomas Pfaff2003-11-102-0/+6
| | | | __sdidinit var appropriately.
* * syscalls.cc (ftruncate64): Log length as long long.Corinna Vinschen2003-11-082-5/+10
| | | | | (logout): Erase ut_host. Don't write wtmp entry. Return 1 only if matching utmp entry has been found, 0 otherwise.
* * external.cc (cygwin_internal): Add CW_GET_UID_FROM_SID andCorinna Vinschen2003-11-084-2/+28
| | | | | | | CW_GET_GID_FROM_SID handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID.
* * cygpath.cc (main): Allow multiple pathnames on command line.Corinna Vinschen2003-11-072-22/+17
|
* * 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.
* * 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
|
* * 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.
* * 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.
* * 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
|
* * 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.
* * 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.