summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * common.din (wcstold): Export.Corinna Vinschen2015-02-044-1/+10
| | | | * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* *** empty log message ***Corinna Vinschen2015-02-031-0/+2
|
* * mkvers.sh: Automate generating the copyright date in the versionCorinna Vinschen2015-02-033-4/+10
| | | | | resource. * winver.rc: Ditto.
* * Makefile.in (VERSION_OFILES): New variable containing object filesCorinna Vinschen2015-01-282-12/+18
| | | | | | | | with version information. Use throughout. (clean): Drop winver_stamp. (version.cc winver.o): Drop empty rule. (winver_stamp): Convert to rule targeting version.cc and winver.o directly. Drop touching winver_stamp. Fix typo.
* *** empty log message ***Corinna Vinschen2015-01-271-1/+1
|
* Fix entry headerCorinna Vinschen2015-01-241-1/+1
|
* * uname.cc (uname): Shorten "WOW64" to "WOW" to account for the newCorinna Vinschen2015-01-242-2/+7
| | | | Windows 10 OS version "10.0" starting with preview build 9926.
* *** empty log message ***Corinna Vinschen2015-01-231-0/+3
|
* * net.cc (cygwin_inet_pton): Declare.Corinna Vinschen2015-01-232-7/+120
| | | | | | (gethostby_specials): New function. (gethostby_helper): Change returned addrtype in 4-to-6 case. (gethostbyname2): Call gethostby_specials.
* * fhandler.h (class fhandler_process): Add fd_type member.Corinna Vinschen2015-01-225-12/+78
| | | | | | | | | | | | | | | | | * fhandler_process.cc (process_tab): Fix indentation. (fhandler_process::exists): Rely on format_process_fd returning file type in fd_type. (struct process_fd_t): Add fd_type member. (fhandler_process::fill_filebuf): Allow format_process_fd to set this->fd_type member. (format_process_fd): Fix path evaluation to allow recognizing trailing path components. Fix check for file descriptor path component. Return virt_symlink in fd_type if no trailing path compenents exist, return virt_fsdir otherwise and copy full resulting path into destbuf. * path.cc (path_conv::check): If /proc/$PID/fd symlink has trailing path components, reparse resulting path as if it's the incoming path. Add comment to wail over the outdated and hackish check method, and to explain what we do here.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Allow fetching gid,Corinna Vinschen2015-01-212-21/+56
| | | | home, shell and gecos info from NT4 domain.
* * sec_auth.cc (get_logon_server): Constify domain parameter.Corinna Vinschen2015-01-213-4/+9
| | | | * security.h (get_logon_server): Same in prototype.
* * common.din (sockatmark): Export.Corinna Vinschen2015-01-205-3/+27
| | | | | * net.cc (sockatmark): New function. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* *** empty log message ***Corinna Vinschen2015-01-201-0/+6
|
* * cygserver_ipc.h (ipc_retval): Add default constructor.Corinna Vinschen2015-01-192-2/+23
| | | | | | (class thread): struct->class. Add prototypes for new private methods dup_signal_arrived and close_signal_arrived. Implement constructor and destructor.
* * gendef: Export _sigbe on 64 bit as well.Corinna Vinschen2015-01-165-9/+44
| | | | | | | | | | | | * malloc_wrapper.cc (free): In malloc_printf, call caller_return_address instead of __builtin_return_address. (malloc): Ditto. (realloc): Ditto. (calloc): Ditto. * miscfuncs.cc (__caller_return_address): New function. * miscfuncs.h (caller_return_address): New macro calling __caller_return_address. (__caller_return_address): Add prototype.
* *** empty log message ***Corinna Vinschen2015-01-141-0/+3
|
* * uinfo.cc (fetch_windows_home): Disable fetching from homeDrive orCorinna Vinschen2015-01-142-1/+14
| | | | usri3_home_dir_drive. Add comment.
* * environ.cc (renv_arr): Drop variables not usually in a WindowsCorinna Vinschen2015-01-142-22/+14
| | | | | environment and all variables being uppercase anyway. But keep TMP and TEMP for paranoia.
* * environ.cc (build_env): When merging the user's Windows environment,Corinna Vinschen2015-01-142-3/+25
| | | | | explicitely skip the variables needing conversion to avoid collisions. Extend comment to explain.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Drop code fromCorinna Vinschen2015-01-132-16/+15
| | | | | | 2014-11-17, always prepending domain to NT SERVICE accounts when searching by name. Fix test expression to allow fully qualified names for NT SERVICE accounts. Extend comment to explain a bit.
* copyright fixCorinna Vinschen2015-01-131-1/+1
|
* * minires-os-if.c (cygwin_query): Change questions into answers.Corinna Vinschen2015-01-122-0/+11
|
* * cygheap.h (cygheap_pwdgrp::get_shell): Add sid to argument list.Corinna Vinschen2015-01-083-42/+84
| | | | | | | | | | | | | | | (cygheap_pwdgrp::get_gecos): Ditto. * uinfo.cc (fetch_windows_home): Accept cyg_ldap and PUSER_INFO_3 arguments, and fetch db home dir values right here. (fetch_from_path): Accept cyg_ldap, PUSER_INFO_3 pointers and sid arguments. Add '%H' format specifier to fetch Windows home dir in POSIX notation. (cygheap_pwdgrp::get_home): Accommodate changes to fetch_windows_home and fetch_from_path. (cygheap_pwdgrp::get_shell): Ditto. (cygheap_pwdgrp::get_gecos): Ditto. (pwdgrp::fetch_account_from_windows): Accommodate sid argument to cygheap_pwdgrp::get_shell and cygheap_pwdgrp::get_gecos.
* *** empty log message ***Corinna Vinschen2015-01-081-0/+9
|
* * include/cygwin/socket.h (struct cmsghdr): Redefine cmsg_len as typeCorinna Vinschen2015-01-082-2/+10
| | | | size_t. Add comment to explain why.
* * localtime.cc (__cygwin_gettzoffset): New function for access fromCorinna Vinschen2015-01-082-0/+31
| | | | | newlib. (__cygwin_gettzname): Ditto.
* * localtime.cc (tzload): Fix loading latest timezone offsets intoCorinna Vinschen2015-01-073-2747/+2769
| | | | | | tzinfo from zoneinfo files. Add comment to explain what we do. (tzparse): Add more comments to explain in case of loading timezone offset from other sources.
* * common.din (__fbufsize, __flbf, __fpending, __freadable, __freading,Yaakov Selkowitz2014-12-184-1/+56
| | | | | | | | | | __fsetlocking, __fwritable, __fwriting, clearerr_unlocked, feof_unlocked, ferror_unlocked, fflush_unlocked, fgetc_unlocked, fgets_unlocked, fgetwc_unlocked, fgetws_unlocked, fileno_unlocked, fputc_unlocked, fputs_unlocked, fputwc_unlocked, fputws_unlocked, fread_unlocked, fwrite_unlocked, getwc_unlocked, getwchar_unlocked, putwc_unlocked, putwchar_unlocked): Export. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * path.cc (find_fast_cwd): Point to problem reporting web site ratherCorinna Vinschen2014-12-162-2/+7
| | | | than to mailing list.
* * path.cc (warn_msdos): Slightly reformat.Corinna Vinschen2014-12-162-9/+21
| | | | | (find_fast_cwd): Change warning message to urge an update before reporting the problem.
* *** empty log message ***Corinna Vinschen2014-12-151-0/+3
|
* * winver.rc (LegalCopyright): Fix belatedly (uh-oh).Corinna Vinschen2014-12-102-1/+5
|
* * environ.cc (regopt): Remove function.Corinna Vinschen2014-12-083-44/+9
| | | | | | (environ_init): Drop undocumented feature to read application-specific environment variables from the registry. * include/cygwin/version.h (CYGWIN_INFO_PROGRAM_OPTIONS_NAME): Remove.
* * environ.cc (build_env): Remove loquacious debug statements.Corinna Vinschen2014-12-062-2/+4
|
* * common.din (__bsd_qsort_r): Add.Yaakov Selkowitz2014-12-053-1/+10
| | | | | (qsort_r): Add. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* *** empty log message ***Corinna Vinschen2014-12-031-0/+18
|
* Revert accidental checkinCorinna Vinschen2014-12-021-1/+0
|
* * flock.cc (create_lock_in_parent): Make lf_obj handle inheritable.Corinna Vinschen2014-12-023-2/+19
| | | | | | | Explain why. (lockf_t::create_lock_obj): Use FALSE, rather than 0 for BOOL argument. (lockf_t::del_lock_obj): Check if NtSetEvent succeeded and print system message if not.
* * uinfo.cc (fetch_windows_home): New function fetching Windows-compliantCorinna Vinschen2014-12-023-14/+57
| | | | | | | | | | | home directory. Include longish comment to explain what we're doing. (cygheap_pwdgrp::get_home): Take additional sid parameter. In NSS_SCHEME_WINDOWS case, call fetch_windows_home to create home directory. (pwdgrp::fetch_account_from_windows): Call cygheap_pwdgrp::get_home with additional sid argument. * cygheap.h (cygheap_pwdgrp::get_home): Align declaration to above change.
* * uinfo.cc (cygheap_user::ontherange): Fix order of fallbacks creatingCorinna Vinschen2014-12-022-25/+41
| | | | HOMEDRIVE/HOMEPATH values to be Windows-compliant. Add comments.
* * autoload.cc (CreateProfile): Import.Corinna Vinschen2014-12-028-109/+145
| | | | | | | | | | | | | | | | | | | (LoadUserProfileW): Import. * registry.cc (get_registry_hive_path): Move to sec_auth.cc. (load_registry_hive): Remove. * registry.h (get_registry_hive_path): Drop declaration. (load_registry_hive): Ditto. * sec_auth.cc (get_user_profile_directory): Moved from registry.cc and renamed. Take third parameter with buffer length. (load_user_profile): New function taking over for load_registry_hive. Use official functions to load profile. If profile is missing, create it on Vista and later. * security.h (get_user_profile_directory): Declare. (load_user_profile): Declare. * syscalls.cc (seteuid32): Replace call to load_registry_hive with call to load_user_profile. * uinfo.cc (cygheap_user::env_userprofile): Replace call to get_registry_hive_path with call to get_user_profile_directory.
* * uinfo.cc (fetch_from_description): Make static.Corinna Vinschen2014-12-022-2/+7
| | | | (fetch_from_path): Ditto.
* * autoload.cc (CreateEnvironmentBlock): Import.Corinna Vinschen2014-12-027-10/+137
| | | | | | | | | | | | | | (DestroyEnvironmentBlock): Import. * environ.cc (env_compare): New static bsearch comparison function. (build_env): Add parameter taking a user token. If token is non-NULL, fetch user's default Windows environment and merge it into the resulting environment. Explain what we do in preceeding comment. * environ,h (build_env): Align prototype to above change. * external.cc (create_winenv): Call build_env with NULL token. * spawn.cc (child_info_spawn::worker): When spawning new process under another user account, call build_env with new token to allow merging user's default Windows environment. * winlean.h (_USERENV_): Define to override dllimport.
* * spawn.cc (child_info_spawn::worker): Fix formatting.Corinna Vinschen2014-12-022-2/+6
|
* * sec_auth.cc (str2lsa): Remove.Corinna Vinschen2014-12-022-20/+10
| | | | | (str2buf2lsa): Remove. (lsaauth): Call RtlInitAnsiString instead of str2lsa and str2buf2lsa.
* * cygheap.cc (init_cygheap::init_installation_root): Fix typo inCorinna Vinschen2014-12-022-1/+6
| | | | comment.
* * autoload.cc (IdnToAscii): Use simpler, equivalent LoadDLLfuncEx.Corinna Vinschen2014-12-022-2/+7
| | | | (IdnToUnicode): Ditto.
* * wincap.cc (wincap_minimal): Remove.Corinna Vinschen2014-12-013-12/+43
| | | | | | | (wincaps): Drop has_physical_mem_access. (wincap_10): New global wincaps to support Windows 10. (wincapc::init): Use wincap_10 for version >= 6.4 and as default. * wincap.h (wincaps::has_physical_mem_access): remove.
* * cygheap.cc (init_cygheap::init_tls_list): Accommodate threadlistCorinna Vinschen2014-11-288-69/+202
| | | | | | | | | | | | | | | | | | | | | | | | having a new type threadlist_t *. Convert commented out code into an #if 0. Create thread mutex. Explain why. (init_cygheap::remove_tls): Drop timeout value. Always wait infinitely for tls_sentry. Return mutex HANDLE of just deleted threadlist entry. (init_cygheap::find_tls): New implementation taking tls pointer as search parameter. Return threadlist_t *. (init_cygheap::find_tls): Return threadlist_t *. Define ix as auto variable. Drop exception handling since crash must be made impossible due to correct synchronization. Return with locked mutex. * cygheap.h (struct threadlist_t): Define. (struct init_cygheap): Convert threadlist to threadlist_t type. (init_cygheap::remove_tls): Align declaration to above change. (init_cygheap::find_tls): Ditto. (init_cygheap::unlock_tls): Define. * cygtls.cc (_cygtls::remove): Unlock and close mutex when finishing. * exceptions.cc (sigpacket::process): Lock _cygtls area of thread before accessing it. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * sigproc.cc (sig_send): Ditto. * thread.cc (pthread::exit): Ditto. Add comment. (pthread::cancel): Ditto.