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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2002-06-21remove unneeded white spaceChristopher Faylor
2002-06-21* uinfo.cc (cygheap_user::ontherange): Use env_name for NetUserGetInfo.Christopher Faylor
(cygheap_user::env_logsrv): Verify env_domain is valid. * environ.cc: Include child_info.h and keep spenvs[] sorted. (environ_init): Check child_proc_info instead of myself->ppid_handle.
2002-06-20* fhandler.cc (fhandler_base::set_flags): Change priority of "linked in"Christopher Faylor
default binmode setting so that it has priority over optional setting.
2002-06-19Use hMainProc where appropriate, throughout.Christopher Faylor
* environ.cc (spenv::retrieve): Add debugging statements. * pinfo.cc (set_myself): Don't call strace.hello if already stracing. * strace.cc (strace): Move NO_COPY keyword so that it will actually take effect.
2002-06-19 * uinfo.cc (cygheap_user::ontherange): Call NetUserGetInfo() only withCorinna Vinschen
non-NULL logserver parameter.
2002-06-192002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/winuser.h (FLASHW_*,INPUT_MOUSE,INPUT_KEYBOARD, INPUT_HARDWARE): Add defines. (HDEVNOTIFY): Add typedef. (FLASHWINFO,tagMOUSEMOVEPOINT,tagMOUSEINPUT,tagKEYBDINPUT, tagHARDWAREINPUT,tagINPUT,tagGUITHREADINFO): Define structs and typedefs. (CreateDesktop[AW],CreateMDIWindow[AW],GetClassInfo[AW], GetClassInfoEx[AW],GetKeyboardLayoutList, MessageBoxIndirect[AW],MsgWaitForMultipleObjects, MsgWaitForMultipleObjectsEx, RegisterClass[AW], RegisterClassEx[AW]): Correct prototypes. Remove duplicate ChangeLog entry of 2001-12-07
2002-06-19* cygpath.cc (usage): Clean up usage output.Christopher Faylor
(dowin): Correct output of -t mixed for -ADHPSW options.
2002-06-192002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/ddeml.h (DdeCreateStringHandle{AW]:Correct prototypes. * include/winsvc.h (StartServiceW): Correct prototype. * include/winbase.h (BackupRead,BackupSeek,BackupWrite, FileTimeToLocalFileTime, GetAce,GetPrivateProfileStruct[AW], GetTickCount,InterlockedExchangeAdd, WritePrivateProfileStruct[AW]: Correct prototypes. (GetEnvironmentStrings): Correct mapping to GetEnvironmentStringsA. * include/winver.h (VerQueryValueA,VerQueryValueW): Correct prototypes. * include/wincon.h (CreateConsoleScreenBuffer): Correct prototype. * include/winreg.h (RegQueryMultipleValues[AW], RegQueryValueEx[AW]):Correct prototypes. * include/wingdi.h (PXFORM, PLOGBRUSH, PLOGPEN, PPOLYTEXTA, PPOLYTEXTW): Add typedefs. (_DESIGNVECTOR,COLOR16, _TRIVERTEX, _DISPLAY_DEVICE): Add structures and typedefs. (MM_MAX_NUMAXES): Add define. (EnumFontsW,GetEnhMetaFilePixelFormat,wglGetLayerPaletteEntries): Correct prototypes. * include/winerror.h (RPC_X_INVALID_PIPE_OBJECT, RPC_X_WRONG_PIPE_ORDER,RPC_X_WRONG_PIPE_VERSION, RPC_S_SEND_INCOMPLETE): Add defines.
2002-06-19 * include/tchar.h (_getts): Define as _getws for _UNICODE.Danny Smith
(_putts): Define as _putws for _UNICODE. Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
2002-06-18 * include/float.h: #include_next<float.h> before header guard.Danny Smith
2002-06-182002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/_mingw.h (__MINGW_IMPORT): Check for prior definition before defining. * include/excpt.h (): Include windef.h not windows.h. * include/fcntl.h (_O_SHORT_LIVED): Add define. (_chmod): Add prototype. (_creat): Correct prototype. (SH_DENY*): Rename defines to _SH_DENY*. (SH_DENY*): Add Non-ANSI names for _SH_DENY*. include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG, _IOAPPEND): Add defines. (_wfindfirst): Correct prototype. (_wfdopen): Add prototype. * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add prototypes. * include/string.h (_mbschr, _mbstok, _mbsncat): Remove prototypes. (_wcsdup): Correct prototype. * include/mbstring.h: Remove comments about _mbschr, _mbstok, _mbsncat being in string.h. * include/wchar.h (_wfindfirst): Correct prototype. * include/tchar.h (_tfdopen): Add _UNICODE mappings.
2002-06-172002-06-17 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/windef.h (_fastcall, __fastcall, FASTCALL): Add defines.
2002-06-17rewordChristopher Faylor
2002-06-17* cygheap.h (cygheap_user::issetuid): New method.Christopher Faylor
* dtable.cc (dtable::vfork_child_dup): Use new method to determine if we are in "setuid mode." * fork.cc (fork_parent): Ditto. * spawn.cc (spawn_guts): Ditto. * syscalls.cc (seteuid32): Ditto. (setegid32): Ditto. * environ.cc (spenv::retrieve): (Suggested by Pierre Humblet) Do potential recalculation of cygheap_user stuff when in setuid mode. Return special value when environment variable exists but should not be added. (build_env): Don't add retrieved value to dstp if it is 'dont_add'.
2002-06-16* include/ntdll.h: New file.Egor Duda
* lib/ntdll.def: Add NtShutdownSystem.
2002-06-162002-06-16 Steven Edwards <Steven_Ed4153@yahoo.com>Danny Smith
* lib/dinput.def (DirectInputCreateEx): Add stub. * lib/ntdll.def: New file.
2002-06-16Changes suggested by Pierre Humblet.Christopher Faylor
* environ.cc (NL): New macro. (conv_envvars): Use NL macro to fill in name and namelen. (spenv::namelen): New field. (spenvs): Use NL to fill in name and namelen. (spenv::retrieve): Eliminate length argument. Instead, use namelen throughout. (build_env): Don't calculate length of initial FOO= part of environment. Accommodate spenv::retrive argument change.
2002-06-16* cygheap.h (cygheap_user::winname): New field.Christopher Faylor
* cygheap.cc (cygheap_user::set_name): Clear winname when name changes. * uinfo.cc (cygheap_user::env_logsrv): Avoid calculating server when Windows user == SYSTEM. (cygheap_user::env_domain): Set winname here too. (cygheap_user::env_userprofile): Eliminate superfluous tests. (cygheap_user::env_name): Seed winname by calling env_domain().
2002-06-16* spawn.cc (spawn_guts): Revert removal of ciresrv.moreinfo->uid = ILLEGAL_UID.Christopher Faylor
2002-06-16* child_info.h (child_proc_info): Declare as base class.Christopher Faylor
(spawn_info): Declare as alias of child_proc_info to aid debugging. (fork_info): Ditto. * cygheap.cc (cygheap_fixup_in_child): Use child_proc_info global rather than parameter. * cygheap.h (cygheap_fixup_in_child): Reflect above change in declaration. * dcrt0.cc (_dll_crt0): Move 'si' definition here. Assign child_proc_info. (dll_crt0_1): Accommodate cygheap_fixup_in_child and *_info changes. * environ.cc (spenv::retrieve): Make regparm. * environ.h (environ_init): Ditto. (win_env::add_cache): Ditto. (build_env): Ditto. (getwinenv): Ditto. * fork.cc (sync_with_parent): Use fork_info global. (fork_child): Ditto.
2002-06-15 * include/_mingw.h: Increment to version 2.1.Earnie Boyd
* Makefile.in: Ditto.
2002-06-15 * Makefile.in (conf_prefix): New variable.Earnie Boyd
(dist_prefix): Ditto. Conditionally set to $(conf_prefix). (bindist): Use dist_prefix.
2002-06-15* uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH unlessChristopher Faylor
one or the other is specified.
2002-06-15* cygheap.h (cygheap_user::userprofile_env_buf): New static member.Christopher Faylor
* environ.cc (build_env): Add debugging statement. (spenvs): Switch functions for USERDOMAIN and USERNAME. * spawn.cc (spawn_guts): Move environment initialization prior to cygheap_setup_for_child or environment info will never be copied to child.
2002-06-15* cygheap.h (cygheap_user): Add static members to hold home{drive,path} info.Christopher Faylor
* uinfo.cc (cygheap_user::ontherange): Use static class members for local HOME* storage.
2002-06-14* cygheap.cc (cygheap_user::set_logsrv): Remove.Christopher Faylor
(cygheap_user::set_domain): Ditto. * cygheap.h (cygheap_user::set_logsrv): Remove declaration. (cygheap_user::set_domain): Ditto. (cygheap_user::env_domain): Declare new method. (cygheap_user::env_name): Ditto. * environ.cc (spenvs): Add two environment variables. * spawn.cc (spawn_guts): Call build_env after RevertToSelf. Always set ciresrv.mount_h. (cygheap_user::ontherange): Recalculate homedrive/homepath if they are empty. Use env_logsrv to get logon server. (cygheap_user::env_logsrv): Calculate server name here rather than relying on it having been previously calculated. (cygheap_user::env_domain): Ditto for domain name. (cygheap-user::env_name): New method. * syscalls.cc (seteuid32): Do not get or set the environment. Do not call LookupAccountSid nor internal_getlogin. Set cygheap->user name and sid from the passwd entry. * uinfo.cc (uinfo_init): Only call internal_getlogin when starting from a non Cygwin process and use the values returned in user. (internal_getlogin): Simplify to case where starting from a non Cygwin process. Store return values in user and return void. Do not set the Windows default environment. * dcrt0.cc (dll_crt0_1): Call uinfo_init only when needed. Do not set myself->uid nor reset user.sid. * spawn.cc (spawn_guts): Get the sid from cygheap->user. Always RevertToSelf(). Don't set uid in impersonated case. * cygheap.cc (cygheap_user::set_sid): Do not set orig_sig. (cygheap_user::set_orig_sid): New. * cygheap.h: Declare cygheap_user::set_sid. * winsup.h: Add argument to uinfo_init().
2002-06-14 * environ.cc (build_env): If realloc moves envblock, move s with it.Corinna Vinschen
2002-06-14 * include/w32api.h: Change to version 2.0 to reflect the changeEarnie Boyd
in the license. * README: Renamed. * README.w32api: Renamed from README. Modified license to remove the restriction of notifying the author based on the fact that the author is unreachable at the notified address. * Makefile.in (VERSION): Change to 2.0.
2002-06-14 * Makefile.in (bindist): Correct the MinGW distribution.Earnie Boyd
2002-06-14Add pthread callsCorinna Vinschen
2002-06-14 * passwd.c: Rearrange includes to avoid unnecessary warnings.Corinna Vinschen
(GetPW): Add parameter to (dis)allow printing of Windows username. Use defines instead of numerical constants where possible. Try avoiding impersonation problem. Rearrange to print Windows username only if it's different from Cygwin username. (ChangePW): Use defines instead of numerical constants where possible. (main): Call GetPW with additional parameter. Change error text. * passwd.c (GetPW): Handle case of user-edited /etc/passwd with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2002-06-14 * include/wingdi.h (GetEnhMetaFileBits): Correct typo.Earnie Boyd
2002-06-13 * include/wingdi.h: (GetEnhMetaFileBits): Define prototype.Earnie Boyd
2002-06-13fix typoChristopher Faylor
2002-06-13* winver.rc: Add more words to copyright.Christopher Faylor
2002-06-13 * cygheap.cc (cygheap_user::set_name): Revert previous change.Corinna Vinschen
* environ.cc (spenv::retrieve): Check return value of call to cygheap->user.*from_cygheap().
2002-06-13 * include/winuser.h (MOUSEHOOKSTRUCT): Define structure.Earnie Boyd
2002-06-13 * cygheap.cc (cygheap_user::set_name): Remove setting homedrive andCorinna Vinschen
homepath to NULL. (cygheap_user::set_logsrv): Fix free'ing of plogsrv. * cygheap.h (cygheap_user::cygheap_user): Initialize homedrive and homepath to NULL.
2002-06-13 * include/_mingw.h: Increment version to 2.0.Danny Smith
* Makefile.in: Ditto. Merge in mingwex branch.
2002-06-13* security.cc (get_logon_server): Use strcasematch rather than strcasecmp.Christopher Faylor
2002-06-13* path.cc (chdir): Minor cleanup.Christopher Faylor
2002-06-13* environ.cc (build_env): Correctly fill out windows environment block withChristopher Faylor
win32 paths rather than posix paths.
2002-06-132002-06-13 John K. Hohm <jhohm@acm.org>Danny Smith
* include/comcat.h: New file.
2002-06-12Add dumper.exe words from Egor Duda.Christopher Faylor
2002-06-12* cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to NULL onChristopher Faylor
user name change. (cygheap_user::set_logsrv): Allocate enough space for leading \\ so that we can put this in the environment, if needed. * cygheap.h (homebodies): New enum. (cygheap_user::homedrive): New field. (cygheap_user::homepath): Ditto. (cygheap_user::env_logsrv): New method. (cygheap_user::env_homepath): New method. (cygheap_user::env_homedrive): New method. (cygheap_user::env_userprofile): New method. (cygheap_user::ontherange): New method. * environ.cc (envsize): Eliminate debugging argument. (environ_init): Assume that envc counts number of elments not total size. (spenv): New class. (spenvs): New array, renamed from forced_winenv_vars, using spenv. (spenv::retrieve): New method. (build_env): Rename from 'winenv' -- one stop shopping for building new environment blocks for both windows and "unix". * environ.h (build_env: Declare. (winenv): Delete declaration. (envsize): Ditto. * spawn.cc (spawn_guts): Use build_env to build windows and cygwin environment blocks. * uinfo.cc (internal_getlogin): Eliminate environment manipulation. Default to info from GetUserName if it exists. Move HOMEPATH and HOMEDRIVE stuff elsewhere. Move HOME setting elsewhere. Only set HOME environment variable in processes that are not parented by a cygwin process. (cygheap_user::ontherange): Define new method. (cygheap_user::env_logsrv): Ditto. (cygheap_user::env_homepath): Ditto. (cygheap_user::env_homedrive): Ditto. (cygheap_user::env_userprofile): Ditto.
2002-06-12fix commentChristopher Faylor
2002-06-11* spawn.cc (spawn_guts): More hToken removal cleanup.Christopher Faylor
2002-06-11* spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih() only once.Christopher Faylor
2002-06-11* Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGSChristopher Faylor
command-line setting. * cygwin.din: Export sexec* functions as function which returns ENOSYS (i.e., sexec* is deprecated). * dtable.cc (dtable::vfork_child_dup): Ensure that impersonation is restored even on failure. * exec.cc: Throughout, remove references to sexec* and _spawnve. * pinfo.h: Remove _spawnve declaration. * spawn.cc: Rename _spawnve to spawnve and use throughout. (spawn_guts): Eliminate hToken argument and processing of same. Just perform special actions if impersonating. (spawnve): Rename from _spawnve.
2002-06-10revert erroneous checkinChristopher Faylor