summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add OpenRISC supportNick Clifton2001-04-243-0/+48
|
* * include/winsock2.h: Protect some more newlib defines when compiling cygwinChristopher Faylor2001-04-242-1/+6
|
* Remove trailing underscore from fhandler_base and friends, throughout.Christopher Faylor2001-04-2413-66/+113
| | | | | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_base::set_open_status): New method. Stores original open status. (fhandler_base::get_open_status): New method. Retrieves original open status. (fhandler_base::reset_to_open_binmode): New method. * fhandler.cc (fhandler_base::open): Save open status. (fhandler_base::init): Ditto. * fhandler_clipboard.cc (fhandler_clipboard::open): Ditto. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_dsp.cc (fhandler_dsp::open): Ditto. * fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_dev_random.cc (fhandler_dev_random::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto. * fhandler_tty_master.cc (fhandler_tty_master::open): Ditto. * fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto. * syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open state. * fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when converting from deciseconds to milliseconds.
* * fhandler.h (fhandler_base::clear_r_binary): New method.Christopher Faylor2001-04-233-2/+18
| | | | | | (fhandler_base::clear_w_binary): New method. * syscalls.cc (setmode): Accept 0 as mode value. Resets text/binary behavior for fd to default.
* * include/winsock.h: Protect some more newlib defines when compiling cygwin.Christopher Faylor2001-04-232-1/+5
|
* * net.cc [errmap]: Add '0' condition.Christopher Faylor2001-04-233-2/+8
| | | | (find_winsock_errno): Don't translate no error to EPERM.
* 2001-04-23 Bo Thorsen <bo@suse.de>Andreas Jaeger2001-04-232-4/+10
| | | | | | | | | * x86-64.h: Add vtable support. 2001-04-23 Bo Thorsen <bo@suse.de> * elf64-x86-64.c: Add c++ vtable hack. Small whitespace and comment changes.
* spacing changes.Christopher Faylor2001-04-231-269/+270
|
* * include/cygwin/version.h: Bump Cygwin version and API version.Christopher Faylor2001-04-232-3/+8
|
* Mon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-04-222-5/+9
| | | | * thread.cc (MTinterface::Init): Always initialise per process variables.
* * libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OKChristopher Faylor2001-04-222-6/+12
| | | | definitions in sys/file.h.
* * features.h: Reinstate as wrapper for sys/features.h.Christopher Faylor2001-04-222-0/+20
|
* * security.cc (alloc_sd): Reformat comment.Corinna Vinschen2001-04-223-8/+9
| | | | * shared.cc: Drop function declarations already in security.h.
* * shortcut.c (check_shortcut): Close input file handle before returning.Christopher Faylor2001-04-223-22/+31
| | | | | | * path.cc (check_sysfile): Ditto. (symlink_info::check): Rely on opened file handle being closed by symlink checking routines. Set ext_tacked_on when .lnk is detected.
* * thread.cc (MTinterface::Init): Remove accidentally checked in code.Christopher Faylor2001-04-212-2/+4
|
* Sun Apr 22 20:22:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-04-214-37/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * passwd.cc (getpwuid): Check for thread cancellation. (getpwuid_r): Ditto. (getpwname): Ditto. (getpwnam_r): Ditto. * thread.h (pthread_mutex): New constructors for pshared operation. (MTinterface): Associative array for pshared mutex's. * thread.cc (MTinterface::Init): Initailize pshared mutex array. (pthread_cond::BroadCast): Implementation notes. (pthread_cond::TimedWait): Remove use of SignalObjectAndWait on non-NT systems. (pthread_mutex::pthread_mutex(unsigned short)): New function. (pthread_mutex::pthread_mutex (pthread_mutex_t *, pthread_mutexattr *)):New function. (pthread_mutex::pthread_mutex(pthread_mutexattr *)): Fail on pshared mutex's. (__pthread_mutex_getpshared): New function. (__pthread_join): Check for thread cancellation. (__pthread_cond_timedwait): Support pshared mutex's. (__pthread_cond_wait): Ditto. (__pthread_condattr_setpshared): Error on PROCESS_SHARED requests. (__pthread_mutex_init): Support pshared mutex's. (__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_setpshared): Support PTHREAD_PROCESS_PSHARED requests.
* * libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,Christopher Faylor2001-04-212-2/+7
| | | | too.
* 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-21113-1596/+2888
| | | | | | | | | | | | | | * acinclude.m4: Added --enable-malloc-debugging configure flag. * configure.host: For Cygwin specify -DMALLOC_PROVIDED if --enable-malloc-debugging selected. * aclocal.m4 configure: Regenerated. libm/aclocal.m4 libm/configure: Ditto. * libc/aclocal.m4 libc/configure: Ditto. * libc/machine/aclocal.m4 libc/machine/configure: Ditto. * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto. * libc/sys/aclocal.m4 libc/sys/configure: Ditto. * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto. * doc/aclocal.m4 doc/configure: Ditto.
* * cygwin.din: Add *scanf and *scan_r functions.Christopher Faylor2001-04-202-0/+22
|
* 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-2013-50/+434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together into one list. [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list. (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New function prototypes. (_fscanf_r, _sscanf_r): Ditto. * libc/include/stdlib.h: Added _strtod_r prototype. * libc/stdio/Makefile.am: Add new v*scanf functions. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r. * libc/stdio/scanf.c: Changed to call __svfscanf_r. * libc/stdio/sscanf.c: Changed documentation to add reentrant routines. (sscanf): Changed to call __svfscanf_r with _REENT argument. (_sscanf_r): New routine. * libc/stdio/local.h: Removed __svfscanf prototype and replaced it with __svfscanf_r prototype. * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New routines. (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy structure as argument as calls reentrant versions of helper functions (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof to _strtol_r and _strtod_r respectively. * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r. * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with _REENT argument. * libc/stdio/vscanf.c: New file. * libc/stdio/vsscanf.c: Ditto.
* * security.cc (set_process_privileges): Swap out.Corinna Vinschen2001-04-204-41/+50
| | | | | | | * sec_helper.cc (set_process_privilege): Rename from `set_process_privileges'. Takes the privilege to enable or disable as parameter now. * security.h: Add prototype for `set_process_privileges'.
* * path.cc (path_conv::check): Always initialize member variables.Christopher Faylor2001-04-202-5/+11
|
* * include/sys/file.h: More cleanup for X_OK.Christopher Faylor2001-04-202-4/+6
|
* * include/sys/file.h: Move X_OK protection earlier.Christopher Faylor2001-04-203-3/+15
| | | | * dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.
* * grp.cc (getgroups): Change so that SIDs get compared insteadCorinna Vinschen2001-04-202-6/+13
| | | | of strings to SIDs.
* * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.Corinna Vinschen2001-04-207-1463/+1575
| | | | | | | | | | | | | | | * security.cc: Swap out several functions. * sec_acl.cc: New file. Move Sun compatibel ACL functions from `security.cc' to here. * sec_helper.cc: New file. Move security helper functions from `security.cc' to here. * security.h: Changed to accomodate the above changes. * grp.cc: Replace `group_in_memory_p' by `group_state'. Eliminate group_sem throughout. (enum grp_state): New enumeration type. (read_etc_group): Make race safe. * security.cc: Eliminate group_sem throughout.
* * ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4aAlexandre Oliva2001-04-204-9/+18
| | | | 1.641.2.228.
* 2001-04-19 Robert Collins <rbtcollins@hotmail.com>Jeff Johnston2001-04-192-1/+20
| | | | | | | * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined. Define daylight to _daylight if it is not defined Prepare a variable export of timezone based on timezonevariable. (Cannot be used with the timezone() function.)
* * dumper.cc (dumper::init_core_dump): Set architecture field in dumpEgor Duda2001-04-192-0/+11
| | | | header.
* * winsup.api/mmaptest02.c: New test.Corinna Vinschen2001-04-194-0/+418
| | | | | * winsup.api/mmaptest03.c: Ditto. * winsup.api/mmaptest04.c: Ditto.
* * mmap.cc (mmap): Drop usage of the same memory area if the sameCorinna Vinschen2001-04-192-3/+8
| | | | region of the same file is mapped twice.
* * Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriateChristopher Faylor2001-04-192-2/+7
| | | | Windows-isms.
* * configure.in: Add bz2lib.Christopher Faylor2001-04-183-29/+24
|
* Throughout, change fdtab references to cygheap->fdtab.Christopher Faylor2001-04-1839-230/+400
| | | | | | | | | | | | | | | | | | | | | | | * child_info.h (cygheap_exec_info): Eliminate special fdtab stuff. * spawn.cc (spawn_guts): Ditto. * cygheap.cc (cygheap_init): Initialize fdtab, if appropriate. * cygheap.h (CYGHEAPSIZE): Include size of init_cygheap. (_cmalloc_entry): Include fdtab here. * dtable.h (dtable): Declare/define new methods. * dtable.cc (dtable::vfork_child_fixup): New method. (dtable::fixup_after_exec): Remove unneeded extra arguments. * dcrt0.cc (dll_crt0_1): Ditto. * environ.cc (getwinenv): Use case sensitive comparison. (winenv): Make a copy of environment cache to avoid realloc problems when duplicate environment variables exist in the environment. (From Egor Duda) * net.cc (cygwin_socket): Revert Apr 14 change. * include/sys/file.h: Protect against previous X_OK definition. * passwd.cc: Eliminate passwd_sem throughout. * security.cc: Ditto. * cygwin.din: Export New functions. * passwd.cc (read_etc_passwd): Make race safe. (getpwuid_r): New function. (getpwnam_r): New function.
* *** empty log message ***Christopher Faylor2001-04-1850-0/+51841
|
* * grp.cc (getgroups): Avoid crash if passwd field if /etc/group isCorinna Vinschen2001-04-182-1/+7
| | | | empty.
* * path.h (path_conv::add_ext_from_sym): Declare.Christopher Faylor2001-04-173-4/+8
| | | | * path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.
* 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>Jeff Johnston2001-04-172-3/+8
| | | | | * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi): Correct the numerical values.
* * path.cc (windows_device_names): Add missing NULL element.Corinna Vinschen2001-04-172-1/+5
|
* * path.cc (windows_device_names): Move dsp to proper location.Christopher Faylor2001-04-172-1/+5
|
* * include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNIONEarnie Boyd2001-04-1711-48/+66
| | | | | | | | | | | | | | | as __extenstion__ when appropriate. * include/mmsystem.h: Mark anonymous structs and unions as __extension__ to prevent compiler warning when invoked with -pedantic * include/oaidl.h: Ditto. * include/objidl.h: Ditto. * include/olectl.h: Ditto. * include/prsht.h: Ditto. * include/shlobj.h: Ditto. * include/winbase.h: Ditto. * include/winnt.h: Ditto. * include/wtypes.h: Ditto.
* Forgot the ChangeLog...Corinna Vinschen2001-04-171-0/+9
|
* * path.cc (path_conv::check): Set case_clash even if pcheck_caseCorinna Vinschen2001-04-172-10/+18
| | | | | | | | is set to PCHECK_ADJUST when a case clash is given for the last component in path. (symlink_info::case_check): Ditto. * syscalls.cc (_rename): Avoid overwriting an already existing file if a case clash is given even if pcheck_case is set to PCHECK_ADJUST.
* Add missing ChangeLog entry.Corinna Vinschen2001-04-171-0/+4
|
* Turn NEWVFORK off.Christopher Faylor2001-04-171-1/+1
|
* * path.h (cwdstuff): Move class.Christopher Faylor2001-04-178-70/+48
| | | | | | | | | | | | | | * cygheap.h (cwdstuff): To here. (init_cygheap): Add cwd field. * child_info.h (cygheap_exec_info): Eliminate cwd stuff. (child_info_spawn): Ditto. * dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call. Convert cygcwd reference to cygheap->cwd. * path.cc: Ditto, throughout. (cwdstuff::copy): Eliminate. (cwdstuff::fixup_after_exec): Ditto. * spawn.cc (spawn_guts): Eliminate call to cygcwd.copy. * fhandler.h (FH_OSS_DSP): Move into "fast" device category.
* * mmap.cc: Move fh_paging_file from some functions to beCorinna Vinschen2001-04-162-40/+72
| | | | | | | | | | | | | | a global static variable. (class mmap_record): Add `devtype_' member to remember the device type of the file. Add declaration for methods `get_device', `alloc_fh' and `free_fh'. (mmap_record::mmap_record): Initialize `devtype_' correctly. (mmap_record::alloc_fh): New method. (mmap_record::free_fh): Ditto. (munmap): Use new mmap_record::alloc_fh and mmap_record::free_fh methods to create a correct fhandler. (msync): Ditto. (fixup_mmaps_after_fork): Ditto.
* 2001-04-15 Daniel Berlin <dan@cgsoftware.com>Daniel Berlin2001-04-162-0/+54
| | | | | | | | * ternary.c: New file - Ternary search tree implementation. 2001-04-15 Daniel Berlin <dan@cgsoftware.com> * ternary.h: New file - Ternary search tree header.
* * grp.cc (getgroups): If `allow_ntsec' is set, use the process tokenCorinna Vinschen2001-04-162-21/+59
| | | | information to evaluate the groups list.
* * mkgroup.c: Add function pointers `netlocalgroupgetmembers' andCorinna Vinschen2001-04-162-12/+107
| | | | | | | | | | | | | | | | | `netgroupgetusers'. (load_netapi): Load function pointers `netlocalgroupgetmembers' and `netgroupgetusers'. (enum_local_users): New function. (enum_local_groups): Call `enum_local_users' for each group if `print_users' is set. (enum_users): New function. (enum_groups): Call `enum_users' for each group if `print_users' is set. (usage): Add usage text for `-u/--users'. (longopts): Add option `--users'. (opts): Add option character `u'. (main): Set `print_users' according to option `-u/--users'. Call `enum_local_groups' and `enum_groups' with additional parameter `print_users'.