summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * cygheap.cc (_crealloc): Avoid memcpy when _cmalloc returns NULL.Christopher Faylor2007-11-232-2/+9
|
* 2007-11-21 Kevin Conaway <kevin_conaway@users.sourceforge.net>Chris Sutcliffe2007-11-222-0/+12
| | | | * include/wincrypt.h (CryptProtectData, CryptUnprotectData): define.
* 2007-11-21 elsapo <elsapo@users.sourceforge.net>Chris Sutcliffe2007-11-222-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/wincrypt.h (CERT_NAME_STR_COMMA_FLAG, CERT_NAME_STR_DISABLE_IE4_UTF8_FLAG, CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG, CMC_ADD_ATTRIBUTES, CMC_ADD_EXTENSIONS, X509_CERT_PAIR, X509_CERTIFICATE_TEMPLATE, X509_CROSS_CERT_DIST_POINTS, CMC_DATA, X509_NAME_CONSTRAINTS, X509_POLICY_CONSTRAINTS, X509_POLICY_MAPPINGS, CMC_RESPONSE, CMC_STATUS, X509_ALGORITHM_IDENTIFIER, X509_ALTERNATE_NAME, PKCS_ATTRIBUTE, X509_AUTHORITY_INFO_ACCESS, X509_AUTHORITY_KEY_ID, X509_AUTHORITY_KEY_ID2, szOID_BASIC_CONSTRAINTS, X509_BASIC_CONSTRAINTS2, X509_BIOMETRIC_EXT, X509_BITS, X509_CERT, X509_CERT_CRL_TO_BE_SIGNED, X509_CERT_POLICIES, X509_CERT_REQUEST_TO_BE_SIGNED, X509_CERT_TO_BE_SIGNED, X509_CHOICE_OF_TIME, PKCS_CONTENT_INFO, PKCS_CONTENT_INFO_SEQUENCE_OF_ANY, X509_CRL_DIST_POINTS, RSA_CSP_PUBLICKEYBLOB, PKCS_CTL, X509_DSS_PARAMETERS, X509_DSS_SIGNATURE, X509_ECC_SIGNATURE, X509_ENHANCED_KEY_USAGE, X509_ENUMERATED, X509_EXTENSIONS, X509_INTEGER, X509_ISSUING_DIST_POINT, X509_KEY_ATTRIBUTES, X509_KEY_USAGE, X509_KEY_USAGE_RESTRICTION, X509_KEYGEN_REQUEST_TO_BE_SIGNED, X509_LOGOTYPE_EXT, X509_MULTI_BYTE_INTEGER, X509_MULTI_BYTE_UINT, X509_NAME, X509_NAME_VALUE, X509_OBJECT_IDENTIFIER, X509_OCTET_STRING, X509_PUBLIC_KEY_INFO, PKCS_RC2_CBC_PARAMETERS, CNG_RSA_PUBLIC_KEY_BLOB, PKCS_RSA_SSA_PSS_PARAMETERS, PKCS_RSAES_OAEP_PARAMETERS, ECC_CMS_SHARED_INFO, X509_SEQUENCE_OF_ANY, PKCS7_SIGNER_INFO, CMS_SIGNER_INFO, PKCS_SMIME_CAPABILITIES, PKCS_TIME_REQUEST, X509_UNICODE_NAME, X509_UNICODE_NAME_VALUE, PKCS_UTC_TIME, OCSP_SIGNED_REQUEST, OCSP_REQUEST, OCSP_RESPONSE, OCSP_BASIC_SIGNED_RESPONSE, OCSP_BASIC_RESPONSE, CRL_REASON_UNSPECIFIED, CRL_REASON_KEY_COMPROMISE, CRL_REASON_CA_COMPROMISE, CRL_REASON_AFFILIATION_CHANGED, CRL_REASON_SUPERSEDED, CRL_REASON_CESSATION_OF_OPERATION, CRL_REASON_CERTIFICATE_HOLD, CRL_REASON_REMOVE_FROM_CRL, CRYPT_ENCODE_ALLOC_FLAG, CRYPT_UNICODE_NAME_ENCODE_DISABLE_CHECK_TYPE_FLAG, CRYPT_UNICODE_NAME_ENCODE_ENABLE_T61_UNICODE_FLAG, CRYPT_UNICODE_NAME_ENCODE_ENABLE_UTF8_UNICODE_FLAG, CRYPT_UNICODE_NAME_ENCODE_FORCE_UTF8_UNICODE_FLAG, szOID_APPLICATION_CERT_POLICIES, szOID_APPLICATION_POLICY_CONSTRAINTS, szOID_APPLICATION_POLICY_MAPPINGS, szOID_AUTHORITY_INFO_ACCESS, szOID_AUTHORITY_KEY_IDENTIFIER, szOID_AUTHORITY_KEY_IDENTIFIER2, X509_BASIC_CONSTRAINTS, szOID_BIOMETRIC_EXT, szOID_CERT_EXTENSIONS, szOID_CERT_POLICIES, szOID_CERTIFICATE_TEMPLATE, szOID_CRL_NUMBER, szOID_CROSS_CERT_DIST_POINTS, szOID_DELTA_CRL_INDICATOR, szOID_ENROLLMENT_NAME_VALUE_PAIR, szOID_FRESHEST_CRL, szOID_ISSUING_DIST_POINT, szOID_NAME_CONSTRAINTS, szOID_CRL_DIST_POINTS, szOID_CRL_REASON_CODE, szOID_CRL_VIRTUAL_BASE, szOID_ECC_PUBLIC_KEY, szOID_ECDSA_SPECIFIED, szOID_ENHANCED_KEY_USAGE, szOID_ISSUER_ALT_NAME, szOID_ISSUER_ALT_NAME2, szOID_KEY_ATTRIBUTES, szOID_KEY_USAGE, szOID_KEY_USAGE_RESTRICTION, szOID_LOGOTYPE_EXT, szOID_POLICY_CONSTRAINTS, szOID_POLICY_MAPPINGS, szOID_RSA_SSA_PSS, szOID_RSAES_OAEP, szOID_SUBJECT_ALT_NAME, szOID_SUBJECT_ALT_NAME2, szOID_SUBJECT_KEY_IDENTIFIER, CMC_ADD_ATTRIBUTES_INFO, PCMC_ADD_ATTRIBUTES_INFO, CMC_ADD_EXTENSIONS_INFO, PCMC_ADD_EXTENSIONS_INFO, CERT_ALT_NAME_ENTRY, PCERT_ALT_NAME_ENTRY, CERT_ALT_NAME_INFO, PCERT_ALT_NAME_INFO, CERT_NAME_VALUE, PCERT_NAME_VALUE, CERT_POLICY_QUALIFIER_INFO, PCERT_POLICY_QUALIFIER_INFO, CERT_POLICY_CONSTRAINTS_INFO, PCERT_POLICY_CONSTRAINTS_INFO, CERT_POLICY_MAPPINGS_INFO, PCERT_POLICY_MAPPINGS_INFO, CERT_POLICY_MAPPING, PCERT_POLICY_MAPPING, CryptDecodeObjectEx, CryptEncodeObject, CryptEncodeObjectEx): define.
* 2007-11-21 Brian Dessent <dessent@users.sourceforge.net>Chris Sutcliffe2007-11-222-0/+7
| | | | * include/winbase.h (CheckTokenMembership): define.
* revert premature checkinChristopher Faylor2007-11-081-49/+4
|
* revert premature checkinChristopher Faylor2007-11-084-67/+21
|
* * dllfixdbg: Eliminate extra objcopy step.Christopher Faylor2007-11-088-30/+121
|
* * dllfixdbg: Pass --only-keep-debug to objcopy, instead ofCorinna Vinschen2007-11-082-5/+8
| | | | selecting the sections manually.
* * thread.cc (pthread_key_create): Drop check for incoming valid object.Corinna Vinschen2007-11-062-5/+4
|
* * shm.cc: Include sync.hCorinna Vinschen2007-11-062-21/+68
| | | | | | | | | | | | | | | | (struct shm_shmid_list): Add ref_count member. (struct shm_attached_list): Remove hdl and size members. Add a parent member pointing to referenced shm_shmid_list entry. (shm_guard): New muto. (SLIST_LOCK): Define. (SLIST_UNLOCK): Define. (fixup_shms_after_fork): Use hdl and size members of parent shm_shmid_list entry. (shmat): Access sequential bookkeeping lists in a thread safe way. Accommodate change in list element layout. Align comments. (shmctl): Ditto. (shmdt): Ditto. (shmget): Ditto.
* * bsd_helper.cc (tunable_params): Add kern.ipc.shm_allow_removed asCorinna Vinschen2007-11-054-2/+20
| | | | | | | | bool parameter. * cygserver.conf: Add a description for the kern.ipc.shm_allow_removed parameter. * sysv_shm.cc (shminit): Set shm_allow_removed variable according to kern.ipc.shm_allow_removed setting.
* * shm.cc (shmctl): On IPC_RMID don't unmap views and don't close handleCorinna Vinschen2007-11-052-10/+13
| | | | if the map is still referenced to emulate Linux and BSD behaviour.
* * shm.cc (shmctl): On IPC_RMID also unmap all views on shared memCorinna Vinschen2007-11-052-0/+18
| | | | as well as connected shm_attached_list entry.
* * net.cc (load_ipv6_funcs): Use MAX_PATH instead of CYG_MAX_PATH.Corinna Vinschen2007-10-312-86/+90
| | | | | (cygwin_getaddrinfo): Simplify formatting. (cygwin_getnameinfo): Ditto.
* * external.cc (get_cygdrive_info): Make inline.Corinna Vinschen2007-10-313-13/+12
| | | | | | | (get_cygdrive_prefixes): Remove. (cygwin_internal): Call get_cygdrive_info with NULL flag parameters instead of get_cygdrive_prefixes. * path.cc (mount_info::get_cygdrive_info): Allow NULL flag parameters.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't removeCorinna Vinschen2007-10-303-3/+11
| | | | | | write bits for directories with R/O attribute. (fhandler_base::fhaccess): Don't shortcircuit R/O attribute with W_OK scenarios for directories.
* * cygheap.h (struct cwdstuff): Drop hash member. Drop get_hash,Corinna Vinschen2007-10-236-186/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | get_initial, and fixup_after_exec declarations. Convert win32 to UNICODE_STRING. (cwdstuff::get_drive): Convert win32 path in current codepage. (cwdstuff::set): Take native NT path. * ntdll.h (struct _TEB): Typedef. * path.cc (mount_info::conv_to_posix_path): Add variant taking wide char DOS paths. (symlink_info::posixify): Simplify concatenating cwd and relative path. (hash_path_name): Drop special relative path handling. (chdir): Drop special "drive only" handling. Call cwdstuff::set with native path. (cwdstuff::get_hash): Remove. (windows_system_directory): Remove. (_upp): Remove. (get_user_proc_parms): Make inline. Get PEB pointer by calling NtCurrentTeb. (cwdstuff::init): Simplify. (cwdstuff::set): Rework to handle incoming native NT path. Workaround a Vista problem with CWD handle in the user process parameter block. (cwdstuff::get): Simplify locking. Accommodate type change of win32. * shared_info.h (mount_info): Add declaration for new conv_to_posix_path method. * strfuncs.cc (sys_wcstombs): Return correct length of created multi-byte string.
* * fhandler_disk_file.cc (__DIR_mounts::eval_ino): Make fname big enoughCorinna Vinschen2007-10-192-2/+7
| | | | to allow multibyte chars.
* * fhandler.cc (fhandler_base::open): Open native symlinks withCorinna Vinschen2007-10-182-30/+43
| | | | FILE_OPEN_REPARSE_POINT flag. Fix typo in comment.
* * include/sys/param.h (MAXPATHLEN): Define as PATH_MAX.Corinna Vinschen2007-10-182-4/+7
|
* * fhandler.cc (is_at_eof): Rewrite using NT functions.Corinna Vinschen2007-10-154-74/+108
| | | | | | | | | | | | | | (off_current): New static variable. (off_append): Ditto. (fhandler_base::raw_write): Use NtWriteFile. Accommodate O_APPEND here. (fhandler_base::write): Drop O_APPEND hack. Use NT functions. (fhandler_base::lseek): Rewrite using NT functions. * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Add space in debug output. (fhandler_disk_file::ftruncate): Ditto. * ntdll.h (STATUS_DISK_FULL): Define. (FILE_USE_FILE_POINTER_POSITION): Define. (FILE_WRITE_TO_END_OF_FILE): Define.
* * ntdll.h (STATUS_END_OF_FILE): Define.Corinna Vinschen2007-10-133-18/+41
| | | | | | | * path.cc (symlink_info::check_shortcut): Use NT function to get file size. Reintroduce checking file size before reading it. Eliminiate close_it label. (symlink_info::check_sysfile): Check for EOF condition.
* * path.cc (basename): Return pointer into the path argument itself.Corinna Vinschen2007-10-112-15/+27
| | | | | Shrink buf to 4 bytes. Use buf only for border cases. (dirname): Ditto.
* * path.cc (struct symlink_info): Change size of contents member toCorinna Vinschen2007-10-103-230/+301
| | | | | | | | | | | | | | | | | | | | | | be able to keep SYMLINK_MAX sized strings. (symlink_worker): Rework for long path names. When writing windows shortcuts, store pathname additionally "hidden" after the actual shortcut data to workaround size limitations of the description field. (symlink_info::check_shortcut): Drop file name parameter. Drop max file size check. Use NT functions. Use appended full path if available, description otherwise. Check symlink string length for not exceeding SYMLINK_MAX. Don't close file here. (symlink_info::check_sysfile): Drop file name parameter. Use NT functions. Check symlink string length for not exceeding SYMLINK_MAX. Don't close file here. (symlink_info::check_reparse_point): Drop file name parameter. Drop useless length checks. Allow SYMLINK_MAX length symlink strings. Don't close file here. (symlink_info::posixify): Allow SYMLINK_MAX length symlink strings. (symlink_info::check): Turn around checking for symlink file attributes. Use NT functions. Close symlink file here. * include/limits.h (PATH_MAX): Define as 32760. Change comment. (SYMLINK_MAX): Define as PATH_MAX - 1.
* * fhandler_socket.cc (fhandler_socket::bind): Open file for deletion,Corinna Vinschen2007-10-102-17/+31
| | | | | | too. Don't write to file and especially don't close handle if file couldn't be created. Set delete disposition if writing failed, instead of calling unlink_nt.
* 2007-10-03 Jiri Malak <Jiri.Malak@iol.cz>Chris Sutcliffe2007-10-033-1/+7
| | | | | * include/rpcndr.h: Missing NdrClientCall2 entry. * lib/rpcrt4.def: Ditto.
* 2007-10-03 Frank Fesevur <ffes@users.sourceforge.net>Chris Sutcliffe2007-10-032-3/+9
| | | | * lib/scnsave.c: Multi-monitor support.
* 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>Chris Sutcliffe2007-10-032-5/+9
| | | | * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
* 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>Chris Sutcliffe2007-10-038-48/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size' from '_fsize_t' to '__int64' to be consistent with the other ...64 structures and the value set there is 8 bytes not 4. Add guard for both as the are only used by functions available from 6.1 on. * include/malloc.h (_HEAP_MAXREQ): Define. (_aligned_offset_recalloc): Define. (_aligned_recalloc()): Define. * include/math.h: fixed a typo in a comment. (atanhf): Fixed declaration. * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t' to '__int64' to be consistent with the other ...64 structures and the value set there is 8 bytes not 4. Added guard as this function is only used by functions available from 6.1 on. * include/sys/stat.h: some members of 'stat' were declared with types with a prefixed underscore, while the ones without the underscore should have been used. Added guard to '__stat64' as it is only used by functions available from 6.1 on. Added the wide character versions of the exec()/spawn() family for completion (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to '_mode_t' * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member from 'long' to 'time_t' (__timeb64): moved declaration of structure directly before the declaration of the function '_ftime64()', so it is guarded as well * include/sys/utime.h (__utimbuf64): moved declaration of structure directly before the declaration of the functions using it, so it is guarded as well
* * ntdll.h (struct _FILE_COMPRESSION_INFORMATION): Align with definitionCorinna Vinschen2007-09-273-4/+13
| | | | | | in w32api / MSDN. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Accommodate change to struct _FILE_COMPRESSION_INFORMATION.
* * termios.cc (setspeed): Support new baud rates introduced 2007-02-05.Corinna Vinschen2007-09-262-0/+14
|
* * faq-what.xml: Remove paragraph about and link to stoneage oldCorinna Vinschen2007-09-252-7/+5
| | | | history.html file.
* Committed as obvious:Danny Smith2007-09-232-1/+7
| | | | | | | 2007-09-24 David C. Daeschler <daveregs@rsaisp.com> * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l' case. Add missing break in 's'/LEN_S case.
* * ntdll.h (STATUS_OBJECT_NAME_INVALID): Define.Corinna Vinschen2007-09-202-0/+5
|
* * mmap.cc (fh_disk_file): Delete as global static variable and...Corinna Vinschen2007-09-182-9/+18
| | | | | | | (mmap64): ...define as local pointer to make mmap thread-safe. Accommodate throughout. Only initialize fh_disk_file after file could be opened with GENERIC_EXECUTE access. Call fstat_by_handle instead of fstat to avoid overhead.
* * security.cc (set_file_sd): Open file with FILE_OPEN_FOR_BACKUP_INTENTCorinna Vinschen2007-09-182-1/+7
| | | | too.
* * path.cc (symlink_info::check): Check for STATUS_OBJECT_NAME_INVALID.Corinna Vinschen2007-09-182-2/+17
| | | | Add comment.
* * fhandler.cc (fhandler_base::open): Partly revert change fromCorinna Vinschen2007-09-172-1/+17
| | | | | 2007-08-24: Call has_acls to avoid permission problems getting a handle to a file on a remote share. Add comment.
* * include/cygwin/config.h: Conditionalize inline __getreent()Brian Dessent2007-09-082-0/+7
| | | | definition on _COMPILING_NEWLIB.
* * include/cygwin/config.h (__getreent): Define inline version.Brian Dessent2007-09-072-0/+25
|
* * include/sys/stdio.h (_flockfile): Don't try to lock a FILEBrian Dessent2007-09-062-3/+16
| | | | | | that has the __SSTR flag set. (_ftrylockfile): Likewise. (_funlockfile): Likewise.
* * configure: Regenerate.Christopher Faylor2007-08-312-1685/+2277
|
* 2007-08-31 Dave Korn <dave.korn@artimi.com>Dave Korn2007-08-312-1/+6
| | | | | * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum call so that it will automatically size returned buffer sufficiently.
* Make snprintf() and vsnprintf() conform to C99.Keith Marshall2007-08-256-26/+41
|
* * syscalls.cc (open): Don't follow symlinks if O_EXCL is given.Corinna Vinschen2007-08-242-2/+7
|
* * dll.sgml: myprog.ca -> myprog.cChristopher Faylor2007-08-242-1/+5
|
* * ntdll.h (STATUS_NO_SUCH_FILE): Define.Corinna Vinschen2007-08-233-31/+84
| | | | | | * path.cc (get_nt_native_path): Reset upath.Length to 0 on each invocation. (symlink_info::check): Use NT native functions.
* * uinfo.cc (pwdgrp::load): Use NT native functions.Corinna Vinschen2007-08-212-36/+57
|
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Rewrite checkingCorinna Vinschen2007-08-212-23/+23
| | | | | for executable file magic using a thread safe method and re-enable this code.
* * syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct.Corinna Vinschen2007-08-212-1/+4
|