Christopher Faylor
22cf17b31f
* fork.cc (NPIDS_HELD): Reduce to former number now that bash problem has been
...
identified.
2004-10-28 17:34:29 +00:00
Pierre Humblet
531979231d
2004-10-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (mount_info::from_registry): Deimpersonate while
accessing HKLM.
(mount_info::read_cygdrive_info_from_registry): Ditto.
* cygheap.h: Define NO_IMPERSONATION.
(cygheap_user::issetuid): Replace INVALID_HANDLE_VALUE by
NO_IMPERSONATION.
(cygheap_user::has_impersonation_tokens): Ditto.
(cygheap_user::close_impersonation_tokens): Ditto.
* uinfo.cc (uinfo_init): Ditto.
* syscalls.cc (seteuid32): Ditto.
* security.cc (set_impersonation_token): Ditto.
2004-10-28 01:46:01 +00:00
Bas van Gompel
ccf4c1e6cd
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
...
dlls.
2004-10-27 01:28:07 +00:00
Christopher Faylor
5957d504f0
* cygtls.cc (_cygtls::fixup_after_fork): Wipe out exitsock local since it
...
should not be used by the child.
* select.cc (start_thread_socket): Turn off inheritance for exitsock. Don't
add exitsock to exception mask since it should never get an exception.
(socket_cleanup): Change some debug messages for consistency.
* fhandler_socket.cc (fhandler_socket::dup): Change comment wording slightly.
2004-10-26 21:13:50 +00:00
Pierre Humblet
fdf4ad73e1
2004-10-26 Pierre Humblet <pierre.humblet@ieee.org>
...
* registry.cc (get_registry_hive_path): Simplify and add a
debug_printf in case of failure.
(load_registry_hive): Revert the 2004-04-19 change.
2004-10-26 01:53:27 +00:00
Christopher Faylor
9a0fdd2315
whitespace
2004-10-25 21:20:09 +00:00
Bas van Gompel
a3a401001a
* cygcheck.cc (dump_sysinfo): Add leading newline before legend for
...
drive-list.
2004-10-25 16:11:41 +00:00
Christopher Faylor
4bfc614b42
fix whitespace, update some copyrights
2004-10-25 15:49:36 +00:00
Christopher Faylor
bc4ab99276
Remove CRs
2004-10-25 15:35:41 +00:00
Danny Smith
244cbd6bda
2004-10-24 Dan Aloni <da-x@colinux.org>
...
* include/ddk/ntapi.h (NtQueryFullAttributesFile,
ZwQueryFullAttributesFile): Declare.
* include/ddk/ntapi.h (RtlDosPathNameToNtPathName_U):
Declare.
lib/ntoskrnl.def (ZwQueryDirectoryFile, ZwQueryFullAttributesFile.
ZwQueryVolumeInformationFile): Add stubs.
2004-10-24 09:03:30 +00:00
Bas van Gompel
be1d479e09
* cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
...
``unk''. Use single puts. Add leading newline. Line up equal-signs.
2004-10-22 01:29:10 +00:00
Christopher Faylor
be957eb563
* cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list. Change
...
``Used'' to ``Free'' in helptext-title for drive-list.
2004-10-21 00:06:37 +00:00
Christopher Faylor
4082a9eb4a
* select.cc (start_thread_socket): Remove attempt to delay reading of exitsock
...
or suffer occasional mysterious 60 second hangs.
(socket_cleanup): Empty the exitsock here after the thread has terminated.
2004-10-20 04:49:34 +00:00
Christopher Faylor
d134b48fd6
revert erroneous checkin
2004-10-20 01:03:55 +00:00
Christopher Faylor
f054a20f1a
* fhandler_console.cc (fhandler_console::fixup_after_exec): Fix error message.
2004-10-20 01:02:18 +00:00
Corinna Vinschen
52fa622ab6
* sysv_sem.cc: Redefine offsetof to circumvent build problems with
...
gcc 3.4.
2004-10-18 14:26:18 +00:00
Corinna Vinschen
eedf24742c
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
...
printf-format.
2004-10-18 10:25:38 +00:00
Danny Smith
b64293e62a
= include/wsahelp.h (WINSOCK_MAPPING, WSHGetWinsockMapping,
...
PWSH_GET_WINSOCK_MAPPING): Don't define if __OBJC__.
2004-10-18 04:31:16 +00:00
Christopher Faylor
3f8c5ee627
fix date
2004-10-18 01:47:00 +00:00
Christopher Faylor
0ffa77a9f5
* cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
2004-10-18 01:44:55 +00:00
Christopher Faylor
0597641a74
* cygcheck.cc (pretty_id): Allocate space for trailing '\0' on uid and guid.
2004-10-17 23:31:23 +00:00
Christopher Faylor
167f0d8513
* cygcheck.cc (pretty_id): Don't exit on id error. Fix size calculations.
2004-10-15 13:57:56 +00:00
Danny Smith
12a638f990
2004-10-15 Robert Wruck <wruck@tweerlei.de>
...
Danny Smith <dannysmith@users.sourceforge.net>
= include/winbase.h (InitializeSListHead, Interlocked*):
Guard with !__USE_NTOSKRNL__.
* include/ddk/ntddk.h (__USE_NTOSKRNL__): Define.
* include/ddk/winddk.h (InitializeSListHead, Interlocked*):
Guard with __USE_NTOSKRNL__.
(ExInterlockedPopEntrySList, ExInterlockedPushEntrySList):
Add prototypes. Guard macro definition with __USE_NTOSKRNL__
&& _WIN32_WINNT >= 0x0501
(ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList,
ExFreeToNPagedLookasideList, ExFreeToPagedLookasideList):
Replace calts to InterlockedPopEntrySList, InterlockedPushEntrySList
with ExInterlockedPopEntrySList, ExInterlockedPushEntrySList.
* lib/ddk/ntosknl.def (ExInterlockedPopEntrySList,
ExInterlockedPushEntrySList) Add stubs with fastcall decoration.
(ExDesktopObjectType, ExEventObjectType, ExSemaphoreObjectType,
ExWindowStationObjectType, IoAdapterObjectType,
IoDeviceHandlerObjectSize, IoDeviceHandlerObjectType,
IoDeviceObjectType, IoDriverObjectType, IoFileObjectType,
LpcPortObjectType, MmSectionObjectType, SeTokenObjectType):
Uncomment stubs.
2004-10-15 01:18:11 +00:00
Christopher Faylor
902edd4512
* cygcheck.cc (pretty_id): Correct column calculations. Abort if id is acting
...
funny.
2004-10-14 17:35:46 +00:00
Danny Smith
2457f34144
* include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2004-10-14 07:44:11 +00:00
Christopher Faylor
96536b50a6
* select.cc (start_thread_socket): Remove unused code.
2004-10-13 03:26:31 +00:00
Christopher Faylor
cbec131f8e
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Revert previous checkin.
2004-10-11 15:36:13 +00:00
Danny Smith
77cbeb0039
2004-10-11 Robert Wruck <wruck@tweerlei.de>
...
* include/ddk/winddk.h (IoReleaseRemoveLockAndWait): Fix
definition
(IoReleaseRemoveLock): Add definition.
2004-10-11 07:20:26 +00:00
Christopher Faylor
a82955fa29
minor change
2004-10-11 02:27:43 +00:00
Christopher Faylor
1cda132258
* cygtls.h (exitsock): New element.
...
(exitsock_sin): Ditto.
* cygtls.cc (_cygtls::init_thread): Initialize exitsock to invalid handle.
(_cygtls::call2): Close exitsock if it is valid.
* select.cc (struct socketinf): Remove sin element.
(start_thread_socket): Initialize one SOCK_DGRAM socket per thread instead of
(apparently) expensive opening and closing of socket with each select call.
(socket_cleanup): Send a byte to the exitsock socket as a way to potentially
signal a waiting-for-socket thread to exit.
* tlsoffsets.h: Regenerate.
2004-10-11 02:21:31 +00:00
Christopher Faylor
8d712c8c3e
Remove unneeded directory.
2004-10-10 18:57:16 +00:00
Christopher Faylor
76ad4d0a6e
* cygcheck.cc (add_path): Don't leak memory when path is already in ``paths''.
2004-10-10 17:07:23 +00:00
Danny Smith
7d032a010a
* include/ddk/winnt4.h (Exi386InterlockedDecrementLong,
...
Exi386InterlockedExchangeUlong, Exi386InterlockedIncrementLong);
Add prototypes.
* include/winddk.h (ExInterlockedAddUlong,
ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
ExInterlockedRemoveHeadList, ExInterlockedPopEntryList,
ExInterlockedPushEntryList): Change calling convention to
DDKAPI.
(ExfInterlockedAddUlong,ExInterlockedInsertHeadList,
ExInterlockedInsertTailList, ExInterlockedRemoveHeadList,
ExInterlockedPopEntryList, ExInterlockedPushEntryList):
Add prototypes for DDKFASTAPI versions.
Thanks to Vadim Yegor0v <zg at bmg dot lv> for report.
* lib/ntoskrnl.def (ExInterlockedAddUlong,
ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
ExInterlockedRemoveHeadList, ExInterlockedPopEntryList,
ExInterlockedPushEntryList): Remove lead '@' from stubs.
(ExfInterlockedAddUlong,ExfInterlockedInsertHeadList,
ExfInterlockedInsertTailList, ExfInterlockedRemoveHeadList,
ExfInterlockedPopEntryList, ExfInterlockedPushEntryList):
Add fastcall stubs.
(Exi386InterlockedDecrementLong, Exi386InterlockedExchangeUlong,
Exi386InterlockedIncrementLong); Add stdcall stubs.
2004-10-10 07:14:04 +00:00
Christopher Faylor
0795a24552
* cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount entries.
2004-10-09 23:19:38 +00:00
Christopher Faylor
82e127caac
* cygcheck.cc (dump_sysinfo): Don't warn about empty path components, just
...
display ``.''.
2004-10-09 23:15:36 +00:00
Corinna Vinschen
60cb120f3e
* cygheap.h (class cygheap_user): Add psystemroot member and
...
env_systemroot method.
* environ.cc (struct spenv): Add add_always member.
(spenvs): Accomodate new add_always member. Add
cygheap_user::env_systemroot method to SYSTEMROOT entry.
(build_env): Check add_always member when adding missing environment
variables from spenvs.
* uinfo.cc (cygheap_user::env_systemroot): New method.
2004-10-07 21:28:57 +00:00
Corinna Vinschen
9286b55306
* dcrt0.cc (dll_crt0_0): Drop duplicated line.
2004-10-07 16:59:02 +00:00
Christopher Faylor
d794d08157
revert erroneously applied change
2004-10-07 16:53:51 +00:00
Christopher Faylor
859d85dee0
* spawn.cc (pthread_cleanup::oldmask): Default to invalid signal mask.
...
(do_cleanup): Test for invalid signal mask to decide whether to restore the
mask rather than assuming zero mask indicates that there is nothing to do.
2004-10-07 16:49:30 +00:00
Corinna Vinschen
b9cd8fb5ff
* fhandler_tty.cc (fhandler_tty_slave::read): Use previously
...
evaluated time_to_wait value.
2004-10-07 08:03:24 +00:00
Danny Smith
72db1c11e9
* include/math.h (ashinh, asinhf, asinhl, acosh, acoshf, acoshl,
...
atanh, atanhf, atanhl): Add prototypes.
* mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
(MATH_DISTFILES): Add sources for above and fastmath.h to list.
Specify dependency on fastmath.h for new objects.
* mingwex/math/fastmath.h: New file.
* mingwex/math/ashinh.c: New file.
* mingwex/math/asinhf.c: New file.
* mingwex/math/asinhl.c: New file.
* mingwex/math/acosh.c: New file.
* mingwex/math/acoshf.c: New file.
* mingwex/math/acoshl.c: New file.
* mingwex/math/atanh.c: New file.
* mingwex/math/atanhf.c: New file.
* mingwex/math/atanhl.c: New file.
2004-10-06 20:31:32 +00:00
Corinna Vinschen
4f8dc86255
* strace.cc (_impure_ptr): Remove.
2004-10-06 09:51:11 +00:00
Corinna Vinschen
5f175ea697
* cygcheck.cc (dump_sysinfo): Warn about empty path-components.
2004-10-06 09:46:40 +00:00
Pierre Humblet
b0637a5191
2004-10-05 Pierre Humblet <pierre.humblet@ieee.org>
...
* external.cc (check_ntsec): Do not call wincap.has_security.
* path.cc (path_conv::check): Ditto.
* security.cc (get_object_attribute): Ditto.
(get_file_attribute): Ditto.
2004-10-06 01:33:39 +00:00
Christopher Faylor
67eedd2473
revert erroneous checkin
2004-10-05 14:35:56 +00:00
Christopher Faylor
0190304668
* pinfo.cc (_pinfo::commune_send): Correct debugging output.
2004-10-05 02:10:15 +00:00
Corinna Vinschen
1f8b30497d
* bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
...
2004-08-24. It should be unnecessary now.
* msg.cc (client_request_msg::serve): Release process critical
section as early as possible.
* sem.cc (client_request_sem::serve): Ditto.
* shm.cc (client_request_shm::serve): Ditto.
* process.cc: Use hold and release method calls instead of
EnterCriticalSection/LeaveCriticalSection calls throughout.
* process.h (_hold): Rename from hold. Take filename and linenumber
parameter for logging. Define matching hold macro.
(release): Ditto.
2004-10-04 19:44:05 +00:00
Christopher Faylor
298cac75d5
fix erroneous checkin
2004-10-04 14:06:02 +00:00
Christopher Faylor
34421ac3e5
* include/cygwin/signal.h: Add siginterrupt definition.
2004-10-04 14:04:31 +00:00
Corinna Vinschen
a5aa8c3e3a
* cygcheck.cc (pretty_id): Close pipe.
2004-10-04 09:42:08 +00:00