summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygheap.h (init_cygheap::luid): Remove.Corinna Vinschen2007-07-199-170/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mmap.cc (mlock): Accommodate parameter change in call to push_thread_privilege. (munlock): Ditto. * ntdll.h (STATUS_NOT_ALL_ASSIGNED): Define. (NtAdjustPrivilegesToken): Declare. * sec_helper.cc (cygpriv): Reorder to match numerical privilege order. (privilege_luid): Take job of privilege_luid_by_name, using new cygpriv. (privilege_luid_by_name): Remove. (privilege_name): Accommodate new cygpriv array. (set_privilege): Call NtAdjustPrivilegesToken to avoid using advapi32. Accommodate changes to privilege_name. (set_cygwin_privileges): Simplify. Don't try to set SE_CREATE_GLOBAL_PRIVILEGE on systems not supporting it. * security.cc (sys_privs): Reorder to match numerical privilege order. Use real privilege values as defined in security.h. (get_system_priv_list): Drop unused grp_list argument. Create list of privileges according to new wincapc::max_sys_priv value. (get_priv_list): Call privilege_luid instead of privilege_luid_by_name. Make priv a local value instead of a pointer. (create_token): Accommodate parameter change in call to push_self_privilege. (lsaauth): Ditto. (check_access): Use privilege values directly instead of calling privilege_luid. * security.h: Define real privilege values. (cygpriv_idx): Remove. (privilege_luid): Change declaration. (privilege_luid_by_name): Drop declaration. (set_privilege): Change declaration. (set_process_privilege): Drop definition. (_push_thread_privilege): Accomodate new set_privilege parameters. * wincap.h (wincapc::max_sys_priv): New element. * wincap.cc: Implement above element throughout. (wincap_2000sp4): New wincaps structure. (wincap_xpsp1): Ditto. (wincap_xpsp2): Ditto. (wincapc::init): Use new wincaps. (wincapc::max_sys_priv): New element.
* * dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, afterCorinna Vinschen2007-07-193-2/+8
| | | | | initializing hProcToken. * sec_helper.cc (init_global_security): Don't call set_cygwin_privileges here.
* Fix 'make info'.Eric Blake2007-07-199-20/+39
| | | | | | | | | | | | * libc/stdio/stdio.tex: Add missing include. * libc/stdio/vfprintf.c: Use expected node name. * libc/stdio/vfscanf.c: Likewise. * libc/stdio/sscanf.c: Likewise. * libc/stdio/sprintf.c: Likewise. * libc/stdio/siscanf.c: Likewise. * libc/stdio/siprintf.c: Likewise. * libc/stdio/fopencookie.c: Quote raw {}. Reported by DJ Delorie.
* * xtensa-config.h (XCHAL_HAVE_THREADPTR): New.Bob Wilson2007-07-182-1/+15
| | | | (XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): New.
* Fix date type for 1.15 release.Jeff Johnston2007-07-181-1/+1
|
* * faq-using.xml (faq.using.console-window): Mention FHS location ofBrian Dessent2007-07-182-5/+7
| | | | docs and remove outdated reference to ash.
* * include/winnt.h (SE_TRUSTED_CREDMAN_ACCESS_NAME): Define.Corinna Vinschen2007-07-182-0/+5
|
* * cygheap.h (shared_prefix): De-const.Corinna Vinschen2007-07-183-2/+13
| | | | | | | (shared_prefix_buf): Add static buffer for shared prefix to avoid additional allocation. * cygheap.cc (cygheap_init): Set cygheap->shared_prefix to cygheap->shared_prefix_buf and strcpy.
* * fhandler.cc (fhandler_base::fhaccess): Add check for R/O file system.Corinna Vinschen2007-07-173-1/+16
| | | | | * security.cc (check_registry_access): Set errno to EROFS when checking for W_OK.
* * include/winnt.h (FILE_READ_ONLY_VOLUME): Define.Corinna Vinschen2007-07-173-0/+7
| | | | * include/ddk/ntifs.h (FILE_READ_ONLY_VOLUME): Define.
* * COPYING3: New file. Contains version 3 of the GNU General Public License.Nick Clifton2007-07-175-0/+1525
| | | | * COPYING3.LIB: New file. Contains version 3 of the GNU Lesser General Public License.
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Move settingCorinna Vinschen2007-07-172-3/+8
| | | | cfd->nohandle where it won't crash.
* * cygheap.h (cygheap_user::curr_imp_token): Rename from current_token.Corinna Vinschen2007-07-167-16/+28
| | | | | | | | | | | Accommodate changge throughout Cygwin. (cygheap_user::imp_token): Rename from token. Accommodate changge throughout Cygwin. (rcygheap_user::eimpersonate): Use primary token for impersonation. * grp.cc (internal_getgroups): Use primary impersonation token when impersonated. * security.h (_push_thread_privilege): Use primary impersonation token when impersonated.
* * init.cc (in_dllentry): Delete.Christopher Faylor2007-07-145-7/+10
| | | | | | | (dll_entry): Remove assignment to deleted variable. * winsup.h (in_dllentry): Delete declaration. * exceptions.cc (inside_kernel): Use another method to see if we are in dll_entry phase.
* * init.cc (in_dllentry): Make NO_COPY to avoid spurious false positives.Christopher Faylor2007-07-142-1/+6
|
* Fix fflush issues.Eric Blake2007-07-1317-67/+152
| | | | | | | | | | | | | | | | | | | | | * libc/stdio/fflush.c (_fflush_r): New function. (fflush): Fix reentrancy and large offset behavior. * libc/include/stdio.h (_fflush_r): Add prototype. * libc/stdio/fclose.c (_fclose_r): All fflush callers changed. * libc/stdio/freopen.c (_freopen_r): Likewise. * libc/stdio/fseek.c (_fseek_r): Likewise. * libc/stdio/ftell.c (_ftell_r): Likewise. * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise. * libc/stdio/refill.c (__srefill_r): Likewise. * libc/stdio/setvbuf.c (setvbuf): Likewise. * libc/stdio/ungetc.c (_ungetc_r): Likewise. * libc/stdio/vfprintf.c (__sbprintf): Likewise. * libc/stdio/wbuf.c (__swbuf_r): Likewise. * libc/stdio64/freopen64.c (_freopen64_r): Likewise. * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to 32-bit version if not large file. * libc/stdio64/ftello64.c (_ftello64_r): Likewise. * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
* merge from gccDJ Delorie2007-07-131-17/+17
|
* * mep/fmax.ld, mep/gmap_default.ld, mep/min.ld, mep/simple.ldKevin Buettner2007-07-135-4/+9
| | | | (.gcc_except_table): Add pattern for .gcc_except_table.*.
* Documentation updates.Eric Blake2007-07-135-49/+111
| | | | | | | | * libc/stdio/ungetc.c: Document ungetc. * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list of files with documentation. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/stdio.tex: Sort and update stdio documentation index.
* * splay-tree.h (libi_uhostptr_t, libi_shostptr_t): Adjust typesHans-Peter Nilsson2007-07-122-4/+7
| | | | work-a-round whitespace problem in gcc gengtype.
* * configure.ac: Fix my previous change to really match GCC.Bernd Schmidt2007-07-123-2/+7
| | | | * configure: Regenerate.
* 2007-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-07-122-0/+7
| | | | | * include/winuser.h (FE_FONTSMOOTHINGSTANDARD, FE_FONTSMOOTHINGCLEARTYPE): Define.
* Changelog typoDanny Smith2007-07-121-2/+3
|
* * incude/wchar.h (_wsystem) Declare.Danny Smith2007-07-124-13/+39
| | | | | | | | | | | | | (_wputenv) Declare. (_wgetenv): Declare. (_wsearchenv): Declare. (_wmakepath): Declare. (_wsplitpath): Declare. (_wfullpath): Declare. * incude/stdlib.h (_wsystem) Declare. (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, _wfullpath): Move into _WSTDLIB_DEFINED guard. * include/tchar.h (_tsystem): New UNICODE mapping define.
* * include/winuser.h: (PBT_APMQUERYSUSPEND, PBT_APMQUERYSTANDBY,Danny Smith2007-07-123-16/+36
| | | | | | | | PBT_APMQUERYSUSPENDFAILED, PBT_APMQUERYSTANDBYFAILED, PBT_APMSUSPEND, PBT_APMSTANDBY, PBT_APMRESUMECRITICAL, PBT_APMRESUMESUSPEND, PBT_APMRESUMESTANDBY, PBT_APMBATTERYLOW, PBT_APMPOWERSTATUSCHANGE, PBT_APMOEMEVENT, PBT_APMRESUMEAUTOMATIC): Sync with include/pbt.h.
* Add support for building on a 64-bit Windows host.Nick Clifton2007-07-124-21/+40
|
* [mingw-Bugs-1751518]Danny Smith2007-07-124-34/+19
| | | | | | | | | | | * include/mshtml.h (IHTMLDocument2): Correct spelling of put_URL, get_URL. [mingw-Bugs-1751565] * include/basetyps.h (IID); Guard with __IID_DEFINED__ [mingw-Bugs-1751595] * include/exdisp.h (DWebBrowserEvents2): Remove undocumented STDDISP methods.
* Merge from gcc:DJ Delorie2007-07-113-56/+66
| | | | | | | | | | 2007-07-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure.ac: Rewrite 'configure --help' strings to look nicer. * configure: Regenerate. 2007-07-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure.ac: Add some missing m4 quotation. * configure: Regenerate.
* 2007-07-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2007-07-113-1/+24
| | | | | | | | | | * tls.m4 (GCC_CHECK_CC_TLS): New. 2007-07-05 Sebastian Pop <sebpop@gmail.com> PR bootstrap/32622 * mh-x86omitfp (BOOT_CFLAGS): Add -fomit-frame-pointer, don't reset its value.
* 2007-07-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-112-45/+50
| | | | | * libc/include/math.h: Fix so C99 functions/macros are accessible when -std=c99 is used when compiling and not when using C89.
* [mingw-Bugs-1750898]Danny Smith2007-07-102-1/+7
| | | | | * include/mmsystem.h (MIXERCONTROL): Correct UNICODE mapping. Thanks to Yuji Kuwabara <yujikuwabara at sf dot net>
* * debug.cc (close_handle): Change debug output format slightly.Christopher Faylor2007-07-105-11/+22
| | | | | | | | * dlfcn.cc (dlclose): Don't close handle returned from GetModuleHandle(NULL). * fhandler.h (fhandler_pipe::create): Remove obsolete argument. (fhandler_pipe::create): Ditto. * fhandler.cc (fhandler_pipe::create): Ditto. (fhandler_pipe::create): Ditto.
* * strace.cc (usage): Add missing description for -q.Christopher Faylor2007-07-102-1/+6
|
* * cygwin/strsig.cc (__signals): New macro.Christopher Faylor2007-07-107-39/+78
| | | | | | | | | | | (sys_sigabbrev): New array of signal strings, patterned after linux. (siglist): Use __signals. * cygwin/include/cygwin/signal.h (sys_sigabbrev): Define. * cygwin/include/cygwin/version.h: Bump API minor version to 177. * utils/Makefile.in (kill.exe): Remove reliance on libiberty. * utils/kill.cc (strsigno): New function patterned after libiberty but using newly exported cygwin array.
* .Roland McGrath2007-07-092-12/+20
|
* 2007-07-09 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-091-0/+3
| | | | * bfdlink.h (struct bfd_link_info): Add member emit_note_gnu_build_id.
* 2007-07-09 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-091-2/+6
| | | | * common.h (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
* * dir.cc (closedir): Revert change from 2007-06-29.Corinna Vinschen2007-07-095-82/+83
| | | | | | | | | | | | | | | * fhandler.h (dirent_valid_fd): Drop. * fhandler_disk_file.cc (fhandler_disk_file::opendir): If opening a real dir, use the underlying fhandler to keep track of the directory handle. In fdopendir case use original io_handle from fhandler. Use fhandler's io_handle in subsequent directory functions throughout. Create handle non-inheritable and set close-on-exec flag. (readdir_get_ino): Drop dirent_isroot case. (fhandler_disk_file::readdir): Handle dirent_isroot case here. (fhandler_disk_file::rewinddir): Revert change from 2007-07-05. Use NtClose instead of CloseHandle. * fhandler_virtual.cc (fhandler_virtual::opendir): Drop adding dirent_valid_fd flag. Set close-on-exec flag.
* Import patch from FSF gcc sources to add support for building windmc tool.Nick Clifton2007-07-096-1182/+1622
|
* [mingw-Bugs-1749305]Danny Smith2007-07-092-0/+6
| | | | * lib/kernel32.def (GetConsoleProcessList@8): Add export.
* * Makefile.in (DLL_OFILES): Add newly-imported random.o. Eliminate reliance onChristopher Faylor2007-07-084-30/+41
| | | | | | | | libiberty. * random.cc: Import from FreeBSD. Modify for Cygwin environment. * include/cygwin/stdlib.h (random): Reflect change in return value to be more linux/freebsd-like. (srandom): Ditto.
* Add initial FreeBSD version of random.cChristopher Faylor2007-07-081-0/+502
|
* update copyrightChristopher Faylor2007-07-071-1/+1
|
* * fhandler.h (fhandler_base::write): Remove __stdcall decoration.Christopher Faylor2007-07-072-3/+9
| | | | | (fhandler_pipe::write): Ditto. (fhandler_fifo::write): Ditto.
* Preliminary change to make fifos/pipes interruptible and fifos reliable.Christopher Faylor2007-07-0710-504/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dtable.cc (dtable::find_fifo): Eliminate definition. * dtable.h (dtable::find_fifo): Ditto for declaration. * fhandler.cc (fhandler_base::raw_read): Remove pipe-specific stuff. (fhandler_base::fhandler_base): Ditto. (fhandler_base::close): Handle overlapped I/O structure if appropriate. (fhandler_base::dup): Ditto. (fhandler_base::fork_fixup): Ditto. (fhandler_base::setup_overlapped): Define new function. (fhandler_base::destroy_overlapped): Ditto. (fhandler_base::wait_overlapped): Ditto. (fhandler_base::read_overlapped): Ditto. (fhandler_base::write_overlapped): Ditto. * fhandler.h (fhandler_base::get_overlapped): Declare new function. (fhandler_base::setup_overlapped): Ditto. (fhandler_base::destroy_overlapped): Ditto. (fhandler_base::wait_overlapped): Ditto. (fhandler_base::read_overlapped): Ditto. (fhandler_base::write_overlapped): Ditto. (fhandler_base::get_guard): Eliminate. (fhandler_pipe::*): Rework to eliminate most Win9x related cruft, removing many variables and defining a new overlapped capability. (fhandler_fifo::*): Ditto. (fifo_state): Declare new enum. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Remove old Win9x stuff. Initialize overlapped handle to NULL. (fhandler_fifo::set_use): Eliminate. (fhandler_fifo::open_nonserver): Define. (fhandler_fifo::open): Rework to use named pipes and overlapped I/O. (fhandler_fifo::wait): Define new function to wait for named pipe connection. (fhandler_fifo::read): Rework to use wait() and new overlapped I/O functionality. (fhandler_fifo::write): Ditto. (fhandler_fifo::dup): Eliminate. * pinfo.cc (commune_process): Remove fifo handling. (_pinfo::commune_request): Ditto. * pinfo.h (picom): Ditto. * pipe.cc (fhandler_pipe::fhandler_pipe): Remove Win9x stuff. Initialize overlapped handle to NULL. (fhandler_pipe::open): Eliminate Win9x stuff. (fhandler_pipe::set_close_on_exec): Eliminate. (read_pipe): Eliminate. (fhandler_pipe::close): Ditto. (fhandler_pipe::fixup_after_exec): Ditto. (fhandler_pipe::fixup_in_child): Ditto. (fhandler_pipe::read): Rework to use overlapped I/O. (fhandler_pipe::write): New function using overlapped I/O. (fhandler_pipe::dup): Rework to eliminate Win9x stuff. (fhandler_pipe::create_selectable): Rework to eliminate Win9x and use overlapped I/O. * select.cc (peek_pipe): Rework to eliminate Win9x stuff and use overlapped I/O. (fhandler_base::ready_for_read): Ditto.
* * path.cc (symlink_info::check_shortcut): Handle device "symlinks" specially -Christopher Faylor2007-07-072-2/+11
| | | | don't posixify them.
* * fhandler_disk_file.cc: White space.Christopher Faylor2007-07-074-24/+30
| | | | | * fhandler_proc.cc: Ditto. * fhandler_virtual.cc: Ditto.
* * fork.cc: White space.Christopher Faylor2007-07-074-36/+42
| | | | | * net.cc: Ditto. * posix_ipc.cc: Ditto.
* * times.cc (gettimeofday): Align definition to POSIX.Corinna Vinschen2007-07-062-1/+6
|
* * cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.Corinna Vinschen2007-07-063-1/+12
| | | | * include/cygwin/version.h: Bump API minor number.