Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * cygtls.h (struct san): Add two int values to store the current | Corinna Vinschen | 2008-05-22 | 3 | -41/+60 |
| | | | | | | | tls_pathbuf counters. (return_from_fault): Restore tls_pathbuf counters. (setup_fault): Save tls_pathbuf counters. * tlsoffset.h: Regenerate. | ||||
* | * setfacl.c (setfacl): Change from void to int. Return 2 in case of | Corinna Vinschen | 2008-05-22 | 2 | -7/+20 |
| | | | | | error. (main): Return with error code from setfacl. | ||||
* | * sec_acl.cc (setacl): Set errno to EINVAL if user or group don't exist. | Corinna Vinschen | 2008-05-22 | 2 | -6/+18 |
| | |||||
* | * path.cc (cygwin_conv_path): Define tp before setting up faul handler. | Corinna Vinschen | 2008-05-22 | 3 | -28/+49 |
| | | | | | | * syscalls.cc: Ditto, throughout. (gen_full_path_at): Add bool parameter to allow NULL pathname. (futimesat): Allow NULL pathname as GLIBC. | ||||
* | Optimize the generic strchr. | Eric Blake | 2008-05-22 | 2 | -29/+50 |
| | | | | | | * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align data so unaligned searches aren't penalized. Special-case searching for 0. | ||||
* | Committed as obvious. | Danny Smith | 2008-05-22 | 2 | -1/+7 |
| | | | | | | | | 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net> [ mingw-Bugs-1961893 ] * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa mode to 2 for E format. | ||||
* | * string.h (strchr): Eliminate. | Christopher Faylor | 2008-05-22 | 3 | -22/+7 |
| | | | | * syscalls.cc (rename): Work around inexplicable C++ warning. | ||||
* | Optimize strchr for x86. | Eric Blake | 2008-05-21 | 2 | -14/+107 |
| | | | | | * libc/machine/i386/strchr.S (strchr): Pre-align data so unaligned searches aren't penalized. Special-case searching for 0. | ||||
* | * reloc-macros.h: Add a comment about the use of the | Nick Clifton | 2008-05-21 | 3 | -1/+39 |
| | | | | | END_RELOC_NUMBERS symbol as a sentinel value. * arm.h (END_RELOC_NUMBERS): Provide a maximum value. | ||||
* | * fhandler_disk_file.cc (get_ino_by_handle): Rename pfai to fai. | Corinna Vinschen | 2008-05-21 | 4 | -117/+103 |
| | | | | | | | | | | | | | | | | | | | | | | (fhandler_base::fstat_by_handle): Drop fai_size and pfai in favor of static struct fai_buf. Restructure. (fhandler_base::fstat_by_name): Drop fvi_size and pfvi. Drop fdi_size and pfdi in favor of static struct fdi_buf. Drop redundant test for existance. Use FileDirectoryInformation class instead of FileBothDirectoryInformation. Drop call to NtQueryVolumeInformationFile in favor of using pc.fs_serial_number (). Fix FileId information given to fstat_helper. (fhandler_disk_file::fstatvfs): Drop fvi_size, pfvi, fai_size and pfai. Drop getting FileFsVolumeInformation and FileFsAttributeInformation in favor of using the related path_conv info. (fhandler_disk_file::opendir): Fix comment. (fhandler_disk_file::readdir): Ditto. Use FileDirectoryInformation class instead of FileBothDirectoryInformation. * path.cc (fs_info::update): Store MaximumComponentNameLength in new member name_len. * path.h (struct fs_info): Use ULONG rather than DWORD. Add member name_len to store MaximumComponentNameLength. Add accessor methods. (path_conv::fs_name_len): New method. | ||||
* | * fhandler.h (dirent_states): Add dirent_nfs_d_ino state and add it to | Corinna Vinschen | 2008-05-21 | 4 | -10/+50 |
| | | | | | | | | | | | | dirent_info_mask. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Set dirent_nfs_d_ino flag for NFS shares. Explain why. (fhandler_disk_file::readdir): Use FileNamesInformation instead of FileBothDirectoryInformation info class on NFS clients not supporting the FileIdBothDirectoryInformation info class. Use local pointers to accommodate different offsets. * path.cc (symlink_info::check): Don't test directories for symlinks on NFS shares. Enhance comment. | ||||
* | * syscalls.cc (FILTERED_MODE): Define valid chmod mode mask. | Corinna Vinschen | 2008-05-21 | 2 | -2/+11 |
| | | | | | (chmod): Call fh->fchmod with filtered mode. (fchmod): Ditto. | ||||
* | * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak). | Nick Clifton | 2008-05-21 | 6 | -1/+34 |
| | | | | | | * iq2000/crt0.S (__dso_handle): Define (weak). * frv/crt0.S (__dso_handle): Define (weak). * mn10300/crt0.S (___dso_handle): Define (weak). | ||||
* | * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Fix test for | Corinna Vinschen | 2008-05-20 | 2 | -1/+6 |
| | | | | S_IFSOCK in mode bits. | ||||
* | * path.cc (symlink_worker): Fix EA buffer size info given to | Corinna Vinschen | 2008-05-20 | 2 | -5/+11 |
| | | | | | | NtCreateFile. (symlink_info::check_nfs_symlink): Get 64K buffer for EA buffer. Change EA buffer size info given to NtQueryEaFile accordingly. | ||||
* | * path.cc (symlink_info::check_shortcut): Minimize requested file | Corinna Vinschen | 2008-05-20 | 2 | -5/+14 |
| | | | | | | | access flags. (symlink_info::check_sysfile): Ditto. Add missing `else'. (symlink_info::check): Only retry to open file if first try failed with access denied. | ||||
* | 2008-05-20 DJ Delorie <dj@redhat.com> | Jeff Johnston | 2008-05-20 | 2 | -1/+5 |
| | | | | * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty. | ||||
* | * path.cc (fs_info::update): Re-add opening the unsplitted path | Corinna Vinschen | 2008-05-20 | 2 | -0/+7 |
| | | | | for fillout_mntent's sake. | ||||
* | * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Create directories | Corinna Vinschen | 2008-05-20 | 2 | -1/+27 |
| | | | | on NFS shares with correct mode bits. | ||||
* | * winsup.h (cygwin_inet_addr): Fix type of declaration. | Corinna Vinschen | 2008-05-20 | 2 | -1/+6 |
| | |||||
* | * Makefile.in (DLL_OFILES): Add nfs.o. | Corinna Vinschen | 2008-05-20 | 10 | -157/+527 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.cc (fhandler_base::open): Open files on NFS shares with correct access flags and EAs. * fhandler.h (fhandler_base::fstat_by_nfs_ea): Declare. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): New method. (fhandler_base::fstat_by_handle): Call fstat_by_nfs_ea for files on NFS shares. (fhandler_disk_file::fchmod): Use NFS specific method to set mode for files on NFS shares. Don't overrule errno from call to set_file_attribute with errno from NtSetInformationFile call. (fhandler_disk_file::fchown): Add comment. * mount.cc (fillout_mntent): Accommodate change in second parameter to fs_info::update. * nfs.cc: New file. * nfs.h: New file. * path.cc (fs_info::update): Take handle instead of bool as second parameter. Use that handle if it's not NULL. Only close handle if it has been opened here. Use static defined buffers instead of alloca'd buffers. (path_conv::check): Call symlink_info::check with reference to fs. Don't call fs.update here if file exists. (conv_path_list): Prefer tmp_pathbuf buffer over using alloca. (symlink_worker): Use NFS specific method to create symlinks on NFS shares. Prefer tmp_pathbuf buffer over using alloca. (symlink_info::check_shortcut): Reopen file from incoming handle with necessary FILE_GENERIC_READ flag. Prefer tmp_pathbuf buffer over using alloca. (symlink_info::check_sysfile): Ditto. (symlink_info::check_reparse_point): Use tmp_pathbuf buffer to allocate REPARSE_DATA_BUFFER. (symlink_info::check_nfs_symlink): New method. (enum symlink_t): Remove. (symlink_info::check): Don't use NtQueryAttributesFile. Rather, open file with necessary access flags and call NtQueryInformationFile. Fix error handling in case file can't be opened. For existing files, call fs_info::update here. Restructure symlink checking to accommodate the fact that the file is already open. Add case for NFS symlinks. * path.h (fs_info::update): Take handle instead of bool as second parameter. | ||||
* | * syscalls.cc (rename): Fix condition when to start a transaction. | Corinna Vinschen | 2008-05-20 | 2 | -1/+6 |
| | |||||
* | * path.cc (path_conv::check): Free wide_path and normalized_path if | Corinna Vinschen | 2008-05-20 | 3 | -10/+28 |
| | | | | | | necessary. * path.h (path_conv::path_conv): Set wide_path, normalized_path and normalized_path_size to 0 in all constructors. | ||||
* | * syscalls.cc (rename): Allocate temporary path buffers using | Corinna Vinschen | 2008-05-19 | 2 | -5/+17 |
| | | | | | tmp_pathbuf. Don't try to unset R/O attribute on dstpc if a removepc exists. dstpc is a non-existant file in that case. | ||||
* | * include/stdint.h: Use int rather than long for {u,}int32_t. | Christopher Faylor | 2008-05-17 | 2 | -2/+6 |
| | |||||
* | * src-release (DEVO_SUPPORT): Add ChangeLog, MAINTAINERS, | Daniel Jacobowitz | 2008-05-16 | 2 | -5/+10 |
| | | | | | | README-maintainer-mode, lt~obsolete.m4, ltgcc.m4, depcomp, mkdep, and compile. Update comments. (ETC_SUPPORT): Add ChangeLog and update comments. | ||||
* | * Makefile.in (install-license): Install COPYING file as well. | Corinna Vinschen | 2008-05-16 | 2 | -2/+8 |
| | |||||
* | * CYGWIN_LICENSE: New text. | Corinna Vinschen | 2008-05-16 | 2 | -28/+59 |
| | |||||
* | * CYGWIN_LICENSE: Remove duplicate file here. | Corinna Vinschen | 2008-05-16 | 2 | -38/+4 |
| | |||||
* | 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br> | Chris Sutcliffe | 2008-05-15 | 2 | -1/+11 |
| | | | | * include/stdlib.h: Fix strtod under C++. | ||||
* | * syscalls.cc (rename): ONly start transaction if FS supports them. | Corinna Vinschen | 2008-05-15 | 2 | -1/+8 |
| | |||||
* | * include/winnt.h (FILE_SEQUENTIAL_WRITE_ONCE): Define. | Corinna Vinschen | 2008-05-15 | 2 | -0/+8 |
| | | | | (FILE_SUPPORTS_TRANSACTIONS): Define. | ||||
* | * autoload.cc (LoadDLLfuncNt): Re-invent. | Corinna Vinschen | 2008-05-15 | 6 | -3/+123 |
| | | | | | | | | | | | | | | | | | | | | | (NtCreateTransaction): Define. (NtCommitTransaction): Define. (NtRollbackTransaction): Define. (RtlGetCurrentTransaction): Define. (RtlSetCurrentTransaction): Define. * ntdll.h (TRANSACTION_ALL_ACCESS): Define. (NtCreateTransaction): Declare. (NtCommitTransaction): Declare. (NtRollbackTransaction): Declare. (RtlGetCurrentTransaction): Declare. (RtlSetCurrentTransaction): Declare. * syscalls.cc (start_transaction): New static function to start TxF transaction. (stop_transaction): New static function to end TxF transaction. (rename): Call start_transaction and stop_transaction where appropriate on systems supporting transactions. * wincap.h (wincaps::has_transactions): New element. * wincap.cc: Implement above element throughout. | ||||
* | * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs. | Corinna Vinschen | 2008-05-15 | 4 | -1054/+7 |
| | | | | | * ipcrm.c: Remove. * ipcs.c: Remove. | ||||
* | 2008-05-14 Jeff Johnston <jjohnstn@redhat.com> | Jeff Johnston | 2008-05-14 | 2 | -91/+96 |
| | | | | | * libc/include/sys/reent.h: Change _REENT_INIT... macros to access macro parameter with parentheses around it. | ||||
* | * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Drop | Corinna Vinschen | 2008-05-14 | 3 | -5/+20 |
| | | | | | | explicit transformation of special DOS chars. * strfuncs.cc (sys_wcstombs): Always transform UNICODE private use area back to ASCII. | ||||
* | * include/cygwin/stdlib.h (initstate): Declare. | Corinna Vinschen | 2008-05-13 | 2 | -0/+7 |
| | | | | (setstate): Declare. | ||||
* | * path.cc (path_conv::set_normalized_path): Drop strip_tail argument. | Corinna Vinschen | 2008-05-13 | 5 | -47/+26 |
| | | | | | | | | | | | | | Never strip trailing dots and spaces. * (path_conv::check): Accomodate above change. * path.h (path_conv::operator=): Ditto * dtable.cc (build_fh_dev): Ditto. * fhandler.h (fhandler_base::set_name): Ditto. * path.cc (transform_chars): Disable converting trailing dots and spaces. * path.cc (path_conv::check): Remove two disabled code snippets. | ||||
* | * random.cc (initstate): Align to POSIX definition. | Corinna Vinschen | 2008-05-13 | 2 | -4/+10 |
| | | | | (setstate): Ditto. | ||||
* | 2008-05-12 Samuel Tardieu <sam@rfc1149.net> | Paolo Bonzini | 2008-05-12 | 2 | -2/+9 |
| | | | | | | | Paolo Bonzini <bonzini@gnu.org> PR ada/36001 * acx.m4: Add optional parameter to ACX_PROG_GNAT. | ||||
* | * src-release (BINUTILS_SUPPORT_DIRS): Add elfcpp and gold. | Ian Lance Taylor | 2008-05-12 | 2 | -1/+5 |
| | |||||
* | * Makefile.in (DLL_OFILES): Remove _def_time.o. | Corinna Vinschen | 2008-05-10 | 4 | -45/+35 |
| | | | | | | * libc/_def_time.c: Remove. Move definitions of _DefaultTimeLocale and _CurrentTimeLocale ... * libc/strptime.cc: ... here. | ||||
* | * include/sys/localedef.h: Remove. | Corinna Vinschen | 2008-05-08 | 3 | -101/+24 |
| | | | | | * libc/strptime.cc: Define _TimeLocale and declare _CurrentTimeLocale as well as _DefaultTimeLocale locally for Cygwin. | ||||
* | * Makefile.in (DLL_OFILES): Add _def_time.o. Remove timelocal.o. | Corinna Vinschen | 2008-05-08 | 8 | -701/+477 |
| | | | | | | | | | | * include/sys/localedef.h: New file from NetBSD. * libc/_def_time.c: Ditto. * libc/getopt.c: Update to latest OpenBSD version 1.23. * libc/strptime.cc: Replace FreeBSD version 1.35 with latest NetBSD version 1.28. * libc/timelocal.cc: Remove. * libc/timelocal.h: Remove. | ||||
* | 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br> | Chris Sutcliffe | 2008-05-07 | 3 | -5/+9 |
| | | | | | * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod. * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set. | ||||
* | Fix typo and commit the write header | Chris Sutcliffe | 2008-05-06 | 2 | -1/+5 |
| | |||||
* | 2008-05-05 Ken Werner <ken.werner@de.ibm.com> | Jeff Johnston | 2008-05-05 | 2 | -8/+6 |
| | | | | * spu/readlink.c: Align readlink implementation to POSIX. | ||||
* | 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br> | Chris Sutcliffe | 2008-05-04 | 4 | -1/+55 |
| | | | | | | | * include/sys/time.h (useconds_t): typedef. * include/unistd.h (usleep): Add prototype. * mingwex/usleep.c: New file. * mingwex/makefile.in: Add usleep source and object. | ||||
* | 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br> | Chris Sutcliffe | 2008-05-03 | 2 | -0/+284 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/vfw.h (WM_CAP_SET_CALLBACK_ERRORA, WM_CAP_SET_CALLBACK_ERRORW, WM_CAP_SET_CALLBACK_STATUS, WM_CAP_SET_CALLBACK_YIELD, WM_CAP_SET_CALLBACK_FRAMEA, WM_CAP_SET_CALLBACK_FRAMEW, WM_CAP_SET_CALLBACK_VIDEOSTREAM, WM_CAP_SET_CALLBACK_WAVESTREAM, WM_CAP_GET_USER_DATA, WM_CAP_SET_USER_DATA, WM_CAP_DRIVER_CONNECT, WM_CAP_DRIVER_DISCONNECT, WM_CAP_DRIVER_GET_NAMEA, WM_CAP_DRIVER_GET_NAMEW, WM_CAP_DRIVER_GET_VERSIONA, WM_CAP_DRIVER_GET_VERSIONW, WM_CAP_DRIVER_GET_CAPS, WM_CAP_FILE_SET_CAPTURE_FILEA, WM_CAP_FILE_SET_CAPTURE_FILEW, WM_CAP_FILE_GET_CAPTURE_FILEA, WM_CAP_FILE_GET_CAPTURE_FILEW, WM_CAP_FILE_ALLOCATE, WM_CAP_FILE_SAVEASA, WM_CAP_FILE_SAVEASW, WM_CAP_FILE_SET_INFOCHUNK, WM_CAP_FILE_SAVEDIBA, WM_CAP_FILE_SAVEDIBW, WM_CAP_EDIT_COPY, WM_CAP_SET_AUDIOFORMAT, WM_CAP_GET_AUDIOFORMAT, WM_CAP_DLG_VIDEOFORMAT, WM_CAP_DLG_VIDEOSOURCE, WM_CAP_DLG_VIDEODISPLAY, WM_CAP_GET_VIDEOFORMAT, WM_CAP_SET_VIDEOFORMAT, WM_CAP_DLG_VIDEOCOMPRESSION, WM_CAP_SET_PREVIEW, WM_CAP_SET_OVERLAY, WM_CAP_SET_PREVIEWRATE, WM_CAP_SET_SCALE, WM_CAP_GET_STATUS, WM_CAP_SET_SCROLL, WM_CAP_GRAB_FRAME, WM_CAP_GRAB_FRAME_NOSTOP, WM_CAP_SEQUENCE, WM_CAP_SEQUENCE_NOFILE, WM_CAP_SET_SEQUENCE_SETUP, WM_CAP_GET_SEQUENCE_SETUP, WM_CAP_SET_MCI_DEVICEA, WM_CAP_SET_MCI_DEVICEW, WM_CAP_GET_MCI_DEVICEA, WM_CAP_GET_MCI_DEVICEW, WM_CAP_STOP, WM_CAP_ABORT, WM_CAP_SINGLE_FRAME_OPEN, WM_CAP_SINGLE_FRAME_CLOSE, WM_CAP_SINGLE_FRAME, WM_CAP_PAL_OPENA, WM_CAP_PAL_OPENW, WM_CAP_PAL_SAVEA, WM_CAP_PAL_SAVEW, WM_CAP_PAL_PASTE, WM_CAP_PAL_AUTOCREATE, WM_CAP_PAL_MANUALCREATE, WM_CAP_SET_CALLBACK_CAPCONTROL, WM_CAP_SET_CALLBACK_ERROR, WM_CAP_SET_CALLBACK_FRAME, WM_CAP_DRIVER_GET_NAME, WM_CAP_DRIVER_GET_VERSION, WM_CAP_FILE_SET_CAPTURE_FILE, WM_CAP_FILE_GET_CAPTURE_FILE, WM_CAP_FILE_SAVEAS, WM_CAP_FILE_SAVEDIB, WM_CAP_SET_MCI_DEVICE, WM_CAP_GET_MCI_DEVICE, WM_CAP_PAL_OPEN, WM_CAP_PAL_SAVE, capSetCallbackOnError, capSetCallbackOnStatus, capSetCallbackOnYield, capSetCallbackOnFrame, capSetCallbackOnVideoStream, capSetCallbackOnWaveStream, capGetUserData, capSetUserData, capDriverConnect, capDriverDisconnect, capDriverGetName, capDriverGetVersion, capDriverGetCaps, capFileSetCaptureFile, capFileGetCaptureFile, capFileAlloc, capFileSaveAs, capFileSetInfoChunk, capFileSaveDIB, capEditCopy, capSetAudioFormat, capGetAudioFormat, capGetAudioFormatSize, capDlgVideoFormat, capDlgVideoSource, capDlgVideoDisplay, capGetVideoFormat, capGetVideoFormatSize, capSetVideoFormat, capDlgVideoCompression, capPreview, capOverlay, capPreviewRate, capPreviewScale, capGetStatus, capSetScrollPos, capGrabFrame, capGrabFrameNoStop, capCaptureSequence, capCaptureSequenceNoFile, capCaptureSetSetup, capCaptureGetSetup, capSetMCIDeviceName, capGetMCIDeviceName, capCaptureStop, capCaptureAbort, capCaptureSingleFrameOpen, capCaptureSingleFrameClose, capCaptureSingleFrame, capPaletteOpen, capPaletteSave, capPalettePaste, capPaletteAuto, capPaletteManual, capSetCallbackOnCapControl): Define. (CAPDRIVERCAPS, *LPCAPDRIVERCAPS, CAPINFOCHUNK, *LPCAPINFOCHUNK, CAPSTATUS, *LPCAPSTATUS, CAPTUREPARMS, *LPCAPTUREPARMS, VIDEOHDR, *LPVIDEOHDR): typedef. | ||||
* | 2008-04-02 Ramiro Polla <ramiro@lisha.ufsc.br> | Chris Sutcliffe | 2008-05-03 | 3 | -1/+14 |
| | | | | | | | | | Make strtod() conform to C99. * include/stdlib.h (strtod): Declare this mingwex function, and... (_strtod): rename this MSVCRT counterpart. * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod. |