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-07-01* environ.cc (parse_options): Use setenv to potentially replace CYGWIN value onChristopher Faylor
export. Fixes broken behavior since November 2000 changes. (regopt): Return indication of whether or not something has been parsed from the registry. (environ_init): Only attempt to export CYGWIN variable when values were set from the registry. It is exported automatically otherwise.
2002-07-01* fhandler.h (fhandler_process::pid): New field.Christopher Faylor
(fhandler_process::fstat): Remove unneeded array. Set pid element. (fhandler_process::open): Ditto. (fhandler_process::fill_filebuf): Handle case where 'p' field is NULL.
2002-06-30* fhandler.h (fhandler_process::p): New field.Christopher Faylor
(fhandler_process:fill_filebuf): Revert to same definition as virtual in parent class. (fhandler_process::open): Fill out p field rather than passing as an argument. (fhandler_process::fill_filebuf): Use p pointer rather than argument.
2002-06-30 * security.cc (extract_nt_dom_user): Check for all buffer overflows.Corinna Vinschen
Call LookupAccountSid after trying to get domain & user from passwd. (get_group_sidlist): Obtain the domain and user by calling extract_nt_dom_user instead of LookupAccountSid.
2002-06-30* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.Christopher Faylor
2002-06-30* autoload.cc (NetGetDCName): Change to make this an optional load function.Christopher Faylor
* cygheap.h (cygheap_user::logsrv): Return NULL when operation fails. (cygheap_user::winname): Ditto. (cygheap_user::domain): Ditto. * uinfo.cc (cygheap_user::env_logsrv): Save results in temp variable. (cygheap_user::env_userprofile): Ditto.
2002-06-29* environ.cc (spenv::retrieve): Detect return of env_dontadd from cygheap_userChristopher Faylor
methods. (build_env): Avoid incrementing environment pointer if not actually adding to the environment. That could result in garbage in the environment table. Be more defensive when reallocing envblock.
2002-06-29* uinfo.cc (cygheap_user::test_uid): Return NULL or further tests are sortaChristopher Faylor
useless. (cygheap_user::env_domain): Recalculate if name is missing.
2002-06-29* environ.cc (spenv::from_cygheap): Still need to take setuid intoChristopher Faylor
consideration.
2002-06-29* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where noChristopher Faylor
domain or username is "SYSTEM".
2002-06-29* cygheap.h (cygheap_user): Reorg to accommodate environment caching.Christopher Faylor
(cygheap_user::logsrv): New method. (cygheap_user::winname): Ditto. (cygheap_user::domain): Ditto. (cygheap_user::test_uid): Ditto. * cygheap.cc (cygheap_user::set_name): Reflect name "pwinname" name change. * environ.cc (getwinenveq): New function. (spenv::from_cygheap): Change arguments. (spenv::retrieve): Ditto for call. Use getwinenveq to retrieve info from environment. Always return value from cygwin environment, if it exists. * environ.h (getwinenveq): Declare. * uinfo.cc (cygheap_user::ontherange): Use logsrv() rather than env_logsrv(). (cygheap_user::test_uid): Define new method. (cygheap_user::env_logsrv): Accept environment arguments. Use test_uid to find info. (cygheap_user::env_domain): Ditto. (cygheap_user::env_userprofile): Ditto. (cygheap_user::env_homepath): Ditto. (cygheap_user::env_homedrive): Ditto. (cygheap_user::env_name): Ditto.
2002-06-28Add missing entry.Christopher Faylor
2002-06-28* cygheap.cc (cfree_and_set): New function.Christopher Faylor
(cygheap_user::set_name): Use cfree_and_set to reset members. * cygheap.h (cygheap_user): Delete static members. (cygheap_user::puserprof): New member. (cfree_and_set): Declare. * dcrt0.cc (almost_null): Define. * winsup.h (almost_null): Declare. * syscalls.cc (cfree_and_set): Remove unused variable. * uinfo.cc (cygheap_user::homepath_env_buf): Eliminate. (cygheap_user::homedrive_env_buf): Ditto. (cygheap_user::userprofile_env_buf): Ditto. (cygheap_user::ontherange): YA change to try to preserve existing HOMEPATH and HOMEDRIVE. Return almost_null values when variables should not actually exist. (cygheap_user::env_logsrv): Ditto. (cygheap_user::env_domain): Ditto. (cygheap_user::env_userprofile): Ditto.
2002-06-28 Delete extraneous comment from my previous change.Conrad Scott
2002-06-27 * dcrt0.cc (dll_crt0_1): Let __progname point to the applicationsCorinna Vinschen
basename. Move eliminating ".exe" suffix from argv[0] so that it always also affects __progname.
2002-06-27* thread.cc (pthread::create): Added trace printf to get CreateThreadChristopher Faylor
LastError.
2002-06-27 * mmap.cc (list::match): Check using pagesize aligned size.Corinna Vinschen
2002-06-27* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): ForceChristopher Faylor
FindFirstFile on first file of directory when asking for x:\ .
2002-06-27* cygheap.cc (cygheap_user::set_name): Correct thinko in below change.Christopher Faylor
2002-06-26* cygheap.cc (cygheap_user::set_name): Avoid clearing things when just settingChristopher Faylor
name to itself or during first time initialization. * environ.cc (check_case_init): Make case insensitive.
2002-06-26 * fhandler.h (fhandler_socket::bind): Add method definition.Corinna Vinschen
(fhandler_socket::connect): Ditto. (fhandler_socket::listen): Ditto. (fhandler_socket::accept): Ditto. (fhandler_socket::getsockname): Ditto. (fhandler_socket::getpeername): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::shutdown): Ditto. * fhandler_socket.cc (get_inet_addr): Move here from net.cc. (fhandler_socket::bind): New method. (fhandler_socket::connect): Ditto. (fhandler_socket::listen): Ditto. (fhandler_socket::accept): Ditto. (fhandler_socket::getsockname): Ditto. (fhandler_socket::getpeername): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::shutdown): Ditto. * net.cc: Various formatting cleanups throughout. (get_inet_addr): Move to fhandler_socket.cc. (cygwin_bind): Move base functionality to appropriate fhandler_socket method. (cygwin_connect): Ditto. (cygwin_listen): Ditto. (cygwin_accept): Ditto. (cygwin_getsockname): Ditto. (cygwin_getpeername): Ditto. (cygwin_recvfrom): Ditto. (cygwin_recvmsg): Ditto. (cygwin_sendto): Ditto. (cygwin_sendmsg): Ditto. (cygwin_shutdown): Ditto.
2002-06-26 * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.Corinna Vinschen
2002-06-26* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and it's notChristopher Faylor
cygwin info.
2002-06-26* autoload (noload): Avoid clobbering bx register.Christopher Faylor
* environ.cc (codepage_init): Use case insensitive match. * fhandler_console.cc (cp_get_internal): Delete. (con_to_str): Use get_cp to derive code page. (str_to_con): Ditto. * miscfuncs.cc (get_cp): New function. (sys_wcstombs): New function. Converted from macro. (sys_mbstowcs): Ditto. * winsup.h: Reflect above changes.
2002-06-26* winsup.h: Minor cleanup.Christopher Faylor
* path.h (path_conv::[]): New operator. * syscalls.cc (_link): Use path_conv operators rather than methods, where appropriate. Minor white space cleanup. * include/cygwin/version.h: Bump DLL minor number. * dcrt0.cc (sm): Make NO_COPY.
2002-06-26 * include/winbase.h (FILE_FLAG_FIRST_PIPE_INSTANCE): Add constant.Conrad Scott
2002-06-262002-06-26 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/winbase.h (WINBASEAPI): Don't define if prior definition. * include/winioctl.h (PARTITION_FAT32, PARTITION_FAT32_XINT13, PARTITION_XINT13, PARTITION_XINT13_EXTENDED, PARTITION_LDM, PARTITION_UNIX): Add defines. (PDRIVE_LAYOUT_INFORMATION): Add typedef. (IsRecognizedPartition): Also check for PARTITION_FAT32, PARTITION_FAT32_XINT13 and PARTITION_XINT13. (IsContainerPartition): Add macro.
2002-06-25 * syscalls.cc (chown): Convert uid to 32 bit.Corinna Vinschen
(lchown): Ditto. (fchown): Ditto.
2002-06-252002-06-25 Ken Fitlike <kenfitlike@hotmail.com>Danny Smith
* include/commctrl.h: (CBEIF_*): Add defines. (CBEN_*): Add defines and UNICODE mappings (WC_COMBOBOXEX[AW]): Add defines and UNICODE mappings. (CBEMAXSTRLEN): Add define. (COMBOBOXEXITEM[AW]): Add structures and typedefs. (NMCOMBOBOXEX[AW]): Add structures and typedefs. (NMCBEDRAGBEGIN[AW]): Add structure and typedefs. (NMCBEENDEDIT[AW]): Add structure and typedefs.
2002-06-25Update from Joshua Daniel FranklinChristopher Faylor
2002-06-25* dtable.cc (dtable::find_unused_handle): Avoid coercion.Christopher Faylor
2002-06-25* dtable.cc (fhandler_base::dup2): Cleanup. Ensure that lock is turned off inChristopher Faylor
error condition.
2002-06-24 * uinfo.cc (internal_getlogin): Set myself->uid and myself->gid insteadCorinna Vinschen
of user.real_uid and user.real_gid. (uinfo_init): Evaluate orig_uid and real_uid from myself->uid. Ditto for gid.
2002-06-24* security.cc (get_group_sidlist): Add pw argument and use pw->pw_name in callChristopher Faylor
to get_supplementary_group_sidlist. (create_token): Add pw argument and use it in call to get_group_sidlist. * security.h: Add pw argument in declaration of create_token. * syscalls.cc (seteuid32): Add pw argument in call to create_token.
2002-06-24 * ntsec.sgml: Clean up text for examples of /etc/passwd and /etc/group.Corinna Vinschen
Add examples with SIDs. Warn about changing them crudely.
2002-06-24 * include/objidl.h (struct tagPROPVARIANT): Kill obsoleteDanny Smith
union member _VARIANT_BOOL bool.
2002-06-24* include/winioctl.h (FILE_SPECIAL_ACCESS): Add define.Danny Smith
2002-06-242002-06-24 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith
* include/winnt.h (PCCHAR, FCHAR, FSHORT, FLONG, PLUID_AND_ATTRIBUTES,PSECURITY_IMPERSONATION_LEVEL, PSID_AND_ATTRIBUTES, PTOKEN_TYPE, PTOKEN_STATISTICS): Add typedefs. (CCHAR): Correct typedef. (PROCESS_SET_SESSIONID, SECURITY_*,SECTION_MAP_EXECUTE): Add defines. * README.w32api: Correct spelling error.
2002-06-24* fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes.Christopher Faylor
* fhandler_socket.cc (fhandler_socket.cc::fstat): Set S_IFSOCK.
2002-06-24* lib/_cygwin_S_IEXEC.cc: Remove obsolete file.Christopher Faylor
2002-06-24Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout.Christopher Faylor
* sys/ipc.h: Remove. * sys/shm.h: Remove. * cygwin_ipc.h: New file. * cygwin_shm.h: New file.
2002-06-23* cygwin.sc: Add recent changes from ld sources.Christopher Faylor
* winsup.h: Move #ifdef EXPCGF code into "winbase.h". * winbase.h: #ifdef EXPCGF code moved here from "winsup.h".
2002-06-232002-06-12 Thomas Pfaff <tpfaff@gmx.net>Robert Collins
* thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to cleanup_stack. * thread.cc (pthread::pthread): Ditto. (pthread::create): Fixed mutex verification. (pthread::push_cleanup_handler): Renamed cleanup_handlers to cleanup_stack. Mutex calls removed, used InterlockedExchangePointer instead. (pthread::pop_cleanup_handler): Renamed cleanup_handlers to cleanup_stack. (pthread::pop_all_cleanup_handlers): Ditto. (__pthread_once): Check state first and return if already done. (__pthread_join): DEADLOCK test reverted to __pthread_equal call. (__pthread_detach): Unlock mutex before deletion.
2002-06-22* Makefile.in (cygrun.exe): Move -lgcc where it will do some good.Christopher Faylor
2002-06-22* Makefile.in (cygrun.exe): Use -lgcc when linking.Christopher Faylor
2002-06-21* what.texinfo: Fix typo.Christopher Faylor
2002-06-21 * syscalls.cc (stat64_to_stat32): Correctly evaluate st_rdev.Corinna Vinschen
(fstat64): Set st_rdev to same value as st_dev. (stat_worker): Ditto.
2002-06-21 * security.cc (alloc_sd): Carefully check owner_sid again after tryingCorinna Vinschen
SIDs from cygheap.
2002-06-21 * security.cc (alloc_sd): Remove unnecessary retrieval of owner name.Corinna Vinschen
Check uid for current user first and use SIDs from cygheap if so. Set errno to EINVAL if user SID isn't retrievable. Just print user SID as debug output. Don't bail out if group SID isn't retrievable. Change debug output appropriately.
2002-06-21* errno.cc: Change text description for EBADF throughout.Christopher Faylor