summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2006-12-12 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-132-1/+6
| | | | | * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for cell spu
* * winsup.h (clear_procimptoken): Close hProcImpToken in a safer way.Corinna Vinschen2006-12-132-1/+6
|
* * security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE toCorinna Vinschen2006-12-132-1/+6
| | | | avoid potential access violation.
* * Makefile.in (subauth): Drop rule.Corinna Vinschen2006-12-124-8/+6
| | | | | * configure.in: Remove subauth related check. * configure: Regenerate.
* Remove subauth directory.Corinna Vinschen2006-12-128-5144/+0
|
* * environ.cc (subauth_id_init): Remove.Corinna Vinschen2006-12-125-267/+26
| | | | | | | | | | | (parse_thing): Drop "subauth_id" option. * security.cc (get_token_group_sidlist): Drop comments concerning subauthentication. (create_token): Back out subauthentication related changes. (subauth): Remove. * security.h (create_token): Remove declaration. (subauth): Ditto. * syscalls.cc (seteuid32): Drop subauthentication handling entirely.
* * cygwinenv.sgml: Drop description of "traverse" option.Corinna Vinschen2006-12-122-12/+4
|
* * environ.cc (set_traverse): Remove.Corinna Vinschen2006-12-127-28/+12
| | | | | | | | | | | (parse_thing): Drop "traverse" option. * path.cc (fs_info::update): Don't request SE_CHANGE_NOTIFY_PRIV privilege. * sec_helper.cc (set_cygwin_privileges): Ditto. * security.cc (allow_traverse): Remove. (alloc_sd): Drop special allow_traverse code. * security.h (allow_traverse): Drop declaration. * syscalls.cc (statvfs): Don't request SE_CHANGE_NOTIFY_PRIV privilege.
* Partially revert change from 2005-04-03, always running under anCorinna Vinschen2006-12-1210-28/+58
| | | | | | | | | | | | | | | | | | | | impersonation token, which collides with Vista UAC. * cygheap.h (deimpersonate): revert to self instead of impersonating hProcImpToken. (reimpersonate): Only impersonate if setuid. * dcrt0.cc (dll_crt0_0): Don't initialize hProcImpToken here. (dll_crt0_1): Set privileges on hProcToken. * fork.cc (frok::child): Set privileges on hProcToken. Close handle to hProcImpToken. * grp.cc (internal_getgroups): Use hProcToken instead of hProcImpToken. * security.cc (check_access): Create hProcImpToken on demand here. * security.h (set_process_privilege): Set privileges on hProcToken. (_push_thread_privilege): Use hProcToken instead of hProcImpToken. (pop_thread_privilege): If not setuid'ed, revert to self. * syscalls.cc (setegid32): Drop setting primary group on hProcImpToken. Close handle to hProcImpToken. * uinfo.cc (internal_getlogin): Ditto. * winsup.h (clear_procimptoken): New inline function.
* Add missing ChangeLog.Christopher Faylor2006-12-121-0/+4
|
* * sigproc.cc (child_info::child_info): Initialize msv_count.Christopher Faylor2006-12-122-23/+28
|
* Revert erroneous checkin.Corinna Vinschen2006-12-121-1/+0
|
* * libc/minires.c (res_ninit): Drop handling for LOCALDOMAIN environmentCorinna Vinschen2006-12-122-6/+5
| | | | variable.
* sync a change from gccAlan Modra2006-12-123-2/+9
|
* * configure.in: Remove superfluous semicolons.Ben Elliston2006-12-113-48/+52
| | | | * configure: Regenerate.
* * Makefile.in (DLL_OFILES): Add minires-os-if.o and minires.o.Corinna Vinschen2006-12-1112-16/+2891
| | | | | | | | | | | | | | | | | (SUBLIBS): Add libresolv.a. Add rule for libresolv.a. * autoload.cc: Fix return code handling for IP Helper API in case of being unable to load iphlpapi.dll. (DnsQuery_A): Define. (DnsRecordListFree): Define. * cygwin.din: Export resolver functions. * include/resolv.h: New header. * include/arpa/nameser.h: New header. * include/arpa/nameser_compat.h: New header. * include/cygwin/version.h: Bump API minor number. * libc/minires-os-if.c: New file. * libc/minires.c: New file. * libc/minires.h: New file.
* 2006-12-11 Kazu Hirata <kazu@codesourcery.com>Jeff Johnston2006-12-1131-289/+1964
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from newlib-csl-20060320-branch: 2006-12-01 Nathan Sidwell <nathan@codesourcery.com> Kazu Hirata <kazu@codesourcery.com> * m68k/Makefile.in (CF_ISRS): Use addprefix. 2006-11-01 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in (CFLAGS): Do not clear. Add to all compilations. (ARFLAGS): Remove commented out definition. * m68k/configure.in (DO) Set to list of target cpu families. * m68k/configure: Rebuilt. * m68k/Makefile.in (DO): New. (UNHOSTED_BSP, UNHOSTED_OBJS, HOSTED_BSP, HOSTED_OBJS): Move later. (m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5275evb, m5282evb, m5329evb, m5485evb): Move earlier. (all): Add all_$DO dependencies. (all_cf, all_m68k): New targets, depend on cf & m68k bsps as appropriate. (m%-ram.ld, m%-rom.ld, m%-ram-hosted.ld, m%-rom-hosted.ld): Add 'm' prefix. (install): Add install_$DO dependencies. (install_cf, install_m68k): New targets. Perform cf and m68k installs as appropriate. (install_io): New, install the io libraries. 2006-10-23 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in (CF_CRT0): Rename to CF_CRT0S, separate hosted & unhosted versions. (CF_OBJS): Add cf-isv.o. (CF_SOURCES): Add cf-isv.S. (cf-hosted-crt0.o, cf-unhosted-crt0.o): New targets. * m68k/cf-isv.S: New, broken out of ... * m68k/cf-crt0.S: ... here. Add HOSTED & UNHOSTED differences. * m68k/cf-crt1.c (__start1): Add heap_limit argument. (__heap_limit): Define. * m68k/cf-sbrk.c (__heap_limit): Declare. (sbrk): Adjust for __heap_limit. * m68k/cf.sc: Use different crt0's for hosted & unhosted. Install a separate isv.o file. * m68k/io.h (HOSTED_PUTCHAR): Replace with ... (HOSTED_INIT_SIM): ... this. 2006-10-20 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in (CF_BOARDS): Add m5275evb. (m5275evb): New board. 2006-10-20 Vladimir Prus <vladimir@codesourcery.com> * m68k/cf.sc: Add linkonce sections and DWARF sections. 2006-10-07 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in: Adjust Coldfire rules. (BDM_CRT0, BDM_BSP, BDM_OBJS, BDM_ISRS): Rename to ... (CF_CRT0, CF_BSP, CF_OBJS, CF_ISRS): ... here. Adjust. (BDM_OTHER_OBJS): Remove. (BDM_SYSOBJS): Rename to ... (UNHOSTED_OBJS): ... here. Adjust. (UNHOSTED_BSP, HOSTED_OBJS, HOSTED_BSP): New. (CF_HOSTED_SCRIPTS): New. (CF_SCRIPTS, CF_SOURCES): Adjust. * m68k/cf.sc: Add IO library variable. * m68k/bdm-crt0.S, m68k/bdm-crt1.c, m68k/bdm-isrs.c, m68k/bdm-sbrk.c, m68k/bdm-semihost.S: Rename to ... * m68k/cf-crt0.S, m68k/cf-crt1.c, m68k/cf-isrs.c, m68k/cf-sbrk.c, m68k/cf-hosted.S: ... here. * m68k/cf-exit.c: New. * m68k/bdm-gdb.h, m68k/bdm-semihost.h: Merge into ... * m68k/io.h: ... here. Add unhosted support. Adjust conversion function names. * m68k/bdm-gdb.c: Rename to ... * m68k/io-gdb.c: ... here. Adjust names of conversion functions. * m68k/bdm-close.c, m68k/bdm-exit.c, m68k/bdm-fstat.c, m68k/bdm-gettimeofday.c, m68k/bdm-isatty.c, m68k/bdm-lseek.c, m68k/bdm-open.c, m68k/bdm-read.c, m68k/bdm-rename.c, m68k/bdm-stat.c, m68k/bdm-system.c, m68k/bdm-time.c, m68k/bdm-unlink.c, m68k/bdm-write.c: Rename to ... * m68k/io-close.c, m68k/io-exit.c, m68k/io-fstat.c, m68k/io-gettimeofday.c, m68k/io-isatty.c, m68k/io-lseek.c, m68k/io-open.c, m68k/io-read.c, m68k/io-rename.c, m68k/io-stat.c, m68k/io-system.c, m68k/io-time.c, m68k/io-unlink.c, m68k/io-write.c: ... here. Include io.h. Adjust for hosted & unhosted libraries. Adjust names of gdb conversion functions. 2006-09-29 Nathan Sidwell <nathan@codesourcery.com> * m68k/bdm-semihost.S: Add more comments. Make instruction weirder. 2006-09-22 Nathan Sidwell <nathan@codesourcery.com> * m68k/bdm-crt1.c (hardware_init_hook): Use #defines for CACR bits. 2006-09-18 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in: Don't force a frame pointer on the ISRs. * m68k/bdm-crt1.c (__start1): Don't set the VBR here. (hardeare_init_hook): Define weakly. Set VBR here, enable caching if supported. * m68k/Makefile.in (bdm-semihost.o): Build from bdm-semihost.S. * m68k/bdm-semihost.c: Remove. * m68k/bdm-semihost.S: New. * m68k/bdm-crt0.S: Don't install semihosting trap handler. * m68k/bdm-close.c, bdm-exit.c, bdm-fstat.c, bdm-gettimeofday.c, bdm-isatty.c, bdm-lseek.c, bdm-open.c, bdm-read.c, bdm-rename.c, bdm-stat.c, bdm-system.c, bdm-unlink.c, bdm-write.c): Update. * m68k/bdm-isrs.c: Update comment. * m68k/bdm-semihost.h (BDM_TRAPNUM, BDM_FUNC_REG, BDM_ARG_REG, BDM_TRAP): Remove. (__bdm_semihost): Declare. 2006-09-15 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in (BDM_OTHER_OBJS): Remove sbrk.o. (BDM_SYSOBJS): Add bdm-sbrk.o. * m68k/bdm-sbrk.c: New. 2006-09-06 Nathan Sidwell <nathan@codesourcery.com> * m68k/Makefile.in (CF_SOURCES): New. (install): Install them. 2006-09-01 Nathan Sidwell <nathan@codesourcery.com> * m68k/cf.sc: Add .jcr section to .text.
* * sigproc.cc (child_info::child_info): Move old comment about msv_count here.Christopher Faylor2006-12-112-0/+28
| | | | Edit it slightly to reflect new sensibilities.
* * dumper.cc: Add an include to accommodate new include/elf usage.Christopher Faylor2006-12-112-0/+5
|
* 2006-12-11 Ben Elliston <bje@au.ibm.com>Jeff Johnston2006-12-113-46/+53
| | | | | | | * configure.in: Remove extra whitespace from config_testsuite = VALUE statements to eliminate shell errors. Remove superfluous semicolons. * configure: Regenerate.
* correct email addressChristopher Faylor2006-12-112-2/+2
|
* * child_info.h (child_info_spawn::__stdin): New element.Christopher Faylor2006-12-1115-121/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (child_info_spawn::__stdin): Ditto. (CURR_CHILD_INFO_MAGIC): Regenerate. * dcrt0.cc (check_sanity_and_sync): Minor cleanup. (child_info_spawn::handle_spawn): Handle new __std* elements by calling move_fd. * dtable.cc (dtable::move_fd): Define new function. * dtable.h (dtable::move_fd): Declare new function. * fhandler.h (fhandler_pipe::popen_pid): Declare new element. * fhandler.h (fhandler_pipe::get_popen_pid): Define new function. * fhandler.h (fhandler_pipe::set_popen_pid): Ditto. * pipe.cc (fhandler_pipe::fhandler_pipe): Zero popen_pid. (fhandler_pipe::dup): Ditto. * spawn.cc (handle): Change second argument to bool. (spawn_guts): Accept __stdin/__stdout arguments and set them appropriately in child_info structure and in STARTUPINFO structure. * syscalls.cc (popen): New cygwin-specific implementation using spawn. (pclose): Ditto. * winsup.h (spawn_guts): Accommodate new arguments for spawn_guts. * fhandler.cc (fhandler_base::set_no_inheritance): Make second arg a bool. * fhandler.h (fhandler_base::set_no_inheritance): Ditto for declaration. * child_info.h (child_info::msv_count): Rename from the now-inappropriate "zero". (child_info_spawn::filler): Add filler to work around Vista bug. (child_info_fork::filler): Ditto. * dcrt0.cc (get_cygwin_startup_info): Remove "zero" check since it is now always filled out. * fork.cc (frok::parent): Move ch.zero manipulation to constructor. * spawn.cc (spawn_guts): Ditto. Remove _ch wrapper. * sigproc.cc (child_info::child_info): Initialize starter[]. * shared.cc (shared_info::heap_slop_size): Remove noisy system_printfs. * shared_info.h (CURR_SHARED_MAGIC): Regenerate.
* * fhandler.cc (rootdir): Fix typo in comment.Corinna Vinschen2006-12-113-3/+8
| | | | * syscalls.cc (try_to_bin): Ditto.
* * configure.in: Handle spu makefile frag.Alan Modra2006-12-116-135/+158
| | | | | | | | * config/mt-spu: New file. * Makefile.tpl (MAINT): Define (MAINTAINER_MODE_FALSE, MAINTAINER_MODE_TRUE): Define. * configure: Regenerate. * Makefile.in: Regenerate.
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2006-12-113-5/+22
|
* * configure.in: Sync with GCC (spu-*-*).Ben Elliston2006-12-113-0/+11
| | | | * configure: Sync with GCC.
* * spu/exit.c (libgloss_exit): Rename from this ..Ben Elliston2006-12-111-11/+12
| | | | | (_exit): .. to this. Overhaul. (exit): Remove.
* Resurrect.Ben Elliston2006-12-101-0/+44
|
* Remove (missed in previous commit).Ben Elliston2006-12-101-56/+0
|
* Typo fix.Ben Elliston2006-12-101-1/+1
|
* * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and passChristopher Faylor2006-12-102-4/+6
| | | | POSIX path directly - this avoids a cygwin DLL warning.
* * autoload.cc (SHFileOperationA): Drop definition.Corinna Vinschen2006-12-108-44/+153
| | | | | | | | | | | | | | | | | | | * ntdll.h (struct _FILE_RENAME_INFORMATION): Define. * path.cc (fs_info::update): Note length of rootdir prefix in root_len. (get_nt_native_path): New function, taking over functionality of path_conv::get_nt_native_path. (path_conv::get_nt_native_path): Just call get_nt_native_path. * path.h (get_nt_native_path): Declare. (struct fs_info): New member root_len. (fs_info::length): New inline method returning root_len. (path_conv::rootdir): New inline method returning rootdir prefix. * syscalls.cc (try_to_bin): Rewrite using only system calls. (unlink_nt): Call try_to_bin with additional handle to open file parameter. (statvfs): Use path_conv::rootdir method. * wincap.h: Define has_recycle_dot_bin throughout. * wincap.cc: Ditto.
* * fhandler.cc (rootdir): Clarify comment.Corinna Vinschen2006-12-102-2/+7
|
* * fhandler.cc (rootdir): Don't look for volume mount points on remoteCorinna Vinschen2006-12-102-2/+8
| | | | shares.
* * fhandler.cc (rootdir): Drop useless post-increment. Take volumeCorinna Vinschen2006-12-102-2/+62
| | | | | mount points into account. (check_posix_perm): Allocate space for root directory big enough.
* * syscalls.cc (try_to_bin): Add comment that this is not possiblyCorinna Vinschen2006-12-092-0/+12
| | | | the final version.
* 2006-12-08 Sa Liu <saliu@de.ibm.com>Jeff Johnston2006-12-089-86/+323
| | | | | | | | | | | | | | * spu/exit.c (libgloss_exit): Rename from this .. (_exit): .. to this. Overhaul. (exit): Remove. * spu/crt0.S, spu/crti.S, spu/crtn.S: New files. * spu/crt0.C, spu/init.c: Remove. * spu/configure.in (AC_INIT): Check for crt0.S, not crt0.C. * spu/configure: Regenerate. * spu/Makefile.in (crti.o, crtn.o, crt1.o, crt2.o): New targets. (OBJS): Remove init.o. (CRTOBJS): New. (OUTPUTS): Add $(CRTOBJS).
* * Makefile.def (dependencies): Add dependency forMike Stump2006-12-083-0/+13
| | | | | | install-target-libssp and install-target-libgomp on install-gcc. * Makefile.in: Regenerate.
* * syscalls.cc (unlink_nt): Open native symlinks withCorinna Vinschen2006-12-072-0/+9
| | | | FILE_OPEN_REPARSE_POINT flag.
* * ntdll.h (STATUS_DELETE_PENDING): Define.Corinna Vinschen2006-12-073-90/+124
| | | | | | | | (struct _FILE_DISPOSITION_INFORMATION): Define. * syscalls.cc (unlink_9x): new function to delete file on 9x. * syscalls.cc (unlink_nt): new function to delete file on NT. (unlink): Simplify. Move OS dependent stuff into aforementioned functions. Also handle FILE_ATTRIBUTE_HIDDEN as R/O-like flag.
* bfd/Kazu Hirata2006-12-072-12/+24
| | | | | | | | | | | | | | | | | | | | | * elf32-m68k.c: Update uses of EF_M68K_*. binutils/ * readelf.c: Update uses of EF_M68K_*. gas/ * config/tc-m68k.c: Update uses of EF_M68K_*. include/elf * m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV, EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP, EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC, EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A, EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP, EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK, EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B, EF_M68K_CF_FLOAT, respectively.
* * autoload.cc (SHFileOperationA): Define.Corinna Vinschen2006-12-073-1/+48
| | | | | | | * syscalls.cc (try_to_bin): New function trying to move a file to the recycle bin. (unlink): Fix arguments used in CreateFile for delete on close. Before closing the handle, try to move the file to the recycle bin.
* * cygheap.h (struct cwdstuff): Add "sync" member and accompanyingCorinna Vinschen2006-12-074-31/+69
| | | | | | | | | | "keep_in_sync" methods. * external.cc (cygwin_internal): Call above keep_in_sync method when CW_SYNC_WINENV is requested. * path.cc (cwdstuff::init): Don't change to windows_system_directory if keep_in_sync is requested. (cwdstuff::keep_in_sync): New method. (cwdstuff::set): Take sync flag into account.
* * termios.cc: Change include order to accomodate change to sys/ioctl.h.Corinna Vinschen2006-12-062-1/+5
|
* merge from gccDJ Delorie2006-12-061-1/+1
|
* * fhandler_mem.cc (fhandler_dev_mem::open): Fix comment.Corinna Vinschen2006-12-063-3/+10
| | | | | | * wincap.cc (has_physical_mem_access): Reflect the fact that physical memory access has been made a protected operation beginning with 2003 Server.
* Define ATTRIBUTE_PACKED and use as necessary.Nick Clifton2006-12-066-8/+27
|
* * include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.Corinna Vinschen2006-12-062-1/+6
|
* * winsup.h (WINVER): Set to 0x0600 to cover Vista.Corinna Vinschen2006-12-062-1/+5
|
* * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Fix typo.Corinna Vinschen2006-12-062-1/+5
|