Christopher Faylor
2f9c27131f
* select.cc (serial_cleanup): Make sure that device_specific_pipe is always
...
deleted regardless of whether it has a unique thread associated with it
(socket_cleanup): Ditto.
(mailslot_cleanup): Ditto.
2011-04-20 15:32:31 +00:00
Corinna Vinschen
12c0f2d909
* devices.h: Renumber internal devices so that FH_PROCESS is part of
...
the /proc family of virtual devices.
(FH_PROC_MAX_MINOR): Define.
* path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
2011-04-20 07:29:10 +00:00
Corinna Vinschen
f59c2998a1
Fix spaces
2011-04-20 06:52:57 +00:00
Christopher Faylor
693581e4a4
* select.cc (pipe_cleanup): Make sure that device_specific_pipe is always
...
deleted regardless of whether it has a unique thread associated with it.
2011-04-20 01:10:54 +00:00
Jon TURNEY
11629685f1
2011-04-02 Jon TURNEY <jon.turney@dronecode.org.uk>
...
* thread.cc (semaphore::init): We cannot reliably infer anything from
the existing contents of sem, so merely warn rather than return EBUSY
if it looks like we are reinitialising a semaphore.
2011-04-19 18:51:20 +00:00
Corinna Vinschen
ed240047f2
* COPYING: Replace with the GPLv3 definition.
...
* CYGWIN_LICENSE: Move Cygwin to GPLv3+. Align text to FSF speak.
2011-04-19 16:52:51 +00:00
Corinna Vinschen
ba6aad1d73
* autoload.cc (GetConsoleWindow): Drop.
...
(GetSystemWindowsDirectoryW): Drop.
* fhandler_console.cc (beep): Call GetSystemWindowsDirectoryW instead of
GetWindowsDirectoryW.
* uinfo.cc (cygheap_user::env_systemroot): Call
GetSystemWindowsDirectoryW and convert to multibyte on the fly.
* winlean.h (GetWindowsDirectoryW): Redefine to something invalid.
Explain why.
2011-04-19 10:15:09 +00:00
Corinna Vinschen
b18cb86be7
* Makefile.in (DLL_IMPORTS): Drop advapi32.dll.
...
* autoload.cc: Enable autoloading advapi32 functions.
* environ.cc (regopt): Use wide char arguments in reg_key functions.
* fhandler_console.cc (beep): Ditto. Use WCHAR throughout.
* registry.cc (reg_key): Rewrite reg_key class to use native NT registry
functions. Use WCHAR string parameters throughout. Use PCWSTR rather
than const WCHAR. Drop multibyte char functionality. Drop unused
methods.
(get_registry_hive_path): Use RtlQueryRegistryValues to fetch path from
registry.
(load_registry_hive): Drop useless check for user hive being available.
Load hive using NtLoadKey.
* registry.h: Accommodate above changes.
* sched.cc (sched_rr_get_interval): Use wide char arguments in reg_key
functions.
* shared.cc (init_installation_root): Ditto.
(shared_info::init_obcaseinsensitive): Use RtlQueryRegistryValues to
fetch obcaseinsensitive value.
(shared_info::heap_slop_size): Use wide char arguments in reg_key
functions.
(shared_info::heap_chunk_size): Ditto.
* syscalls.cc (gethostid): Ditto.
* winsup.h (__WIDE): Define.
(_WIDE): Define.
* libc/minires-os-if.c (get_registry_dns_items): Don't fetch values
from registry. Just extract them from given UNICODE_STRING parameter.
(get_registry_dns): Fetch all registry values at once using
RtlQueryRegistryValues.
2011-04-19 10:02:06 +00:00
Corinna Vinschen
cbc26145e8
* net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registry
...
values at once using RtlQueryRegistryValues.
(get_ipv4fromreg): Ditto.
2011-04-19 08:59:30 +00:00
Corinna Vinschen
e5c91e1627
* fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
2011-04-19 08:45:36 +00:00
Corinna Vinschen
f5ab5b84de
* fhandler_proc.cc (read_value): Remove definition.
...
(print): Simplify.
(format_proc_cpuinfo): Drop useless call to GetSystemInfo. Rearrange
to use Rtl registry functions. Rename dwOldThreadAffinityMask to
orig_affinity_mask.
2011-04-19 08:39:38 +00:00
Corinna Vinschen
593d0dc50f
* localtime.cc (tzload): Don't change global timezone information
...
when called from gmtime or gmtime_r.
(tzparse): Ditto.
2011-04-18 19:07:18 +00:00
Corinna Vinschen
1d8170bdfa
* cygtls.cc (_cygtls::remove): Always close sockevt handle.
2011-04-18 15:51:54 +00:00
Christopher Faylor
ab4c946e4c
fix typo
2011-04-18 14:02:02 +00:00
Corinna Vinschen
bd80ec4fc8
* new-features.sgml (ov-new1.7.10): Document ppoll.
2011-04-18 12:00:13 +00:00
Corinna Vinschen
20a0b8c8e6
* cygwin.din (ppoll): Export.
...
* poll.cc (ppoll): Implement.
* posix.sgml (std-gnu): Add ppoll.
* include/cygwin/version.h: Bump API minor number.
* include/sys/poll.h (ppoll): Declare.
2011-04-18 12:00:05 +00:00
Corinna Vinschen
0077cd1016
* fhandler_socket.cc (fhandler_socket::evaluate_events): Handle the
...
FD_CLOSE event specially when called from accept. Explain why.
(fhandler_socket::shutdown): Fake success on not-connected socket and
trigger socket event if the read side of a socket is affected. Explain
why.
* poll.cc (poll): Check for saw_shutdown_read on sockets to generate
POLLHUP as well.
2011-04-18 11:44:17 +00:00
Corinna Vinschen
7c8126eb3e
* Fix various copyrights.
2011-04-18 11:26:37 +00:00
Corinna Vinschen
1122b3e64e
* setfacl.c (getaclentry): Allow extra colon in mask and other entries.
2011-04-18 10:23:21 +00:00
Christopher Faylor
2d077d7c6d
* * signal.cc (_pinfo::kill): Set this_process_state when process exists.
2011-04-18 01:46:57 +00:00
Christopher Faylor
fdcae03c0f
* signal.cc (_pinfo::kill): Return 0 when attempting to test for existence of
...
an existed process which has not yet been reaped.
2011-04-17 21:45:28 +00:00
Christopher Faylor
f4c1f003e3
* cygheap.h (init_cygheap::ctty): Use base class so that console can join in
...
the fun.
* dtable.cc (dtable::stdio_init): Remove special-case call to set_console_ctty
().
* exceptions.cc (sigpacket::process): Conditionally flush terminal input on
certain signals.
* fhandler.h (fhandler_console::get_tty_stuff): Make non-static.
(fhandler_termios::get_ttyp): Move here.
(fhandler_termios::sigflush): Declare.
(fhandler_tty_common::get_ttyp): Delete.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Pass this as "arch"
argument.
(set_console_ctty): Delete.
(tty_list::get_tty): Just return pointer to shared console region, delaying
get_tty_stuff until open().
(fhandler_console::init): Treat NULL handle as signifying that console should
be opened with O_NOCTTY flag. Rename handle argument to the more common 'h'.
* fhandler_termios.cc (fhandler_termios::sigflush): Define.
* fhandler_tty.cc (handler_tty_master::init_console): Pass NULL as first
argument to fhandler_console::init.
* pinfo.cc (_pinfo::set_ctty): Change third parameter to fhandler_termios *.
Add extra debugging.
* pinfo.h (_pinfo::set_ctty): Change third parameter to fhandler_termios *.
* sigproc.cc (handle_sigsuspend): Don't special-case non-main threads.
2011-04-17 19:56:25 +00:00
Yaakov Selkowitz
162deed595
* thread.cc (pthread_setschedprio): New function.
...
* include/pthread.h (pthread_setschedprio): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* cygwin.din (pthread_setschedprio): Export.
* posix.sgml (std-notimpl) Move pthread_setschedprio from here...
(std-susv4) ...to here.
2011-04-15 09:22:14 +00:00
Jon TURNEY
cc00d3deb9
2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>
...
* utils.sgml (strace): Fix a pair of exchanged lines in usage text.
2011-04-13 11:42:43 +00:00
Yaakov Selkowitz
2f4d0818b3
* new-features.sgml (ov-new1.7.10): Document /proc/swaps.
2011-04-11 02:10:35 +00:00
Yaakov Selkowitz
5f6d028db2
* fhandler_proc.cc (proc_tab): Add /proc/swaps virtual file.
...
(format_proc_swaps): New function.
2011-04-11 02:09:43 +00:00
Christopher Faylor
30a4f5b696
* Makefile.in: Move srcdir definition before others which uses it.
2011-04-07 06:07:21 +00:00
Christopher Faylor
8d777a13fc
* dll_init.cc (reserve_at, release_at): New functions.
...
(load_after_fork): If the DLL was loaded higher than the required address,
assume that it loaded at it's base address and also reserve memory there to
force it to be relocated.
2011-04-06 13:58:00 +00:00
Yaakov Selkowitz
ddebf19a2a
* include/cygwin/types.h: Move #include <sys/sysmacros.h> to
...
end of header so that it gets the dev_t typedef.
* include/sys/sysmacros.h (gnu_dev_major, gnu_dev_minor,
gnu_dev_makedev): Prototype and define as inline functions.
(major, minor, makedev): Redefine in terms of gnu_dev_*.
2011-04-05 00:53:17 +00:00
Yaakov Selkowitz
8b09538c94
* include/cygwin/types.h: Move multiple inclusion guards to
...
beginning and end of header.
2011-04-05 00:50:19 +00:00
Christopher Faylor
3649c742cb
* Makefile.in: Move Makefile.common include earlier to fix problems with
...
relative ${srcdir} path which confuses make.
2011-04-04 15:01:43 +00:00
Corinna Vinschen
708293f94e
* new-features.sgml (ov-new1.7.10): Document dropped NT4 support.
2011-04-04 12:25:37 +00:00
Corinna Vinschen
6ce541281e
Drop NT4 support.
...
* autoload.cc (DnsQuery_A): Fatal if not available.
(DnsRecordListFree): Ditto.
(DsGetDcNameW): Ditto.
(NetGetAnyDCName): Remove.
(NetGetDCName): Remove.
(EnumProcessModules): Fatal if not available.
(GetModuleFileNameExW): Ditto.
(GetModuleInformation): Ditto.
(GetProcessMemoryInfo): Ditto.
(QueryWorkingSet): Ditto.
(LsaRegisterLogonProcess): Ditto.
* fenv.cc (_feinitialise): Drop supports_sse condition.
* fhandler_disk_file.cc (path_conv::isgood_inode): Fix comment.
(fhandler_base::fstat_by_name): Drop has_fileid_dirinfo condition.
(fhandler_disk_file::opendir): Ditto.
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Fix comment.
* fhandler_proc.cc (format_proc_partitions): Drop NT4-only code.
* fhandler_process.cc (get_process_state): Ditto.
* kernel32.cc (GetWindowsDirectoryW): Remove.
(GetWindowsDirectoryA): Remove.
* miscfuncs.cc (nice_to_winprio): Drop NT4-only code.
* mount.cc (fs_info::update): Fix comments.
* net.cc (get_2k_ifs): Drop NT4-only code.
* sec_auth.cc (get_logon_server): Ditto.
(lsaauth): Drop NT4-specific error handling.
* security.cc (alloc_sd): Set SE_DACL_PROTECTED unconditionally.
* select.cc (select_stuff::wait): Always use MWMO_INPUTAVAILABLE.
(peek_windows): Drop NT4-only condition in call to PeekMessage.
* syscalls.cc (gethostid): Remove NT4-only workaround.
* wincap.cc: Througout, drop has_dacl_protect,
has_broken_if_oper_status, has_process_io_counters,
has_terminal_services, has_extended_priority_class, has_guid_volumes,
has_fileid_dirinfo, has_mwmo_inputavailable and supports_sse from
wincaps.
(wincap_nt4sp4): Remove.
(wincap_minimal): Set to wincap_2000.
(wincapc::init): Rely on availability of OSVERSIONINFOEX structure.
Treat error from GetVersionEx as fatal. Treat NT4 as fatal.
* wincap.h (struct wincaps): Drop has_dacl_protect,
has_broken_if_oper_status, has_process_io_counters,
has_terminal_services, has_extended_priority_class, has_guid_volumes,
has_fileid_dirinfo, has_mwmo_inputavailable and supports_sse flags
and methods.
* winlean.h (GetWindowsDirectoryW) Define as GetSystemWindowsDirectoryW.
(GetWindowsDirectoryA): Define as GetSystemWindowsDirectoryA.
2011-04-04 12:23:36 +00:00
Corinna Vinschen
02dbd9ae87
* dtable.cc (dtable::init_std_file_from_handle): Fix a comment to
...
reflect the current state.
2011-04-04 11:24:20 +00:00
Yaakov Selkowitz
43a6063156
* new-features.sgml (ov-new1.7.10): Document additional information
...
in /proc/version.
2011-04-04 11:14:20 +00:00
Yaakov Selkowitz
a2ef34bfd8
* Makefile.in (fhandler_proc_CFLAGS): Define USERNAME, HOSTNAME,
...
and GCC_VERSION.
* fhandler_proc.cc (format_proc_version): Add build machine and GCC
version information as on Linux.
2011-04-04 11:12:48 +00:00
Yaakov Selkowitz
26968b5c05
* devices.h (fh_devices): Define FH_PROC_MIN_MINOR.
...
Reorder major-0 devices so that all /proc directories fall
between FH_PROC and FH_PROC_MIN_MINOR.
* path.h (isproc_dev): Redefine accordingly.
2011-04-04 10:14:27 +00:00
Corinna Vinschen
3f7dfed9e9
* include/winnt.h (DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS): Add.
2011-04-04 09:10:41 +00:00
Corinna Vinschen
ff73fd1ec1
* passwd.c (main): Add the ability to specify a username for the -R
...
command.
* utils.sgml: Document the aforementioned change.
2011-04-04 09:09:43 +00:00
Corinna Vinschen
1db2e3fbfb
* cygserver_setpwd.h (setlsapwd): Add username parameter to declaration.
...
* external.cc (cygwin_internal): In the CW_SET_PRIV_KEY case, fetch
additional username parameter.
* setlsapwd.cc (setlsapwd): Add username parameter. Allow admin to
set the hidden password for other users.
2011-04-04 09:04:00 +00:00
Corinna Vinschen
225b37131a
Add ChangeLog missing in previous checkin
2011-04-04 09:00:53 +00:00
Corinna Vinschen
99edadedc9
* sec_auth.cc (get_user_groups): Mark well-known groups as well-known.
...
(get_user_local_groups): Ditto.
(verify_token): Drop useless label.
* sec_helper.cc (cygsid::get_sid): Check for well-known SID if
well_known isn't set.
* security.h (well_known_sid_type): New inline function.
2011-04-04 09:00:02 +00:00
Corinna Vinschen
0d6f2b0117
* autoload.cc (FindFirstVolumeA): Remove.
...
(FindNextVolumeA): Remove.
(FindVolumeClose): Remove.
(GetVolumeNameForVolumeMountPointA): Remove.
* ntdll.h (NtFlushBuffersFile): Declare.
* syscalls.cc (sync_worker): Rewrite using native NT functions.
(sync): Ditto.
2011-04-02 11:43:43 +00:00
Corinna Vinschen
8a5e2a62da
* fhandler_proc.cc (format_proc_partitions): Express length in WCHAR
...
size.
2011-04-02 11:32:55 +00:00
Corinna Vinschen
bb8216a114
* autoload.cc (GetExtendedTcpTable): Remove.
...
(GetTcpTable): Remove.
(CharNextExA): Remove.
(FindWindowA): Remove.
(ShowWindowAsync): Remove.
* dcrt0.cc (disable_dep): Remove unused function.
(dll_crt0_0): Drop comment babbling about TS & DEP.
* fhandler_socket.cc (address_in_use): Remove unused function.
* wincap.cc: Throughout, drop ts_has_dep_problem from wincaps.
(wincapc::init): Drop code setting ts_has_dep_problem flag.
* wincap.h (struct wincaps): Drop ts_has_dep_problem flags and method.
2011-04-02 11:30:27 +00:00
Christopher Faylor
e9b55002ba
update copyright
2011-04-01 20:41:32 +00:00
Yaakov Selkowitz
15f0d50006
* new-features.sgml (ov-new1.7.10): Document /proc/sysvipc/.
2011-04-01 19:49:16 +00:00
Yaakov Selkowitz
d68288f697
Implement /proc/sysvipc/*
...
* devices.in (dev_procsysvipc_storage): Add.
* devices.cc: Regenerate.
* devices.h (fh_devices): Add FH_PROCSYSVIPC.
* dtable.cc (build_fh_pc): Add case FH_PROCSYSVIPC.
* fhandler.h (class fhandler_procsysvipc): Declare.
(fhandler_union): Add __procsysvipc.
* fhandler_proc.cc (proc_tab): Add sysvipc virt_directory.
* fhandler_procsysvipc.cc: New file.
* Makefile.in (DLL_OFILES): Add fhandler_procsysvipc.o.
* path.h (isproc_dev): Add FH_PROCSYSVIPC to conditional.
2011-04-01 19:48:19 +00:00
Corinna Vinschen
06e21b9cb1
* Makefile.in (DLL_OFILES): Add avapi32.o.
...
* advapi32.cc: New file.
* autoload.cc: Add block of remaining advapi32 functions used by
Cygwin. Keep commented out. Explain why.
2011-04-01 12:46:09 +00:00
Yaakov Selkowitz
8e68bbe724
* new-features.sgml (ov-new1.7.10): /proc/loadavg now shows
...
current running/total processes count.
2011-04-01 09:01:47 +00:00