Christopher Faylor
a245bd6e99
* msg.cc: New file.
...
* sem.cc: Ditto.
2003-08-30 16:34:56 +00:00
Christopher Faylor
9540fc5962
* threaded_queue.h: New file.
2003-08-30 16:32:15 +00:00
Christopher Faylor
6c125ba745
Remove some cygserver files.
2003-08-30 16:31:10 +00:00
Danny Smith
b258e2c63b
2003-08-29 Steve Cleary <scleary@jerviswebb.com>
...
* include/winuser.h (QS_ALLPOSTMESSAGE, QS_RAWINPUT): Add defines.
(QS_INPUT, QS_ALLINPUT, QS_ALLEVENTS): Adjust by OR'ing with
QS_RAWINPUT for XP.
(MWMO_*): Add flags.
* include/wincrypt.h (MS_ENHANCED_PROV[AW], MS_STRONG_PROV[AW],
MS_DEF_RSA_SIG_PROV[AW], MS_DEF_RSA_SCHANNEL_PROV[AW],
MS_DEF_DSS_PROV[AW], MS_DEF_DSS_DH_PROV[AW], MS_ENH_DSS_DH_PROV[AW],
MS_DEF_DH_SCHANNEL_PROV[AW], MS_SCARD_PROV[AW]): Add definitions.
2003-08-29 08:01:09 +00:00
Christopher Faylor
5a96b1cbff
* sigproc.h: Make some functions regparm.
...
* sigproc.cc (checkstate): Make regparm.
(getevent): Change parameters in declaration, rename from getsem, make regparm.
(sig_send): Recognize that nosync is now an event. Remove some old cruft from
previous interrupt anywhere signal handler.
(getevent): Change parameters in definition, rename from getsem. Allocate
event rather than semaphore.
(wait_sig): Treat sigcatch_nosync as an event.
2003-08-29 03:29:16 +00:00
Christopher Faylor
99a8fab5a6
* sigproc.h: Make some functions regparm.
...
* sigproc.cc (checkstate): Make regparm.
(getevent): Change parameters in declaration, rename from getsem, make regparm.
(sig_send): Recognize that nosync is now an event. Remove some old cruft from
previous interrupt anywhere signal handler.
(getevent): Change parameters in definition, rename from getsem. Allocate
event rather than semaphore.
(wait_sig): Treat sigcatch_nosync as an event.
2003-08-29 02:59:06 +00:00
Christopher Faylor
5e8355c765
* exceptions.cc (sigreturn): Fix problem where old return address was not
...
properly restored for a nested signal.
2003-08-29 02:05:00 +00:00
Christopher Faylor
d533b9214f
* autoload.cc (SwitchToThread): Declare as autoload function.
...
* cygthread.h (cygthread::main_thread_id): Make public.
* exceptions.cc (setup_handler): Remove unneeded priority stuff. Rename label
to reflect what it does. Add debugging for idiotic Windows NT problem. Change
debugging output to include signal number.
* miscfuncs.cc (low_priority_sleep): If available, use SwitchToThread function
to give time slice to other threads.
* wincap.cc: Properly define have_switch_to_thread throughout.
* wincap.h (wincap::switch_to_thread): New element.
2003-08-28 02:09:42 +00:00
Christopher Faylor
e2bc5017fa
* syscalls.cc (mount): Don't check win32_path when doing cygdrive mount.
2003-08-28 02:04:16 +00:00
Christopher Faylor
7028311c04
* specdir: Correctly remove temporary directory prior to use.
2003-08-27 21:01:14 +00:00
Christopher Faylor
90f4768b78
* sigproc.cc (wait_sig): Count number of iterations through 'more_signals' loop
...
and issue a warning if DEBUGGING and excessive.
(WFSO): When debugging and infinite timeout, loop.
2003-08-27 20:42:52 +00:00
Corinna Vinschen
1ce25e2add
* include/cygwin/stat.h: Allow definition of internal stat structures
...
also when compiling newlib.
2003-08-26 07:45:38 +00:00
Danny Smith
311d0d67b9
2003-08-26 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: Add vfw.h to includes.
* include/mmsystem.h: Add #ifndef guard to definition of
mmioFOURCC macro.
* include/vfw.h: Protect __OBJC__ from COM declarations.
2003-08-26 Filip Navara <xnavara@volny.cz>
* include/vfw.h: New file.
2003-08-26 06:54:55 +00:00
Christopher Faylor
ff57520702
add missing files
2003-08-25 19:44:44 +00:00
Christopher Faylor
29c1c50828
* Makefile.in: Build libcygserver.a.
...
* client.cc: Rename allow_daemon to allow_server.
2003-08-25 18:22:07 +00:00
Christopher Faylor
4392d36cbb
Throughout, change USE_CYGSERVER to USE_SERVER.
...
* Makefile.in (LIBSERVER): Define and use.
* configure.in: Set LIBSERVER as appropriate.
* environ.cc: Rename allow_daemon to allow_server. Only recognize when
USE_SERVER is defined.
2003-08-25 18:21:07 +00:00
Danny Smith
e98b6dbb6d
2003-08-26 Filip Navara <xnavara@volny.cz>
...
* include/ddk/winddk.h (RTL_REGISTRY_*): Add defines.
(IoSetCompletionRoutine): Cast _CompletionRoutine arg to
PIO_COMPLETION_ROUTINE.
2003-08-25 10:20:36 +00:00
Danny Smith
1b1c7fbfa5
test new snmp headers
2003-08-25 09:52:10 +00:00
Danny Smith
912800ed01
Add snmp API
...
2003-08-26 Filip Navara <xnavara@volny.cz>
* include/snmp.h: New file.
* include/winsnmp.h: New file.
* include/mgmtapi.h: New file.
* lib/snmpapi.def: New file.
* lib/wsnmp32.def: New file.
* lib/igmpagnt.def: New file.
* lib/mgmtapi.def (SnmpMgrCtl) Add stub.
(SnmpMgrGetTrapEx): Ditto.
(SnmpMgrMIB2Disk): Remove.
(dbginit): Remove.
2003-08-25 09:33:14 +00:00
Danny Smith
6315f62b20
2003-08-25 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/ddk/ntifs.h: Change all C++ style comments to C.
* include/GL/gl.h: Ditto.
2003-08-25 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/shlobj.h (SFGAO_GHOSTED): Correct.
(SFGAO_HIDDEN): Add define.
2003-08-25 02:02:37 +00:00
Danny Smith
1a5c6b9d0a
2003-08-25 Filip Navara <xnavara@volny.cz>
...
* include/commctrl.h (ILCF_*): Add defines.
(ILD_*): Ditto.
(HDS_*); Ditto.
(IPN_FIRST, IPN_LAST): Cast to UINT.
(SBN_FIRST, SBN_LAST): Add defines.
(PGN_*): Ditto.
(HDF_JUSTIFYMASK): Fix typo.
(HDM_*): Add defines.
(HICF_*): Ditto.
(I_INDENTCALLBACK,I_IMAGENONE): Ditto.
(TBSTATE_MARKED): Add define.
(TBSTYLE_EX_*): Add defines.
(TBCDRF_*): Ditto.
(IDB_HIST_SMALL_COLOR,IDB_HIST_LARGE_COLOR): Ditto.
(TB_*): Ditto.
(TBN_*): Ditto.
(TBNRF_*): Ditto.
(TTF_*): Ditto.
(TBCD_*): Ditto.
(TBDDRET_*): Ditto.
(TBIMHT_*): Ditto.
(TTM_*): Ditto.
(UDM_*): Ditto.
(TBIF_BYINDEX): Define as hex constant.
(CDIS_*): Add defines.
(CDDS_SUBITEM): Add define.
(LVIF_*): Add defines.
(LVM_*): Ditto.
(LVGIT_UNFOLDED): Add define.
(TVM_): Add defines.
(TVE_EXPANDPARTIAL): Add define.
(TVGN_LASTVISIBLE): Ditto.
(TVN_*): Add defines.
(TVNRET_*): Add defines.
(TCIF_STATE): Add define.
(NM_TOOLTIPSCREATED): Ditto.
(CCM_*): Add defines.
(INFOTIPSIZE): Add numeric value.
(ODT_LISTVIEW): Ditto.
(MCM_GETMAXTODAYWIDTH): Ditto.
(MCHT_*): Add defines.
(UDM_SETRANGE32,UDM_GETRANGE32): Define in terms of WM_USER.
(PGF_*): Add defines.
(PGM_*): Ditto.
(TBINSERTMARK): Add structure.
(LPIMAGEINFO) Add typedef.
(LPHDHITTESTINFO): Ditto.
(NMLVGETINFOTIP[AW]: Add structures.
(NMTBCUSTOMDRAW): Add structure.
(TTTOOLINFOA_V*_SIZE): Add macros.
(TTTOOLINFOW_V1_SIZE): Ditto.
(IMAGELISTDRAWPARAMS): Add new members for WXP.
(LVITEM[AW]: Ditto.
(TCITEM[AW]):Ditto.
(CCSIZEOF_STRUCT): Correct macro definition.
(ListView_*): Add new macros.
(HIMAGELIST): Correct typedef.
(HTREEITEM): Ditto.
2003-08-25 Danny Smith <dannysmith@users.sourceforge.net>
* commctrl.h (TC_HITTESTINFO): Remove. Add defines for
TCHITTESTINFO for backward compatibility.
(TC_ITEM[AW]): Rename to TCITEM[AW]. Add defines for backward
compatibility.
2003-08-25 01:39:59 +00:00
Danny Smith
110af2d2db
2003-08-24 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/objidl.h (COBJMACROS): Define macros only
if using C interace.
* include/unknwn.h: Ditto.
* include/comcat.h: Ditto.
2003-08-24 Filip Navara <xnavara@volny.cz>
* include/prsht.h (PSH_WIZARDHASFINISH, PSH_WIZARD_LITE,
PSH_NOCONTEXTHELP): Define.
(PSH_WIZARD97): Fix definition for _WIN32_IE >= 0x500.
* include/winuser.h (DFCS_TRANSPARENT, DFCS_HOT): Define.
(LPDLGTEMPLATE[AW]): Add typedefs.
2003-08-24 23:04:57 +00:00
Christopher Faylor
be1ea8cde7
* syscalls.cc (_remove_r): Define.
2003-08-23 18:03:16 +00:00
Christopher Faylor
5c6497b43f
* cygheap.h (enum cygheap_types): Add HEAP_MMAP.
...
(CYGHEAPSIZE): Add another 64K.
* mmap.cc: Use cmalloc, ccalloc and crealloc with HEAP_MMAP type throughout.
2003-08-23 00:03:54 +00:00
Christopher Faylor
7f32ba3a8d
* cygheap.cc (user_heap_info::max): New field.
...
* heap.cc (heap_init): Save pointer to end of heap reserved memory.
(sbrk): Don't attempt to commit memory beyond end of heap reserved memory.
Attempt to honor comment and reserve commitbytes if heapchunk fails.
2003-08-22 19:33:09 +00:00
Christopher Faylor
897c6b5231
* exceptions.cc (sigreturn): Don't clobber ebp in recursive signal calls.
2003-08-22 19:25:56 +00:00
Christopher Faylor
29cd21d03a
* exceptions.cc (sig_handle): Change so that default signals indicate success.
2003-08-22 17:01:53 +00:00
Danny Smith
01d699914d
2003-08-22 Filip Navara <xnavara@volny.cz>
...
* include/aclapi.h (BuildImpersonateExplicitAccessWithName[AW]):
Add prototypes.
BuildImpersonateTrustee[AW]): Add prototypes.
GetMultipleTrustee[AW]): Add prototypes.
GetMultipleTrusteeOperation[AW]): Add prototypes.
Add missing changelog entry from last commit.
2003-08-22 11:21:28 +00:00
Danny Smith
9e80cb966c
2003-08-22 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winnt.h (IMAGE_SUBSYSTEM_XBOX): Add define.
2003-08-22 Mihai Preda <mihai_preda@users.sourceforge.net>
* include/shlobj.h (IPersistFolder::GetClassID):
Correct declaration.
(CMF_*) Add missing defines.
2003-08-22 Danny Smith <dannysmith@users.sourceforge.net>
* include/winuser.h (DC_BUTTONS): Add define.
2003-08-22 Andrew Greenwood <lists@silverblade.co.uk>
* include/winuser.h (DC_GRADIENT): Add define.
2003-08-22 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/commctrl.h (BTNS_*): Define BTNS_* as successors to the
older TBSTYLE_* constants.
2003-08-22 10:50:54 +00:00
Christopher Faylor
095abc79ba
* sigproc.cc (wait_sig): Remove redundant test in do/while.
2003-08-22 03:40:49 +00:00
Christopher Faylor
a9f7754462
* sigproc.cc (wait_sig): Avoid infinite loop.
2003-08-22 01:07:01 +00:00
Christopher Faylor
b5c5b9996a
* speclib: Reenable removal of temp files.
2003-08-21 03:36:02 +00:00
Christopher Faylor
d688945c44
* miscfuncs.cc (low_priority_sleep): Sleep at same priority as main thread.
...
* sigproc.cc (wait_sig): Keep looping if there are more signals to consider and
we are flushing signals.
(sig_send): Put nonsync signals in the correct bucket.
2003-08-21 03:18:46 +00:00
Christopher Faylor
0b10f795f1
* speclib: Fix created lib to avoid "File truncated" problems.
2003-08-21 02:19:25 +00:00
Christopher Faylor
2bf794af9a
* exceptions.cc (interrupt_setup): Set sigsave.sig last to avoid a race.
2003-08-20 18:09:24 +00:00
Christopher Faylor
6f6d673cc5
* sigproc.cc (wait_sig): Ensure that myself->getsigtodo array is flushed on a
...
__SIGFLUSH. Christopher Faylor <cgf@redhat.com>
* exceptions.cc (_sigreturn): Handle nested signals without growing the stack.
2003-08-20 05:15:33 +00:00
Christopher Faylor
5f31e0f305
* exceptions.cc (pending_signals): Remove unneeded declaration.
...
* sigproc.cc (pending_signals): Make static.
(wait_sig): Use defined values rather than integers for rc. Never scan both
todo arrays as this could cause hangs if signals arrive from two different
sources. Rename saw_pending_signals to saw_failed_interrupt. Exit loop when
signal found. Enter low-priority sleep, if necessary, after finished
signalling completion. Set pending_signals when blocked
(from Pierre Humblet).
2003-08-20 02:31:26 +00:00
Christopher Faylor
6ac844b5e3
clarify
2003-08-20 01:19:04 +00:00
Christopher Faylor
06bb489932
* signal.cc (sigpending): Move.
...
* sigproc.cc (sigpending): To here.
(getlocal_sigtodo): Return process-local signal array.
(sigpending): Accommodate new process-local signal array.
(sig_send): Ditto.
(sig_set_pending): Ditto.
(wait_sig): Ditto.
2003-08-19 05:47:44 +00:00
Christopher Faylor
05cb7b17cb
Throughout, eliminate argument to sig_dispatch_pending.
...
* exceptions.cc (setup_handler): Move non-interruptible condition handling
(back) to wait_sig (as suggested by Pierre Humblet).
(set_process_mask): Don't worry about calling sig_dispatch_pending from
sigthread since it is detected in the function anyway.
(sig_handle): Eliminate thisproc arg. Don't call sig_dispatch_pending on
SIGCONT since that should happen automatically.
* sigproc.cc (sig_dispatch_pending): Eliminate justwake argument. Just return
when called from sigthread.
(wait_sig): Change some variables to bool. Change inner while to an if. Move
uninterruptible signal handling here.
(sigproc_terminate): Don't call sig_dispatch_pending. Just increment semaphore
on exit.
* speclib: Use slightly different (but still flawed) method for determining
symbols to extract from libraries.
2003-08-19 04:10:42 +00:00
Christopher Faylor
755f575f15
correct attribution, since this is not Pierre's patch.
2003-08-19 01:17:53 +00:00
Christopher Faylor
372cd2cbe6
* exceptions.cc (sigdelayed): Fix race where signal handler could get the wrong
...
mask.
2003-08-19 00:31:56 +00:00
Christopher Faylor
9d7f26eaf4
* path.cc (mount): Add null/empty check for input parameters.
...
(umount): Add null/empty check for input parameters.
2003-08-19 00:18:48 +00:00
Danny Smith
bb7c60962d
2003-08-17 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/commctrl.h (TB_*) Group defines together.
2003-08-17 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/winuser.h (ICON_SMALL2): Define.
* include/commctrl.h (TB_SETBUTTONWIDTH,TB_SETDRAWTEXTFLAGS):
Define.
* include/shlobj.h (SHDRAGIMAGE): Define structure.
(IDragSourceHelper) Define interface.
(IDropTargetHelper): Likewise.
(IExtractIcon): Unicode it.
(ICommDlgBrowser): Use IShellView type as param in OnDefaultCommand,
OnStateChange and IncludeObject methods.
2003-08-18 09:43:24 +00:00
Corinna Vinschen
981f9625f3
* grp.cc (read_group): Revert previous change.
...
* uinfo.cc (pwdgrp::load): Always reset curr_lines.
2003-08-17 17:50:40 +00:00
Corinna Vinschen
919497ee6b
* dump_setup.cc (check_package_files): Strip leading / and ./ from
...
package file names.
2003-08-17 17:26:08 +00:00
Corinna Vinschen
22d82f9f46
* errno.cc (errmap): Map ERROR_INVALID_BLOCK_LENGTH to EIO.
...
* fhandler_raw.cc (fhandler_dev_raw::raw_read): Set more accurate
errnos instead of EACCES.
(fhandler_dev_raw::raw_write): Ditto.
2003-08-17 17:12:18 +00:00
Christopher Faylor
293ce8104d
* path.cc (special_name): Accommodate all special names with extensions.
2003-08-17 16:33:15 +00:00
Danny Smith
597b518cb9
Add ChangeLog entry for last commit.
2003-08-17 08:55:28 +00:00
Danny Smith
5ca7a646d5
2003-08-17 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/commctrl.h (TreeView_GetScrollTime,
TreeView_SetScrollTime): Define macros.
* include/winuser.h (GetShellWindow): Add prototype.
* include/objidl.h (STGMEDIUM): Correct lpszFileName type.
2003-08-17 08:47:37 +00:00
Corinna Vinschen
b723879025
* dump_setup.cc (package_find): Don't stop searching on missing
...
file list.
(package_list): Ditto.
* dump_setup.cc: (package_list): Make output terse unless
verbose requested. Fix formatting.
(package_find): Ditto.
2003-08-16 09:09:09 +00:00
Corinna Vinschen
200f243c42
* cygcheck.cc (main): Fix some formatting and help text printing.
...
* cygcheck.cc (find_package,list_package): New global
variables.
(usage): Add "--find-package" and "--list-package" options,
reformat output.
(longopts, opts): Add "--find-package" and "--list-package"
options.
(main): Process the "--find-package" and "--list-package"
flags. Add new semantic checks. Add calls to find_package()
and list_package().
* dump_setup.cc: Fix header comment.
(match_argv): Change return type to int to distinguish
between real matches and default ones.
(open_package_list): New static function.
(check_package_files): Factor out opening the package list
file into open_package_list().
(get_packages): New static function.
(dump_setup): Factor out getting a list of packages into
get_packages().
(package_list, package_find): New global functions.
2003-08-15 20:26:11 +00:00
Corinna Vinschen
92d897cde2
* mmap.cc (mmap64): Avoid crash if file size is less than requested
...
map length.
2003-08-15 12:05:08 +00:00
Corinna Vinschen
dae37d5d84
* regtool.cc (usage): Add missing linefeed. Move example to --help
...
text. Fix forward slash description.
2003-08-15 08:58:54 +00:00
Danny Smith
b98580a716
2003-08-15 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shguid.h (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Declare.
* lib/shell32.c (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Define.
2003-08-15 03:04:25 +00:00
Danny Smith
37f0dc7a05
2003-08-15 Andrew Greenwood <lists@silverblade.co.uk>
...
* include/wingdi.h (DEVMODE[AW]) Correct structure definition.
* include/ddk/ntapi.h (LPC_TYPE): Add LPC_CONNECTION_REFUSED.
* include/ddk/winddk.h (IRP_*): Add constants as anonymous enum.
2003-08-15 02:19:54 +00:00
Corinna Vinschen
e2b1a74c13
* dump_setup.cc (check_package_files): Fix extra '/' in filename.
...
Resize command buffer. Fix buffer overflow bug.
2003-08-13 19:37:40 +00:00
Corinna Vinschen
6763d47b1e
* path.cc (special_name): Add checks for some specials followed by
...
a "." and a FIXME comment.
2003-08-13 17:28:00 +00:00
Corinna Vinschen
ae89a49602
* cygwin.din: Accomodate change from cygwin_lstat to lstat.
...
* syscalls.cc: Add defines to avoid declaration issues when
renaming cygwin_lstat back to lstat.
(lstat): Reverted name change from cygwin_lstat.
2003-08-13 11:28:42 +00:00
Corinna Vinschen
c86c10b803
* include/sys/param.h (NBBY): Define if not defined.
...
* include/sys/param.h (setbit): Add new bitmap related macro.
(clrbit): Likewise.
(isset): Likewise.
(isclr): Likewise.
(howmany): Add new counting/rounding macro.
(rounddown): Likewise.
(roundup): Likewise.
(roundup2): Likewise.
(powerof2): Likewise
(MIN): Add macro for calculating min.
(MAX): Add macro for calculating max.
2003-08-12 10:23:40 +00:00
Danny Smith
6c7560c901
* lib/uuid.c (CGID_Explorer, CGID_ShellDocView,
...
CGID_ShellServiceObject): Remove definitions.
* lib/shell32.c (CGID_ShellServiceObject): Add definition.
Correct last ChangeLog entry for lib/shell32.def.
2003-08-10 09:19:06 +00:00
Christopher Faylor
e41630b08a
* dump_setup.cc (dump_setup): Check for the existence of the package list file.
...
Rework slightly to use static buffer for popen commands.
2003-08-10 01:07:04 +00:00
Danny Smith
46258d6fb8
2003-08-10 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shlobj.h (SHELLSTATE): Add structure.
(SHGetSetSettings): Add prototype.
(SHGetSettings): Add prototype.
* lib/user32.def (SHGetSetSettings): Add stub.
2003-08-10 Phil Krylov <likewolf@users.sourceforge.net>
* include/commctrl.h (HDM_ORDERTOINDEX): Add define.
(Header_OrderToIndex): Add macro.
(Header_GetOrderArray): Add macro.
* include/commdlg.h (FR_MATCHALEFHAMZA,
FR_MATCHDIAC, FR_MATCHKASHIDA): Add defines.
2003-08-10 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/commctrl.h (TVM_GETSCROLLTIME,
TVM_SETSCROLLTIME): Add defines.
2003-08-10 00:40:01 +00:00
Christopher Faylor
58d4b72d33
* dump_setup.cc (version_len): New static variable.
...
(could_not_access,directory_exists): New static function.
(file_exists): Ditto.
(check_package_files): Ditto.
(dump_setup): Check the contents of each package if check_files is true and
output the result in the "Status" column. Flush output after each package.
* dump_setup.cc (dump_setup): Remove redundant null check. Add informative
message if package info not found.
2003-08-09 16:32:22 +00:00
Christopher Faylor
9d77d53601
* include/cygwin/version.h: Bump DLL minor number to 3.
2003-08-09 16:32:03 +00:00
Christopher Faylor
5c65fa0200
* include/stdint.h: Correctly define INT32_MIN.
2003-08-08 19:30:41 +00:00
Christopher Faylor
b344f1876c
* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr after
...
free() is called.
2003-08-08 19:28:34 +00:00
Christopher Faylor
0601b11fb6
fix typo
2003-08-06 03:39:36 +00:00
Christopher Faylor
8440f55d74
typo
2003-08-06 03:22:18 +00:00
Christopher Faylor
16f9bc1323
* Makefile.common: Hmm. Older compilers seem to need -nostdinc.
2003-08-06 02:35:33 +00:00
Christopher Faylor
c6f80f3e29
* Makefile.common: Don't send -nostdinc++ with g++.
2003-08-06 02:06:43 +00:00
Christopher Faylor
4b154cc1b3
* Makefile.in: Rework to accommodate new speclib arguments.
...
* speclib: Rework to extract everything from libcygwin.a rather than building
things from existing object files.
2003-08-06 01:40:12 +00:00
Christopher Faylor
4423d92489
* path.cc (cygdrive_getmntent): Do not skip over drives of type
...
DRIVE_REMOVABLE.
* fhandler.cc (fhandler_base::lseek): Be more paranoid when constructing
offsets from 64 bit value.
* syscalls.cc (logout): Avoid temp buffer memcpy since new scheme does not
require it.
(utmp_data): Rework as a macro which returns a pointer into a buffer.
(getutent): Use new buffer allocation mechanism to grab a utmp buffer.
(getutid): Ditto.
(pututline): Ditto.
2003-08-05 04:49:44 +00:00
Christopher Faylor
3fea2e4087
* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if
...
end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
2003-08-05 03:04:28 +00:00
Christopher Faylor
2f631ebc94
change default for --change-default-prefix
2003-08-05 01:06:22 +00:00
David Starks-Browning
90b3d5dcb6
New canonical location.
2003-08-04 10:40:28 +00:00
Danny Smith
5060d48ee7
* include/shlobj.h (SHELLFLAGSTATE): Add structure.
...
(SHGetInstanceExplorer): Correct return type.
(SHGetFolderPath[AW]: Likewise.
Thanks to Magnus Olsen <greatlord@sourceforge.users.net>
for report.
2003-08-03 09:09:07 +00:00
Danny Smith
be21429f2f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: Include winldap.h, ntldap.h, winber.h.
2003-08-01 Filip Navara <xnavara@volny.cz>
* include/winldap.h: New file.
* include/ntldap.h: New file.
* include/winber.h: New file.
* lib/winldap32.def: New file.
2003-08-01 09:11:39 +00:00
Danny Smith
7d18037f8f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/atm.h: Remove stray '.';
2003-08-01 Gisle Vanem <gvanem@broadpark.no>
* include/ddk/winddk.h; Remove trailing ';' from macro expressions,
throughout. Add () around macro expressions with cast returns,
throughout.
2003-08-01 01:06:26 +00:00
Joshua Daniel Franklin
4b8283ec80
Screwed up ChangeLog
2003-07-31 21:12:11 +00:00
Joshua Daniel Franklin
0da026c397
* effectively.sgml: New file, "Using Cygwin Effectively with Windows".
2003-07-31 21:06:55 +00:00
Danny Smith
49c12c3f53
2003-7-31 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shlobj.h (SFGAO_COMPRESSED): Add define.
(SFGAOF,SHGDNF): Add typedef's.
(SHCONTF): Extend enum.
2003-07-31 10:25:56 +00:00
Danny Smith
de03e10ca5
* include/shellapi.h: Include all structs within pshpack2.h/
...
poppack.h block.
2003-07-31 05:40:39 +00:00
Christopher Faylor
b9621e8d94
* dcrt0.cc (_dll_crt0): Move strace.microseconds initialization to after
...
pthread initialization.
(dll_crt0_1): i.e., here.
2003-07-30 04:46:07 +00:00
Christopher Faylor
8e2315f07d
* include/cygwin/version.h: Bump DLL minor number to 2.
2003-07-28 21:14:25 +00:00
Christopher Faylor
d2466c7aa0
* fhandler_base.cc (fhandler_base::readv): Rework to properly return number of
...
bytes from read.
2003-07-28 21:13:17 +00:00
Danny Smith
e816a74f80
* include/winuser.h (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK,
...
LWA_COLORKEY, LWA_ALPHA): Guard with _WIN32_WINNT,
_WIN32_WINDOWS, not WINVER.
(AllowSetForegroundWindow,LockSetForegroundWindow,
SetLayeredWindowAttributes): Likewise.
(GetLayeredWindowAttributes,UpdateLayeredWindow): Add prototypes.
* lib/user32.def (GetLayeredWindowAttributes,UpdateLayeredWindow):
Add stubs.
2003-07-26 11:58:24 +00:00
Christopher Faylor
035df9eff5
* mount.cc (do_mount): Issue warning when using managed mount option on
...
non-empty directory.
2003-07-26 05:38:51 +00:00
Christopher Faylor
df04ae29b2
* exceptions.cc (ctrl_c_handler): Send SIGHUP when events occur only if there
...
is a tty associated with the process. Send SIGHUP on CTRL_LOGOFF_EVENT.
* fhandler_tty.cc (fhandler_tty_slave::open): Adjust console open handle
counter regardless of whether this is a pty or tty.
(fhandler_tty_slave::open): Ditto.
(fhandler_tty_slave::dup): Ditto.
(fhandler_tty_common::set_close_on_exec): Ditto.
(fhandler_tty_master::init_console): Decrement console open handle counter
after init since it will now be handled by all tty open.
* syscalls.cc (setsid): Rework debugging output slightly.
2003-07-26 04:53:59 +00:00
Christopher Faylor
ddb6762155
* configure.in: Use 'install-sh -c'.
...
* configure: Regenerate.
2003-07-26 01:53:18 +00:00
Christopher Faylor
4b2bb1425e
revert erroneous checkin
2003-07-26 01:52:52 +00:00
Christopher Faylor
c2af0de226
* Makefile.in: Only use localhost when building mingw with distcc or gcc won't
...
be able to find .exp files on other hosts.
2003-07-26 01:51:39 +00:00
Danny Smith
ffe3e7ef4f
2003-07-26 Eric R. Krause <ekrause_98@users.sourceforge.net>
...
* include/onjidl.h (IMalloc): Fix typo.
2003-07-26 01:01:03 +00:00
Christopher Faylor
8c21a4cdfb
preliminary checkin
2003-07-26 00:49:12 +00:00
Christopher Faylor
d9cbe316d5
preliminary checkin
2003-07-26 00:43:57 +00:00
Christopher Faylor
5ed664d4a6
preliminary checkin
2003-07-26 00:28:59 +00:00
Christopher Faylor
9ddd929f68
preliminary checkin
2003-07-26 00:10:48 +00:00
Christopher Faylor
7f4773b3ef
* configure.in: Always use install-sh.
...
* configure: Regenerate.
2003-07-25 23:52:30 +00:00
Christopher Faylor
5d66faab67
* include/cygwin/socket.h: Conditionalize [AP]F_INET6 define.
2003-07-25 17:57:51 +00:00
Christopher Faylor
6f8c86aec5
* Makefile.in (OBSOLETE_FUNCTION): Add fdopen.
2003-07-25 17:42:08 +00:00
Christopher Faylor
86ed5c8821
* cygwin.din: Export _fdopen64
...
* Makefile.in (NEW_FUNCTIONS): Add _fdopen64 -> fdopen translation.
* include/cygwin/version.h: Bump api minor number.
* ntdll.h: Remove (now) duplicate FILE_SYNCHRONOUS_IO_NONALERT definition.
2003-07-25 16:13:12 +00:00
Danny Smith
468f9fa2fe
* include/dkk/ntifs.h: Fix typo in guard for
...
#pragma GCC system_header.
2003-07-24 20:55:48 +00:00
Christopher Faylor
1fbeb8274f
* environ.cc (check_case_init): Use strncasematch.
...
* cygwin.din: Export __mempcpy.
* cygwin/version.h: Bump api minor number.
2003-07-24 19:33:14 +00:00
Danny Smith
b57a74b210
* include/objidl.h (PropVariant): Add CHAR cVal field
...
to union.
(FMTID_SummaryInformation, FMTID_DocSummaryInformation,
FMTID_UserDefinedProperties): Declare.
2003-07-22 22:48:00 +00:00
Danny Smith
f7ef885903
* include/winbase.h (GetModuleHandleEx[AW]): Add prototypes.
2003-07-22 22:36:03 +00:00
Danny Smith
1058b66e9a
* include/winbase.h (DUPLICATE_CLOSE_SOURCE,
...
DUPLICATE_SAME_ACCESS): Remove defines.
(HANDLE_FLAG_INHERIT, HANDLE_FLAG_PROTECT_FROM_CLOSE): Sync with
ddk/ntapi.h defines.
(SEM_*) : Likewise.
* include/winnt.h (COMPRESSION_*, ACCESS_*, SYSTEM_*): Sync with
ddk/ntifs.h defines.
(FILE_*): Likewise.
(MEM_IMAGE, SEC_*): Likewise.
(DUPLICATE_CLOSE_SOURCE, DUPLICATE_SAME_ACCESS,
DUPLICATE_SAME_ATTRIBUTES): Sync with ddk/winddk.h defines.
(TOKEN_*): Sync with ddk/ntifs.h defines.
* include/ddk/ntapi.h: Add comments noting definitions in
winbase.h.
* include/ddk/ntifs.h: Add comments noting definitions in
winnt.h.
* include/ddk/winddk.h: Add comments noting definitions in
winnt.h.
2003-07-22 22:21:27 +00:00
Corinna Vinschen
d432ac751b
* mmap.cc: Use proper format specifiers for _off64_t and size_t in
...
format strings passed to syscall_printf () and debug_printf ()
throughout.
2003-07-21 13:06:49 +00:00
Christopher Faylor
522483e4f6
* Makefile.common (CFLAGS_COMMON): Remove -march=i386.
2003-07-18 16:40:59 +00:00
Danny Smith
00314d7e16
* include/winnt.h (FILE_*): Sync with ddk/winddk.h.
...
* include/winioctl.h (FILE_*): Sync with ddk/winddk.h.
2003-07-18 10:21:01 +00:00
Pierre Humblet
b4ece40c0f
2003-07-18 Pierre Humblet <pierre.humblet@ieee.org>
...
* security.cc (verify_token): Fix white space and style.
Use type bool instead of BOOL and char. Use alloca
instead of malloc and free for my_grps.
2003-07-18 02:14:42 +00:00
Danny Smith
a817d5a835
2003-07-17 Pierre Humblet <pierre.humblet@ieee.org>
...
* include/mmsystem.h (TIME_KILL_SYNCHRONOUS): Add define.
2003-07-17 08:23:06 +00:00
Corinna Vinschen
fc2843ca96
* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on
...
_SC_PAGESIZE again.
2003-07-17 07:35:16 +00:00
Christopher Faylor
5b429f2674
update copyright
2003-07-17 05:27:03 +00:00
Danny Smith
a13fa879dd
Clean up warnings in ddk.
...
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-16 21:49:02 +00:00
Christopher Faylor
908a2a2bc0
* pathnames.sgml: Use correct registry key. Clarify '@' operation.
...
* ntsec.sgml: Reword references to "ntsec patch".
2003-07-16 02:12:00 +00:00
Corinna Vinschen
ea3ba11499
* cygheap.h (class cygheap_user): Use INVALID_HANDLE_VALUE as invalid
...
value for tokens.
* syscalls.cc (seteuid32): Ditto. Set new_token to process token if
process token is suitable.
* uinfo.cc (uinfo_init): Initialize tokens in cygheap user info
to INVALID_HANDLE_VALUE.
* cygheap.h (enum impersonation): Delete.
(cygheap_user::impersonation_state): Delete.
(cygheap_user::current_token): New.
(cygheap_user::issetuid): Modify to use current_token.
(cygheap_user::token): Ditto.
(cygheap_user::deimpersonate): Ditto.
(cygheap_user::reimpersonate): Ditto.
(cygheap_user::has_impersonation_tokens): Ditto.
(cygheap_user::close_impersonation_tokens): Ditto.
* security.cc (cygwin_set_impersonation_token): Always set the token.
(verify_token): Change type of gsid to cygpsid.
(get_file_attribute): Use the effective ids.
* syscalls.cc (seteuid32): Modify to use cygheap_user::current_token.
* uinfo.cc (uinfo_init) Do not set cygheap->user.impersonation_state.
2003-07-14 17:04:21 +00:00
Danny Smith
8330615ded
2003-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ddk/ntifs.h (KeInsertQueueApc): Make return type
BOOLEAN. Name parameter 4 PriorityBoost and make it of type
KPRIORITY.
* include/ddk/winddk.h (_KPCR): Put IDT field on next line.
* include/ddk/winddk.h (_IO_STATUS_BLOCK, _IRP, _OWNER_ENTRY,
_ERESOURCE, _IMAGE_INFO, _CREATE_DISK, _DISK_SIGNATURE, _KPCR_TIB):
Apply _ANONYMOUS_UNION to anonymous unions and _ANONYMOUS_STRUCT
to anonymous structs.
2003-07-13 03:41:46 +00:00
Christopher Faylor
9e8ac0ae35
* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
...
communicating pid actually stops eventually.
2003-07-12 21:37:07 +00:00
Danny Smith
a6674ee61b
* include/winnt.h (PVOID): Move to before HANDLE typedef.
...
* include/winuser.h (mouse_event): Correct type of fifth param,
Thanks to: Andrew Jones <guln at users dot sourceforge dot net>
2003-07-12 09:26:43 +00:00
Earnie Boyd
57552a7378
* include/winnt.h (HANDLE): Define based on STRICT filter.
...
(THREAD_BASE_PRIORITY_MIN): Use parens around negative value.
(THREAD_BASE_PRIOIRTY_IDLE): Ditto.
2003-07-11 11:56:00 +00:00
Christopher Faylor
e47d564835
* path.cc (get_device_number): Remove special com? consideration.
...
(special_chars): Make static.
(special_introducers): New.
(special_char): Allow specified valid_chars args.
(fnunmunge): Handle aux-like filenames correctly.
(special_name): Add con, conin$, conout$.
(mount_item::fnmunge): Use __small_sprintf return value to calculate
increments.
2003-07-11 00:54:46 +00:00
Christopher Faylor
30811232c7
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 02:33:27 +00:00
Christopher Faylor
2f5cab7bb2
* fhandler_proc.cc (format_proc_stat): Use correctly sized constants for
...
filling in zeros on 98.
2003-07-10 02:09:24 +00:00
Christopher Faylor
f1a4b6b59a
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 01:58:39 +00:00
Christopher Faylor
cf38615c3b
* fhandler_proc.cc (fhandler_proc::fill_filebuf): Allocate more space for stat
...
buffer.
(format_proc_stat): Reorganize to accumulate and report on all cpus.
2003-07-10 01:09:24 +00:00
Christopher Faylor
ab3dc80d9e
* sysconf.cc (sysconf): Return processors online rather than bitmask for
...
_SC_NPROCESSORS_ONLN.
2003-07-09 23:59:47 +00:00
Christopher Faylor
4d782b426a
* cygheap.cc (creturn): Set appropriate errno when out of memory.
...
(ccalloc): Only issue system_printf when debugging.
* dtable.cc (dtable::extend): Only allocate 100 * the incremental growth size
max. Set errno appropriately.
(dtable::build_fhandler): Check for error from set_name.
* fhandler.cc (fhandler_base::set_name): Set errno and return error on OOM.
* fhandler.h (fhandler_base::set_name): Change to bool.
* fhandler_process.cc (format_process_stat): Fix formatting.
* resource.cc (getrlimit): Return greater of OPEN_MAX or fd table size.
* sysconf.cc (sysconf): Ditto.
2003-07-09 01:33:06 +00:00
Danny Smith
49a14729eb
* include/commctrl.h (NMTVDISPINFO[AW]): Replace obsolete struct
...
names _TV_DISPINFO[AW] and typedefs. Add defines for backward
compatability. Thanks to Magnus Olsen <greatlord@users.sf.net>
for report.
2003-07-08 11:11:58 +00:00
Christopher Faylor
a711a5af45
* rmsym: Don't use ranlib.
2003-07-07 05:32:24 +00:00
Christopher Faylor
c0a6fcd75b
* newsym: Reenable removal of tmp directory. Just use ar to generate archive
...
index.
* Makefile.in: Don't send ranlib to newsym.
2003-07-07 05:30:33 +00:00
Christopher Faylor
0e5db0bfe8
* newsym: Create objects that are closer to those created by dlltool so as not
...
to confuse --export-all-symbols.
* rmsym: Be a little more accepting of object filenames now that dlltool can
create different format files.
2003-07-07 05:23:35 +00:00
Christopher Faylor
c522b9078c
* newsym: Oops. Revert below change.
2003-07-07 00:14:58 +00:00
Christopher Faylor
88a628163e
* newsym: Use correct prefix for generating imports.
...
* pinfo.cc (_pinfo::commune_send): Don't wait forever for a response from
another process.
2003-07-06 23:24:13 +00:00
Christopher Faylor
f346ea770f
update copyright
2003-07-06 21:45:21 +00:00
Christopher Faylor
35738f040e
* winsup.api/known_bugs.tcl: Remove gethostid01 from list of known bugs.
2003-07-06 21:40:38 +00:00
Christopher Faylor
0d043e9aac
white space
2003-07-06 20:13:48 +00:00
Christopher Faylor
b671715358
* syscalls.cc (gethostid): Set thread affinity so that results are predictable.
2003-07-06 20:08:42 +00:00
Christopher Faylor
e2723b750a
* Makefile.in: Remove .dat files when cleaning.
2003-07-06 19:25:40 +00:00
Christopher Faylor
d9a7d28a3f
* Makefile.in: Remove .d files when cleaning.
2003-07-06 19:24:31 +00:00
Corinna Vinschen
f2d3c47b14
* mmap.cc (list::match): Add parameters to return valid address and
...
length back to munmap(). Evaluate intersection between given
area and mapped area and return it, if any.
(mmap64): On regular files, don't allow mappings beginning beyond
EOF. Return with errno set to ENXIO instead.
(munmap): Rewrite SUSv3 conformant. Check if given memory area is
valid. Unmap all maps inside given memory area. Don't return error
if no mapping has been unmapped.
2003-07-05 18:59:35 +00:00
Corinna Vinschen
4b2cbaeefd
* fhandler.h (fhandler_socket::get_connect_state): New method to
...
return socket connection state.
* fhandler_socket.cc (dup): Copy socket connect state to new file
handle.
* net.cc (cygwin_rcmd): Mark file handles of sockets returned by
rcmd() as CONNECTED state.
(cygwin_rexec): Similarly for rexec().
(socketpair): Mark both ends of a new socket pair as CONNECTED.
2003-07-05 18:20:13 +00:00
Christopher Faylor
49806b9b06
fix typo
2003-07-04 17:37:59 +00:00
Corinna Vinschen
6694f3054e
* mmap.cc (fhandler_disk_file::mmap): Fix address test.
2003-07-04 09:06:54 +00:00
Christopher Faylor
baf77a53b0
* mount.cc (struct opt): Remove posix option.
2003-07-04 03:20:22 +00:00
Christopher Faylor
08604f02bc
* mount.cc (longopts): Add long "options" keyword.
...
(opts): Add -o option.
(usage): Display -o option.
(struct opt): New.
(concat3): New function.
(main): Handle -o flag.
2003-07-04 03:11:18 +00:00
Christopher Faylor
d108f312f9
* path.cc (fillout_mntent): Change "posix" to "managed".
2003-07-04 03:08:26 +00:00
Christopher Faylor
3f21478315
* fhandler.h (FH_ENC): New enum.
...
(fhandler_base::get_encoded): New function.
(fhandler_base::set_encoded): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Set encoded flag in
fhandler, as appropriate.
(fhandler_disk_file::readdir): Unmunge filename as appropriate based on new
encoding flag.
* path.cc (normalize_posix_path): Don't punt on files with colons.
(special_char): New function.
(mount_item::fnmunge): Ditto.
(fnunmunge): Ditto.
(special_name): Ditto.
(mount_item::build_win32): Avoid drive considerations when file is encoded.
(mount_info::conv_to_win32_path): Handle encoded filenames.
(mount_info::conv_to_posix_path): Ditto.
(fillout_mntent): Add posix string when directory is encoded.
* path.h (fnunmunge): Declare.
(path_conv::is_encoded): Declare.
2003-07-04 03:07:01 +00:00
Christopher Faylor
8f856553c0
ntsec patch
2003-07-04 01:58:24 +00:00
Christopher Faylor
3d8a75bdbe
* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize a little more of
...
the cygserver stuff so that ttys actually work.
2003-07-03 21:22:17 +00:00
Corinna Vinschen
6556178009
* mmap.cc (mmap64): Allow MAP_FIXED with pagesize granularity (4K).
...
If a non-zero addr is given, align it to the next lower 64K boundary.
(fhandler_disk_file::mmap): If a non-zero address is given, try
mapping using the given address first. If it fails and flags is not
MAP_FIXED, try again with NULL address.
2003-07-03 20:53:26 +00:00
Earnie Boyd
0def41361b
* config.guess, config.sub: Update with new versions from ftp.gnu.org.
2003-07-03 15:17:14 +00:00
Earnie Boyd
cdff6e0e16
* config.guess, config.sub: Update with versions from ftp.gnu.org.
2003-07-03 15:15:56 +00:00
Danny Smith
235f653a53
* mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
...
* mingwex/math/truncf.c (truncf): Likewise.
* mingwex/math/truncl.c (truncl): Likewise.
* mingwex/math/modff.c (modff): Likewise.
* mingwex/math/modfl.c (modfl): Likewise.
2003-07-03 11:24:18 +00:00
Danny Smith
78b8a13965
* include/search.h: New file.
...
* include/stdlib.h: Add comment about qsort, bsearch in
search.h.
* test_headers.c: Include search.h.
* moldname.def.in (lfind, lsearch): Add.
2003-07-03 07:50:53 +00:00
Luke Dunstan
b1868c88bc
* include/commdlg.h (CommDlg_OpenSave_*): Add parentheses around
...
macro arguments. Thanks to Tom Bishop <tombishop@users.sf.net>.
* include/winuser.h (MONITOR_DEFAULTTONULL, MONITOR_DEFAULTTOPRIMARY,
MONITOR_DEFAULTTONEAREST, MONITORINFOF_PRIMARY): Add defines.
(TPM_RECURSE): Add guard for Win98/Win2K.
Thanks to Magnus Olsen <greatlord@users.sf.net>.
2003-07-03 02:19:01 +00:00
Danny Smith
e298efab0a
* include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
...
_execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
2003-07-02 22:09:25 +00:00
Christopher Faylor
f3ff0ca9ed
* thread.cc: Remove _MT_SAFE conditional.
2003-07-02 03:50:05 +00:00
Christopher Faylor
9c01984ec2
* configure.in: Add --enable-server option.
...
* configure: Regenerate.
2003-07-02 03:33:01 +00:00
Christopher Faylor
6a59d15696
fix typo
2003-07-02 03:32:04 +00:00
Christopher Faylor
8fb2df196d
* configure.in: Fix --enable-server option.
2003-07-02 03:29:40 +00:00
Christopher Faylor
3872e9a419
* Makefile.in: Remove cygserver stuff.
...
* acconfig.h: Add USE_CYGSERVER define.
* config.h.in: Regenerate.
* configure.in: Add --enable-server setting.
* configure: Regenerate.
* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize compilation of
cygserver stuff.
* fork.cc (fork_child): Ditto.
* shm.cc: Ditto.
* tty.cc (tty::common_init): Ditto.
* dcrt0.cc: Use bool rather than BOOL for CYGWIN environment variable
definitions.
* environ.cc: Ditto.
* ntea.cc: Ditto.
* security.cc: Ditto.
* security.h: Ditto.
* syscalls.cc (check_posix_perm): Remove externs that were already declared in
a header.
* winsup.h: Ditto. Declare _MT_SAFE here. Delete it someday since cygwin
should always be _MT_SAFE.
2003-07-02 03:16:00 +00:00
Christopher Faylor
4d8d80b8a7
* Makefile.in (OBJS): Move some more files from cygwin directory.
...
* woutsup.h: Define _MT_SAFE.
2003-07-02 02:31:32 +00:00
Christopher Faylor
1847a1637d
* Makefile.common (CFLAGS_COMMON): Remove -Winline since it is too noisy on
...
newer versions of gcc.
2003-07-02 02:30:16 +00:00
Earnie Boyd
f7ba12a587
* include/basetyps.h (small, hyper): Change to __small and __hyper to
...
avoid user namespace conflicts.
2003-07-01 23:37:00 +00:00
Earnie Boyd
acd2330e32
* include/_mingw.h (small, hyper): Change to __small and __hyper to
...
avoid user space name conflicts.
2003-07-01 23:34:36 +00:00
Christopher Faylor
345ee543e0
first checkin
2003-07-01 21:09:39 +00:00
Christopher Faylor
c57452c817
First checkins.
2003-07-01 21:09:30 +00:00
Christopher Faylor
350c2f44b8
* configure.in: Add cygserver subdir.
...
* Makefile.in: Ditto.
* configure: Regenerate.
* Makefile.common: Remove debugging statements.
2003-07-01 20:51:03 +00:00
Earnie Boyd
e21a622054
* mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
...
Rename to Small (case difference).
2003-07-01 13:55:47 +00:00
Earnie Boyd
6dbe0697a7
Change existing guards to use the above macro names as appropriate.
...
* include/basetyps.h (__int32, __int16, __int8, small, hyper): Define.
Note: Also added to mingw/include/_mingw.h.
2003-07-01 13:01:41 +00:00
Earnie Boyd
fecdb8380e
* include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
...
Note: Also added to w32api/include/basetyps.h.
2003-07-01 12:57:53 +00:00
Earnie Boyd
b8582a99b5
* include/w32api.h (_NT4, _W98, _WME, _NT5, _W2000, _WXP, _W2003,
...
_IE3, _IE4, _IE5, _IE6): Add definitions.
* include/winbase.h (GetLongPathName[AW]): Add guard for OS >= NT5 or
>= Win98.
Change existing guards to use the above macro names as appropriate.
2003-07-01 12:01:05 +00:00
Corinna Vinschen
70249d5687
* cygheap.h (enum impersonation): New enum.
...
(cygheap_user::token): Delete.
(cygheap_user::impersonated): Delete.
(cygheap_user::external_token): New member.
(cygheap_user::internal_token): New member.
(cygheap_user::impersonation_state): New member.
(cygheap_user::issetuid): Modify.
(cygheap_user::token): New method.
(cygheap_user::deimpersonate): New method.
(cygheap_user::reimpersonate): New method.
(cygheap_user::has_impersonation_tokens): New method.
(cygheap_user::close_impersonation_tokens): New method.
* dtable.cc (dtable::vfork_child_dup): Use new cygheap_user methods.
* fhandler_socket.cc (fhandler_socket::dup): Ditto.
* fork.cc (fork_child): Ditto.
(fork_parent): Ditto.
* grp.cc (internal_getgroups): Ditto.
* security.cc (verify_token): Ditto.
(check_file_access): Ditto.
(cygwin_set_impersonation_token): Detect conflicts. Set
user.external_token.
* spawn.cc (spawn_guts): Use new cygheap_user methods.
* syscalls.cc (seteuid32): Rearrange to use the two tokens
in cygheap_user.
(setegid32): Use new cygheap_user methods.
* uinfo.cc: (internal_getlogin): Ditto.
2003-06-30 13:07:36 +00:00
Danny Smith
a52e274d12
2003-06-28 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/shlwapi.h (UrlGetLocationA, UrlGetLocationW,
PathFindSuffixArrayA, PathFindSuffixArrayW,
PathFindExtensionA, PathFindExtensionW, StrStrW
StrStrA): Change unicode-macro'd LP[C]TSTR return values to
explicit type.
2003-06-28 05:34:47 +00:00
Danny Smith
b08e1ec95a
2003-06-26 Mattia Barbon <mbarbon@dsi.unive.it>
...
* include/richedit.h (PARAFORMAT2): Add definition.
* include/richedit.h (PFA_*, PFE_*, PFM_*): Add some
missing constants.
2003-06-26 01:49:11 +00:00
Christopher Faylor
b06d4a0881
* Makefile.in: Use INSTALL_PROGRAM to install the cygwin DLL.
2003-06-25 19:12:01 +00:00
Thomas Pfaff
e1e196a225
* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.
...
(pthread::threads): Instantiate.
(pthread::pthread): Initialize running and suspendend.
Initialize next with NULL.
Add thread to thread list if it is not the null_pthread.
(pthread::~pthread): Remove thread from thread list if it is not the null_pthread.
(pthread::postcreate): Set running flag.
(pthread::exit): Reset running flag.
(pthread::cancel): Try to cancel thread only if still running.
(pthread::_fixup_after_fork): Implement.
(pthread::detach): Check if thread is still running before detach.
* thread.h (pthread::running): New member.
(pthread::next): Ditto.
(pthread::fixup_after_fork): New static method.
(pthread::threads): New static method.
(pthread::_fixup_after_fork): New method.
2003-06-24 20:14:01 +00:00
Christopher Faylor
6c6f70947d
* pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a pure
...
windows process.
2003-06-21 00:08:02 +00:00
Earnie Boyd
e7f4ab4d51
Oops, Forgot to submit the change log
2003-06-19 02:06:04 +00:00
Pierre Humblet
c9a5cfa0d3
2003-06-18 Pierre Humblet <pierre.humblet@ieee.org>
...
* autoload.cc (GetNetworkParams): Add.
* net.cc (getdomainname): Call GetNetworkParams and read the
DhcpDomain registry value if warranted.
2003-06-19 00:57:26 +00:00
Earnie Boyd
2302957c53
* include/dirent.h (dirent): Make d_name and array instead of a pointer.
...
* mingwex/dirent.c: Modifications througout to fill d_name array.
* Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
libmsvcr71, including debug versions.
(msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
2003-06-18 13:54:47 +00:00
Danny Smith
1c906df21f
2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shellapi.h (SHQUERYRBINFO): Add structure,
(SHQueryRecycleBin[AW]. SHEmptyRecycleBin[AW]):Add prototypes.
(SHERB_NOCONFIRMATION, SHERB_NOPROGRESSUI, SHERB_NOSOUND):
Add defines. Thanks to Brett Hart <brett at ncubedtech dot com>
2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
* include/winbase.h (GlobalCompact, GlobalFix, GlobalFlags,
GlobalUnfix, GlobalUnWire, GlobalWire, LocalCompact,
LocalFlags, LocalShrink, LockSegment, UnlockSegment): Add comment
that these are obsolete no-ops.
2003-06-17 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (GetProcessWorkingSetSize,
GlobalCompact, LocalAlloc, LocalCompact, LocalReAlloc,
LocalShrink, SignalObjectAndWait, WriteProcessMemory):
Correct prototypes.
2003-06-18 10:04:09 +00:00
Luke Dunstan
5a8ad0f577
2003-06-18 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/winuser.h (TPM_RECURSE): Add define.
2003-06-18 09:46:09 +00:00
Danny Smith
0d7e4ab2ba
* msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
...
__pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
Mark as DATA.
2003-06-17 23:08:26 +00:00
Christopher Faylor
0d58ef9dac
* path.cc (mount): Do more strict checking on posix path arguments.
2003-06-17 16:52:18 +00:00
Christopher Faylor
c433f4617f
Throughout, remove "include <errno.h>" from files which already include
...
cygerrno.h.
* include/cygwin/config.h (__DYNAMIC_REENT__): Define.
* include/cygwin/version.h: Bump API minor version.
* cygwin.din: Export __getreent
* cygerrno.h: Include errno.h. Fix places where _impure_ptr is used directly
to store the errno value.
* debug.cc (__set_errno): Ditto.
* errno.cc: Remove _RRENT_ONLY define to get errno.cc compiled.
* signal.cc: Rename _reent_clib to _REENT throughout.
* thread.h (reent_clib): Remove prototype.
* thread.cc (reent_clib): Rename reent_clib to __getreent. Return _impure_ptr
until MTinterface is initialized.
(reent_winsup): Fix a possible SEGV when _r == NULL. Return NULL instead.
* MTinterface::fixup_after_fork: Switch reent back to _impure_ptr to keep
signal handling running when fork is called from a thread other than the
mainthread.
2003-06-16 03:24:13 +00:00
Christopher Faylor
6806f4f6e2
* cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2003-06-13 02:36:12 +00:00
Christopher Faylor
8d60a6029c
clarify
2003-06-13 02:21:18 +00:00
Christopher Faylor
cc3ce0bb5f
Throughout, always return error when GetShortPathName returns 0.
2003-06-12 20:40:58 +00:00
Thomas Pfaff
1c80421cb4
* thread.cc (pthread_attr_init): Revert change from 2003-06-11
...
to return 0 if attribute is already initialized back to EBUSY.
(pthread_condattr_init): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_mutexattr_init): Ditto.
2003-06-12 18:15:34 +00:00
Corinna Vinschen
5bdb56f061
* exceptions.cc (ctrl_c_handler): Don't send a signal on
...
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
2003-06-12 12:36:07 +00:00
Thomas Pfaff
00e6660b0d
* thread.cc (pthread_attr_init): Return 0 if attribute is already initialized.
...
Fix return code if out of memory.
(pthread_condattr_init): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_mutexattr_init): Return 0 if attribute is already initialized.
2003-06-11 19:08:42 +00:00
Corinna Vinschen
271c1935b3
* spawn.cc (spawn_guts): Call CreateProcess while impersonated,
...
when the real {u,g}ids and the groups are original.
Move RevertToSelf and ImpersonateLoggedOnUser to the main line.
* uinfo.cc (uinfo_init): Reorganize. If CreateProcess was called
while impersonated, preserve the uids and gids and call
ImpersonateLoggedOnUser. Preserve the uids and gids on Win9X.
* exceptions.cc (error_start_init): Quote the pgm in the command.
2003-06-09 13:29:12 +00:00
Christopher Faylor
32173f7ec4
fix typo
2003-06-07 15:37:35 +00:00
Christopher Faylor
42a737d0a4
* poll.cc: Define FD_SETSIZE to ridiculously large number so that there will be
...
no artificially large limits.
2003-06-07 15:36:47 +00:00
Christopher Faylor
9501a0a1c7
* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last tty
...
closes.
2003-06-07 15:12:23 +00:00
Thomas Pfaff
f496071c40
* fhandler_socket.cc (fhandler_socket::connect): Change error
...
handling for nonblocking connects to return EALREADY when
connect is called more than once for the same socket.
2003-06-07 11:05:35 +00:00
Corinna Vinschen
54152c7e7e
* cygwin.din: Add vsyslog.
...
* fhandler.cc (fhandler_base::write): Only make file sparse if the
seeked area is >= 128K.
* syslog.cc (vsyslog): New function, overtaking functionality from
syslog.
(syslog): Just call vsyslog.
* include/cygwin/version.h: Bump API minor.
* include/sys/syslog.h: Add vsyslog declaration.
2003-06-06 08:11:19 +00:00
Danny Smith
b0ad6f2ba5
2003-06-06 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: #include <powerprof.h>.
2003-06-06 James E. Lucas <xelloss@sourceforge.net>
* include/powerprof.h: New file.
* lib/powerprof.def: New file.
2003-06-06 Danny Smith <dannysmith@users.sourceforge.net>
* include/winnt (SLIST_HEADER): Add C90 anonymous struct
protection.
2003-06-06 00:24:34 +00:00
Christopher Faylor
979233a51a
* cygthread.cc (cygthread::terminate_thread): Change system_printf to
...
debug_printf.
2003-06-05 19:18:33 +00:00
Luke Dunstan
51683b1aed
* include/winuser.h (WNDCLASS[AW], WNDCLASSEX[AW]): Change type of
...
hInstance members to HINSTANCE.
Thanks to: Brenden T. <brenden@rcsis.com>
2003-06-05 10:19:08 +00:00
Christopher Faylor
f51e42acc8
* shared.cc (shared_info::heap_chunk_size): Be really defensive about making
...
sure that heap_chunk is set.
2003-06-05 02:56:27 +00:00
Danny Smith
496e018f2f
2003-06-05 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* include/lmaccess.h (UF_MNS_LOGON_ACCOUNT): Add define.
* include/wingdi.h (LPRGBTRIPLE, LPRGBQUAD): Add typedefs.
2003-06-05 00:49:27 +00:00
Christopher Faylor
7b17543fb2
* path.cc (conv_path_list): Use correct value when calculating length to avoid
...
a potential SEGV.
2003-06-04 22:59:55 +00:00
Pierre Humblet
9f033c223c
2003-06-03 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Mark the pc
as non-executable if the file cannot be opened for read. Retry query
open only if errno is EACCES. Never change the mode, even if it is 000
when query open() fails.
2003-06-04 01:57:44 +00:00
Christopher Faylor
1e61337ccf
* configure.in: Allow any i?86 variant.
...
* configure: Regenerate.
2003-06-04 01:44:07 +00:00
Christopher Faylor
14963df6be
* configure.in: Allow any i?86 variant.
...
* configure: Regenerate.
2003-06-03 17:32:03 +00:00
Corinna Vinschen
fb6b1418e4
* fhandler_socket.cc (connect_thread): Remove.
...
(accept_thread): Remove.
(fhandler_socket::connect): Remove all special blocking handling.
(fhandler_socket::accept): Ditto.
* net.cc (cygwin_connect): Make blocking sockets temporarily
non-blocking and call cygwin_select on them to be interruptible.
(cygwin_accept): Ditto.
2003-06-03 14:05:17 +00:00
Christopher Faylor
0c8fe17278
* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
2003-06-03 02:32:49 +00:00
Danny Smith
38b524b385
* include/ddk/ntpoapi.h (POWER_INFORMATION_LEVEL): Remove.
...
* include/winnt.h (POWER_INFORMATION_LEVEL): Add.
* include/ddk/winddk.h (SINGLE_LIST_ENTRY,SLIST_HEADER):
Remove.
* include/ddk/ndis.h (NdisAllocateSpinLock): Add missing '\'.
2003-06-02 22:21:54 +00:00
Christopher Faylor
3786526ea8
* cygthread.h (cygthread::terminate_thread): Mark private.
...
* cygthread.cc (cygthread::terminate_thread): Deallocate free_range thread
stuff.
2003-06-02 21:22:02 +00:00
Corinna Vinschen
cbdc3d1780
* fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'
...
to `interrupted' as used in fhandler_socket::connect.
2003-06-02 21:20:22 +00:00
Corinna Vinschen
dfe7d28850
* fhandler_socket.cc (fhandler_socket::connect): Simplify previous
...
patch.
(fhandler_socket::accept): Ditto.
2003-06-02 21:14:39 +00:00
Corinna Vinschen
8e13bd144d
* fhandler_socket.cc: Include cygthread.h.
...
(class sock_event): Remove.
(thread_connect): New function.
(thread_accept): Ditto.
(fhandler_socket::connect): Use cygthread instead of socket event
handling for blocking sockets.
(fhandler_socket::accept): Ditto.
2003-06-02 17:52:16 +00:00
Christopher Faylor
418c623614
* fhandler.cc (fhandler_base::write): Correct minor printf formatting style
...
glitch.
2003-06-02 14:07:48 +00:00
Pierre Humblet
c17e8306d0
2003-06-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Assume
an existing directory is a root if FindFirstFile fails.
2003-06-01 19:37:13 +00:00
Christopher Faylor
e59c6ff448
* path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok was
...
actually valid. Fix it.
2003-05-30 23:43:24 +00:00
Christopher Faylor
cbe5375437
* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's have
...
problems with.
* path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple exec
tests away from filesystem tests.
2003-05-30 15:01:33 +00:00
Luke Dunstan
1698ff392a
2003-05-30 Mattia Barbon <mbarbon@dsi.unive.it>
...
* lib/oleacc.def: New file.
* include/winable.h: New file.
* include/oleacc.h: Add extern "C" guard.
(NAVDIR_*, ROLE_*, STATE_*): Add missing constants.
(AccessibleChildren, AccessibleObjectFromEvent,
AccessibleObjectFromPoint, AccessibleObjectFromWindow,
CreateStdAccessibleProxy[AW], GetOleaccVersionInfo, GetRoleText[AW],
GetStateText[AW], LresultFromObject, ObjectFromLresult,
WindowFromAccessibleObject): Add prototypes and UNICODE mappings.
* include/winuser.h (NotifyWinEvent): Add prototype.
(OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR,
OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL,
OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT,
OBJID_SOUND): Move from here to...
* include/winable.h (OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR,
OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL,
OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT,
OBJID_SOUND): Here, as per documentation.
* lib/test.c: Include winable.h.
* lib/user32.def (NotifyWinEvent): Add missing export.
2003-05-30 10:09:36 +00:00
Danny Smith
a681e7f0c6
2003-05-30 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (HeapCompact): Correct prototype.
* include/winnt.h (SINGLE_LIST_ENTRY, SLIST_ENTRY,
SLIST_HEADER): Add.
2003-05-30 08:44:50 +00:00
Corinna Vinschen
4aa10069db
* include/sys/param.h: Add DEV_BSIZE.
2003-05-30 08:39:02 +00:00
Danny Smith
ea6ce1d0de
2003-05-30 Sascha Sommer <saschasommer@freenet.de>
...
* include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
2003-05-30 02:42:07 +00:00
Corinna Vinschen
4e2db52c1c
* fhandler_socket.cc (fhandler_socket::dup): Rearrange. Fix
...
conditional.
2003-05-29 16:16:59 +00:00
Luke Dunstan
87cde7d600
* include/winuser.h (LWA_COLORKEY, LWA_ALPHA): Add defines.
2003-05-29 10:32:03 +00:00
Christopher Faylor
b666c2eb34
* mkvers.sh: Avoid "-dontuse" tags.
...
* path.cc (path_conv::check): Set exec state based on known situations.
* path.cc (mount_item::fnmunge): New function.
(mount_item::build_win32): New function.
(mount_info::conv_to_win32_path): Use build_win32 to build windows path.
* path.h (mount_item::fnmunge): Declare new function.
(mount_item::build_win32): Ditto.
* sys/mount.h (MOUNT_ENC): Define.
2003-05-29 03:50:15 +00:00
Corinna Vinschen
72c1470d67
* fhandler_socket.cc (fhandler_socket::dup): If running impersonated,
...
revert to original account before calling fixup_before_fork_exec
and impersonate again afterwards. Change comment accordingly.
Clean up error handling and debug output.
2003-05-28 22:05:56 +00:00
Thomas Pfaff
a946fb037d
* fhandler_socket.cc (sock_event::~sock_event): New method.
...
(sock_event::load): Change to void. Check if winsock2 is available.
(socke_event::wait): Return 0 if interruptible mode is not available.
(fhandler_socket::connect): Remove checks for winsock2 availability.
(fhandler_socket::accept): Ditto.
2003-05-27 18:30:29 +00:00
Corinna Vinschen
dae86e4507
* fhandler_socket.cc (fhandler_socket::dup): First try duplicating
...
using WSADuplicateSocket/WSASocket, if that fails, try DuplicateHandle.
2003-05-27 07:50:00 +00:00
Corinna Vinschen
2311f6b0e4
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Filter
...
permissions throug umask on FAT or if ntsec is off.
2003-05-27 07:44:26 +00:00
Corinna Vinschen
ada0376f64
* syscalls.cc (statfs): Call GetDiskFreeSpaceEx before GetDiskFreeSpace.
2003-05-26 16:52:58 +00:00
Corinna Vinschen
0372ad9f11
* fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZE
...
instead of numeric constant.
2003-05-26 15:43:54 +00:00
Corinna Vinschen
6852f6c0f6
* fhandler_socket.cc (fhandler_socket::connect): Guard calls to
...
sock_event methods by a check for WinSock2 availability.
(fhandler_socket::accept): Ditto.
2003-05-26 11:11:22 +00:00
Corinna Vinschen
fac297d5f8
* fhandler.h: Rename FH_W95LSBUG flag to FH_LSEEKED.
...
(fhandler_base::set_did_lseek): Rename from set_check_win95_lseek_bug.
(fhandler_base::get_did_lseek): Rename from get_check_win95_lseek_bug.
(fhandler_base::set_fs_flags): New method.
(fhandler_base::get_fs_flags): Ditto.
* fhandler.cc (fhandler_base::write): Make 64 bit clean. Convert file
to a "sparse" file when writing after a long lseek (>64K) beyond EOF.
(fhandler_base::lseek): Call set_did_lseek() instead of
set_check_win95_lseek_bug().
(fhandler_base::fhandler_base): Initialize fs_flags to 0.
* fhandler_disk_file.cc (fhandler_disk_file::open): Don't create files
as "sparse" unconditionally. Set fs_flags member.
2003-05-26 09:54:01 +00:00
Christopher Faylor
7b3a9e6e00
* include/winuser.h (EnumDisplayDevicesW): Fix typo.
2003-05-25 21:38:31 +00:00
Corinna Vinschen
a80229fd49
* autoload.cc (GetDiskFreeSpaceEx): Add.
...
* syscalls.cc (statfs): Call full_path.root_dir() instead of
rootdir(full_path). Use GetDiskFreeSpaceEx when available and
report space available in addition to free space.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name):
Do not call FindFirstFile for disk root directories.
2003-05-25 09:18:43 +00:00
Corinna Vinschen
c295ce6f6e
* fhandler_process.cc (format_process_stat): use PagefileUsage
...
instead of VirtualSize.
(get_mem_values): Ditto.
2003-05-24 20:14:19 +00:00
Danny Smith
ff462cb235
2003-05-23 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winuser.h (EnumDisplayDevices[AW]): Add prototypes.
* include/wingdi.h (DISPLAY_DEVICE): UNICODE it.
2003-05-23 Andrew Dunbar <hippietrail@users.sourceforge.net>
* include/wingdi.h (GCP_RESULTS[AW]) Correct type of
lpGlyphs field to LPWSTR.
2003-05-23 08:07:05 +00:00
Danny Smith
a66cfe68eb
* include/wincrypt.h (PLAINTEXTKEYBLOB, OPAQUEKEYBLOB,
...
PUBLICKEYBLOBEX, SYMMETRICWRAPKEYBLOB) Add defines.
(PP_*): Add defines.
(CryptContextAddRef): Add prototype.
Thanks to: Shura Zam <debil_urod@users.sourceforge.net>
2003-05-21 09:49:58 +00:00
Corinna Vinschen
5c768c978c
* shared_info.h: Match shared_name declaration with below change.
...
* shared.cc (shared_name): Use incoming char * parameter instead of
local static buffer.
(open_shared): Accomodate new calling convention for shared_name.
* exceptions.cc (events_init): Ditto.
* sigproc.cc (getsem): Ditto.
* syscalls.cc (login): Ditto.
(logout): Ditto.
(pututline): Ditto.
2003-05-21 08:01:57 +00:00
Corinna Vinschen
44be819760
* fhandler_socket.cc (secret_event_name): Return void. Use incoming
...
char *parameter instead of local static buffer.
(fhandler_socket::create_secret_event): Accomodate new calling
convention for secret_event_name.
(fhandler_socket::close_secret_event): Ditto.
2003-05-20 17:39:46 +00:00
Corinna Vinschen
d4f3ce316c
* fhandler_socket.cc (SECRET_EVENT_NAME): Remove.
...
(ENTROPY_SOURCE_NAME): Ditto.
(secret_event_name): New static function. Create shared event name
with "Global\" prefix on systems supporting terminal services.
(fhandler_socket::set_connect_secret): Fix conditional.
(fhandler_socket::create_secret_event): Create secret event using
secret_event_name().
(fhandler_socket::close_secret_event): Ditto.
* shared.cc (shared_name): Create shared object name with "Global\"
prefix on systems supporting terminal services.
* wincap.cc: Set has_terminal_services capability throughout.
(wincap_2003): New global object representing Windows 2003 Server
capabilities.
(wincapc::init): Accomodate Windows 2003 Server.
* wincap.h (struct wincaps): Add has_terminal_services capability.
2003-05-20 15:22:09 +00:00
Corinna Vinschen
10bada05fa
* winsup/cygwin/include/cygwin/version.h: Bump API minor version.
...
* winsup/cygwin/include/cygwin/types.h: Define key_t as long long.
* winsup/cygwin/cygwin.din: Add ftok, _ftok.
* winsup/cygwin/ipc.cc (ftok): Rework implementation.
2003-05-20 12:38:04 +00:00
Christopher Faylor
d8ee8ca551
* spawn.cc (spawn_guts): Show more of command line in strace output.
2003-05-19 01:43:31 +00:00
Danny Smith
8dc6cea2e8
2003-05-18 Manu B <manubee@users.sourceforge.net>
...
* include/commctrl.h (TVSORTCB): Rename old TV_SORTCB structure.
2003-05-18 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (CREATE_DEFAULT_ERROR_MODE,
DEBUG_PROCESS, DEBUG_ONLY_THIS_PROCESS, CREATE_SUSPENDED,
DETACHED_PROCESS, CREATE_NEW_CONSOLE, NORMAL_PRIORITY_CLASS,
IDLE_PRIORITY_CLASS, HIGH_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
CREATE_NEW_PROCESS_GROUP, CREATE_UNICODE_ENVIRONMENT,
CREATE_SEPARATE_WOW_VDM, CREATE_SHARED_WOW_VDM, CREATE_FORCEDOS,
CREATE_NO_WINDOW): Convert to hexadecimal form for better
readability.
(BELOW_NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS,
CREATE_BREAKAWAY_FROM_JOB, CREATE_WITH_USERPROFILE): Add.
2003-05-18 10:20:47 +00:00
Danny Smith
8ed969331b
* include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
...
but still protect inline definition with __STRICT_ANSI__
2003-05-15 22:28:57 +00:00
Danny Smith
90e1332c38
Remove isascii.o, add isascii.c to repository
2003-05-15 22:21:00 +00:00
Thomas Pfaff
c8fa3426af
* thread.h (pthread::init_mainthread): Remove function parameter.
...
(MTinterface::Init): Ditto.
* thread.cc (MTinterface::Init): Remove function parameter.
Always initialize reent_key.
(pthread::init_mainthread): Remove function parameter.
(MTinterface::fixup_after_fork): Fix pthread::init_mainthread call.
* dcrt0.cc (dll_crt_0_1) Fix calls to MTinterface::Init and
pthread::init_mainthread.
Call pthread::init_mainthread only when not forked.
2003-05-15 19:42:51 +00:00
Corinna Vinschen
f2669f5d16
* fhandler_proc.cc (format_proc_meminfo): Make swap memory output
...
Linux style values.
2003-05-15 11:56:51 +00:00
Danny Smith
a445a0b0ce
* include/ddk/ndis.h (NDIS30_MINIPORT_CHARACTERISTICS_S):
...
Unname anonymous unions if NONAMELESSUNION not defined.
2003-05-15 01:04:07 +00:00
Danny Smith
620c28a975
* string_old.c: Remove, splitting into...
...
* strcasecmp.c: New file.
* strncasecmp.c: New file.
* wscmpi.c : New file.
* ctype_old.c: Remove, splitting into...
* isascii.c: New file.
* iscsym.c: New file.
* iscsymf.c: New file.
* toascii.c: New file.
* Makefile.in (MOLD_OBJS): Adjust.
(SRCDIST_FILES): Adjust.
2003-05-15 00:21:12 +00:00
Danny Smith
6c4ce46ce1
2003-05-14 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (GMEM_VALID_FLAGS): Add.
2003-05-15 00:10:33 +00:00
Danny Smith
3927f0a891
* include/math.h (fabs) : Remove inline definition.
...
(fabsf): Likewise.
(fabsl): Likewise.
2003-05-14 01:03:20 +00:00
Danny Smith
1b89c1742e
* include/prsht.h (PROPSHEETHEADER[AW]: Mark
...
anonymous unions as GCC extension.
2003-05-13 10:53:13 +00:00
Corinna Vinschen
5d575f7dcd
* include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.
2003-05-13 09:26:17 +00:00
Danny Smith
b823fca9ba
* include/oleidl.h (LPENUMOLEDOCUMENTVIEWS): Remove typedef.
...
(IEnumOleDocumentViews): Remove commented out DECLARE_ENUMERATOR.
* include/docobj.h (LPENUMOLEDOCUMENTVIEWS): Add typedef (previously
commented out).
(IEnumOleDocumentViews): Add definition using DECLARE_ENUMERATOR.
2003-05-13 02:05:12 +00:00
Earnie Boyd
3b30f11fbf
* include/commctrl.h: (MCSC_BACKGROUND, MCSC_TEXT, MCSC_TITLEBK,
...
MCSC_TITLETEXT, MCSC_MONTHBK, MCSCTRAILTEXT): Define.
Thanks to: Robert Wishlaw <rwishlaw @ shaw . ca>
2003-05-12 12:29:00 +00:00
Corinna Vinschen
194d9eb318
* Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS.
...
* fhandler.h (fhandler_virtual::fstat): Remove useless declaration.
* fhandler_virtual.cc: Remove _COMPILING_NEWLIB define.
* ipc.cc (ftok): Use stat64.
* syscalls.cc (_fstat64): Remove alias.
(_fstat): Ditto.
(_stat): Ditto.
(_fstat64_r): New function.
(_fstat_r): Ditto.
(_stat64_r): Ditto.
(stat_r): Ditto.
* crt0.o: New file, moved from newlib.
* include/sys/param.h: Ditto.
* include/sys/utime.h: Ditto.
* include/sys/utmp.h: Ditto.
* include/sys/dirent.h: Ditto. Expose different struct dirent,
dependening of the environment.
2003-05-12 11:06:27 +00:00
Corinna Vinschen
01859fc441
* Makefile.common: Remove newlib_sys_include and
...
newlib_sys_include_include entirely. Set CRT0 to cygwin/crt0.o.
2003-05-12 11:06:00 +00:00
Danny Smith
214d1b21cb
* include/olectl.h (IOleControl,IOleControlSite,ISimpleFrameSite,
...
IErrorLog,IPropertyBag,IPersistPropertyBag,IPersistStreamInit,
IPersistMemory,IPropertyNotifySink,IProvideClassInfo,
IProvideClassInfo2,IConnectionPointContainer,
IEnumConnectionPoints,IConnectionPoint,IEnumConnections,
IClassFactory2,ISpecifyPropertyPages,IPerPropertyBrowsing,
IPropertyPageSite,IPropertyPage,IPropertyPage2,IFont,IFontDisp,
IPicture,IPictureDisp): Move from here to...
* include/ocidl.h (IOleControl,IOleControlSite,ISimpleFrameSite,
IErrorLog,IPropertyBag,IPersistPropertyBag,IPersistStreamInit,
IPersistMemory,IPropertyNotifySink,IProvideClassInfo,
IProvideClassInfo2,IConnectionPointContainer,
IEnumConnectionPoints,IConnectionPoint,IEnumConnections,
IClassFactory2,ISpecifyPropertyPages,IPerPropertyBrowsing,
IPropertyPageSite,IPropertyPage,IPropertyPage2,IFont,IFontDisp,
IPicture,IPictureDisp): Here, as per documentation.
2003-05-12 10:43:08 +00:00
Danny Smith
e9a398893f
2003-05-12 Mattia Barbon <mbarbon@dsi.unive.it>
...
* include/oleauto.h (VarR8FromDec, VarDecFromR8): Add prototypes.
* include/winbase.h (TerminateJobObject,
AssignProcessToJobObject): Likewise.
* include/servprov.h: New header.
* lib/test.c: Include servprov.h.
Correct ChangeLog typo
2003-05-12 10:35:35 +00:00
Corinna Vinschen
cc95baad41
Replace ino_t by __ino64_t throughout.
2003-05-11 21:52:09 +00:00
Corinna Vinschen
aee7085346
* include/cygwin/types.h: Add key_t typedef.
2003-05-11 12:50:18 +00:00
Christopher Faylor
066ca06fd0
* dir.cc (readdir): Fill out new old_d_ino field.
...
* fhandler.h (fhandler_base::namehash): Define as ino_t.
(fhandler_base::get_namehash): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Accommodate new 64
bit st_ino.
* fhandler_socket.cc (fhandler_socket::fstat): Ditto.
* path.cc (hash_path_name): Return ino_t.
* syscalls.cc (stat64_to_stat32): Convert 64 bit inode to 32 bit.
* winsup.h (hash_path_name): Declare as returning ino_t.
* include/cygwin/stat.h (__stat32): Use 32 bit st_ino.
(__stat64): Use 64 bit st_ino.
* include/cygwin/types.h (__ino64_t): Define.
(__ino32_t): Ditto.
(ino_t): Define appropriately.
2003-05-11 00:10:11 +00:00
Danny Smith
bf759a5ae6
* include/shlguid.h (CGID_ShellServiceObject): Declare.
...
* lib/uuid.c (CGID_ShellServiceObject): Define guid.
Thanks to Chris Sutcliffe <ir0nh34d#users.sourceforge.net>
* include/winuser.h (SetLayeredWindowAttributes): Add prototype.
* lib/user32.def (SetLayeredWindowAttributes): Add stub.
* lib/uuid.c (CGID_Explorer, CGID_ShellDocView): Define guids.
2003-05-10 09:20:11 +00:00
Corinna Vinschen
3e66a81cd1
* Makefile.in (NEW_FUNCTIONS): All 32/64 from 0.79 API get
...
leading underscore.
* cygwin.din: Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-05-09 22:11:25 +00:00
Corinna Vinschen
d3b450f3a1
* include/cygwin/config.h: New file.
2003-05-09 21:27:40 +00:00
Corinna Vinschen
8e67b974a9
* libltp/include/test.h: Remove gethostid declaration.
2003-05-09 20:53:22 +00:00
Christopher Faylor
b92899cca0
revert errnoneous checkin
2003-05-09 17:58:20 +00:00
Christopher Faylor
9508ebc53d
* cygthread.cc (cygthread::detach): Prioritize waiting for I/O completion over
...
waiting for signal delivery.
2003-05-09 17:56:58 +00:00
Joshua Daniel Franklin
af9315f8a3
* cygwin-ug-net.in.sgml: Remove outdated revision information and authors names
2003-05-09 00:05:02 +00:00
Earnie Boyd
85051ee6c1
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-05-07 03:12:17 +00:00
Thomas Pfaff
0bb7254f38
* signal.cc (nanosleep): Do not wait twice for signal arrival.
2003-05-06 19:39:10 +00:00
Earnie Boyd
4c6bc0ed42
Uh hum, just not my day
2003-05-06 16:04:25 +00:00
Earnie Boyd
60e9842b39
* configure: Regenerate
2003-05-06 14:48:34 +00:00
Earnie Boyd
3a1f652308
* configure.in (W32API_INCLUDE): Need the -I switch in the value.
...
* mingwex/configure.in (W32API_INCLUDE): Ditto.
* profile/configure.in (W32API_INCLUDE): Ditto.
2003-05-06 14:46:06 +00:00
Earnie Boyd
98a430bcbe
Oops. Add ending quotes to CFLAGS value.
2003-05-06 13:35:20 +00:00
Earnie Boyd
42fbaad1e8
* configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
...
of multiply defined symbols if the symbols is defined locally. E.G.:
A local definition of malloc causes this problem.
* configure: Regenerate.
* profile/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
(gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
Thanks to Jeff Bonggren <jbon@users.sf.net>.
* profile/configure.in (W32API_INCLUDE): Set default value.
* profile/configure: Regenerate.
* mingwex/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API-INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* mingwex/configure.in (W32API_INCLUDE): Set default value.
* mingwex/configure: Regenerate.
2003-05-06 13:26:44 +00:00
Earnie Boyd
fe2f86961e
* Makefile.in (W32API_INCLUDE): New variable.
...
(ALL_CFLAGS): Include W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
(W32API_INCLUDE): Set default value.
* configure: Regenerate.
2003-05-05 16:04:11 +00:00
Danny Smith
2937200d0e
* include/commctrl.h (STATUSCLASSNAME, TOOLBARCLASSNAME,
...
TOOLTIPS_CLASS, TRACKBAR_CLASS, UPDOWN_CLASS, PROGRESS_CLASS,
HOTKEY_CLASS): Remove dupicate defines for UNICODE case.
2003-05-05 09:16:35 +00:00
Corinna Vinschen
a6d745f53c
* include/cygwin/types.h: Fix erroneous definition of ino_t from
...
2003-04-28.
2003-05-03 18:14:29 +00:00
Corinna Vinschen
40d3c80413
* syscalls.cc (chown_worker): Allow chown'ing of socket files.
2003-05-03 16:03:19 +00:00
Danny Smith
1a2060aa43
2003-05-02 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/richedit.h (EM_FINDTEXTEXW, EM_FINDTEXTW,
EM_GETAUTOURLDETECT, EM_GETBIDIOPTIONS, EM_GETEDITSTYLE,
EM_GETIMECOLOR, EM_GETIMEOPTIONS, EM_GETPUNCTUATION,
EM_GETWORDWRAPMODE, EM_RECONVERSION, EM_SETBIDIOPTIONS,
EM_SETEDITSTYLE, EM_SETIMECOLOR, EM_SETIMEOPTIONS,
EM_SETPALETTE, EM_SETPUNCTUATION, EM_SETTEXTEX,
EM_SETWORDWRAPMODE, RICHEDIT_CLASS10A): Add defines.
2003-05-02 00:46:57 +00:00
Danny Smith
b349465ef3
2003-05-02 Francois Ferrand <typz@sourceforge.users.net>
...
* include/commctrl.h (TBM_*): Add missing trackbar defines.
2003-05-02 00:16:03 +00:00
Danny Smith
41e7de4863
* include/cplext.h (CPLPAGE_MOUSE_WHEEL,
...
CPLPAGE_DISPLAY_BACKGROUND): Add defines.
2003-05-02 00:11:49 +00:00
Thomas Pfaff
2238537c36
* Makefile.in: Revert patch from 2003-04-17.
2003-04-30 22:18:24 +00:00
Danny Smith
14dbd34e9e
* include/wingdi.h (DC_PEN, DC_BRUSH): Add defines.
...
(SetDCPenColor, SetDCBrushColor): Add prototypes.
* lib/gdi32.def (SetDCPenColor, SetDCBrushColor): Add stubs.
2003-04-30 09:28:15 +00:00
Christopher Faylor
6ef342e460
* profil.h (PROFADDR): Prevent overflow when text segments are larger than
...
256k.
* profil.c (profthr_func): Raise thread priority for more accurate sampling.
* path.cc (hash_path_name): Use ino_t as type.
2003-04-28 20:10:54 +00:00
Christopher Faylor
878251d460
really check in correct fix.
2003-04-27 03:14:02 +00:00
Christopher Faylor
7d6d38aaec
* errno.cc (_sys_nerr): Fix compile error erroneously checked in on 2003-04-23.
2003-04-27 03:09:17 +00:00
Joshua Daniel Franklin
45bfd8ed74
* mkpasswd.c (usage) Remove extra newline from description output.
2003-04-26 22:33:00 +00:00
Danny Smith
98dc5aa07f
2003-04-26 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro.
2003-04-26 22:00:16 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Joshua Daniel Franklin
3c7197b104
* gcc.sgml: Remove outdated "WinMainCRTStartup" references. Add a hellogui.c example
2003-04-26 14:10:59 +00:00
Danny Smith
a5035abfac
* include/oaidl.h (ITypeMarshal): Add interface.
2003-04-26 08:48:03 +00:00
Danny Smith
d9d35a454b
2003-04-26 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winioctl.h: Clean up formatting.
(RETRIEVAL_POINTERS_BUFFER): Add fields to Extents[1] struct.
(CREATE_DISK): Add _ANONYMOUS_UNION macro.
(DISK_CACHE_INFORMATION): Likewise.
(DISK_DETECTION_INFO): Likewise.
(DISK_PARTITION_INFO): Likewise.
(PARTITION_INFORMATION_EX): Likewise.
(DRIVE_LAYOUT_INFORMATION_EX): Likewise.
2003-04-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/winbase.h (DeleteVolumeMountPoint[AW],
FindFirstVolumeMountPoint[AW], FindNextVolumeMountPoint[AW],
FindVolumeMountPointClose, GetVolumeNameForVolumeMountPoint[AW],
GetVolumePathName[AW], GetVolumePathNamesForVolumeName[AW],
SetVolumeMountPoint[AW]): Add prototypes.
* include/winioctl.h (IOCTL_DISK_GET_PARTITION_INFO_EX,
IOCTL_DISK_SET_PARTITION_INFO_EX,
IOCTL_DISK_GET_DRIVE_LAYOUT_EX,
IOCTL_DISK_SET_DRIVE_LAYOUT_EX, IOCTL_DISK_CREATE_DISK,
IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_PERFORMANCE_OFF,
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GROW_PARTITION,
IOCTL_DISK_GET_CACHE_INFORMATION,
IOCTL_DISK_SET_CACHE_INFORMATION,
IOCTL_DISK_DELETE_DRIVE_LAYOUT, IOCTL_DISK_UPDATE_PROPERTIES,
FSCTL_GET_VOLUME_BITMAP, FSCTL_GET_RETRIEVAL_POINTERS,
FSCTL_MOVE_FILE): Define.
(CREATE_DISK_GPT, CREATE_DISK_MBR, CREATE_DISK,
DISK_CACHE_INFORMATION,
DETECTION_TYPE, DISK_INT13_INFO, DISK_EX_INT13_INFO,
DISK_DETECTION_INFO, DISK_GEOMETRY_EX, DISK_GROW_PARTITION,
DISK_PARTITION_INFO, DISKQUOTA_USER_INFORMATION,
GET_LENGTH_INFORMATION, DISK_EXTENT, VOLUME_DISK_EXTENTS,
DRIVE_LAYOUT_INFORMATION_GPT, DRIVE_LAYOUT_INFORMATION_MBR,
PARTITION_INFORMATION_MBR, PARTITION_INFORMATION_GPT,
PARTITION_INFORMATION_EX, DRIVE_LAYOUT_INFORMATION_EX,
MOVE_FILE_DATA,
RETRIEVAL_POINTERS_BUFFER, STARTING_LCN_INPUT_BUFFER,
STARTING_VCN_INPUT_BUFFER, VOLUME_BITMAP_BUFFER): Add structs
(PARTITION_STYLE, DISK_CACHE_RETENTION_PRIORITY): Add enums.
(MEDIA_TYPE): Add F3_120M_512, F3_640_512, F5_640_512,
F5_720_512,
F3_1Pt2_512, F3_1Pt23_1024, F5_1Pt23_1024, F3_128Mb_512,
F3_230Mb_512,
F8_256_128, F3_200Mb_512, F3_240M_512, and F3_32M_512.
* lib/kernel32.def (GetVolumePathNamesForVolumeName[AW]): Add
stubs.
2003-04-26 08:31:29 +00:00
Corinna Vinschen
f615d74b72
* include/netinet/ip.h: Include netinet/in_systm.h and netinet/in.h
...
to allow standalone usage (autoconf).
2003-04-25 08:32:30 +00:00
Christopher Faylor
5d9a7c875a
* fork.cc: Change SLOW_PID_REUSE to NO_SLOW_PID_REUSE and invert ifdef sense
...
throughout.
2003-04-24 01:57:07 +00:00
Christopher Faylor
5f92bef8a8
fix typo
2003-04-23 01:54:17 +00:00
Christopher Faylor
0eaf24fead
* select.cc (fhandler_pipe::ready_for_read): Assure that get_guard is called
...
for successful non-blocking pipe reads.
2003-04-23 01:27:51 +00:00
Corinna Vinschen
e8a57b4fc7
* include/inttypes.h: New file.
...
* include/stdint.h: New file.
* include/cygwin/in.h: Include stdint.h instead of sys/types.h.
* include/cygwin/types.h: Include stdint.h. Remove typedefs for
intN_t and uintN_t since these are defined in stdint.h now.
2003-04-22 14:55:01 +00:00
Christopher Faylor
650dc784e5
Clarify number bump
2003-04-21 04:33:00 +00:00
Christopher Faylor
99b1a40dc1
* include/cygwin/version.h: Bump DLL major number to 5. Change DLL minor
...
number to 0. Bump API minor number.
2003-04-21 04:31:06 +00:00
Corinna Vinschen
beb5408583
* autoload.cc (CreateWindowStationA): Add.
...
(SetProcessWindowStation): Add.
2003-04-20 08:56:42 +00:00
Christopher Faylor
6b3bdf38e0
* wincap.h (wincaps:pty_needs_alloc_console): New element.
...
(wincapc:pty_needs_alloc_console): New function.
* wincap.cc: Add pty_needs_alloc_console throughout.
* fhandler_tty.cc (fhandler_tty_slave::open): Open an "invisible" console on
first pty allocation.
2003-04-20 01:36:15 +00:00
Christopher Faylor
afa18d8a69
* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
...
is allocated.
2003-04-19 02:04:55 +00:00
Christopher Faylor
4e0d877875
* Makefile.in: Use ${nostdlib} variable.
...
* fhandler_proc.cc (format_proc_cpuinfo): Change /proc/cpuinfo "vendor id"
string to "vendor_id" to conform with Linux systems.
2003-04-19 01:03:16 +00:00
Christopher Faylor
b128dd21af
* Makefile.in: Reorganize to try to allow lack of mingw/w32api to work.
2003-04-19 01:02:51 +00:00
Christopher Faylor
4e837e7368
* syscalls.cc (setsid): Don't call FreeConsole if ctty is already < 0.
2003-04-18 00:25:41 +00:00
Thomas Pfaff
f3c1c54051
* Makefile.in: Add finline-functions optimization to CXXFLAGS.
...
* autoload.cc (LoadDLLprime): Rename std_dll_init to
_std_dll_init.
(std_dll_init): Remove name mangling prototype. Add attributes
used and noinline.
(wsock_init): Ditto.
Change wsock_init to _wsock_init in wsock32 and ws2_32
LoadDLLprime.
* exceptions.cc (unused_sig_wrapper): Remove prototype. Add
attributes used and noinline.
* pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code.
(pwdgrp (__group32 *&)): Ditto.
* grp.cc (pwdgrp (passwd *&)): Outline constructor.
(pwdgrp (__group32 *&)): Ditto.
2003-04-17 20:05:15 +00:00
Thomas Pfaff
a4cea44072
* thread.h (pthread::equal): New static method.
...
* thread.cc: Rename pthread_equal to pthread::equal throughout.
(pthread_equal): Use pthread::equal to compare threads ids.
2003-04-17 19:57:01 +00:00
Earnie Boyd
8425a8ce49
* include/wingdi.h (DM_SPECVERSION): Define.
...
Thanks to Sinitsyn Valentime <valentine.sinitsyn@usu.ru>
* include/rpcdce.h (UuidCreateSequential): Properly guard with
appropriate _WIN32_WINNT values.
2003-04-16 12:19:57 +00:00
Christopher Faylor
c448f78fd5
* termios.cc (setspeed): New function.
...
(cfsetospeed): Use setspeed to set speed.
(cfsetispeed): Use setspeed to set speed.
* autoload.cc: Add load statement for UuidCreate, and UuidCreateSequential.
* cpuid.h: New file.
* cygwin.din: Export gethostid.
* fhandler_proc.cc (cpuid): Move to cpuid.h.
(can_set_flag): Move to cpuid.h.
* syscalls.cc (gethostid): New function.
* version.h: Bump DLL minor version number to 83.
2003-04-16 03:03:45 +00:00
Christopher Faylor
9eed5df639
* rpcdce.h: Add declaration for UuidCreateSequential.
...
* rpcrt4.def: Add entry for UuidCreateSequential.
2003-04-16 02:57:33 +00:00
Thomas Pfaff
ffb576fbf2
Fix a race in pthread_rwlock caused by simultanoues unlock and cancelation.
...
* thread.h (pthread_rwlock::release): New method.
* thread.cc (pthread_rwlock::unlock): Use release to signal
waiting threads.
(pthread_rwlock::rdlock_cleanup): Signal waiting threads after a
cancelation.
(pthread_rwlock::wrlock_cleanup): Ditto.
2003-04-15 20:14:12 +00:00
Danny Smith
b88a1e6f13
2003-04-14 Phil Krylov <likewolf@users.sourceforge.net>
...
* include/winuser.h (VK_*): Add missing defines.
2003-04-14 Vincent B�ron <papineau@users.sourceforge.net>
* include/commctrl.h (NMUPDOWN, LPNMUPDOWN): Use currently
documented typedefs for struct _NM_UPDOWN.
Add defines for backward comapatibility.
* include/commdlg.h (OFN_ENABLESIZING): Add define.
* include/wininet.h (IRF_*): Add issing defines.
2003-04-14 Bang Jun-Young <junyoung@netbsd.org>
* lib/ntdll.def (Csr*, Dbg*, Ki*, Ldr*, Rtl*): Add W2K exports.
2003-04-14 05:26:34 +00:00
Christopher Faylor
b3acb772c0
* mkvers.sh: Prefix day with 0 in date only when day < 10.
2003-04-14 02:09:57 +00:00
Christopher Faylor
770ff5bcb4
* Makefile.common (w32api_lib): Fix w32api detection.
2003-04-11 21:48:39 +00:00
Earnie Boyd
000cfc2eb2
* configure.in (LIBM_A): Define for cygwin target.
...
* configure (LIBM_A): Ditto.
2003-04-11 12:35:51 +00:00
Earnie Boyd
fd959d2b39
* include/sspi.h: Add comment for FreeCredentialsHandle.
2003-04-11 12:27:39 +00:00
Corinna Vinschen
2e23862a8a
* security.cc (get_info_from_sd): New function.
...
(get_nt_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_file_attribute): Move sd error handling to get_info_from_sd.
and symlink handling to fhandler_disk_file::fstat_helper.
(get_nt_object_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_object_attribute): Remove symlink handling and simply return -1
when ntsec is off.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): For
symlinks set the attribute, call get_file_attribute to get the ids
and return. In the normal case call get_file_attribute with the
addresses of the buffer ids and do not recheck if the file is a socket.
2003-04-11 09:38:07 +00:00
Christopher Faylor
73afb2abb0
* cygthread.cc (cygthread::stub): Initialize stack pointer earlier.
...
(cygthread::simplestub): Initialize stack pointer.
(cygthread::terminate_thread): Account for possibility that stack pointer has
not been set. Issue warnings for unusual conditions.
2003-04-11 02:16:17 +00:00
Joshua Daniel Franklin
518a04c40b
Pierre's update for mkgroup/mkpasswd
2003-04-10 23:27:13 +00:00
David Starks-Browning
ca78fd5f10
Setup updates. More about installing everything, not using setup to mirror.
2003-04-10 20:09:35 +00:00
Corinna Vinschen
2a1e8e117e
* regex/regex.h: Define regoff_t as _off_t.
...
* regex/regex2.h: Ditto.
2003-04-10 19:49:30 +00:00
Corinna Vinschen
ac5ec96137
* cygwin.din: Export wcscoll, wcswidth and wcwidth.
...
* include/cygwin/version.h: Bump API minor number.
2003-04-10 08:22:42 +00:00
Christopher Faylor
e5d6d53590
* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
...
* cygthread.cc: Ditto.
(cygthread::stub): Don't initialize already initialized events.
(cygthread::freerange): Don't create thread here.
(cygthread::cygthread): Create thread here. Die if thread not created.
(cygthread::operator new): Simplify. Just grab a thread structure from the
pool. Don't try to start the thread.
(cygthread::terminate_thread): Don't close event handles. Just reuse them.
Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
2003-04-10 05:27:34 +00:00
Pierre Humblet
57efd527df
2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.c (current_user): print uid and gid as unsigned.
(enum_users): Ditto. Do not free servername.
(usage): Update to allow several domains and improve -p.
(main): On Win9x limit uids to 1000. Only print specials
when -l is specified. Add a loop to allow several domains
and free servername in the loop.
* mkgroup.c (enum_groups): Do not free servername.
(usage): Update to allow several domains. Change uid to gid.
(main): Only print specials when -l is specified. Add a
loop to allow several domains and free servername in the loop.
2003-04-10 01:14:18 +00:00
David Starks-Browning
c6e74c4c82
add lack of '~' to ash missing features
2003-04-08 22:24:27 +00:00
Christopher Faylor
ca81cd60ce
* fhandler_console.cc (fhandler_console::read) Handle certain key up events, to
...
allow pasting accented characters and typing them using the "alt + numerics"
sequences.
* include/limits.h (IOV_MAX): Set to a number which is small enough to use in
an array.
2003-04-08 21:19:33 +00:00
Thomas Pfaff
e3501c78ca
* winsup.api/pthread/condvar9.c: Fix test.
2003-04-08 18:29:37 +00:00
Danny Smith
29d0fe3f74
* include/time.h (strftime): Remove duplicate declaration.
2003-04-07 01:31:37 +00:00
Danny Smith
3f26a1aeb7
2003-04-07 Marcel Telka <telka@users.sourceforge.net>
...
* include/ddk/winddk.h (KIRQL): Typedef as UCHAR. not ULONG.
2003-04-07 01:06:23 +00:00
Christopher Faylor
9dbe3289ee
* cygthread.h (cygthread::avail): Make LONG for easier use with Interlocked*
...
functions.
* cygthread.cc (cygthread::init): Eliminate unneeded muto.
(cygthread::operator new): Don't lock. Instead change use of avail variable
into tri-state: available (1), not available (-1), uninitialized (0).
(cygthread::terminate_thread): Set avail to uninitialized.
(cygthread::detach): Eliminate local 'avail'. Always set avail to 1 unless
signalled.
* cygthread.cc (cygthread::operator new): Be more defensive when messing with
2003-04-04 18:52:11 +00:00
Christopher Faylor
8aed2a11a8
add comments
2003-04-04 06:03:52 +00:00
Christopher Faylor
b410f1680f
* cygthread.cc (operator new): Be more defensive when messing with threads that
...
are marked "unavailable".
2003-04-04 05:58:06 +00:00
Christopher Faylor
a61bf8c369
* fhandler_console.cc (CONVERT_LIMIT): Use a size for the 21st century.
2003-04-03 14:05:30 +00:00
Corinna Vinschen
d5292d66a4
* external.cc (check_ntsec): Return general ntsec state on NULL
...
filename. Check wincap.is_security() additionally.
2003-04-03 08:18:43 +00:00
Corinna Vinschen
5a4a19b3f3
ChangeLog already commited yesterday:
...
* external.cc (check_ntsec): New function.
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec()
from applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
2003-04-03 08:04:41 +00:00
Christopher Faylor
1ce82d241f
fix usage
2003-04-03 04:07:57 +00:00
Christopher Faylor
5a87c6163b
* Makefile.in (EXTRA_OFILES): Remove debugging object.
2003-04-03 01:23:37 +00:00
Christopher Faylor
d99c61760e
* external.cc (check_ntsec): New function.
...
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec() from
applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
* cygthread.cc (cygthread::new): Add more defensive debugging.
2003-04-02 23:01:11 +00:00
Corinna Vinschen
2d388e433f
* fhandler.cc (fhandler_base::fstat): Set the uid and gid fields
...
from the current effective ids.
* fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set
by fhandler_base::fstat.
* security.cc (get_nt_attribute): Do not test wincap.has_security ().
(get_nt_object_attribute): Ditto.
(get_file_attribute): Add test for wincap.has_security ().
(get_object_attribute): Ditto.
2003-04-01 17:17:46 +00:00
Corinna Vinschen
1727fba007
* dir.cc: Change __off32_t to _off_t and __off64_t to _off64_t
...
throughout.
* fhandler.cc: Ditto.
* fhandler.h: Ditto.
* fhandler_clipboard.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_floppy.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_proc.cc: Ditto.
* fhandler_process.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_registry.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_termios.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_zero.cc: Ditto.
* mmap.cc: Ditto.
* pipe.cc: Ditto.
* syscalls.cc: Ditto.
* winsup.h: Ditto.
* include/cygwin/stat.h: Ditto.
* include/cygwin/types.h: Ditto. Remove definition of __off32_t
and __off64_t.
2003-04-01 16:11:41 +00:00
Christopher Faylor
333879e77b
* exceptions.cc (setup_handler): Make sure winapi lock is released when exiting
...
loop.
2003-03-31 21:27:06 +00:00
Danny Smith
ce5435df0b
* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
2003-03-31 21:11:13 +00:00
Danny Smith
ebb73170e8
2003-03-30 Hans E. Molin <kvasi@users.sourceforge.net>
...
* include/olectl.h (OleLoadPicturePath): Correct prototype.
2003-03-30 21:19:04 +00:00
Christopher Faylor
a2105d9387
* include/cygwin/fs.h: Remove unneeded include.
...
* include/cygwin/in.h: Include sys/types.h rather than cygwin/types.h.
2003-03-30 17:28:52 +00:00
Danny Smith
c453f40410
2003-03-30 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/uuid.c (IID_IHTML*): Move definitions to...
* lib/mshtml-uuid.c: New file.
* lib/Makefile.in: Add mshtml-uuid.o to libuuid.a
2003-03-30 Michael Sazonov <traip@comset.net>
* lib/uuid.c (IID_IHTML*): Add new GUID definitions.
* include/mshtml.h (IHTMLElementCollection, IHTMLLinkElement,
IHTMLImgElement): Add intetface definitions.
2003-03-29 21:31:15 +00:00
Corinna Vinschen
856a9750ba
* syscalls.cc (login): Fix comment.
...
(logout): Ditto.
2003-03-29 13:15:55 +00:00
Corinna Vinschen
8304de2e34
* syscalls.cc: Slightly cleanup all utmp functions.
...
(login): Use mutex to secure against concurrent access to wtmp file.
(logout): Rewrite using POSIX calls.
(utmp_fd): Initialized to -1 now. Any value < 0 is treated as closed
in subsequent functions.
(utmp_readonly): New variable, indicating utmp file open for reading
only.
(internal_setutent): New function implementing setutent().
(setutent): Call internal_setutent now.
(endutent): Reset utmp_readonly.
(getutent): Return immediately if utmp file can't be opened.
(getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto. Use mutex to secure against concurrent access to
utmp file.
2003-03-29 12:44:01 +00:00
Danny Smith
d9c55a44d6
* include/commctrl.h (ANIMATE_CLASS,HOTKEY_CLASS,PROGRESS_CLASS,
...
STATUSCLASSNAME,TOOLBARCLASSNAME,TOOLTIPS_CLASS,TRACKBAR_CLASS,
UPDOWN_CLASS,WC_COMBOBOXEX,WC_HEADER,WC_IPADDRESS,WC_LISTVIEW,
WC_TABCONTROL,WC_TREEVIEW): Move UNICODE mappings out of
RC_INVOKED guard.
(WC_PAGESCROLLER,WC_NATIVEFONTCTL,WC_BUTTON,WC_STATIC,WC_EDIT,
WC_LISTBOX,WC_COMBOBOX,WC_SCROLLBAR): Add defines.
2003-03-29 05:06:53 +00:00
Christopher Faylor
46c8214c77
* Makefile.in: Remove EXE_LDFLAGS. Fix fhandler_CFLAGS typo. Recognize .s
...
suffix.
* configure.in: Remove EXE_LDFLAGS.
* configure: Regenerate.
2003-03-29 04:20:45 +00:00
Christopher Faylor
b7f68d3e9d
* Makefile.common (ALL_CXXFLAGS): Make normal '=' type variable so that
...
CXXFLAGS is properly interpreted.
2003-03-29 04:15:52 +00:00
Danny Smith
247808c13b
2003-03-28 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winnt.h (WAITORTIMERCALLBACKFUNC): Add typedef.
2003-03-29 01:33:41 +00:00
Christopher Faylor
a7ab35c1bb
* include/sys/cygwin.h: Declare cygwin_internal as unsigned long.
...
* external.cc (cygwin_internal): Define as unsigned long.
* include/sys/cygwin.h: Move cygwin_internal outside of WINVER conditional.
2003-03-28 14:21:40 +00:00
Thomas Pfaff
eff6c00e19
* thread.cc: Change 1==foo equations to foo==1 throughout.
2003-03-27 19:57:06 +00:00
Thomas Pfaff
15648790f4
* thread.h: Change class names, methods, members and local vars
...
according to the GNU coding style.
* thread.cc: Ditto.
* dcrt0.cc (dll_crt0_1): Rename pthread::initMainThread call to
pthread::init_mainthread.
* pthread.cc (pthead_getsequence_np): Rename pthread::isGoodObject
call to pthread::is_good_object.
2003-03-27 19:52:20 +00:00
Thomas Pfaff
c65b504859
* winsup.api/pthread/rwlock1.c: Remove pthreads-win32 header.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
2003-03-27 19:46:35 +00:00
Thomas Pfaff
9b15aa7559
* winsup.api/pthread/condvar7.c (mythread): Cast
...
pthread_mutex_unlock argument of pthread_cleanup_push
to void *, preventing a compiler warning / testsuite failure.
* winsup.api/pthread/condvar9.c (mythread): Likewise.
* winsup.api/pthread/rwlock7.c (main): Use ftime instead of
_ftime.
2003-03-27 19:44:41 +00:00
Christopher Faylor
921587de50
note mount binary default.
2003-03-27 18:46:16 +00:00
Corinna Vinschen
98b36ec8ed
* autoload.cc: added RegGetKeySecurity()
...
* security.cc (get_nt_object_attribute): use RegGetKeySecurity() for
performance.
2003-03-27 09:40:25 +00:00
Danny Smith
2f4be7367e
* include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW],
...
TranslateName[AW]): Add prototypes.
* lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW],
TranslateName[AW]): Add stubs.
2003-03-27 08:10:46 +00:00
Joshua Daniel Franklin
6c7303cd5f
* setup-net.sgml: Make suggested additions to setup.exe documentation
2003-03-27 04:56:52 +00:00
Danny Smith
498268ef01
2003-03-27 Vladimir Michl <michlv@users.sourceforge.net>
...
* include/ddk/ndis.h (NdisAllocateSpinLock,NdisFreeSpinLock,
NdisAcquireSpinLock,NdisReleaseSpinLock,NdisDprAcquireSpinLock,
NdisDprReleaseSpinLock): Change macro argument from SpinLock to
_SpinLock.
2003-03-27 02:14:14 +00:00
Earnie Boyd
fc7c546387
* include/w32api.h: Increment version to 2.4.
...
* Makefile.in: Ditto.
2003-03-26 23:50:25 +00:00
Danny Smith
200738932f
Move some ddk defines to winnt.h as per MSDN documentation
...
* include/ddk/batclass.h (BATTERY_REPORTING_SCALE)
Move structure from here...
* include/winnt.h (BATTERY_REPORTING_SCALE): To here.
* include/ddk/ntapi.h (JOBOBJECT_*):
Remove structures and enums definitions.
(JOB_OBJECT*): Move defines from here...
* include/winnt.h (JOB_OBJECT* ): To here.
* include/ddk/ntpoapi.h (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES): Move enums, structures
and associated defines from here ...
* include/winnt.h: (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES):To here.
* include/ddk/winddk.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): Move enums
from here...
* include/winnt.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): To here.
2003-03-26 22:28:01 +00:00
Christopher Faylor
85738bf7e3
Joe Buehler <jhpb@draco.hekimian.com>
...
* fork.cc (fork_parent): Don't copy signals from parent to child here.
* sigproc.cc (proc_subproc): Copy signals from parent to child pinfo here.
2003-03-26 04:18:01 +00:00
Christopher Faylor
ce7a361072
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
...
correctly set.
2003-03-25 01:20:04 +00:00
Joshua Daniel Franklin
8fdbcd1279
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:43:33 +00:00
Joshua Daniel Franklin
0fd535061d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:35:52 +00:00
Joshua Daniel Franklin
489d990b9d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 16:23:52 +00:00
Thomas Pfaff
b2ee9a5565
*** empty log message ***
2003-03-23 10:56:19 +00:00
Thomas Pfaff
9306ba2ee4
* thread.h (class List): Move inline code inside class
...
declaration.
(List::forEach): Change callback parameter to template class
member functionpointer.
(pthread_keys::fixup_before_fork): Change to inline. Use
List::forEach to fixup keys.
(pthread_keys::fixup_after_fork): Ditto.
(pthread_keys::runAllDestructors): Ditto.
(pthread_key::saveAKey): Remove.
(pthread_key::restoreAKey): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(pthread_mutex::FixupAfterFork): New method.
(pthread_mutex::mutexes): New member.
(pthread_cond::fixup_after_fork): Change to inline. Use
List::forEach to fixup conds after a fork.
(pthread_cond::FixupAfterFork): New method.
(pthread_cond::conds): New member.
(pthread_rwlock::fixup_after_fork): Change to inline. Use
List::forEach to fixup rwlocks after a fork.
(pthread_rwlock::FixupAfterFork): New method.
(pthread_rwlock::rwlocks): New member.
(semaphore::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(semaphore::FixupAfterFork): New method.
(semaphore::semaphores): New member.
(MTinterface::mutexs): Remove.
(MTinterface::conds): Ditto.
(MTinterface::rwlocks): Ditto.
(MTinterface::semaphores): Ditto.
(pthread_equal): Add extern "C".
(pthread_mutex_lock): Ditto.
* thread.cc (MTinterface::fixup_after_fork): Change
fixup_after_fork calls for pthread objects.
(semaphore::conds): Instantiate.
(pthread_cond::pthread_cond): Use List::Insert rather than
custom list code.
(pthread_cond::~pthread_cond): Use List::Remove rather than
custom list code.
(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
(pthread_rwlock::rwlocks): Instantiate.
(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
custom list code.
(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
custom list code.
(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
(pthread_key::saveAKey): Remove.
(pthread_key::fixup_before_fork): Ditto.
(pthread_key::restoreAKey): Ditto.
(pthread_key::fixup_after_fork): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::runAllDestructors): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::mutexes): Instantiate.
(pthread_mutex::pthread_mutex): Use List::Insert rather than
custom list code.
(pthread_mutex::~pthread_mutex): Use List::Remove rather than
custom list code.
(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
(semaphore::conds): Instantiate.
(semaphore::semaphore): Use List::Insert rather than custom list
code.
(semaphores::~semaphore): Use List::Remove rather than custom
list code.
(semaphore::fixup_after_fork): Rename to FixupAfterFork.
2003-03-23 10:52:02 +00:00
Joshua Daniel Franklin
522fcf1615
* setup-net.sgml: Document setup.exe
2003-03-22 21:16:25 +00:00
Joshua Daniel Franklin
7d37d0459e
* setup-net.sgml: Document setup.exe
2003-03-22 20:03:41 +00:00
Christopher Faylor
ff3ef36d88
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
2003-03-22 18:30:58 +00:00
Christopher Faylor
ca04f61fc7
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
...
Fix typo in debugging output.
2003-03-22 17:48:40 +00:00
Christopher Faylor
89e7a1ced9
* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
...
for newer versions of bash.
2003-03-22 01:45:18 +00:00
Corinna Vinschen
fa85038b5f
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
...
SIGPIPE handling to connection oriented sockets. Add comment.
2003-03-20 08:53:28 +00:00
Christopher Faylor
4da34970de
* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
...
* exceptions.cc (signal_fixup_after_exec): Eliminate argument in definition.
Don't reset signal handlers after spawm. Just treat like fork/exec.
* dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
signal_fixup_after_exec.
* syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
Ditto for resetting of arguments.
2003-03-20 01:34:53 +00:00
Danny Smith
8e3121c535
*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
...
Thanks to: Vladimir Michl <michlv@users.sourceforge.net>
(NdisUpdateSharedMemory): Likewise.
(NdisMFreeSharedMemory: Likewise.
(NdisMMapIoSpace: Likewise.
2003-03-20 00:44:06 +00:00
Corinna Vinschen
036ac6b3a2
* glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
...
throughout.
2003-03-19 21:38:25 +00:00
Corinna Vinschen
b1897d27a8
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
...
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.
2003-03-19 21:34:38 +00:00
Corinna Vinschen
c16d09466b
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
...
Define.
* glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
instead of numerical constants.
(g_stat): Ditto.
2003-03-19 20:13:57 +00:00
Thomas Pfaff
6a80a133be
* pthread.cc (pthread_attr_init): Remove
...
(pthread_attr_destroy): Ditto.
(pthread_attr_setdetachstate): Ditto.
(pthread_attr_getdetachstate): Ditto.
(pthread_attr_setstacksize): Ditto.
(pthread_attr_getstacksize): Ditto.
(pthread_attr_setinheritsched): Ditto.
(pthread_attr_getinheritsched): Ditto.
(pthread_attr_setschedparam): Ditto.
(pthread_attr_getschedparam): Ditto.
(pthread_attr_setschedpolicy): Ditto.
(pthread_attr_getschedpolicy): Ditto.
(pthread_attr_setscope): Ditto.
(pthread_attr_getscope): Ditto.
(pthread_attr_setstackaddr): Ditto.
(pthread_attr_getstackaddr): Ditto.
(pthread_key_create): Ditto.
(pthread_key_delete): Ditto.
(pthread_setspecific): Ditto.
(pthread_getspecific): Ditto.
(pthread_kill): Ditto.
(pthread_sigmask): Ditto.
(pthread_equal): Ditto.
(pthread_mutex_lock): Ditto.
(pthread_mutex_trylock): Ditto.
(pthread_mutex_unlock): Ditto.
(pthread_mutex_destroy): Ditto.
(pthread_mutex_setprioceiling): Ditto.
(pthread_mutex_getprioceiling): Ditto.
(pthread_mutexattr_destroy): Ditto.
(pthread_mutexattr_getprioceiling): Ditto.
(pthread_mutexattr_getprotocol): Ditto.
(pthread_mutexattr_getpshared): Ditto.
(pthread_mutexattr_gettype): Ditto.
(pthread_mutexattr_init): Ditto.
(pthread_mutexattr_setprioceiling): Ditto.
(pthread_mutexattr_setprotocol): Ditto.
(pthread_mutexattr_setpshared): Ditto.
(pthread_mutexattr_settype): Ditto.
(pthread_cond_destroy): Ditto.
(pthread_cond_signal): Ditto.
(pthread_cond_broadcast): Ditto.
(pthread_condattr_init): Ditto.
(pthread_condattr_destroy): Ditto.
(pthread_condattr_getpshared): Ditto.
(pthread_condattr_setpshared): Ditto.
(pthread_rwlock_destroy): Ditto.
(pthread_rwlock_rdlock): Ditto.
(pthread_rwlock_tryrdlock): Ditto.
(pthread_rwlock_wrlock): Ditto.
(pthread_rwlock_trywrlock): Ditto.
(pthread_rwlock_unlock): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_rwlockattr_getpshared): Ditto.
(pthread_rwlockattr_setpshared): Ditto.
(pthread_rwlockattr_destroy): Ditto.
(pthread_getconcurrency): Ditto.
(pthread_setconcurrency): Ditto.
(pthread_getschedparam): Ditto.
(pthread_setschedparam): Ditto.
* thread.h (__pthread_attr_init): Remove prototype.
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
* thread.cc: Rename __pthread_equal to pthread_equal throughout.
Change pthread_self parameter appropriate.
(__pthread_attr_init): Remove __ prefix. Change to extern "C".
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
2003-03-18 20:12:05 +00:00
Thomas Pfaff
4fd9bca85e
* winsup.api/pthread/rwlock1.c: New test.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
* winsup.api/pthread/rwlock7.c: Ditto.
2003-03-18 20:04:24 +00:00
Thomas Pfaff
00d296a3f9
* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
...
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* include/cygwin/version.h: Bump API minor number.
* include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a
reasonable value.
Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init,
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon.
(PTHREAD_RWLOCK_MAGIC): New define.
(PTHREAD_RWLOCKATTR_MAGIC): Ditto.
(pthread_rwlockattr): New class.
(pthread_rwlock): Ditto.
(MTinterface::rwlocks): New member.
(MTinterface::MTinterface): Initialize rwlocks.
Add prototypes for __pthread_rwlock_destroy,
__pthread_rwlock_wrlock, __pthread_rwlock_trywrlock,
__pthread_rwlock_unlock, __pthread_rwlockattr_init,
__pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared,
and __pthread_rwlockattr_destroy.
* thread.cc (MTinterface::Init): Initialize rwlock internal mutex.
(MTinterface::fixup_after_fork): Fixup rwlocks after fork.
(pthread_rwlockattr::isGoodObject): Implement.
(pthread_rwlockattr::pthread_rwlockattr): Ditto.
(pthread_rwlockattr::~pthread_rwlockattr): Ditto.
(pthread_rwlock::initMutex): Ditto.
(pthread_rwlock::pthread_rwlock): Ditto.
(pthread_rwlock::~pthread_rwlock): Ditto.
(pthread_rwlock::RdLock): Ditto.
(pthread_rwlock::TryRdLock): Ditto.
(pthread_rwlock::WrLock): Ditto.
(pthread_rwlock::TryWrLock): Ditto.
(pthread_rwlock::UnLock): Ditto.
(pthread_rwlock::addReader): Ditto.
(pthread_rwlock::removeReader): Ditto.
(pthread_rwlock::lookupReader): Ditto.
(pthread_rwlock::RdLockCleanup): Ditto.
(pthread_rwlock::WrLockCleanup): Ditto.
(pthread_rwlock::fixup_after_fork): Ditto.
(pthread_rwlock::isGoodObject): Ditto.
(pthread_rwlock::isGoodInitializer): Ditto.
(pthread_rwlock::isGoodInitializerOrObject): Ditto.
(pthread_rwlock::isGoodInitializerOrBadObject): Ditto.
(__pthread_rwlock_destroy): Ditto.
(pthread_rwlock::init): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
2003-03-18 20:01:07 +00:00
Thomas Pfaff
5df1410028
* winsup.api/pthread/condvar7.c: New test.
...
* winsup.api/pthread/condvar9.c: Ditto.
2003-03-18 19:51:58 +00:00
Thomas Pfaff
f592b05df1
* thread.h (pthread_cond::ExitingWait): Remove.
...
(pthread_cond::mutex): Ditto.
(pthread_cond::cond_access): Ditto.
(pthread_cond::win32_obj_id): Ditto.
(pthread_cond::TimedWait): Ditto.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::waiting): Change type to unsigned long.
(pthread_cond::pending): New member.
(pthread_cond::semWait): Ditto.
(pthread_cond::mtxIn): Ditto.
(pthread_cond::mtxOut): Ditto.
(pthread_cond::mtxCond): Ditto.
(pthread_cond::UnBlock): New method.
(pthread_cond::Wait): Ditto.
* thread.cc: Update list of cancellation points.
(pthread_cond::pthread_cond): Rewrite.
(pthread_cond::~pthread_cond): Ditto.
(pthread_cond::TimedWait): Remove.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::UnBlock): Implement.
(pthread_cond::Wait): Ditto.
(pthread_cond::fixup_after_fork): Rewrite.
(pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP
conditional.
(__pthread_cond_broadcast): Just return 0 if the condition is
not initialized. Call pthread_cond::UnBlock to release blocked
threads.
(__pthread_cond_signal): Ditto.
(__pthread_cond__dowait): Rewrite.
(pthread_cond_timedwait): Add pthread_testcancel call. Fix
waitlength calculation.
(pthread_cond_wait): Add pthread_testcancel call.
2003-03-18 19:49:38 +00:00
Thomas Pfaff
0bad7c2e26
* winsup.api/pthread/mutex1n.c: New test.
...
* winsup.api/pthread/mutex6n.c: Ditto.
* winsup.api/pthread/mutex7n.c: Ditto.
2003-03-18 19:42:43 +00:00
Thomas Pfaff
2ff03dc2e0
* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
...
* thread.cc: Remove errno.h include.
(pthread::precreate): Change internal mutex type to normal.
(pthread_mutex::canBeUnlocked): Implement.
(pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
(pthread_mutex::Lock): Rename to _Lock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
Change lock_counter logic.
(pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
(pthread_mutex::SetOwner): Move to thread.h as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::fixup_after_fork): Change lock_counter logic.
(__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
types check.
* thread.h: Include errno.h and limits.h.
(MUTEX_LOCK_COUNTER_INITIAL): Remove.
(MUTEX_OWNER_ANONYMOUS): New define.
(pthread_mutex::canBeUnlocked): New static method.
(pthread_mutex::lock_counter): Change type to unsigned long.
(pthread_mutex::GetPthreadSelf): New method.
(pthread_mutex::Lock): Call _Lock with pthread_self pointer.
(pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
(pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
(pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
(pthread_mutex::SetOwner): Moved from thread.cc as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::_Lock): New method.
(pthread_mutex::_TryLock): New method.
(pthread_mutex::_UnLock): New method.
(pthread_mutex::_Destroy): New method.
2003-03-18 19:39:21 +00:00
Corinna Vinschen
dcd350f0ec
* fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
...
only on Windows NT. Read CPU Mhz value only on NT. Revert previous
change so cpuid instruction is called even on non-NT systems.
2003-03-18 09:30:03 +00:00
Danny Smith
bc1658ad66
* include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.
...
Thanks to: Fabricio D. Rossi <gurusoda@users.sourceforge.net>
(UF_SETTABLE_BITS): Correct UF_LOCKOUT here too.
2003-03-18 09:19:21 +00:00
Christopher Faylor
eeb65b9513
* Makefile.common (w32api_lib): Default to system w32api directory if w32api is
...
missing from source.
2003-03-17 23:13:26 +00:00
Christopher Faylor
298b2249e6
* Makefile.common: Fix typo from previous checkin.
2003-03-17 22:35:53 +00:00
Christopher Faylor
237ab58c28
* configure.in: w32api directory was already optional. Semi-revert 2003-02-06
...
change.
* configure: Regenerate.
* Makefile.common: Don't specific -nostdinc if there is no w32api directory.
2003-03-17 22:27:07 +00:00
Corinna Vinschen
c51dc9c245
* glob.c (g_lstat): Change API minor test to match API minor number
...
change in previous patch.
(g_stat): Ditto.
2003-03-17 20:44:10 +00:00
Christopher Faylor
f194ba1ff3
* include/cygwin/version.h: Reorganize last two api versions so that btowc and
...
trunc exports show up before previous bump since there has been no exported
version of the DLL with the 64 bit changes yet but 1.3.22 will have the btowc
and trunc.
2003-03-17 19:16:15 +00:00
Christopher Faylor
3543669fd3
* cygwin.din: Export btowc, trunc.
...
* include/cygwin/version.h: Reflect new exports.
* syscalls.cc (_stat): Rename to stat to avoid newlib wrapper.
* syscalls.cc (_fstat): Ditto.
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.
Add debugging output when console is freed.
(set_console_state_for_spawn): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console open flag
when vforking.
* sigproc.cc (sigproc_terminate): Fix debugging output.
* spawn.cc (handle): Eliminate second argument.
(spawn_guts): Reflect elimination of argument change to handle.
* syscalls.cc (setsid): Add debugging output when console is freed.
* syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on Win9x.
2003-03-17 19:08:11 +00:00
Danny Smith
4b170a4bf4
2003-03-17 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (EnumResourceLanguages[AW]): Correct prototypes.
(EnumResourceNames[AW]): Ditto.
(EnumResourceTypes[AW]): Ditto.
* include/wincon.h (CONSOLE_FONT_INFO): Add struct.
2003-03-17 10:01:07 +00:00
Danny Smith
48051a71ce
Get rid of some warnings
...
* mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
* mingwex/strtoimax.c (strtoimax): Likewise.
* mingwex/wcstoimax.c (wcstoimax): Likewise.
* mingwex/wtoll.c (wtoll): Remove unnecessary ';'
* mingwex/fesentenv.c: Include float.h.
* mingwex/math/powl.c: Eliminate type punning/strict aliasing
warning.
* mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
constants.
* mingwex/math/tgammal.c: Likewise.
2003-03-17 01:03:43 +00:00
Danny Smith
9bd09d45f0
2003-03-16 Toby Malone <malone@users.sourceforge.net>
...
* include/winuser.h (SendInput): Add prototype.
* lib/user32.def (SendInput): Add stub.
2003-03-17 00:14:39 +00:00
Danny Smith
f99ee1608c
* include/utime.h: New file, forwarding to sys/utime.h.
2003-03-16 22:23:58 +00:00
Danny Smith
5652f74ed2
* include/sys/param.h (MAXPATHLEN): Define.
2003-03-16 22:18:05 +00:00
Danny Smith
e685ccffdf
* include/tchar.h: Ansi-fy a comment.
2003-03-16 22:15:19 +00:00
Danny Smith
dcbe33d83a
* profile/profile.h (mcount): Use __builtin_return_address
...
rather than __asm statements.
* profile/Makefile.in: Remove special rule for mcount.o
Specify dependencies for mcount.o profil.o gmon.o.
2003-03-16 22:12:01 +00:00
Danny Smith
7729cf524f
2003-03-16 Vadim Yegorov <zg@bmg.lv>
...
* winioctl.h (FSCTL_SET_REPARSE_POINT: Correct macro.
(FSCTL_DELETE_REPARSE_POINT): Likewise.
2003-03-16 01:41:58 +00:00
Danny Smith
5b537130a3
2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
...
* winnt.h (JOBOBJECTINFOCLASS): Define enum.
(JOBOBJECT_*): Define corresponding structures.
2003-03-15 03:50:48 +00:00
Danny Smith
2359084b5b
2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect
typedef.
2003-03-13 Bang Jun-Young <junyoung@netbsd.org>
* lib/kernel32.def (Module32{First,Next}{,W}): Add missing exports.
(Process32{First,Next}{,W}): Ditto.
(Thread32{First,Next}): Ditto.
* include/ntdef.h (PCUNICODE_STRING): Add typedef.
2003-03-14 03:06:52 +00:00
Christopher Faylor
41ffdfa51e
* include/cygwin/version.h: Bump DLL minor number to 23.
2003-03-13 23:11:38 +00:00
Corinna Vinschen
5b186cd999
* autoload.cc (IsProcessorFeaturePresent): Add.
...
* fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
2003-03-13 22:53:16 +00:00
Corinna Vinschen
c58555c70f
* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
2003-03-13 22:32:40 +00:00
Corinna Vinschen
49a0d53c46
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
...
(cygwin_rexec): Ditto.
2003-03-13 11:31:24 +00:00
Christopher Faylor
6fcd5661fe
* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
...
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
2003-03-13 08:18:15 +00:00
Earnie Boyd
19bf3bcc3e
* include/mswsock.h: Correct invalid filter for _WINSOCK2_H.
...
Thanks to Jim Barton <jmbarton@users.sf.net>.
2003-03-12 23:36:54 +00:00
Christopher Faylor
0e2b01821a
fix typo
2003-03-12 17:21:31 +00:00
Christopher Faylor
df4bf7b98c
Checkin previously referred to in ChangeLog.
2003-03-12 06:28:27 +00:00
Danny Smith
c5e1d3ea74
2003-03-12 Ranjit Mathew <rmathew@hotmail.com>
...
* include/winnt.h (_IMAGE_SEPARATE_DEBUG_HEADER): Expose
member SectionAlignment.
2003-03-11 23:53:08 +00:00
Corinna Vinschen
aa39b7f7bf
* fhandler_socket.cc (fhandler_socket::dup): Don't call
...
fhandler_base::dup() but call DuplicateHandle directly instead to have
control over socket inheritence.
2003-03-11 16:49:58 +00:00
Earnie Boyd
296b2a5f17
* include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoid
...
warnings.
Thanks to Fabricio D. Rossi <gurusoda@users.sf.net>.
* Makefile.in (bindist): Correct process.
* lib/Makefile.in (install): Ditto.
Thanks to Jeff Bonnggren <jbon@users.sf.net>.
2003-03-11 14:44:58 +00:00
Corinna Vinschen
2afa7f5882
2003-03-11 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (fhandler_socket::dup): On NT systems avoid
using WinSock2 socket duplication methods. Add comment.
2003-03-11 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler_socket.cc (fhandler_socket::fixup_after_fork):
Set io_handle to INVALID_SOCKET in case of failure.
(fhandler_socket::dup): Return 0 if the io_handle is valid.
2003-03-11 13:05:36 +00:00
Danny Smith
970f752c8c
* include/stdlib.h (qsort): Remove const from first parm.
...
Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
2003-03-11 03:00:50 +00:00
Danny Smith
316d65dc72
* include/rasdlg.h: New file.
...
* lib/rasdlg.def: New file.
* lib/test.c: Include rasdlg.h.
2003-03-10 22:45:51 +00:00
Corinna Vinschen
556ceaeb58
* sec_acl.cc (setacl): Don't handle DELETE flag specially.
...
* security.cc (alloc_sd): Ditto.
2003-03-10 16:25:48 +00:00
Corinna Vinschen
6bbf711e68
Fix typo.
2003-03-09 22:13:27 +00:00
Corinna Vinschen
a201401c41
* winver.rc: Change Copyright hint to inlcude 2003.
2003-03-09 22:13:06 +00:00
Corinna Vinschen
b1aae492d0
Switch to 32/64 datatypes:
...
* Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
telldir truncate.
(NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
above.
* cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
members to __uid32_t and __gid32_t.
* cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
_fstat64 ftello64 _lseek64 mknod32 _open64.
* glob.c: Include perprocess.h.
(globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
getuid.
(g_lstat): Check for applications API version to call the appropriate
typed gl_lstat function.
(g_stat): Ditto for gl_stat.
* shm.cc (client_request_shm::client_request_shm): Call geteuid32
and getegid32 instead of geteuid and getegid throughout.
* syscalls.cc (_open64): New alias for open.
(_lseek64): New alias for lseek64.
(_fstat64): New alias for fseek64.
(mknod32): New function.
(mknod): Calls mknod32 now.
* winsup.h: Make function declarations for getuid32, geteuid32,
and getpwuid32 accessible for plain C sources. Add declarations
for getegid32 and getpwnam.
* include/cygwin/version.h: Bum API minor number to 78.
* include/sys/cygwin.h: Guard C++ specific members of struct
per_process against inclusion in plain C sources.
* include/sys/mman.h (mman): Add guard to avoid type clash when
compiling Cygwin.
2003-03-09 21:51:00 +00:00
Christopher Faylor
d580d86c80
fix typo
2003-03-09 20:54:12 +00:00
Christopher Faylor
659fb3ffd3
* include/cygwin/version.h: Bump DLL minor number to 21.
2003-03-09 20:50:11 +00:00
Christopher Faylor
a113a3c540
whitespace cleanup
2003-03-09 20:31:07 +00:00
Christopher Faylor
c367dfd02c
Do some minor reformatting of 'extern "C"' use throughout.
...
* autoload.cc (GetSystemTimes): Define new autoload function.
* fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
(fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases.
(format_proc_uptime): Use GetSystemTimes if available.
(read_value): New macro.
(print): New macro.
(cpuid): New function.
(can_set_flag): New function.
(format_proc_cpuinfo): New function.
(format_proc_partitions): New function.
2003-03-09 20:10:25 +00:00
Christopher Faylor
90fec0fa7a
* winsup.api/winsup.exp: Use -nostdinc when compiling.
...
* Makefile.in: Specifically search compiler include directory since it is now
stripped via -nostdinc.
2003-03-09 19:46:29 +00:00
Christopher Faylor
bc1c4e1e64
.
2003-03-09 19:29:22 +00:00
Christopher Faylor
cb837d41a7
* Makefile.common: Avoid double slashes in GCC_INCLUDE.
2003-03-09 19:22:15 +00:00
Corinna Vinschen
ef1aafb0f3
* getfacl.c (username): Fix ambiguous printf calls.
...
(groupname): Ditto.
(main): Ditto.
2003-03-09 19:04:23 +00:00
Christopher Faylor
36c4a441f6
* syscalls.cc (unlink): Attempt to be more clever about setting attributes of
...
file. Only open file in query mode to avoid having to mess with security stuff
for reading.
2003-03-09 18:10:42 +00:00
Corinna Vinschen
c379f2ed07
* winsup.api/ltp/fork10.c (main): Remove non-portable declaration
...
of lseek.
2003-03-09 17:53:06 +00:00
Corinna Vinschen
639ebe297b
* rmsym: Fix regular expression.
2003-03-09 17:13:46 +00:00
Christopher Faylor
6e0465c6bc
* Makefile.in: Use "cygwin0" rather than "new-cygwin" to denote in-build-tree
...
version of library or dll.
* config/default.exp: Ditto.
* winsup.api/winsup.exp: Ditto.
2003-03-09 17:03:05 +00:00
Christopher Faylor
3a1d827f5c
* Makefile.in: Change from using new-* to cygwin0 for temporary targets.
2003-03-09 17:01:41 +00:00
Corinna Vinschen
ca0e907143
* include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
2003-03-09 16:05:54 +00:00
Christopher Faylor
ed269ceaa2
* syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE to
...
delete files since this allows us to preserve the protection of hard linked
files.
(link): Generate full path for potentially recalculated .lnk target.
2003-03-09 00:10:29 +00:00
Christopher Faylor
35c6ce031e
missed in last checkin
2003-03-08 19:22:08 +00:00
Christopher Faylor
1114c3d059
Revert below changes regarding _pinfo::cmdline.
2003-03-08 17:56:13 +00:00
Corinna Vinschen
d66ac2bc52
* external.cc (cygwin_internal): Change n to __off64_t to match change
...
of _pinfo::cmdline.
* fhandler.h (class fhandler_virtual): Change filesize member to
__off64_t.
* fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
(format_proc_stat): Ditto.
(format_proc_uptime): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(format_process_statm): Ditto.
* pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
* pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
2003-03-08 16:44:25 +00:00
Christopher Faylor
762520f3bc
* path.h (PATH_LNK): New enum val.
...
(path_conv::is_lnk_symlink): New function. True if path represents .lnk style
symlink.
* path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
(symlink_info::check): Ditto. Remove PATH_LNK from pflags initially.
* syscalls.cc (unlink): Always remove readonly attribute from a symlink
regardless of type.
(link): (from Corinna Vinschen) Allow links to symlinks. Reset attributes on a
symlink after successful link creation.
(chmod): Use is_lnk_symlink where appropriate.
(rename): Ditto.
* tty.cc (create_tty_master): Call GetComputerName instead of
cygwin_gethostname. Set ut_id.
* syscalls.cc (login): Call endutent.
(setutent): Do not seek after a fresh open.
2003-03-08 03:36:39 +00:00
Corinna Vinschen
6f8102cb71
* syscalls.cc (seteuid32): Fix formatting.
2003-03-07 16:35:56 +00:00
Corinna Vinschen
e463d1ac53
* winsup.api/known_bugs.tcl: Remove fsync01, setregid01 and setreuid01
...
from list of known bugs.
2003-03-07 15:59:58 +00:00
Danny Smith
3332e57f26
2003-03-06 Christopher January <chris@atomice.net>
...
* include/winbase.h (FindFirstVolume): Add declaration.
(FindNextVolume): Add declaration.
(FindVolumeClose): Add declaration.
(GetSystemTimes): Add declaration.
* include/winnt.h: Add define for PF_XMMI64_INSTRUCTIONS_AVAILABLE.
2003-03-06 Danny Smith <dannysmith@users.sourceforge.net>
*lib/kernel32.def (GetSystemTimes): Add stub.
2003-03-07 00:51:19 +00:00
Thomas Pfaff
8824332846
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
...
prior to pthread objects.
2003-03-04 20:16:49 +00:00
Corinna Vinschen
12390bc40d
* fhandler_socket.cc (fhandler_socket::dup): Initialize type.
2003-03-04 16:35:00 +00:00
Christopher Faylor
a354f29e07
revert erroneous entry
2003-03-04 05:30:51 +00:00
Christopher Faylor
229f2bb465
* Makefile.in (strace.exe): Include mingw_getopt.o in link line.
...
* cygcheck.cc (print_version): Update copyright.
* strace.cc (print_version): Ditto.
(main): Allow cygwin paths for -o option.
(create_child): Allow cygwin path as argv[0].
* path.cc (path.cc): Allow UNC paths.
2003-03-04 05:30:50 +00:00
Christopher Faylor
c418817ed8
* fhandler.h (fhandler_tty_slave::close): Declare new function.
...
(fhandler_tty_slave::dup): Declare new function.
(fhandler_tty_slave::fixup_after_function): Declare new function.
* fhandler_tty.cc (fhandler_tty_slave_open): Only increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::close): Define new function. Decrement
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::dup): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::fixup_after_fork): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
2003-03-04 04:07:34 +00:00
Danny Smith
b99f1bf031
2003-03-04 Heiko Gerdau <hg@technosis.de>
...
* oleidl.h (IOleObject): Correct GetUserType prototype.
(IViewObject2): Correct GetExtent prototype.
* olectl.h (DISPIP_): Add new defines
* ocidl.h (IOleInPlaceSiteWindowless): Add new interface.
2003-03-04 00:36:06 +00:00
Christopher Faylor
e11fe31b55
* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
...
fhandler_console::open_fhs here.
(fhandler_pty_slave::close): Ditto for close.
2003-03-03 15:15:49 +00:00
Danny Smith
2b02bd3c3f
2003-03-03 Christopher Faylor <cgf@redhat.com>
...
* mingwex/getopt.c: Refresh from NetBSD sources.
2003-03-03 10:27:57 +00:00
Christopher Faylor
cffdb4b17f
* lib/getopt.c: Refresh from NetBSD sources.
2003-03-03 04:30:09 +00:00
Christopher Faylor
d5d2ffee38
* fhandler_console.cc (fhandler_console::close): Don't decrement in use counter
...
if in vfork fixup stage.
2003-03-03 03:58:10 +00:00
Danny Smith
f5eb407ed1
* mingwex/getopt.c: New file, copied from cygwin srcs.
...
* include/getopt.h: New file, copied from cygwin srcs.
* include/unistd.h: Include getopt.h.
* mingwex/Makefile.in ((DISTFILES): Add getopt.c.
(POSIX_OBJS): Add getopt.o.
2003-03-03 01:19:42 +00:00
Christopher Faylor
c2c6b1701a
* lib/getopt.c: Nuke use of unneeded BSDisms.
2003-03-02 22:52:18 +00:00
Christopher Faylor
8b19b43d00
* dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if
...
LoadLibraryEx fails.
* dtable.cc (dtable::dec_console_fds): Eliminate.
(dtable::release): Don't treat console specially.
(dtable::build_fhandler): Ditto.
* dtable.h (console_fds): Eliminate.
(dtable::dec_console_fds): Eliminate.
(dtable::inc_console_fds): Eliminate.
* fhandler.h (fhandler_console::open_fhs): New static element.
* fhandler_console.cc (fhandler_console::open): Increment open_fs.
(fhandler_console::close): Call FreeConsole if no more open consoles and ctty
is not associated with the console.
* syscalls.cc (setsid): Simplify check for when to call FreeConsole.
(check_pty_fds): Eliminate definition.
* winsup.h (check_pty_fds): Eliminate declaration.
2003-03-02 18:37:17 +00:00
Christopher Faylor
3efc65f7df
* dll_init.cc (dll_list::load_after_fork): Fix typo where result of LoadLibrary
...
was ignored.
2003-03-02 17:29:47 +00:00
Danny Smith
4aa3feb899
2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/stdio.h (vscanf): Add prototype.
(vfscanf): Ditto.
(vsscanf): Ditto.
(vwscanf): Ditto.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* include/wchar.h (vwscanf): Add prototype.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* mingwex/snprintf.c: Move to mingwex/stdio.
* mingwex/vsnprintf.c: Ditto.
* mingwex/snwprintf.c: Ditto.
* mingwex/vsnwprintf.c: Ditto.
* mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
(STDIO_DISTFILES): Add.
(DISTFILES): Adjust.
(STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
(LIB_OBJS): Adjust.
(dist): Adjust.
2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
* mingwex/stdio: New directory
* mingwex/stdio/vfscanf.c: New file.
* mingwex/stdio/vfwscanf.c: New file.
* mingwex/stdio/vscanf.c: New file.
* mingwex/stdio/vsscanf.c: New file.
* mingwex/stdio/vswscanf.c: New file.
* mingwex/stdio/vwscanf.c: New file.
2003-03-02 07:00:48 +00:00
Christopher Faylor
408e9b2fd4
fix typo
2003-03-02 06:50:27 +00:00
Joshua Daniel Franklin
34a50bf03f
Document new mkgroup,mkpasswd options
2003-03-01 17:29:51 +00:00
Pierre Humblet
f78765dadd
2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.cc (main): On Win95, output both a default line and a
line for the current user (if known) with a pseudorandom uid. If
the -u switch is given, produce a line for the specified user.
* mkgroup.cc (main): On Win95 change the group name from "unknown" to
"all".
2003-03-01 16:38:26 +00:00
Corinna Vinschen
5a082e9eac
* fhandler_socket.cc (fhandler_socket::bind): Open and write socket
...
file using Win32 calls.
2003-03-01 16:17:55 +00:00
Corinna Vinschen
9d913f071f
* fhandler_socket.cc (get_inet_addr): Open and read socket file using
...
Win32 calls.
2003-03-01 15:28:24 +00:00
Danny Smith
82569d7ac6
* include/olectl.h (OleLoadPictureEx) Add prototype.
...
(OleLoadPictureFile): Ditto.
(OleLoadPictureFileEx): Ditto.
(OleLoadPicturePath): Ditto.
(OleSavePictureFile): Ditto.
2003-03-01 09:34:12 +00:00
Danny Smith
c498f2e35a
* include/objbase.h (CoAddRefServerProcess): Add prototype.
...
(CoAddReleaseServerProcess): Ditto.
(CoResumeClassObjects): Ditto.
(CoSuspendClassObjects): Ditto.
* include/oleauto.h (V_I1): Define.
Thanks to: "Timofei" <mmttmm@users.sourceforge.net>
2003-03-01 07:19:36 +00:00
Danny Smith
8c061d6294
2003-03-01 Heiko Gerdau <hg@technosis.de>
...
* include/oleidl.h (USERCLASSTYPE): Add enum.
* include/ocidl.h (IObjectWithSite): Add interface.
2003-03-01 06:51:51 +00:00
Christopher Faylor
dbc49afd52
* Makefile.in (cygcheck.o): Fix so that actual mingw include files are used.
...
* cygcheck.cc (find_on_path): Translate from cygwin path when qualified path
name found.
(pretty_id): New function. Dump output of id command.
(dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2003-03-01 03:38:19 +00:00
Christopher Faylor
005c3065eb
* cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions.
...
* dcrt0.cc (cygwin_atexit): New function.
(cygwin_exit): Ditto.
2003-03-01 02:02:42 +00:00
Pierre Humblet
27b4082ae7
2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* syscalls.cc (fstat64): Pass get_name () to pc.
(access): Pass fn to stat_worker.
2003-02-28 23:52:48 +00:00
Danny Smith
3d5a4cbe6b
2003-02-28 Roland Schwingel <roland.schwingel@onevision.de>
...
Fixup UNICODE thinko in 2003-02-22 patch.
* include/wingdi.h (AddFontMemResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def: (AddFontResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-28 08:03:13 +00:00
Corinna Vinschen
5777b970bb
2003-03-27 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (class sock_event): New class managing Winsock
events for interruptible socket calls.
(fhandler_socket::connect): Move support for interruptible call to
class sock_event. Use class object instead.
(fhandler_socket::accept): Ditto. Remove useless casts.
2003-03-27 Thomas Pfaff <tpfaff@gmx.net>
* fhandler_socket.cc (fhandler_socket::connect): Add support for
an interruptable connect.
2003-02-27 21:41:28 +00:00
Corinna Vinschen
7b2ce66370
* uinfo.cc (internal_getlogin): Only update user.groups.pgsid
...
if the call to set the primary group succeeds.
2003-02-27 17:41:15 +00:00
Christopher Faylor
0e7a60fef9
* cygthread::detach: Improve error message.
2003-02-27 15:09:31 +00:00
Corinna Vinschen
61a525994a
* sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid.
2003-02-26 08:34:34 +00:00
Earnie Boyd
5ffa5aaa5c
* Makefile.in (libmsvcrt20.a): Remove target and dependencies.
...
(libmsvcrt40.a): Ditto.
2003-02-25 13:07:46 +00:00
Corinna Vinschen
6b9a9ce6ba
* mmap.cc (mmap64): Fix returned address by taking the granularity
...
into account.
2003-02-25 12:46:39 +00:00
Pierre Humblet
1ffc44aaf7
2003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
...
* syslog.cc (syslog): Do not unlock the file before closing it
and remove debug_printf about stream errors.
2003-02-23 19:12:55 +00:00
Danny Smith
cc379158bb
2003-02-23 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (EVENTLOG_SUCCESS): Add define.
Thanks to: Thomas Weber <thomasweber@sourceforge.net>
2003-02-23 08:31:37 +00:00
Christopher Faylor
b59e1aaceb
whitespace
2003-02-22 23:03:26 +00:00
Christopher Faylor
a066f3645b
* cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true. # cygwin.din:
...
Export mallinfo. # malloc_wrapper.cc (mallinfo): New function.
2003-02-22 23:02:15 +00:00
Christopher Faylor
878e60c561
* syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin pid as an
...
unsigned decimal. On Win95 print a timestamp and attempt to lock the file up
to four times in 3 ms.
2003-02-22 19:35:03 +00:00
Danny Smith
fe96201935
2003-02-22 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto.
2003-02-22 11:32:30 +00:00
Danny Smith
d17d85ec0c
2003-02-22 Bang Jun-Young <junyoung@netbsd.org>
...
* lib/ntdll.def (NT*, RTL*, ZW*): Add missing exports.
(NtCurrentTeb): Remove.
2003-02-22 10:43:46 +00:00
Danny Smith
f06b65e352
* include/wsahelp.h: Remove ';' after closing
...
#ifdef __cplusplus brace.
* include/ws2spi.h: Likewise.
2003-02-22 10:21:39 +00:00
Danny Smith
dffcc5d324
* include/winbase.h (MEMORYSTATUSEX): Add structure.
...
(GlobalMemoryStatusEx): Add prototype.
* lib/kernel32.def (GlobalMemoryStatusEx): Add stub.
2003-02-22 10:16:22 +00:00
Earnie Boyd
ab664f2d53
Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
...
this patch.
* Makefile.in (libmsvcrtd.a): Add target library.
(libmoldnamed.a): Ditto.
(msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
template to create.
($(srcdir)): Remove explicit reference for depencies of object targets.
* moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
msvcrt20.def, msvcrt40.def: Remove.
* msvcrt.def.in: New file (Copy of previous msvcrt.def).
2003-02-21 21:12:29 +00:00
David Starks-Browning
a0c8d53b5a
various updates to setup entries. Stronger emphasis to use setup, and only setup.
...
(no more "work in progres ... ")
2003-02-21 20:37:47 +00:00
David Starks-Browning
45fb46b48d
new link to "How To Ask Questions The Smart Way" by Eric S. Raymond, added to Posting Guidelines entry
2003-02-21 20:13:55 +00:00
David Starks-Browning
b0484ae4d9
remove tired subtitle "(Not completely updated for the latest net release, but still useful!)"
2003-02-21 20:00:54 +00:00
Corinna Vinschen
b1d1e50d04
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler
...
warning.
(fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective
uid/gid of current process in case of open sockets.
2003-02-21 14:59:35 +00:00
Corinna Vinschen
cf762b08cf
* dtable.cc (dtable::build_fhandler_from_name): Set some fhandler
...
data on sockets to evaluate AF_LOCAL sockets correctly.
(dtable::build_fhandler): Set unit number on sockets.
* fhandler.h (fhandler_socket): Add unit number.
(fhandler_socket::get_unit): New method.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit
number.
(fhandler_socket::fstat): Reorganize to return more Linux-like
values.
* net.cc: include ctype.h.
(fdsock): Set unit number when building fhandler.
* path.cc (path_conv::check): Set device type to FH_SOCKET if file
is a AF_UNIX socket.
(get_devn): Evaluate unit for virtual socket devices.
(win32_device_name): Set windows path for sockets to unix_path with
just backslashes to keep the different names.
* syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev
for sockets.
(stat_worker): Ditto.
From Pierre Humblet:
* autoload.cc (AccessCheck): Add.
(DuplicateToken): Add.
* security.h (check_file_access): Declare.
* syscalls.cc (access): Convert path to Windows, check existence
and readonly attribute. Call check_file_access instead of acl_access.
* security.cc (check_file_access): Create.
* sec_acl (acl_access): Delete.
2003-02-21 14:29:18 +00:00
Christopher Faylor
5cd8241242
* fhandler.cc (fhandler_base::open): Move some filesystem specific stuff.
...
(fhandler_disk_file::open): Accept some filesystem specific stuff.
* sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
(sig_send): Don't assume that signal thread is ready.
2003-02-21 04:33:53 +00:00
Corinna Vinschen
892d896274
* wincap.h (wincap): Remove unnecessary definition of
...
supports_sparse_files.
* wincap.cc: Ditto.
2003-02-20 15:58:55 +00:00
Corinna Vinschen
518f5d4935
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
...
created by cygheap_fdnew constructor.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* fhandler_socket.cc (fhandler_socket::accept): Ditto and move
creation of file descriptor behind blocking OS call.
* net.cc (cygwin_socket): Ditto.
(cygwin_rcmd): Ditto.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
(socketpair): Ditto.
2003-02-20 14:14:37 +00:00
Corinna Vinschen
1374b148ba
* winsup.api/crlf.c: Fix C signed/unsigned compare warning.
...
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/ltp/chmod01.c: Ditto.
* winsup.api/ltp/fork04.c: Ditto.
* winsup.api/ltp/lseek03.c: Ditto.
* winsup.api/ltp/lseek06.c: Ditto.
* winsup.api/ltp/lseek07.c: Ditto.
* winsup.api/ltp/lseek08.c: Ditto.
* winsup.api/ltp/mmap001.c: Ditto.
* winsup.api/ltp/mmap02.c: Ditto.
* winsup.api/ltp/mmap03.c: Ditto.
* winsup.api/ltp/mmap04.c: Ditto.
* winsup.api/ltp/mmap05.c: Ditto.
* winsup.api/ltp/mmap06.c: Ditto.
* winsup.api/ltp/mmap07.c: Ditto.
* winsup.api/ltp/mmap08.c: Ditto.
* winsup.api/ltp/pipe11.c: Ditto.
* winsup.api/ltp/poll01.c: Ditto.
* winsup.api/ltp/sync02.c: Ditto.
* winsup.api/ltp/times03.c: Ditto.
* winsup.api/ltp/umask03.c: Ditto.
* winsup.api/ltp/getpgid01.c: Remove unused obsolete include.
* winsup.api/ltp/getpgid02.c: Ditto.
2003-02-20 11:22:17 +00:00
Corinna Vinschen
3a88cf1b10
* autoload.cc (GetCompressedFileSize): Add.
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
st_blocks value from GetCompressedFileSize() if available.
2003-02-20 11:12:44 +00:00
Corinna Vinschen
7920792369
w32api:
...
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
cygwin:
* wincap.h (wincaps::supports_sparse_files): New flag.
(wincapc::supports_sparse_files): New method.
* wincap.cc (wincap_unknown): Define value for the new flag.
(wincap_95): Ditto.
(wincap_95osr2): Ditto.
(wincap_98): Ditto.
(wincap_98se): Ditto.
(wincap_me): Ditto.
(wincap_nt3): Ditto.
(wincap_nt4): Ditto.
(wincap_nt4sp4): Ditto.
(wincap_2000): Ditto.
(wincap_xp): Ditto.
* path.h (path_conv::fs_flags): New method.
* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
(fhandler_disk_file::open): Set newly created and truncated files as
sparse on platforms that support it.
2003-02-20 10:14:53 +00:00
Corinna Vinschen
3f3d479490
* Makefile.in: Make sure libmingwex.a from current build tree is used.
2003-02-20 10:12:15 +00:00
Corinna Vinschen
afe13e8454
* grp.cc (internal_getgroups): Handle properly tokens with
...
no groups. Fix bug introduced on 2003-02-04.
2003-02-18 10:09:37 +00:00
Christopher Faylor
8fc16812e8
* cygwin.din: Export all appropriate newlibc libm functions. Sort.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-16 19:31:07 +00:00
Christopher Faylor
f655eadfb4
* cygwin.din: Export all appropriate newlib functions.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-15 21:45:09 +00:00
Corinna Vinschen
4d9ba012a9
* mmap.cc (mprotect): Add missing break.
2003-02-14 21:15:16 +00:00
Christopher Faylor
8df75c3736
* profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to ensure
...
-mno-cygwin where appropriate. Filter out -O2.
2003-02-14 19:25:12 +00:00
Christopher Faylor
dff01e3aa8
* exceptions.cc (try_to_debug): Don't reset priority when returning from
...
non-waitloop call.
2003-02-14 02:52:29 +00:00
Danny Smith
6a25a6219c
Fix typo in last ChangeLog entry.
2003-02-14 00:45:17 +00:00
Danny Smith
4d658cfcd2
* profile/Makefile.in (mcount,o): Use -O1 optimization
...
switch to compile.
2003-02-14 00:42:35 +00:00
Christopher Faylor
d1d1797eb7
* fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep for
...
bell sound.
* autoload.cc (MessageBeep): Add.
2003-02-13 23:51:41 +00:00
Christopher Faylor
97c61aeba5
* include/cygwin/types.h: Use correct ifdef guard for u_ definitions.
2003-02-13 15:37:07 +00:00
Christopher Faylor
a200c081f5
* environ.cc (environ_init): Use strechr.
2003-02-13 15:17:11 +00:00
Christopher Faylor
9bebf38451
oops.
2003-02-13 15:16:33 +00:00
Christopher Faylor
2858de3a00
* include/cygwin/in.h (sockaddr_in): Fix typo.
2003-02-13 15:15:32 +00:00
Christopher Faylor
46b3d18661
fix typo
2003-02-13 14:20:32 +00:00
Christopher Faylor
9660d164f5
* how.texinfo: Add more w32api words.
2003-02-13 14:18:23 +00:00
Christopher Faylor
75c8a70c95
* path.h (path_conv): Reorganize slightly.
2003-02-13 03:13:37 +00:00
Christopher Faylor
939d19b0da
* fhandler_tty.cc (process_input): Add sanity check to ensure that console
...
typeahead is cleared on signal.
2003-02-13 02:56:36 +00:00
Christopher Faylor
7a44ba059b
* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.
2003-02-13 02:52:41 +00:00
Christopher Faylor
4cf24d1442
* MAINTAINERS: Remove out-of-date file.
2003-02-13 02:41:44 +00:00
Christopher Faylor
7ca68b7ec3
* cygpath.cc (doit): Allocate more space for non-path filename.
2003-02-12 22:48:13 +00:00
Danny Smith
31ad033df2
2003-02-12 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto
(FR_PRIVATE): Define.
(FR_NOT_ENUM): Define.
* lib/gdi32.def (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-12 21:15:13 +00:00
Danny Smith
de8eec5609
* include/math.h: Remove _CRTIMP from pow() prototype,
...
unless __NO_ISOCEXT.
2003-02-10 23:56:04 +00:00
Christopher Faylor
407b8df695
* include/cygwin/in.h (in_attr_t): Define new type.
...
* include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
(inet_lnaof): Ditto.
(inet_netof): Ditto.
(inet_network): Ditto.
* include/cygwin/types.h: Move many *_t typedefs here. Protect them with
ifdefs.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to
mode_t.
* security.cc (get_attribute_from_acl): Accept mode_t attribute.
(get_nt_attribute): Ditto.
(get_file_attribute): Ditto.
(get_nt_object_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h: Reflect above changes.
* syscalls.cc (chown_worker): Change attrib to mode_t.
2003-02-10 22:43:29 +00:00
Danny Smith
eff24ab9c5
* mingwex/math/cephes_emath.h: Don't redefine INFINITY.
2003-02-10 22:38:36 +00:00
Danny Smith
14e54d7c97
* include/_mingw.h (_CRTIMP): Define for __GNUC__ if
...
__declspec(dllimport) supported.
(__cdecl): Define if not already defined.
(__stdcall): Likewise.
* include/dirent.h: Qualify fuctions with __cdecl.
* include/fenv.h: Likewise.
* include/inttypes.h: Likewise.
* include/assert.h: Qualify fuctions with __cdecl. Qualify
CRT dll imports with _CRTIMP.
* include/conio.h: Likewise.
* include/ctype.h: Likewise.
* include/direct.h: Likewise.
* include/dos.h: Likewise.
* include/errno.h: Likewise.
* include/float.h: Likewise.
* include/io.h: Likewise.
* include/locale.h: Likewise.
* include/malloc.h: Likewise.
* include/math.h: Likewise.
* include/mbctype.h: Likewise.
* include/mbstring.h: Likewise.
* include/process.h: Likewise.
* include/setjmp.h: Likewise.
* include/signal.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/time.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/timeb.h: Likewise.
* include/sys/utime.h: Likewise.
* include/ctype.h: Guard ctype inlines with __NO_INLINE__.
* include/wctype.h: Guard wctype inlines with __NO_INLINE__.
* include/stdio.h (__VALIST): Guard against prior definition.
2003-02-10 21:13:34 +00:00
Earnie Boyd
16f4e17208
* include/w32api.h: Increment version to 2.3.
...
* Makefile.in: Ditto.
2003-02-10 14:14:01 +00:00
Earnie Boyd
5518d083b4
* include/GL/gl.h: Remove include of glext.h.
...
Thanks to Greg Couch <gregcouch@users.sf.net>
2003-02-09 14:04:56 +00:00
Earnie Boyd
4fa551dbc4
* include/secext.h: New file. Declare EXTENDED_NAME_FORMAT.
...
* include/security.h: Include secext.h.
* include/winbase.h: Declare COMPUTER_NAME_FORMAT.
Thanks to Dimitri Papadopoulos <dimitri_at@users.sf.net>
2003-02-09 14:02:30 +00:00
Earnie Boyd
f3c5821cb7
* lib/ddk/ntoskrnl.def (Ke386IoSetAccessProcess): Activate export.
...
(Ke386QueryToAccessMap): Ditto.
(Ke386SetIoAccessMap): Ditto.
Thanks to Marcel Telka <telka@users.sf.net>
2003-02-09 13:25:36 +00:00
Christopher Faylor
67c64e3b2e
clarify
2003-02-08 17:13:46 +00:00
Christopher Faylor
ad80bc4224
* include/cygwin/version.h: Bump DLL minor number.
...
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
changes.
2003-02-08 17:03:34 +00:00
Christopher Faylor
9c88207cf3
* winsup.api/winsup.exp (ws_spawn): Tweak slightly to work with tcl 8.4.1.
2003-02-08 16:46:32 +00:00
Earnie Boyd
994d26a476
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-02-08 14:58:31 +00:00
Earnie Boyd
9d55ae91b8
* include/stdlib.h: Make words after #endif a comment.
2003-02-08 14:30:29 +00:00
Christopher Faylor
9cca06eea1
* libltp/lib/parse_opts.c: Deal with C warnings.
...
* winsup.api/pthread/cancel12.c: Ditto.
* winsup.api/winsup.exp: Don't use -g3.
2003-02-08 02:56:49 +00:00
Christopher Faylor
3202ad2b9e
* dump_setup.cc (compar): Use case insensitive comparisons.
...
(dump_setup): Calculate package_len based on already used "len". Don't bother
with version_len.
2003-02-07 21:34:34 +00:00
Corinna Vinschen
eceb45bdff
* dump_setup.cc (dump_setup): Compute the longest package name
...
and align columns properly.
2003-02-07 21:11:44 +00:00
Corinna Vinschen
4a41db9e74
* ntsec.sgml: Add note on special names for missing user/group.
2003-02-07 20:59:19 +00:00
Corinna Vinschen
4136fdb16b
* mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
...
parameter. Only protect pages actually unused currently. Do job
of map_map() when initializing a map.
(mmap_record::map_map): Reduce functionality for the reuse case
of private anonymous mapping.
(mmap_record::fixup_map): Format change.
(list::add_record): Add offset and length parameter to call
mmap_record::alloc_map() correctly.
(mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
(munmap): Rename `l' variable to `map_list'.
(msync): Ditto.
(fhandler_disk_file::mmap): Streamline code.
(mprotect): Ditto.
(fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
2003-02-07 20:57:30 +00:00
Christopher Faylor
49b84ce441
Christopher Faylor <cgf@redhat.com>
...
* exceptions.cc (try_to_debug): Set priority of current thread rather than the
main thread. Make busy waiting loop less busy. Restore priority when function
returns.
2003-02-07 15:00:57 +00:00
Christopher Faylor
bc5b63edab
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
...
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 06:15:10 +00:00
Christopher Faylor
44a30b4510
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 05:48:58 +00:00
Christopher Faylor
4a9cbef09d
* cygcheck.cc (common_apps): Add some more apps.
...
* path.cc (get_cygdrive): Correctly set system flag.
2003-02-07 04:51:26 +00:00
Christopher Faylor
1de8d16415
* heap.cc (heap_init): Remove debugging code.
2003-02-07 04:13:41 +00:00
Christopher Faylor
45b314b1ad
* configure.in: Make w32api directory optional.
...
* configure: Regenerate.
2003-02-07 03:45:15 +00:00
Danny Smith
500ed83f45
* include/locale.h: Include stddef.h for definition of NULL.
2003-02-07 02:13:55 +00:00
Corinna Vinschen
565e80155b
* security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
...
declaration of is_grp_member.
* uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
* passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
* grp.cc (pwdgrp::read_group): Change group name to provide better
feedback.
(getgrgid): Use gid16togid32.
* sec_helper.cc (is_grp_member): Delete.
2003-02-06 14:01:54 +00:00
Joshua Daniel Franklin
f865f0c479
* setup-net.sgml: Add "setup-maxmem" section
2003-02-06 02:52:14 +00:00
Christopher Faylor
d238c1b453
* path.cc: Change 'to_posix_p' to 'to_posix' throughout.
...
(conv_path_list_buf_size): Accommodate relative paths.
2003-02-05 21:12:58 +00:00
Christopher Faylor
b7f52fe81a
* path.cc (etc::dir_changed): Fix debug printf.
2003-02-05 16:40:51 +00:00
Corinna Vinschen
62cd433e98
* sec_acl.cc (setacl): Move all permission settings to beginning of
...
loop. Set default rights to same values as in alloc_sd(). Set DELETE
for owner and default owner only if S_IWOTH is given.
* sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
wrapper function definitions. Replace call to the aclXYZ functions by
calls aclXYZ32.
(searchace): Change type of third argument to __uid32_t and use
ILLEGAL_UID instead of -1;
(setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
for S_IWOTH. Replace -1 by ILLEGAL_UID.
(getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
In last else clause, suppress second call to ace_sid.get_id and use
TRUE in first call. Replace EqualSid by ==.
(acl_access): Call internal_getgroups in USER and GROUP cases.
(acecmp: Define static.
(acl32): Create from 16 bit type.
(facl32): Ditto.
(lacl32): Ditto.
(aclcheck32): Ditto.
(aclsort32): Ditto.
(acltomode32): Ditto.
(aclfrommode32): Ditto.
(acltopbits32): Ditto.
(aclfrompbits32): Ditto.
(acltotext32): Ditto.
(aclfromtext32): Ditto, and use strechr.
(acl16to32): Create.
(acl): Make it a wrapper function.
(facl): Ditto.
(lacl): Ditto.
(aclcheck): Ditto.
(aclsort): Ditto.
(acltomode): Ditto.
(aclfrommode): Ditto.
(acltopbits): Ditto.
(aclfrompbits): Ditto.
(acltotext): Ditto.
(aclfromtext): Ditto.
* security.cc (write_sd): Call set_process_privilege and check
ownership.
(alloc_sd): Remove call to set_process_privilege and the owner check.
2003-02-05 16:15:22 +00:00
Earnie Boyd
33c7867ef1
* include/basetypes.h (_GUID_DEFINED): Add deprecation warning, start
...
using GUID_DEFINED instead.
* include/sqltypes.h: Ditto.
* include/winnt.h: Ditto.
* include/ddk/scsiwmi.h: Ditto.
2003-02-05 15:51:27 +00:00
Christopher Faylor
cadd065b63
* include/sys/cygwin.h: Use C-style comments.
2003-02-05 14:14:26 +00:00
Corinna Vinschen
0c8455c344
* sec_helper.cc (get_sids_info): New function.
...
* security.cc (extract_nt_dom_user): Simplify with strechr.
(get_user_groups): Initialize glen to MAX_SID_LEN.
(get_user_local_groups): Ditto.
(get_attribute_from_acl): Define ace_sid as cygpsid.
(get_nt_attribute): Define owner_sid and group_sid as cygpsid.
Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
(get_nt_object_attribute): Ditto.
(alloc_sd): Define ace_sid as cygpsid.
2003-02-05 13:47:47 +00:00
Danny Smith
b7b6c58a20
Correct typo in last changelog entry.
2003-02-04 22:21:45 +00:00
Danny Smith
ccbb9a6490
* include/shlwapi.h (PathRelativePathTo[AW]): Correct
...
protototypes.
Thanks to: John Dallaway <jld@ecoscentric.com>.
2003-02-04 22:17:38 +00:00
Thomas Pfaff
5ae9331a32
* syscalls.cc (struct system_cleanup_args): New struct.
...
(system_cleanup): New function.
(system): Use pthread_cleanup_push and _pop to save and restore
signal handlers and sigprocmask.
2003-02-04 19:49:39 +00:00
Thomas Pfaff
53c384f206
* winsup.api/pthread/cancel11.c: New test.
...
* winsup.api/pthread/cancel12.c: Ditto.
2003-02-04 19:34:21 +00:00
Corinna Vinschen
3dbafd873e
* path.cc (symlink): Create security attributes so that only the
...
user can modify the symlink.
* security.cc (set_security_attribute): Remove symlink special
handling.
2003-02-04 19:26:01 +00:00
Corinna Vinschen
0daf256192
* grp.cc (internal_getgroups): Do not return without closing
...
the process handle.
2003-02-04 17:53:08 +00:00
Corinna Vinschen
4a21c2d5c8
* security.h (class cygpsid): New class.
...
(class cygsid): Use cygpsid as base. Remove members psid, get_id,
get_uid, get_gid, string, debug_printf and the == and != operators.
(cygsidlist::clear_supp): Only do work if setgroups has been called.
* sec_helper.cc: Define sid_auth NO_COPY.
(cygpsid::operator==): New operator.
(cygpsid::get_id): New function.
(cygpsid::string): New function.
(cygsid::string): Delete.
(cygsid::get_id): Delete.
* pwdgrp.h: Change arguments of internal_getpwsid,
internal_getgrsid and internal_getgroups to cygpsid.
* passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
* grp.cc (internal_getgrsid): Ditto.
(internal_getgroups): Ditto.
2003-02-04 14:58:04 +00:00
Christopher Faylor
335556d58b
Eliminate most unneeded this-> pointers throughout.
2003-02-04 03:01:17 +00:00
Corinna Vinschen
153e83c605
* security.h: Add third argument to set_process_privilege.
...
* autoload.cc: Add OpenThreadToken.
* sec_helper.cc (set_process_privilege): Add and use use_thread
argument.
* security.cc (alloc_sd): Modify call to set_process_privilege.
Remember the result in each process. If failed and file owner is not
the user, fail.
2003-02-03 15:55:20 +00:00
Corinna Vinschen
f0f3ea68f3
* fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
...
length and don't set errno in case of WSAEMSGSIZE error.
(fhandler_socket::recvmsg): Ditto.
2003-02-03 15:34:52 +00:00
Joshua Daniel Franklin
46c1de5bf7
* cygwinenv.sgml: Add section for 'CYGWIN codepage:[ansi|oem]'
2003-02-03 00:30:45 +00:00
Christopher Faylor
6688a0618e
* grp.cc (getgrent32): Only refresh group entries when at beginning.
...
(internal_getgrsid): Only refresh if uninitialized.
(internal_getgrent): Ditto.
* passwd.cc (getpwent): Only refresh passwd entries when at beginning.
(pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
(internal_getpwsid): Only refresh if uninitialized.
(getpass): No need to refresh passwd data here.
* pwdgrp.h (refresh): Eliminate default.
2003-02-01 18:41:29 +00:00
Danny Smith
05d2a9a4fb
* include/commctrl.h (TCM_*): Add missing defines.
2003-02-01 11:38:31 +00:00
Danny Smith
93dfea5667
2003-02-01 Jesus Alvarez <jesus_alvarez@users.sourceforge.net>
...
Danny Smith <dannysmith@users.sourceforge.net>
* include/prsht.h (PSP_*, PSH_*): Add missing defines.
(PROPSHEETPAGE[AW]): Add pszHeaderTitle, pszHeaderSubTitle
for (_WIN32_IE >= 0x0400).
(PROPSHEETHEADER[AW]): Add hplWatermark and anonymous union
fields for (_WIN32_IE >= 0x0400).
2003-02-01 08:53:17 +00:00
Christopher Faylor
a5a93a62b2
* dlfcn.cc (dlerror): Only report load errors once per error.
2003-02-01 05:00:15 +00:00
Christopher Faylor
b0a82a859d
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting of res.
...
* termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
* fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking so that
if any Win32 SetComm*() calls fail, errno gets set to EINVAL and tcsetattr()
returns -1. Catch invalid bitrates, mostly. If baud rate setting is B0, just
drop DTR and leave Win32 DCB bitrate as-is since 0 is not a valid Win32
setting.
(fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as B0,
otherwise get it from the DCB.
2003-02-01 04:48:03 +00:00
Christopher Faylor
949c3da11a
* passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from Pierre
...
Humblet).
* pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already have
lock since that means we are in the process of reading the file.
2003-01-31 17:00:42 +00:00
Christopher Faylor
485d85bfa7
* shared.cc (shared_info::heap_chunk_size): Use correct variable when reading
...
HKLM.
2003-01-31 15:02:40 +00:00
Danny Smith
28c098e3f4
2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (CreateFiber): Change first parameter
to SIZE_T.
(CreateJobObject[AW], CreateHardLink[AW]): Guard with
(_WIN32_WINNT >= 0x0500).
2003-01-31 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW):
Add missing typedefs.
(CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing
prototypes.
(CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE.
2003-01-31 08:28:44 +00:00
Christopher Faylor
704ce46198
* fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one error when
...
inspecting path.
2003-01-30 23:15:15 +00:00
Christopher Faylor
ba6e108396
* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT behavior.
2003-01-30 01:14:30 +00:00
Corinna Vinschen
01e3c89709
* fhandler_socket.cc (fhandler_socket::accept): On successful execution
...
set connection state of returned socket to CONNECTED.
2003-01-28 15:33:50 +00:00
Danny Smith
500acc57eb
2003-01-27 Krzysztof Nikiel <kni@poczta.onet.pl>
...
* include/mmsystem.h (MIXERCONTROL_CONTROLF_MULTIPLE): Correct
define.
* lib/largeint.c (LargeIntegerAdd): Add, don't multiply.
2003-01-27 23:11:13 +00:00
Christopher Faylor
dfb366da5a
* passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about non-numeric
...
fields.
2003-01-27 17:00:17 +00:00
Christopher Faylor
ca6018a0d3
fix typo
2003-01-27 15:58:15 +00:00
Danny Smith
d2f9f641d9
2003-01-27 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/rpcnterr.h (RPC_X_INVALID_PIPE_OPERATION): Add
define.
* include/winbase.h (WAIT_TIMEOUT): Guard against prior
definition.
(WAIT_FAILED): Cast to DWORD.
* include/winerror.h (WAIT_TIMEOUT): Guard against prior
definition.
2003-01-27 Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h: Protect against multiple
definition of WSA* error codes.
* include/winsock.h: Likewise.
* include/winsock2.h: Likewise.
2003-01-27 Bang Dong-Heui
Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h (ERROR_*, SEC_E_*,RPC_S_*, FRS_ERR_*,
DNS_*, WSA*, WAIT_TIMEOUT): Add missing error codes.
(RPC_X_INVALID_PIPE_OPERATION): Remove define.
2003-01-27 07:15:17 +00:00
Christopher Faylor
03dba1defa
* uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no longer a
...
valid return from next_str.
(pwdgrp::add_line): Duh. Revert to use strchr.
2003-01-27 00:31:30 +00:00
Christopher Faylor
fea48988ea
* strings.h (strechr): New function.
...
* uinfo.cc (pwdgrp::next_str): Search only for input char in string. Return
EOS on failure. Don't check for NULL since it shouldn't be possible.
(pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
(pwdgrp::next_num): Pass explicit separator character to next_str.
* grp.cc (pwdgrp::parse_group): Ditto.
* passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage input.
* pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
2003-01-27 00:16:01 +00:00
Danny Smith
232cca6b0c
* include/math.h (tgamma): Correct typo in comment.
2003-01-26 07:04:04 +00:00
Christopher Faylor
9a75162166
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
...
CreateFile failure.
2003-01-26 06:42:40 +00:00
Danny Smith
989c97fe14
* mingwex/mingw-fseek.c (INLINE): Remove define.
...
(__mingw_is_win9x): Remove static inline function.
(_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
2003-01-26 06:38:43 +00:00
Christopher Faylor
5da947eaca
Fix typo.
2003-01-26 06:27:26 +00:00
Christopher Faylor
bdbd7fb6b9
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The structure
...
should always be completely filled out.
* grp.cc (pwdgrp::parse_group): Ditto.
* grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
2003-01-26 06:02:34 +00:00
Christopher Faylor
c913339563
* pwdgrp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating gr_mem.
2003-01-26 05:55:29 +00:00
Christopher Faylor
6503705696
* include/sys/strace.h (paranoid_printf): Define as not being part of "all"
...
output.
* pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns true/false if
parse operation succeeded.
(pwdgrp::reparse): Remove.
(pwdgrp::raw_ptr): New function. Returns pointer in line.
(pwdgrp::next_num): New functions for parsing other than unsigned long.
* grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior. Don't
fill in fields with NULL and assign empty gr_mem to known pointer rather than
doing a pointless calloc. Streamline gr_mem parsing. Don't increment
curr_lines here.
* passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num. Don't
increment curr_lines here.
* uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
(pwdgrp::reparse): Remove.
(pwdgrp::next_num): Rename from next_int. Return bool indicating success of
parse, argument returns value parsed.
(pwdgrp::add_line): Increment curr_lines here on successful parse.
(pwdgrp::load): (from Pierre Humblet) Don't return status. Just report it
here.
2003-01-26 05:38:38 +00:00
Christopher Faylor
c9b99d0d2a
clarify
2003-01-25 16:38:56 +00:00
Christopher Faylor
a53ddfe6c2
* pwdgrp.cc (pwdgrp::reparse): Declare.
...
* uinfo.cc (pwdgrp::reparse): Define.
* grp.cc (pwdgrp::parse_group): Use.
2003-01-25 16:34:32 +00:00
Corinna Vinschen
4f7e12dd26
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
...
update the euid and call cygheap->user.set_name. Remove special
handling of ILLEGAL_UID.
(setgid32): Add a debug_printf. On Win95, always set the egid.
Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
* child_info.h (class cygheap_exec_info): Remove uid.
* spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
* dcrto.cc (dll_crt0_1): Always call uinfo_init.
* uinfo.cc (uinfo_init): Reorganize and close handle if needed.
(cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
2003-01-25 10:36:46 +00:00
Christopher Faylor
45dbfc2611
* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll region
...
if size changes.
2003-01-25 01:17:51 +00:00
Danny Smith
81632e9e55
* include/ras.h (RASCONN[AW]): Add dwSessionId for
...
(WINVER >= 0x501).
2003-01-25 00:47:25 +00:00
Danny Smith
bb9f07bc54
* include/ras.h (RASCONN[AW]): Guard szDeviceType,
...
szDeviceName fields with WINVER >= 0x400. Add dwFlags, luid
fields for WINVER >= 0x501.
2003-01-25 00:41:45 +00:00
Corinna Vinschen
7d33eefa7b
* cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
...
* syscalls.cc (setreuid32): New function.
(setreuid): Ditto.
(setregid32): Ditto.
(setregid): Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-01-24 15:23:15 +00:00
Christopher Faylor
ac4133746e
* pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
...
* grp.cc (pwdgrp::parse_group): Eliminate arg and use class member instead.
Use next_str and next_int to parse arguments.
* passwd.cc (pwdgrp::parse_passwd): Ditto.
(grab_string): Eliminate.
(grab_int): Ditto.
* pwdgrp.h (pwdgrp::parse): Eliminate input arg.
(pwdgrp::parse_passwd): Reflect above change.
(pwdgrp::parse_group): Reflect above change.
(pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::gets): Eliminate.
* uinfo.cc (pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::add_line): Subsume gets.
(pwdgrp::gets): Eliminate.
(pwdgrp::load): Just call add_line to parse input buffer.
2003-01-24 03:53:46 +00:00
Christopher Faylor
09a8842674
Add missing entry.
2003-01-24 02:41:28 +00:00
Christopher Faylor
b831fc4446
* libltp/include/usctest.h: Add externs to some variables that need it.
...
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid
optimization glitch.
2003-01-24 01:51:39 +00:00
Christopher Faylor
8e61c0495e
* winsup.api/mmaptest03.c (main): Mark variables as volatile to avoid
...
optimization induced problems.
2003-01-24 01:41:30 +00:00
Christopher Faylor
23a30ba8d9
* Makefile (check): Add cygrun.exe dependency.
2003-01-24 01:30:43 +00:00
Christopher Faylor
31d7abadfe
Perform more C warning fixup on all C source files and headers.
2003-01-24 01:09:40 +00:00
Christopher Faylor
9b978ffe8b
* libltp/include/test.h: Fix C warnings.
...
* winsup.api/checksignal.c: Ditto.
* winsup.api/crlf.c: Ditto.
* winsup.api/devzero.c: Ditto.
* winsup.api/iospeed.c: Ditto.
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/mmaptest02.c: Ditto.
* winsup.api/mmaptest03.c: Ditto.
* winsup.api/mmaptest04.c: Ditto.
* winsup.api/nullgetcwd.c: Ditto.
* winsup.api/sigchld.c: Ditto.
* winsup.api/signal-into-win32-api.c: Ditto.
* winsup.api/systemcall.c: Ditto.
* winsup.api/waitpid.c: Ditto.
* winsup.api/pthread/mainthreadexits.c: Ditto.
* winsup.api/pthread/test.h: Ditto.
* winsup.api/pthread/threadidafterfork.c: Ditto.
* Makefile.in: Remove cygrun.exe from RUNTIME since it is built here now.
2003-01-23 21:21:28 +00:00
Christopher Faylor
d8f0f146b8
* Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries
...
and other options are used.
2003-01-23 21:14:56 +00:00
Danny Smith
2d771b3dd9
* lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo):
...
Add stubs.
* include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket
options.
2003-01-23 20:43:47 +00:00
Thomas Pfaff
ea35a5e4ae
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:51:31 +00:00
Thomas Pfaff
69fae98649
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:49:28 +00:00
Corinna Vinschen
92005b4cec
* Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
...
(MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2003-01-22 17:15:53 +00:00
Corinna Vinschen
2c6fdb56f5
* Makefile.common (MINGW_LDFLAGS): Add mingw/mingwex builddir.
2003-01-22 17:10:02 +00:00
Corinna Vinschen
2037688a5d
* cygrun.c: Move from here to ../testsuite.
...
* Makefile.in: Remove cygrun.exe dependencies.
2003-01-22 15:23:23 +00:00
Corinna Vinschen
19876644c7
* cygrun.c: Move here from ../cygwin.
...
* Makefile.in: Build cygrun.exe.
* winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
2003-01-22 15:18:58 +00:00
Corinna Vinschen
89f7e8d1d3
* cygwin.din: Export nanosleep().
...
* signal.cc (nanosleep): New function.
(sleep): Move old functionality to nanosleep(). Call nanosleep().
(usleep): Remove old functionality. Call nanosleep().
* include/cygwin/version.h: Bump API minor number.
2003-01-22 10:43:39 +00:00
Christopher Faylor
13afd798c3
* Makefile.in: Find tcl library in the right place.
2003-01-22 03:58:28 +00:00
Thomas Pfaff
5cd5638f57
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:36:31 +00:00
Thomas Pfaff
f2137182fb
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:34:24 +00:00
Thomas Pfaff
00d1a4bb20
* winsup.api/pthread/cancel9.c: Wait in mainthread until child process has terminated.
2003-01-21 20:51:14 +00:00
Christopher Faylor
57394495e2
* grp.cc: Call gr.refresh() rather than doing isunitialized tests throughout.
...
(gr): Use constructor (sigh).
(pwdgrp::parse_group): Rename from parse_grp.
(pwdgrp::read_group): Rename from read_etc_group. Just call gr.load with a
single argument.
* passwd.cc: Call pr.refresh() rather than doing isunitialized tests
throughout.
(pr): Use constructor (sigh).
(pwdgrp::parse_passwd): Rename from "parse_pwd".
(pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load with a
single argument.
* pwdgrp.h (pwdgrp_state): Eliminate.
(pwdgrp): Reflect above renamings.
(pwdgrp::etc_ix): Rename from pwd_ix.
(pwdgrp::read): New element.
(pwdgrp::lock): New element.
(pwdgrp::refresh): New function.
(pwdgrp::load): Eliminate variations which take buffer arguments.
(pwdgrp::pwdgrp): New constructors. Initialize mutex here.
* uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
(pwdgrp::load): Set initialized state to true rather than setting state to
loaded.
2003-01-21 06:58:11 +00:00
Christopher Faylor
984864e9ce
* include/cygwin/version.h: Bump DLL minor number.
2003-01-21 05:13:42 +00:00
Christopher Faylor
b99b804bb0
Fix ChangeLog entry.
2003-01-21 05:09:48 +00:00
Christopher Faylor
2386c7825f
add missing ChangeLog entry.
2003-01-21 05:09:20 +00:00
Christopher Faylor
33de631bf2
add missing ChangeLog entry.
2003-01-21 05:08:55 +00:00
Christopher Faylor
d8cde3a3ee
* path.h (etc::change_possible): Revert the type to bool.
...
(etc::set_last_modified): Remove obsolete function.
* path.cc (etc::change_possible): Revert type to bool.
(etc::test_file_change): Do not test for negative values of change_possible and
do not set it to -res.
(etc::dir_changed): When the handle is NULL, call memset instead of
test_file_changed. When the handle is invalid, return true.
(etc::file_changed): Remove unneeded check for !fn[n].
2003-01-21 05:07:28 +00:00
Christopher Faylor
7905c4f158
* pwdgrp.h (etc): Move to path.h.
...
(pwdgrp::max_lines): New field.
(pwdgrp::curr_lines): New field.
(pwdgrp::pwdgrp_buf): Ditto.
(pwdgrp_buf_elem_size): Ditto.
(pwdgrp_parse): Ditto.
(pwdgrp::gets): Just declare here.
(pwdgrp::load): Ditto. Just take one argument.
(pwdgrp::load): Define overloaded function accepting passwd buf.
(pwdgrp::load): Define overloaded function accepting group buf.
* grp.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_grp): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into __group32 buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to gr.load.
* passwd.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_passwd): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into passwd buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to pr.load.
* path.cc (etc::fn): Extend buffer size to allow index by 1 rather than zero.
(etc::last_modified): Ditto.
(etc::change_possible): Ditto. Renamed from sawchange. Change to signed char
since elements are now tri-state.
(etc::init): Assume "handle" is 1 based rather than 0.
(etc::test_file_change): New function. Sets change_possible based on file date
comparison.
(etc::dir_changed): Check file states immediately after changed_h is
initialized to avoid a race.
(etc::file_changed): Use test_file_change to detect if file needs to be
updated.
* path.h (etc): Move class here from pwdgrp.h.
* uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions here.
(pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
(pwdgrp::add_line): New function.
(pwdgrp::load): Call generic add_line function which will call correct parser.
2003-01-20 02:57:54 +00:00
Christopher Faylor
97d2bc794d
fix typo
2003-01-18 03:43:48 +00:00
Christopher Faylor
4c6a3e500e
* cygheap.cc: Change most 'int's to 'unsigned's.
...
(_cmalloc): Only check for size of malloced region when calculating budget.
Add overhead when performing the sbrk. Previous change broke _crealloc.
2003-01-18 03:26:07 +00:00
Christopher Faylor
e915243911
* dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
...
* grp.cc: Change most statics to NO_COPY throughout.
* passwd.cc: Ditto.
* pwdgrp.h: Change some BOOLs to bools.
(pwdgrp::pwdgrp): Remove unneeded constructor.
* passwd.cc: Change BOOL to bool throughout.
2003-01-17 18:05:32 +00:00
Corinna Vinschen
afa378e74a
* cygwin.din: Add strerror_r.
...
* include/cygwin/version.h: Bump API minor number.
2003-01-17 13:08:06 +00:00
Christopher Faylor
abbaa3a0e6
update copyright
2003-01-17 05:43:43 +00:00
Christopher Faylor
0c0eec3f43
whitespace
2003-01-17 05:33:52 +00:00
Christopher Faylor
5304bcdf6c
correct pwdgroup::load entry
2003-01-17 05:29:23 +00:00
Christopher Faylor
1de6f431aa
* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless
...
debugging.
2003-01-17 05:24:28 +00:00
Christopher Faylor
14ea50290a
* grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
...
"unknown" to "mkgroup".
(internal_getgrgid): Do not return default in nontsec case.
(internal_getgroups): Add argument srchsid and look for it in groups if not
NULL.
* passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use same
default uid for Win95 and NT. Call cygheap_user::ontherange to initialize
HOME.
* cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
* cygheap.h (init_cygheap::etc_changed_h): Remove.
(init_cygheap::etc_changed): Ditto.
* grp.cc (group_state): Remove. Use gr instead throughout.
(gr): Define as class pwdgrp.
(read_etc_group): Remove gr definition. Remove calls to set_last_modified and
close. Pass add_grp to gr.load to load file.
* passwd.cc (passwd_state): Remove. Use pr instead, throughout.
(pr): Define as class pwdgrp.
(read_etc_passwd): Remove pr definition. Remove calls to set_last_modified and
close. Pass add_pwd_line to pr.load to load file.
* pwdgrp.h (etc): New helper class for pwdgrp.
(pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove file_w32
and last_modified fields.
(pwdgrp::set_last_modified): Remove.
(pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
etc::file_changed.
(pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc scanning.
Close file handle after reading buffer into memory. Parse buffer by calling
second argument.
(pwdgrp::gets): Reorganize slightly to rely on eptr starting at beginning of
buffer. Free buffer when memory exhausted.
(pwdgrp::close): Remove.
* uinfo.cc (etc::dir_changed): New function.
(etc::init): Ditto.
(etc::file_changed): Ditto.
(etc::set_last_modified): Ditto.
2003-01-17 05:18:30 +00:00
Corinna Vinschen
41429bc99b
* mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
...
ReadProcessMemory() error codes that trigger a retry with temporary
PAGE_READONLY access. Note that this can occur on NT 4.0.
2003-01-16 14:11:10 +00:00
Christopher Faylor
df9b825c9f
remove errnoneously added files
2003-01-16 01:57:08 +00:00
Christopher Faylor
188132541b
* path.cc (normalize_posix_path): Convert win32 path separators to slashes when
...
full path is specified.
2003-01-16 01:49:14 +00:00
Christopher Faylor
ce9eeb04a6
merge from trunk
2003-01-16 01:27:30 +00:00
Christopher Faylor
77cb0c56ef
* cmalloc.cc (_cmalloc): Fix memory leak.
2003-01-15 17:27:20 +00:00
Corinna Vinschen
ce542f7867
* autoload.cc: Fix copyright date.
...
* fhandler_dsp.cc: Ditto.
* mmap.cc: Ditto.
* net.cc: Ditto.
* ntdll.h: Ditto.
* signal.cc: Ditto.
* syscalls.cc: Ditto.
* uname.cc: Ditto.
* wait.cc: Ditto.
2003-01-15 10:21:23 +00:00
Corinna Vinschen
3903b47b79
* mkgroup.c: Fix copyright date.
...
* mkpasswd.c: Ditto.
* setfacl.c: Ditto.
Fix ChangeLog typos.
2003-01-15 10:08:37 +00:00
Christopher Faylor
8735f49f2f
fix minor typo.
2003-01-15 04:39:34 +00:00
Corinna Vinschen
15996b6f08
* mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
...
Change ambiguous debug output.
2003-01-14 21:01:43 +00:00
Corinna Vinschen
857b65ddba
* mmap.cc (mmap_record::access): Change argument type to caddr_t
...
for strictness.
(mprotect): Protect against calling VirtualProtect() for shared
pages on 9x/Me.
(fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
change protection of parent page to PAGE_READONLY, then try again.
Revert protection afterwards.
2003-01-14 20:40:09 +00:00
Christopher Faylor
9a47ce7f74
spacing cleanup
2003-01-14 20:31:47 +00:00
Thomas Pfaff
ee8d419fd4
Add winsup.api/pthread/cancel10.c
2003-01-14 20:22:20 +00:00
Thomas Pfaff
e14328f4f7
Apply system_cancel patch
2003-01-14 20:19:27 +00:00
Thomas Pfaff
17f422866a
Add winsup.api/pthread/cancel9.c
2003-01-14 20:15:58 +00:00
Thomas Pfaff
4a3584c84b
Apply wait_cancel patch
2003-01-14 20:13:09 +00:00
Thomas Pfaff
35dbe79943
Add winsup.api/pthread/cancel7.c and winsup.api/pthread/cancel8.c
2003-01-14 20:09:13 +00:00
Thomas Pfaff
7ec66a2c28
Apply sleep_cancel patch
2003-01-14 20:05:49 +00:00
Thomas Pfaff
d83b482409
Add winsup.api/pthread/cancel6.c
2003-01-14 20:03:41 +00:00
Thomas Pfaff
3457ce4d88
Apply handle_sigsuspend patch
2003-01-14 19:55:42 +00:00
Christopher Faylor
2673d5f209
* fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
...
SNDCTL_DSP_GETFMTS.
2003-01-14 02:08:35 +00:00
David Starks-Browning
bd14387749
update link for commercial inquiries
2003-01-13 22:17:01 +00:00
Christopher Faylor
c901fafc73
Change location.
2003-01-13 21:11:19 +00:00
David Starks-Browning
337e9503bb
Reformatting.
...
New location for Open Source Definition.
2003-01-13 21:06:12 +00:00
David Starks-Browning
d3939f963a
cygcheck output should be attached, not pasted
...
(diff thanks to Igor Pechtchanski)
2003-01-13 20:51:49 +00:00
David Starks-Browning
cb95f738e9
update commercial references from Cygnus to Red Hat, Inc.
2003-01-13 20:44:05 +00:00
Christopher Faylor
9f0d3f37f3
* ntdll.h: Fix typo.
2003-01-13 03:55:00 +00:00
Corinna Vinschen
7f129d8753
* uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
2003-01-12 11:45:54 +00:00
Corinna Vinschen
ab2dbccc11
* sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
...
(setacl): Start the search for a matching default at the next entry.
Invalidate the type of merged entries instead of clearing it.
Use well_known_creator for default owner and owning group and do
not try to merge non-default and default entries in these cases.
(getacl): Recognize well_known_creator for default owner and group.
(acl_worker): Improve errno settings and streamline the nontsec case.
* security.cc (write_sd): Remove the call to set_process_privilege.
(alloc_sd): If the owner changes, call set_process_privilege and return
immediately on failure. Change inheritance rules: on new directories add
inherit only allow ACEs for creator_owner, creator_group and everyone.
Preserve all inheritances through chmod and chown calls. Introduce
isownergroup to implement the uid == gid case, to keep the inheritance
code simple. Do not initialize owner_sid and group_sid and stop using
the variable psd.
2003-01-12 11:38:51 +00:00
Danny Smith
a545b16de6
* mingwex/math/llround.c: Correct function name and
...
change return value to long long.
2003-01-11 10:52:20 +00:00
Danny Smith
c3e8272116
* include/winnt.h (IMAGE_FILE_AGGRESIVE_WS_TRIM
...
IMAGE_FILE_LARGE_ADDRESS_AWARE): Add defines.
2003-01-11 06:06:46 +00:00
Danny Smith
18d821e186
* include/accctrl.h (enum _SE_OBJECT_TYPE): Add
...
SE_REGISTRY_WOW64_32KEY.
2003-01-11 04:08:15 +00:00
Danny Smith
82409119c0
* include/commctrl.h (HDN_GETDISPINFO[AW]: Add defines.
...
(tagNMHDDISPINFO[AW}: Add structures and typedefs.
2003-01-11 03:43:14 +00:00
Christopher Faylor
68115c74c5
* net.cc: Use gethostname define from winsock2.h.
2003-01-11 01:29:18 +00:00
Christopher Faylor
7ba5067f87
* include/winsock2.h: Remove gethostname from INSIDE_CYGWIN protection.
2003-01-11 01:28:37 +00:00
Christopher Faylor
e3abf9861a
* path.cc: Unrevert below reversion except for mount_info::conv_to_posix_path
...
part.
2003-01-10 21:24:04 +00:00
Corinna Vinschen
df2caa88ca
* path.cc: Revert patch from 2003-01-09 to normalize a windows path
...
rather than converting to posix.
2003-01-10 20:25:47 +00:00
Corinna Vinschen
dc8d11f52e
* autoload.cc (gethostname): Make call optional, return 1 if function
...
can't get loaded.
* net.cc (cygwin_gethostname): Call GetComputerName if return value
of gethostname is non-zero.
2003-01-10 12:55:47 +00:00
Corinna Vinschen
e136dbc297
Split ChangeLog, create ChangeLog-2002.
...
Fix copyright dates.
2003-01-10 12:32:49 +00:00
Corinna Vinschen
70d61f30fe
* cygwin.din: add asprintf and vasprintf, as well as the reentrant
...
versions and underscore variants.
* include/cygwin/version.h: bump CYGWIN_VERSION_API_MINOR.
2003-01-10 12:19:17 +00:00
Corinna Vinschen
a771176720
* net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
2003-01-10 11:58:52 +00:00
Corinna Vinschen
e410614acf
* setfacl (usage): Remove double ":" for mask and other.
2003-01-10 11:39:19 +00:00
Christopher Faylor
d5223b2b0a
* cygthread.cc (cygthread::cygthread): Be more noisy about odd condition.
...
* miscfuncs.cc (low_priority_sleep): Sleep in regular priority if that's what
we're currently running at.
2003-01-10 03:13:45 +00:00
Thomas Pfaff
65f207e8b9
Apply pthread_types_patch
2003-01-09 21:14:33 +00:00
Thomas Pfaff
09cbb9d6b7
Apply pthread_cancel_patch
2003-01-09 20:57:54 +00:00
Thomas Pfaff
72fcbc3ee6
Add pthread_mutex tests
2003-01-09 20:51:55 +00:00
Thomas Pfaff
5d68d1de45
Applied pthread_mutex patch
2003-01-09 20:50:23 +00:00
Thomas Pfaff
ed9fe4559c
Applied cond_init patch
2003-01-09 20:40:44 +00:00
Corinna Vinschen
93353aee63
* fhandler_disk_file.cc (num_entries): Return 2 as link count if
...
directory unreadable.
2003-01-09 17:15:44 +00:00
Corinna Vinschen
3eb27a4e9e
* security.cc (get_nt_attribute): Always return -1 when read_sd()
...
fails.
(get_file_attribute): Set permissions to 0 and owner/group to -1
if security descriptor is unreadable.
2003-01-09 11:44:17 +00:00
Christopher Faylor
85ba109de7
Use isdirsep rather than SLASH_P throughout.
...
* path.cc (iscygdrive): Disallow /cygdrive\x.
(normalize_posix_path): "Normalize" a windows path, if detected, rather than
converting to posix.
* fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and capability
checking for B230400 bitrate.
(fhandler_serial::tcgetattr): Add support for B230400 bitrate.
* include/sys/termios.h: Add B230400 definition for Posix support of 230.4Kbps.
2003-01-09 08:22:05 +00:00
Corinna Vinschen
f1c9046a57
* mkpasswd.cc (current_user): Create.
...
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_user. Add username in gecos field
on Win95/98/ME.
* mkgroup.cc (enum_groups): Print gid with %u.
(print_win_error): Create from passwd.cc.
(current_group): Create.
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_group.
2003-01-08 17:38:11 +00:00
Danny Smith
5e1b786d38
* lib/dxguid.c: Don't #include <objbase.h>.
...
* include/unknwn.h: Partially revert change of 2002-12-26.
Don't include <ole2.h>.
2003-01-08 10:55:02 +00:00
Danny Smith
4961ecb3d9
2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/dinput.c: Don't #include <objbase.h>.
2003-01-08 Bart Oldeman <bartoldeman@users.sourceforge.net>
* include/windows.h (ole2.h):Do #include for
__WATCOMC__.
2003-01-08 09:15:53 +00:00
Danny Smith
68dea33819
* include/ctype.h (__isascii): Don't cast arg to unsigned.
...
(iswascii): Likewise. Correct mask.
* include/wctype.h (iswascii): Don't cast arg to unsigned.
Correct mask
2003-01-07 21:05:13 +00:00
Danny Smith
36c1e6d171
* include/winuser.h (SPI_SETWHEELSCROLLLINES) Add define.
...
* include/zmouse.h (WHEEL_DELTA): Guard against prior
definition.
(WHEEL_PAGESCROLL): Likewise.
(SPI_SETWHEELSCROLLLINES): Define, if not already done.
2003-01-06 00:22:48 +00:00
Danny Smith
066a41acdf
* include/winuser.h ((SPI_SETWHEELSCROLLLINES) Add define.
...
* include/zmouse.h (WHEEL_DELTA): Guard against prior
definition.
(WHEEL_PAGESCROLL): Likewise.
(SPI_SETWHEELSCROLLLINES): Define, if not already done.
2003-01-06 00:18:45 +00:00
Christopher Faylor
cbdbe9d766
* pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just lock when
...
leaving.
2003-01-05 06:36:50 +00:00
Danny Smith
8b052ae3f6
* include/winuser.h (SPI_GETWHEELSCROLLLINES) Add define.
...
(WHEEL_PAGESCROLL): Add define.
2003-01-05 02:49:15 +00:00
Danny Smith
f2f59a268f
* include/commctrl.h (tagNMTOOLBAR[AW]): Replace obsolete struct
...
names tagTBNOTIFY[AW] and typedefs. Add defines for backward
compatability. Add RECT field. Add UNICODE mappings for new
names.
(tagNMREBARCHEVRON): Add struct and typedefs for
_WIN32_IE >= 0x0500.
2003-01-04 11:52:06 +00:00
Danny Smith
61b9f92918
* include/commctrl.h (TOOLINFO[AW]: Update structures.
...
(LVHITTESTINFO): Likewise.
* include/wingdi.h (GRADIENT_TRIANGLE): Add structure.
(GRADIENT_RECT): Likewise.
2003-01-04 10:58:36 +00:00
Danny Smith
670867158e
2003-01-03 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winerror.h (ERROR_OPLOCK_NOT_GRANTED,
ERROR_INVALID_OPLOCK_PROTOCOL, ERROR_SOURCE_ELEMENT_EMPTY,
ERROR_DESTINATION_ELEMENT_FULL, ERROR_ILLEGAL_ELEMENT_ADDRESS,
ERROR_MAGAZINE_NOT_PRESENT, ERROR_DEVICE_REINITIALIZATION_NEEDED,
ERROR_DEVICE_REQUIRES_CLEANING, ERROR_DEVICE_DOOR_OPEN,
ERROR_DEVICE_NOT_CONNECTED, ERROR_NOT_FOUND, ERROR_NO_MATCH,
ERROR_SET_NOT_FOUND, ERROR_NO_TRACKING_SERVICE,
ERROR_JOURNAL_DELETE_IN_PROGRESS, ERROR_JOURNAL_NOT_ACTIVE,
ERROR_JOURNAL_ENTRY_DELETED, ERROR_ONLY_IF_CONNECTED,
ERROR_NOT_SUPPORTED_ON_SBS, ERROR_SERVER_SHUTDOWN_IN_PROGRESS,
ERROR_MUTUAL_AUTH_FAILED, ERROR_TIME_SKEW, ERROR_DEVICE_REMOVED,
RPC_S_INVALID_ASYNC_HANDLE, RPC_S_INVALID_ASYNC_CALL,
RPC_X_PIPE_CLOSED, RPC_X_PIPE_DISCIPLINE_ERROR, RPC_X_PIPE_EMPTY,
ERROR_CANT_ACCESS_FILE, ERROR_CANT_RESOLVE_FILENAME,
ERROR_WMI_GUID_NOT_FOUND, ERROR_WMI_INSTANCE_NOT_FOUND,
ERROR_WMI_ITEMID_NOT_FOUND, ERROR_WMI_TRY_AGAIN, ERROR_WMI_READ_ONLY,
ERROR_WMI_SET_FAILURE, ERROR_TRANSPORT_FULL, ERROR_FILE_OFFLINE,
ERROR_REMOTE_STORAGE_NOT_ACTIVE, ERROR_REMOTE_STORAGE_MEDIA_ERROR,
ERROR_NOT_A_REPARSE_POINT, ERROR_REPARSE_ATTRIBUTE_CONFLICT,
ERROR_INVALID_REPARSE_DATA, ERROR_REPARSE_TAG_INVALID,
ERROR_REPARSE_TAG_MISMATCH, ERROR_FILE_ENCRYPTED,
ERROR_FILE_NOT_ENCRYPTED, ERROR_NOT_EXPORT_FORMAT,
ERROR_CTX_WINSTATION_NAME_INVALID, ERROR_CTX_INVALID_PD,
ERROR_CTX_PD_NOT_FOUND, ERROR_CTX_WD_NOT_FOUND,
ERROR_CTX_CLOSE_PENDING, ERROR_CTX_NO_OUTBUF,
ERROR_CTX_MODEM_INF_NOT_FOUND, ERROR_CTX_INVALID_MODEMNAME,
ERROR_CTX_MODEM_RESPONSE_ERROR, ERROR_CTX_MODEM_RESPONSE_TIMEOUT,
ERROR_CTX_MODEM_RESPONSE_NO_CARRIER,
ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE, ERROR_CTX_MODEM_RESPONSE_BUSY,
ERROR_CTX_MODEM_RESPONSE_VOICE, ERROR_CTX_TD_ERROR,
ERROR_CTX_WINSTATION_NOT_FOUND, ERROR_CTX_WINSTATION_ALREADY_EXISTS,
ERROR_CTX_WINSTATION_BUSY, ERROR_CTX_BAD_VIDEO_MODE,
ERROR_CTX_GRAPHICS_INVALID, ERROR_CTX_NOT_CONSOLE,
ERROR_CTX_CLIENT_QUERY_TIMEOUT, ERROR_CTX_CONSOLE_DISCONNECT,
ERROR_CTX_CONSOLE_CONNECT, ERROR_CTX_SHADOW_DENIED,
ERROR_CTX_WINSTATION_ACCESS_DENIED, ERROR_CTX_INVALID_WD,
ERROR_CTX_SHADOW_INVALID, ERROR_CTX_SHADOW_DISABLED,
ERROR_CTX_CLIENT_LICENSE_IN_USE, ERROR_CTX_CLIENT_LICENSE_NOT_SET,
ERROR_CTX_LICENSE_NOT_AVAILABLE, ERROR_CTX_LICENSE_CLIENT_INVALID,
ERROR_CTX_LICENSE_EXPIRED, ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY,
ERROR_DS_NO_ATTRIBUTE_OR_VALUE, ERROR_DS_INVALID_ATTRIBUTE_SYNTAX,
ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED, ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS,
ERROR_DS_BUSY, ERROR_DS_UNAVAILABLE, ERROR_DS_NO_RIDS_ALLOCATED,
ERROR_DS_NO_MORE_RIDS, ERROR_DS_INCORRECT_ROLE_OWNER,
ERROR_DS_RIDMGR_INIT_ERROR, ERROR_DS_OBJ_CLASS_VIOLATION,
ERROR_DS_CANT_ON_NON_LEAF, ERROR_DS_CANT_ON_RDN,
ERROR_DS_CANT_MOD_OBJ_CLASS, ERROR_DS_CROSS_DOM_MOVE_ERROR,
ERROR_DS_GC_NOT_AVAILABLE, ERROR_SHARED_POLICY,
ERROR_POLICY_OBJECT_NOT_FOUND, ERROR_POLICY_ONLY_IN_DS,
ERROR_DS_ADMIN_LIMIT_EXCEEDED, ERROR_DS_DS_REQUIRED,
ERROR_DS_SAM_INIT_FAILURE, ERROR_DS_SENSITIVE_GROUP_VIOLATION,
ERROR_DS_CANT_MOD_PRIMARYGROUPID, ERROR_DS_INVALID_GROUP_TYPE,
ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN,
ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN,
ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER,
ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER,
ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER,
ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER,
ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER,
ERROR_DS_HAVE_PRIMARY_MEMBERS, ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD,
ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY, ERROR_DS_CANT_START,
ERROR_DS_INIT_FAILURE, ERROR_SAM_INIT_FAILURE, ERROR_DS_GC_REQUIRED,
ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY,
ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS,
ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED):
Add missing error codes.
2003-01-03 22:57:37 +00:00
Christopher Faylor
f3afe99b0b
* dtable.h (dtable::in_vfork_cleanup): New function. True if vfork cleanup
...
needed.
* dtable.cc (dtable::vfork_parent_restore): Remove assertion.
* pipe.cc (fhandler_pipe::close): Don't close read_state during fork_fixup
since it wasn't inherited.
2003-01-03 06:20:23 +00:00
Danny Smith
7b061fd844
* include/stdlib.h (_osver, _winver, _winmajor,
...
_winminor): Declare as direct imports from dll if
__DECLSPEC_SUPPORTED.
2003-01-03 05:02:18 +00:00
Danny Smith
c467d1396f
* lib/kernel32.c (GetCurrentFiber): Remove blank input field in
...
asm code.
(GetFiberData): Likewise.
2003-01-03 00:04:21 +00:00