Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2008-09-01Reimplement getopt.c to add getopt_long_only() function.Keith Marshall
2008-09-01Erase all file content, preparatory to rewrite.Keith Marshall
2008-08-312008-08-30 Bo Yang <techrazy@users.sourceforge.net>Chris Sutcliffe
* include/sspi.h: Fix PSecurityFunctionTableW structure.
2008-08-312008-08-29 Andy Grover <andy.grover@oracle.com>Chris Sutcliffe
* include/ddk/scsi.h: Define READ_TOC formats. * lib/ddk/scsiport.def (ScsiPortGetDeviceBase): Fix export.
2008-08-312008-08-29 Andy Grover <andy.grover@oracle.com>Chris Sutcliffe
* include/ddk/ndis.h (NDIS_MINIPORT_MAJOR_VERSION, NDIS_MINIPORT_MINOR_VERSION, struct NDIS_TASK_OFFLOAD_HEADER, PROTOCOL_RESERVED_SIZE_IN_PACKET, NdisGetFirstBufferFromPacketSafe, NdisMIndicateReceivePacket, NdisSetPacketPoolProtocolId, NdisMInitializeTimer, NdisMSetPeriodicTimer, NdisMCancelTimer): Define. (enum NDIS_ENCAPSULATION, struct NDIS_ENCAPSULATION_FORMAT): move in file. (struct _NDIS_PACKET): Define using _ANONYMOUS_UNION and ANONYMOUS_STRUCT to eliminate warnings. (NdisReinitializePacket): Rename from NdisReinitializePacketCounts. * lib/ddk/ndis.def (NdisInitAnsiString, NdisInitUnicodeString, NdisMCancelTimer, NdisMInitializeTimer, NdisMSetPeriodicTimer, NdisSetPacketPoolProtocolId): Export.
2008-08-312008-08-29 Andy Grover <andy.grover@oracle.com>Chris Sutcliffe
* include/ddk/winddk.h (RtlStringCbCopyA, RtlStringCbPrintfA, RtlStringCbVPrintfA): define in terms of POSIX string functions.
2008-08-312008-08-29 Andy Grover <andy.grover@oracle.com>Chris Sutcliffe
* include/ddk/winddk.h (KeRaiseIrql): Define. (KfRaiseIrql, KfLowerIrql): remove incorrect definitions.
2008-08-30Implement conditional replacement for printf() family functions.Keith Marshall
2008-08-302008-08-29 Andy Grover <andy.grover@oracle.com>Chris Sutcliffe
* include/ddk/winddk.h (KeFlushQueuedDpcs, KeMemoryBarrier): Define. (KeGetCurrentProcessorNumber): Fix incorrect member reference. (InterlockedIncrement, InterlockedDecrement): fix warning. * lib/ddk/ntoskrnl.def (KeFlushQueuedDpcs, KeMemoryBarrier): Export. (KeNumberProcessors): Export.
2008-08-28* fhandler_tty.cc (close_maybe): Check for both types of invalid handle beforeChristopher Faylor
attempting CloseHandle. (fhandler_pty_master::setup): Only set inheritance on pty handles, not tty handles.
2008-08-28Avoid access violations, passing NULL to printf( "...%s..." ).Keith Marshall
2008-08-28* cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.Christopher Faylor
(load_cygwin): Ditto. * dump_setup.cc (parse_filename): Cosmetic changes. (get_packages): Ditto.
2008-08-26* shared_info.h (shared_info::create_root_entry): Remove extraneousChristopher Faylor
mount_info:: from declaration.
2008-08-26 * fhandler.h (class fhandler_pipe): Rename read and writeCorinna Vinschen
declarations to raw_read and raw_write. * pipe.cc (fhandler_pipe::raw_read): Rename from read. (fhandler_pipe::raw_write): Rename from write.
2008-08-262008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe
* include/shlwapi.h (ASSOCF_INIT_NOREMAPCLSID, ASSOCF_INIT_BYEXENAME, ASSOCF_OPEN_BYEXENAME, ASSOCF_INIT_DEFAULTTOSTAR, ASSOCF_INIT_DEFAULTTOFOLDER, ASSOCF_NOUSERSETTINGS, ASSOCF_NOTRUNCATE, ASSOCF_VERIFY, ASSOCF_REMAPRUNDLL, ASSOCF_NOFIXUPS, ASSOCF_IGNOREBASECLASS, ASSOCF_INIT_IGNOREUNKNOWN): Define.
2008-08-25add commentsChristopher Faylor
2008-08-25 * mkgroup.c (enum_local_groups): Don't skip printing groups whenCorinna Vinschen
print_current is set and group SID is not curr_pgrp. (enum_groups): Ditto. (main): Fix condition when SYSTEM group gets printed. * mkpasswd.c (enum_users): Don't skip printing users when print_current is set and user SID is not curr_user. (main): Allow printing standard accounts even when print_current is set.
2008-08-232008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe
* include/commctrl.h (LVN_MARQUEEBEGIN): Define. Thanks to Tim Kosse <botg at users dot sf dot net>.
2008-08-232008-08-22 Bo Yang <techrazy@users.sourceforge.net>Chris Sutcliffe
* include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION, DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION): Correct. * include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION, DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION, LABEL_SECURITY_INFORMATION, UNPROTECTED_SACL_SECURITY_INFORMATION, UNPROTECTED_DACL_SECURITY_INFORMATION, PROTECTED_SACL_SECURITY_INFORMATION, PROTECTED_DACL_SECURITY_INFORMATION): Define.
2008-08-22* fhandler.cc (fhandler_base::wait_overlapped): Reorganize again to accommodateChristopher Faylor
what appears to be an MSDN hint about not resetting the overlapped event prior to calling GetOverlappedResult.
2008-08-20 * path.cc (symlink_info::check_shortcut): If file can't be opened,Corinna Vinschen
treat it as non-symlink rather than generating an EIO error. (symlink_info::check_sysfile): Ditto.
2008-08-202008-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe
* include/wtsapi32.h (_WTS_INFO_CLASS, _WTS_CONNECTSTATE_CLASS, WTSQuerySessionInformation, WTSFreeMemory): Define.
2008-08-20* fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes willChristopher Faylor
be non-NULL. Distinguish input result from result derived from WFMO and GetOverlappedResult or res can never be -1. Only raise SIGPIPE when writing. * fhandler.h (fhandler_base::wait_overlapped): Pass first argument by value. * fhandler_fifo.cc (fhandler_fifo::wait): Pass in dummy byte count to wait_overlapped. * pipe.cc (DEFAULT_PIPEBUFSIZE): Define to 65536 explicitly.
2008-08-19 * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variableCorinna Vinschen
and use FILE_ATTRIBUTE_DIRECTORY directly in call to NtCreateFile. * posix_ipc.cc (ipc_mutex_init): Fix format string when creating IPC object name. (ipc_cond_init): Ditto. * security.cc (alloc_sd): Add parentheses to fix setting initial owner_allow value.
2008-08-19* fhandler.cc (fhandler_base::wait_overlapped): Don't treat ERROR_BROKEN_PIPEChristopher Faylor
as a non-error. Do raise SIGPIPE when it is detected.
2008-08-18 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find outCorinna Vinschen
if a group exists, rather than just allocating a buffer and going ahead.
2008-08-18 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastErrorCorinna Vinschen
as argument when LookupAccountXXX failed. (enum_groups): Ditto.
2008-08-18 * mkgroup.c (enum_local_groups): Return failure if looking for a singleCorinna Vinschen
group succeeded. Add comment.
2008-08-18 * mkgroup.c (main): Keep correctly track of optional arguments.Corinna Vinschen
* mkpasswd.c (main): Ditto.
2008-08-18 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.Corinna Vinschen
Keep track of optional argumnts and fix up optind afterwards. * mkpasswd.c (main): Ditto.
2008-08-17* cygcheck.cc (print_version): Update copyright dates.Christopher Faylor
2008-08-17* mkpasswd.c (main): Avoid printing system accounts when a single user name hasChristopher Faylor
been requested.
2008-08-17* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ldChristopher Faylor
warnings. * mkgroup.c: Change all global variables and most functions to static. (enum_local_groups): Add a print_current parameter to control whether entries for everything should be printed or just the current user. (enum_groups): Ditto. (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL deference when no command line arguments are specified. Accommodate argument changes to above functions. Avoid printing SYSTEM account when print_current is specified. Issue error when extra stuff is found on the command line. * mkpasswd.c: Change all global variables and most functions to static. (enum_users): Add a print_current parameter to control whether entries for everything should be printed or just the current user. (main): Move call fetch_current_user_sid earlier to avoid a NULL deference when no command line arguments are specified. Accommodate argument change to above function. Avoid printing standard accounts when print_current is specified. Issue error when extra stuff is found on the command line.
2008-08-15 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primaryCorinna Vinschen
group SID from user token. (current_group): Move up in file. Move fetching primary group SID to fetch_current_pgrp_sid. (enum_local_groups): Check if current SID is the same as current user's primary group SID. (enum_groups): Ditto. (main): Call fetch_current_pgrp_sid before enumerating groups. Call current_group only if current group hasn't been enumerated already. * mkpasswd.c (fetch_current_user_sid): New function to fetch current user SID from user token. (current_user): Move fetching current user SID to fetch_current_user_sid. (enum_users): Check if current SID is the same as current user's SID. (main): Call fetch_current_user_sid before enumerating users. Call current_user only if current user hasn't been enumerated already.
2008-08-15 * mount.cc (mount_info::get_mounts_here): Don't subtract 2 fromCorinna Vinschen
Length if it's 0 anyway.
2008-08-15 * mount.cc (mount_info::create_root_entry): Create default cygdriveCorinna Vinschen
prefix with MOUNT_NOPOSIX flag.
2008-08-15 * path.cc (symlink_info::check): Don't use eabuf when trying to openCorinna Vinschen
file a second time. Call NtOpenFile instead of NtCreateFile in this case.
2008-08-14Add missing dependencies for building libmingwex.a.Keith Marshall
2008-08-14 * fhandler_disk_file.cc (fhandler_disk_file::link): Fix linkingCorinna Vinschen
against symlinks.
2008-08-14 * external.cc (cygwin_internal): Call set_security_attribute withCorinna Vinschen
additional path_conv argument. * fhandler.cc (fhandler_base::open): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Never set DOS R/O attribute when using ACLs. (fhandler_disk_file::mkdir): Ditto. Set security descriptor on remote dirs after creating the dir, same as in fhandler_base::open. * fhandler_socket.cc (fhandler_socket::bind): Ditto for remote AF_LOCAL socket files. * path.cc (symlink_worker): Ditto. for remote symlinks. * security.cc (alloc_sd): Take additional path_conv argument. Accommodate throughout. Drop setting FILE_WRITE_EA/FILE_READ_EA flags unconditionally (was only necessary for "ntea"). Don't set FILE_READ_ATTRIBUTES and FILE_WRITE_ATTRIBUTES unconditionally on Samba. Add comment to explain. Drop useless setting of STANDARD_RIGHTS_WRITE, it's in FILE_GENERIC_WRITE anyway. Remove FILE_READ_ATTRIBUTES bit from FILE_GENERIC_EXECUTE so as not to enforce read permissions on Samba. (set_security_attribute): Take additional path_conv argument. * security.h (set_security_attribute): Change prototype accordingly.
2008-08-13 * mount.cc (NT_MAX_PATH): Define.Corinna Vinschen
(longopts): Rename mount-commands option to mount-entries. (opts): Remove removed options. (struct opt): Move up in file to allow using it in usage. (usage): Change text for --mount-entries option. Remove -X option. Add valid options output. (main): Remove handling -b option. (convert_spaces): New static function to convert spaces to "\040" string. (mount_entries): Renamed from mount_commands. Rewrite to emit /etc/fstab compatible output. (show_cygdrive_info): Print "nouser" rather than "system". * umount.cc (longopts): Remove remove-all-mounts, remove-cygdrive-prefix, remove-system-mounts, system and user options. (opts): Remove A, c, s, S, u options. (usage): Remove text for all removed options. (main): Remove handling for all removed options. (remove_all_mounts): Remove. (remove_all_system_mounts): Remove. (remove_cygdrive_prefix): Remove. * utils.sgml: Fix mount and umount documentation. Move description of (cyg,not)exec options to mount table section.
2008-08-13 * pathnames.sgml: Move description for (cyg,not)exec mount optionsCorinna Vinschen
from utils.sgml here. Clarify nouser mount points.
2008-08-13 * mount.cc (fillout_mntent): Always print noumount option last.Corinna Vinschen
2008-08-13 * mount.cc (fillout_mntent): Print options as taken in fstab and mount.Corinna Vinschen
2008-08-13 * cyglsa-config: Copy the DLL instead of moving.Corinna Vinschen
2008-08-13 * dll_init.cc: Throughout convert to use long pathnames.Corinna Vinschen
* dll_init.h (struct dll): Change name to WCHAR, change operator [] to take PWCHAR argument.
2008-08-12Add replacements for remaining members of printf() family.Keith Marshall
2008-08-11 * syscalls.cc (rename): If newpath doesn't exist, check if .exe suffixCorinna Vinschen
in oldpath has been omitted before appending .exe to newpath.
2008-08-09 * fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't setCorinna Vinschen
eom_detected when EOF is detected, thus returning 0 instead of setting errno to ENOSPC.
2008-08-07 * fhandler.cc (fhandler_base::open): Use Samba workaround generallyCorinna Vinschen
for all remote filesystems supporting ACLs. Change comment and explain why. Refer to the discussion which led to this.