]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago * exception.h (exception::exception): Install vectored exception
Corinna Vinschen [Mon, 3 Mar 2014 15:38:59 +0000 (15:38 +0000)]
* exception.h (exception::exception): Install vectored exception
handler rather than vectored continue handler.

10 years ago * sec_helper.cc (cygpsid::get_id): Move Samba SID->uid/gid mapping
Corinna Vinschen [Mon, 3 Mar 2014 12:03:47 +0000 (12:03 +0000)]
* sec_helper.cc (cygpsid::get_id): Move Samba SID->uid/gid mapping
from get_sids_info here.
(get_sids_info): Vice versa.
* security.cc (convert_samba_sd): New static function to map a Samba
security descriptor to a security descriptor with UNIX users and groups
converted to Windows SIDs per RFC 2307 mapping.
(check_file_access): Call convert_samba_sd on Samba security
descriptors.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
Corinna Vinschen [Fri, 28 Feb 2014 19:10:40 +0000 (19:10 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
user info if we're creating a passwd entry.  Add comment.

10 years ago * cygheap.h (cygheap_user::sid): Return reference to cygpsid rather
Corinna Vinschen [Fri, 28 Feb 2014 11:37:02 +0000 (11:37 +0000)]
* cygheap.h (cygheap_user::sid): Return reference to cygpsid rather
than PSID.
(cygheap_user::saved_sid): Ditto.
(cygheap_pwdgrp::cache_t): New type.
(cygheap_pwdgrp::caching): Convert to cache_t.
(cygheap_pwdgrp::nss_db_caching): Change accordingly.
(cygheap_pwdgrp::nss_db_full_caching): New inline method.
* grp.cc (internal_getgroups): Reinvent.  Take cyg_ldap pointer as
third parameter and use throughout.
(getgroups32): Call internal_getgroups.
* pwdgrp.h (internal_getgroups): Declare.
* uinfo.cc (internal_getlogin): Partial rewrite to accommodate having
no connection to the DC.  Give primary group from user token more
weight.  Generate group entries for all groups in the user token if
caching is set to NSS_FULL_CACHING.
(cygheap_pwdgrp::init): Initialize caching to NSS_FULL_CACHING.
(cygheap_pwdgrp::nss_init_line): Handle "db_cache: full".
(pwdgrp::add_account_from_windows): Fix group handling in non-caching
mode.
(pwdgrp::fetch_account_from_windows): Default primary group for the
current user to primary group from user token.  Check for primary
domain first after LookupAccountSid failed.

10 years ago * autoload.cc (CheckTokenMembership): Import.
Corinna Vinschen [Thu, 27 Feb 2014 12:57:27 +0000 (12:57 +0000)]
* autoload.cc (CheckTokenMembership): Import.
* external.cc (cygwin_internal): Call get_uid/get_gid instead of get_id.
* grp.cc (internal_getgrsid): Take additional cyg_ldap pointer.
Forward to pwdgrp::add_group_from_windows.
(internal_getgrnam): Ditto.
(internal_getgrgid): Ditto.
(gr_ent::enumerate_local): Drop ugid_caching bool from call to
pwdgrp::fetch_account_from_windows.
(getgroups32): Rename from internal_getgroups and drop getgroups32 stub.
Drop srchsid parameter and code handling it.  Add local cyg_ldap
instance and forward to internal_getgrXXX.
(getgroups): Call getgroups32.
(get_groups): Add local cyg_ldap instance and forward to
internal_getgrXXX.
(getgrouplist): Ditto.
(setgroups32): Ditto.
* ldap.cc (cyg_ldap::open): Don't call close.  Return true if connection
is already open.
(cyg_ldap::remap_uid): Forward this to internal_getpwsid.
(cyg_ldap::remap_gid): Forward this to internal_getgrsid.
* passwd.cc (internal_getpwsid): Take additional cyg_ldap pointer.
Forward to pwdgrp::add_user_from_windows.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(pg_ent::enumerate_builtin): Drop ugid_caching bool from call to
pwdgrp::fetch_account_from_windows.
(pg_ent::enumerate_sam): Ditto.
(pg_ent::enumerate_ad): Ditto.  Forward local cldap instead.
* pwdgrp.h (internal_getpwsid): Align declaration to above change.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(internal_getgrsid): Ditto.
(internal_getgrgid): Ditto.
(internal_getgrnam): Ditto.
(internal_getgroups): Drop declaration.
(pwdgrp::add_account_from_windows): Align declaration to below change.
(pwdgrp::add_user_from_windows): Ditto.
(pwdgrp::add_group_from_windows): Ditto.
* sec_acl.cc (setacl): Add local cyg_ldap instance and forward to
internal_getpwuid and internal_getgrgid.
(getacl): Add local cyg_ldap instance and forward to cygpsid::get_id.
(aclfromtext32): Add local cyg_ldap instance and forward to
internal_getpwnam and internal_getgrnam.
* sec_helper.cc (cygpsid::get_id): Take additional cyg_ldap pointer.
Forward to internal_getgrsid and internal_getpwsid.
(get_sids_info): Drop ldap_open.  Forward local cldap to
internal_getpwsid and internal_getgrXXX.  Call CheckTokenMembership
rather than internal_getgroups.
* security.h (cygpsid::get_id): Add cyg_ldap pointer, drop default
parameter.
(cygpsid::get_uid): Add cyg_ldap pointer.  Call get_id accordingly.
(cygpsid::get_gid): Ditto.
* uinfo.cc (internal_getlogin): Add local cyg_ldap instance and forward
to internal_getpwXXX and internal_getgrXXX calls.
(pwdgrp::add_account_from_windows): Take additional cyg_ldap pointer.
Forward to pwdgrp::fetch_account_from_windows.
(fetch_posix_offset): Drop ldap_open argument and handling.  Get
cyg_ldap instance as pointer.
(pwdgrp::fetch_account_from_windows): Take additional cyg_ldap pointer.
Use it if it's not NULL, local instance otherwise.  Drop ldap_open.
Drop fetching extended group arguments from AD for speed.

10 years ago * path.cc (find_fast_cwd_pointer): Fix preceeding comment.
Corinna Vinschen [Thu, 27 Feb 2014 10:25:03 +0000 (10:25 +0000)]
* path.cc (find_fast_cwd_pointer): Fix preceeding comment.

10 years agoFix typo
Corinna Vinschen [Wed, 26 Feb 2014 13:16:41 +0000 (13:16 +0000)]
Fix typo

10 years ago* fhandler.h (fhandler_console::scroll_buffer_screen): New function.
Christopher Faylor [Wed, 26 Feb 2014 03:58:37 +0000 (03:58 +0000)]
* fhandler.h (fhandler_console::scroll_buffer_screen): New function.
* fhandler_console.cc (fhandler_console::scroll_buffer_screen): New function.
(fhandler_console::char_command): Use scroll_buffer_screen as appropriate.
(dev_console::scroll_buffer): Remove if 0'ed block.

10 years ago * mkgroup.c (domlist_t): Drop id_offset.
Corinna Vinschen [Mon, 24 Feb 2014 10:51:42 +0000 (10:51 +0000)]
* mkgroup.c (domlist_t): Drop id_offset.
(get_dcname): Remove.
(current_group): Remove.
(enum_unix_groups): Simplify.  Change space to underscore in domain
name.
(enum_local_groups): Simplify to accommodate the fact that it's only
called for foreign machines.
(enum_groups): Ditto.
(print_special_by_sid): Remove.
(print_special_by_name): Remove.
(usage): Align to new code.
(fetch_primary_domain): Remove.
(main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method.
Call enum_local_groups, enum_groups, and enum_unix_groups only for
foreign machines.
* mkpasswd.c (get_dcname): Remove.
(current_user): Remove.
(enum_unix_users): Simplify.  Change space to underscore in domain name.
(enum_users): Simplify to accommodate the fact that it's only
called for foreign machines.
(print_special_by_sid): Remove.
(usage): Align to new code.
(longopts): Add -b/--no-builtin option.
(opts): Add -b option.
(print_special_by_name): Remove.
(enum_std_accounts): Remove.
(fetch_primary_domain): Remove.
(main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method.
Call enum_users and enum_unix_users only for foreign machines.
* utils.xml (mkgroup): Align documentation to new usage.
(mkpasswd): Ditto.

10 years ago * minidumper.cc (minidump): Fix -t option argument handling.
Jon TURNEY [Sun, 23 Feb 2014 11:34:31 +0000 (11:34 +0000)]
* minidumper.cc (minidump): Fix -t option argument handling.

10 years ago* dev_console::scroll_buffer): Reinstate clipping region.
Christopher Faylor [Sun, 23 Feb 2014 03:42:02 +0000 (03:42 +0000)]
* dev_console::scroll_buffer): Reinstate clipping region.

10 years ago* fhandler.h (dev_console::is_fullscreen): Delete.
Christopher Faylor [Sun, 23 Feb 2014 03:38:52 +0000 (03:38 +0000)]
* fhandler.h (dev_console::is_fullscreen): Delete.
(dev_console::scroll_window): Return bool indicating success.
(dev_console::scroll_screen): New function.
(dev_console::clear_screen): New function.
(fhandler_console::clear_screen): Make __reg3.
(fhandler_console::cursor_set): Ditto.
(fhandler_console::cursor_get): Ditto.
(fhandler_console::cursor_rel): Ditto.
* fhandler_console.cc (dev_console::scroll_buffer): Adapt from
fhandler_console.
(fhandler_console::scroll_buffer): Use dev_console function.
(dev_console::is_fullscreen): Delete.
(dev_console::scroll_window): Return true if we cleared the screen.
Shrink/grow buffer first before scrolling to ensure that there is sufficient
space after scrolling.
(fhandler_console::clear_screen): Make reg3, use dev_console function.
(dev_console::clear_screen): New function adapted from fhandler_console.
(fhandler_console::cursor_set): Make __reg3.
(fhandler_console::cursor_rel): Ditto.
(fhandler_console::cursor_get): Ditto.
(fhandler_console::write): Fix "reverse index".

10 years ago * external.cc (cygwin_internal): Add cases for CW_GETNSSSEP,
Corinna Vinschen [Sat, 22 Feb 2014 19:38:12 +0000 (19:38 +0000)]
* external.cc (cygwin_internal): Add cases for CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
* grp.cc (internal_getgrsid_from_db): New function.
* passwd.cc (internal_getpwsid_from_db): New function.
(pg_ent::setent): Add special case for call from mkpasswd/mkgroup.
* pwdgrp.h (internal_getpwsid_from_db): Declare.
(internal_getgrsid_from_db): Declare.
(enum nss_enum_t): Move to include/sys/cygwin.h.
(class pg_ent): Add comment.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix typo in comment.
Change "UNIX" to "Unix" in domain name.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
(enum nss_enum_t): Define here.

10 years ago * pwdgrp.h (pwdgrp::fetch_account_from_windows): Add bool parameter
Corinna Vinschen [Fri, 21 Feb 2014 10:01:00 +0000 (10:01 +0000)]
* pwdgrp.h (pwdgrp::fetch_account_from_windows): Add bool parameter
to declaration, set to true by default.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Add bool parameter
"ugid_caching".  Only add account to ugid_cache if set to true.
* grp.cc (gr_ent::enumerate_local): Call fetch_account_from_windows
with ugid_caching parameter set to false.
* passwd.cc (pg_ent::enumerate_builtin): Ditto.
(pg_ent::enumerate_sam): Ditto.
(pg_ent::enumerate_ad): Ditto.

10 years ago * libm/complex/complex.tex: Fix wrong syntax in documentation.
Corinna Vinschen [Thu, 20 Feb 2014 18:59:10 +0000 (18:59 +0000)]
* libm/complex/complex.tex: Fix wrong syntax in documentation.
* libm/math/math.tex: Ditto.

10 years ago * grp.cc (getgrouplist): Fix previous fix so ret is only set to ngroups
Corinna Vinschen [Thu, 20 Feb 2014 15:46:48 +0000 (15:46 +0000)]
* grp.cc (getgrouplist): Fix previous fix so ret is only set to ngroups
if ngroups isn't too small.

10 years ago*** empty log message ***
Corinna Vinschen [Thu, 20 Feb 2014 13:57:39 +0000 (13:57 +0000)]
*** empty log message ***

10 years ago * grp.cc (get_groups): Don't add gid to list if it's ILLEGAL_GID.
Corinna Vinschen [Thu, 20 Feb 2014 13:55:57 +0000 (13:55 +0000)]
* grp.cc (get_groups): Don't add gid to list if it's ILLEGAL_GID.
(getgrouplist): Return number of groups, just like glibc.

10 years ago * libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
Corinna Vinschen [Thu, 20 Feb 2014 13:32:34 +0000 (13:32 +0000)]
* libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
c->pos to 0.

10 years ago * passwd.cc (pg_ent::setent): Initialize cygheap domain info.
Corinna Vinschen [Wed, 19 Feb 2014 18:29:52 +0000 (18:29 +0000)]
* passwd.cc (pg_ent::setent): Initialize cygheap domain info.
* sec_auth.cc (get_logon_server): Ditto.

10 years ago* Makefile.in: Ignore errors on doc install.
Christopher Faylor [Tue, 18 Feb 2014 19:58:39 +0000 (19:58 +0000)]
* Makefile.in: Ignore errors on doc install.

10 years ago * external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and
Corinna Vinschen [Tue, 18 Feb 2014 19:39:48 +0000 (19:39 +0000)]
* external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and
CW_ENDENT info types.
* grp.cc (setgrent_filtered): New function, called from cygwin_internal.
(getgrent_filtered): Ditto.
(endgrent_filtered): Ditto.
* passwd.cc (pg_ent::setent): Set state explicitely to from_cache.
(pg_ent::getent): Handle the fact that a DC has no SAM and enumerating
local accounts is equivalent to enumerating domain accounts.
(setpwent_filtered): New function, called from cygwin_internal.
(getpwent_filtered): Ditto.
(endpwent_filtered): Ditto.
* pwdgrp.h (setpwent_filtered): Declare.
(getgrent_filtered): Ditto.
(endgrent_filtered): Ditto.
(setpwent_filtered): Ditto.
(getpwent_filtered): Ditto.
(endpwent_filtered): Ditto.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_SETENT, CW_GETENT,
and CW_ENDENT.

10 years ago*** empty log message ***
Christopher Faylor [Tue, 18 Feb 2014 19:02:58 +0000 (19:02 +0000)]
*** empty log message ***

10 years ago * setlsapwd.cc (setlsapwd): Fix conditional expression after breaking
Corinna Vinschen [Tue, 18 Feb 2014 14:53:38 +0000 (14:53 +0000)]
* setlsapwd.cc (setlsapwd): Fix conditional expression after breaking
it on 2014-01-23.

10 years ago * autoload.cc (ldap_abandon): Import.
Corinna Vinschen [Mon, 17 Feb 2014 15:36:33 +0000 (15:36 +0000)]
* autoload.cc (ldap_abandon): Import.
(ldap_result): Import.
(ldap_searchW): Import.
(NetGroupEnum): Import.
(NetLocalGroupEnum): Import.
(NetUserEnum): Import.
* cygheap.h (class cygheap_pwdgrp): Add members enums and enum_tdoms.
(cygheap_pwdgrp::nss_db_enums): New inline method.
(cygheap_pwdgrp::nss_db_enum_tdoms): Ditto.
* cygtls.h (struct _local_storage): Drop unused members pw_pos and
grp_pos.
* grp.cc (grent): New static variable of class gr_ent.
(gr_ent::enumerate_caches): New method.
(gr_ent::enumerate_local): New method.
(gr_ent::getgrent): New method.
(setgrent): Call gr_ent method.
(getgrent32): Ditto.
(endgrent): Ditto.
* ldap.cc (sid_attr): Rename from nfs_attr.
(cyg_ldap::close): Abandon still running asynchronous search.
(cyg_ldap::fetch_ad_account): Reduce filter buffer size.
(cyg_ldap::enumerate_ad_accounts): New method.
(cyg_ldap::next_account): New method.
(cyg_ldap::fetch_posix_offset_for_domain): Reduce filter buffer size.
(cyg_ldap::fetch_unix_sid_from_ad): Ditto.  Fix return value in case
no value has been read.
(cyg_ldap::fetch_unix_name_from_rfc2307): Reduce filter buffer size.
* ldap.h (class cyg_ldap): Add msg_id member.
(cyg_ldap::enumerate_ad_accounts): Declare.
(cyg_ldap::next_account): Declare:
* passwd.cc (pwent): New static variable of class pw_ent.
(pg_ent::clear_cache): New method.
(pg_ent::setent): New method.
(pg_ent::getent): New method.
(pg_ent::endent): New method.
(pg_ent::enumerate_file): New method.
(pg_ent::enumerate_builtin): New method.
(pg_ent::enumerate_sam): New method.
(pg_ent::enumerate_ad): New method.
(pw_ent::enumerate_caches): New method.
(pw_ent::enumerate_local): New method.
(pw_ent::getpwent): New method.
(setpwent): Call pw_ent method.
(getpwent): Ditto.
(endpwent): Ditto.
* pwdgrp.h (class pwdgrp): Define pg_ent, pw_ent and gr_ent as friend
classes.
(pwdgrp::add_account_post_fetch): Declare with extra bool parameter.
(pwdgrp::file_attr): New inline method.
(enum nss_enum_t): Define.
(class pg_ent): Define.
(class pw_ent): Define.
(class gr_ent): Define.
* tlsoffsets.h: Regenerate.
* tlsoffsets64.h: Ditto.
* uinfo.cc (cygheap_pwdgrp::init): Initialize enums and enum_tdoms.
(cygheap_pwdgrp::nss_init_line): Fix typo in preceeding comment.
Handle new "db_enum" keyword.
(pwdgrp::add_account_post_fetch): Take additional `bool lock' parameter
and acquire pglock before adding element to array if lock is true.
(pwdgrp::add_account_from_file): Call add_account_post_fetch with lock
set to true.
(pwdgrp::add_account_from_windows): Ditto in case of caching.
(pwdgrp::fetch_account_from_windows): Handle builtin aliases only
known to the domain controller.  Only call NetLocalGroupGetInfo for
aliases.

10 years ago * miscfuncs.h (NT_readline::close): New function to close handle.
Corinna Vinschen [Sun, 16 Feb 2014 16:02:18 +0000 (16:02 +0000)]
* miscfuncs.h (NT_readline::close): New function to close handle.
(NT_readline::~NT_readline): Call close.
* sec_auth.cc (verify_token): Use constructor to initialize tok_usersid.
* security.h (cygsid::cygsid): Add copy constructor taking cygsid as
source.

10 years ago * dcrt0.cc (dll_crt0_1): Call initial_setlocale before fetching
Corinna Vinschen [Sun, 16 Feb 2014 15:42:40 +0000 (15:42 +0000)]
* dcrt0.cc (dll_crt0_1): Call initial_setlocale before fetching
current user information.

10 years ago* DevNotes: Add entry cgf-000024.
Christopher Faylor [Sun, 16 Feb 2014 01:48:25 +0000 (01:48 +0000)]
* DevNotes: Add entry cgf-000024.
* fhandler.h (dev_console::state): Remove trailing underscore.
(dev_console::args): Ditto.
(dev_console::nargs): Ditto.
(dev_console::info): Eliminate subclass.
(dev_console::dwEnd): New field.
(dev_console::scroll_window): New function.
(dev_console::is_fullscreen): Ditto.
(dev_console::fillin): Rename from fillin_info.
(fhandler_console::scroll_buffer): Rename from scroll_screen.
* fhandler_console.cc: Throughout s/dev_state\.info/dev_state/g.  Accommodate
other name changes.
(dev_console::fillin): Accommodate rename.  Notice max x/y written to.  Forgo
memset if GetConsoleScreenBufferInfo fails.
(fhandler_console::scroll_buffer): Accommodate rename.  Don't treat y
coordinate of zero as top of screen.
(dev_console::is_fullscreen): New function.
(dev_console::scroll_window): Ditto.
(fhandler_console::clear_screen): Just scroll the screen when clearing the
screen in a state where the screen buffer is bigger than the screen.
(fhandler_console::char_command): Try harder to get 'S' and 'T' working in the
presence of a screen buffer.  Use temporary 'n' variable rather than
dev_state.args[0].  Use GNU ?: shortcut method.

10 years ago* pinfo.cc (winpids::add): Always copy pinfo structure when winpid. Fill out
Christopher Faylor [Sat, 15 Feb 2014 04:17:27 +0000 (04:17 +0000)]
* pinfo.cc (winpids::add): Always copy pinfo structure when winpid.  Fill out
dwProcessId explicitly to handle exec from a windows process.
(winpids::enum_processes): Reorganize to iterate over known cygwin pids when
!winpid.  Simplify logic.  Don't do duplicate detection for winpid.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Default to /bin/bash
Corinna Vinschen [Fri, 14 Feb 2014 14:25:19 +0000 (14:25 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Default to /bin/bash
as login shell.

10 years agoFix typo
Corinna Vinschen [Thu, 13 Feb 2014 14:31:03 +0000 (14:31 +0000)]
Fix typo

10 years ago * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): If domain name
Corinna Vinschen [Thu, 13 Feb 2014 14:04:03 +0000 (14:04 +0000)]
* ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): If domain name
has no dot, it's a Netbios name.  Change the search filter expression
accordingly and filter by flatName.  Add comment.
* uinfo.cc (cygheap_domain_info::init):  Gracefully handle NULL
DnsDomainName and DomainSid members in DS_DOMAIN_TRUSTSW strutures.
Add comment.  Fix comment preceeding fetching the mapping server
from registry.
(pwdgrp::fetch_account_from_file): Convert str to a local array.
(fetch_posix_offset): New static function.
(pwdgrp::fetch_account_from_windows): Add debug output in case
LookupAccountSidW fails.  Simplify code by calling fetch_posix_offset
where appropriate.  If LookupAccountSidW fails, check if the SID is
one of the known trusted domains.  If so, create a more informative
account entry.

10 years ago * uinfo.cc (cygheap_pwdgrp::nss_init_line): Explicitely ignore a colon
Corinna Vinschen [Wed, 12 Feb 2014 13:01:10 +0000 (13:01 +0000)]
* uinfo.cc (cygheap_pwdgrp::nss_init_line): Explicitely ignore a colon
as separator char.

10 years ago2014-02-11 Joey Ye <joey.ye@arm.com>
Jeff Johnston [Tue, 11 Feb 2014 19:55:22 +0000 (19:55 +0000)]
2014-02-11  Joey Ye  <joey.ye@arm.com>

        * arm/syscalls.c (_sbrk): Define as weak symbols.
        (_read, _write): Ditto.

10 years ago2014-02-11 Joey Ye <joey.ye@arm.com>
Jeff Johnston [Tue, 11 Feb 2014 19:54:30 +0000 (19:54 +0000)]
2014-02-11  Joey Ye  <joey.ye@arm.com>

        * libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols.
        (_read, _write): Ditto.

10 years ago* winsup.h: Turn off previous workaround but leave a comment.
Christopher Faylor [Tue, 11 Feb 2014 18:41:36 +0000 (18:41 +0000)]
* winsup.h: Turn off previous workaround but leave a comment.

10 years ago * ldap.cc (rediscover_thread): Give argument a useful name.
Corinna Vinschen [Tue, 11 Feb 2014 17:45:09 +0000 (17:45 +0000)]
* ldap.cc (rediscover_thread): Give argument a useful name.
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to
print a pointer to a PUNICODE_STRING as PUNICODE_STRING.  Fix it.
* uinfo.cc (cygheap_domain_info::init): Print status codes as hex
values in debug output.

10 years ago * autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo.
Corinna Vinschen [Tue, 11 Feb 2014 11:51:29 +0000 (11:51 +0000)]
* autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo.
* cygheap.h (class cygheap_ugid_cache): Move ugid_cache_t type here
and rename.
(struct init_cygheap): Add cygheap_ugid_cache member "ugid_cache".
* pwdgrp.h (class ugid_cache_t): Remove here.
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Accommodate
move of ugid_cache to cygheap.
* sec_helper.cc (get_sids_info): Ditto.
* uinfo.cc (ugid_cache): Remove.
(pwdgrp::fetch_account_from_windows): Define id_val globally.
Move SidTypeAlias handling into SidTypeUser/SidTypeGroup branch since
aliases are handled like groups in SAM.  Accommodate move of ugid_cache
to cygheap.  Consolidate code reading SAM comments into a single branch
for both, SidTypeUser and SidTypeAlias.  For SidTypeAlias, fix thinko
and call NetLocalGroupGetInfo rather than NetGroupGetInfo.  Simplify
code setting Cygwin primary group for SAM accounts.  Add code to handle
UNIX uid/gid from SAM comment.

10 years ago* winsup.h (Interlocked*): Use intrinsic versions of Interlocked functions.
Christopher Faylor [Tue, 11 Feb 2014 06:27:57 +0000 (06:27 +0000)]
* winsup.h (Interlocked*): Use intrinsic versions of Interlocked functions.
* cygwin.sc.in: More closely emulate default pe/i386 linker script.

10 years ago * uinfo.cc (cygheap_domain_info::init): Drop accidentally leftover if
Corinna Vinschen [Mon, 10 Feb 2014 20:28:32 +0000 (20:28 +0000)]
* uinfo.cc (cygheap_domain_info::init): Drop accidentally leftover if
statement.

10 years ago * uinfo.cc (cygheap_domain_info::init): Fix handling of account domain
Corinna Vinschen [Mon, 10 Feb 2014 20:16:55 +0000 (20:16 +0000)]
* uinfo.cc (cygheap_domain_info::init): Fix handling of account domain
on donmain controllers.  Explain why.

10 years ago * cygheap.cc (cwcsdup): Change parameter to correct PWCSTR.
Corinna Vinschen [Mon, 10 Feb 2014 20:15:58 +0000 (20:15 +0000)]
* cygheap.cc (cwcsdup): Change parameter to correct PWCSTR.
(cwcsdup1): Ditto.
* cygheap_malloc.h: Change declarations accordingly.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Add code to allow
Corinna Vinschen [Mon, 10 Feb 2014 18:28:51 +0000 (18:28 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Add code to allow
setting the primary group from the SAM comment field.

10 years ago * dcrt0.cc (child_info_spawn::handle_spawn): Call fixup_lockf_after_exec
Corinna Vinschen [Mon, 10 Feb 2014 10:45:51 +0000 (10:45 +0000)]
* dcrt0.cc (child_info_spawn::handle_spawn): Call fixup_lockf_after_exec
with additional argument to specify if the process has been execed
or spawned.
* flock.cc (fixup_lockf_after_exec): Take bool parameter to handle
exec and spawn differently.  In case of spawn, just give up POSIX
locks in favor of the still running parent.  Add comments to explain.

10 years ago.
Christopher Faylor [Mon, 10 Feb 2014 04:04:26 +0000 (04:04 +0000)]
.

10 years ago* environ.cc (strbrk): Properly deal with environment variable sans quote.
Christopher Faylor [Mon, 10 Feb 2014 01:59:37 +0000 (01:59 +0000)]
* environ.cc (strbrk): Properly deal with environment variable sans quote.

10 years ago* environ.cc (strbrk): New function.
Christopher Faylor [Sun, 9 Feb 2014 20:30:24 +0000 (20:30 +0000)]
* environ.cc (strbrk): New function.
(parse_options): Use strbrk to parse CYGWIN environment variable.

10 years ago * libc/include/pwd.h: Include <sys/cdefs.h>.
Corinna Vinschen [Sun, 9 Feb 2014 20:02:17 +0000 (20:02 +0000)]
* libc/include/pwd.h: Include <sys/cdefs.h>.
* libc/include/grp.h: Ditto.

10 years ago*** empty log message ***
Corinna Vinschen [Sun, 9 Feb 2014 19:47:42 +0000 (19:47 +0000)]
*** empty log message ***

10 years ago Introduce reading passwd/group entries from SAM/AD. Introduce
Corinna Vinschen [Sun, 9 Feb 2014 19:44:56 +0000 (19:44 +0000)]
Introduce reading passwd/group entries from SAM/AD.  Introduce
/etc/nsswitch.conf file to configure it.
* Makefile.in (DLL_OFILES): Add ldap.o.
* autoload.cc: Import ldap functions from wldap32.dll.
(DsEnumerateDomainTrustsW): Import.
(NetGroupGetInfo): Import.
* cygheap.h (class cygheap_domain_info): New class to keep global
domain info.
(class cygheap_pwdgrp): New class to keep passwd/group caches and
configuration info from /etc/nssswitch.conf.
(struct init_cygheap): Add cygheap_domain_info member "dom" and
cygheap_pwdgrp member "pg".
* cygtls.h (struct _local_storage): Remove unused member "res".
Rearrange slightly, Add members pwbuf and grbuf to implement non-caching
passwd/group fetching from SAM/AD.  Make pw_pos and pw_pos unsigned.
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Add RFC 2307
uid/gid mapping.
* fhandler_process.cc: Drop including pwdgrp.h.
* fhandler_procsysvipc.cc: Ditto.
* fhandler_registry.cc (fhandler_registry::fstat): Set key uid/gid
to ILLEGAL_UID/ILLEGAL_GID rather than UNKNOWN_UID/UNKNOWN_GID.
* grp.cc (group_buf): Drop.
(gr): Drop.
(pwdgrp::parse_group): Fill pg_grp.
(pwdgrp::read_group): Remove.
(pwdgrp::init_grp): New method.
(pwdgrp::prep_tls_grbuf): New method.
(pwdgrp::find_group): New methods.
(internal_getgrsid): Convert to call new pwdgrp methods.
(internal_getgrnam): Ditto.
(internal_getgrgid): Ditto.
(getgrgid_r): Drop 2nd parameter from internal_getgrgid call.
(getgrgid32): Ditto.
(getgrnam_r): Ditto for internal_getgrnam.
(getgrnam32): Ditto.
(getgrent32): Convert to call new pwdgrp methods.
(internal_getgrent): Remove.
(internal_getgroups): Simplify, especially drop calls to
internal_getgrent.
* ldap.cc: New file implementing cyg_ldap class for LDAP access to AD
and RFC 2307 server.
* ldap.h: New header, declaring cyg_ldap class.
* passwd.cc (passwd_buf): Drop.
(pr): Drop.
(pwdgrp::parse_passwd): Fill pg_pwd.
(pwdgrp::read_passwd): Remove.
(pwdgrp::init_pwd): New method.
(pwdgrp::prep_tls_pwbuf): New method.
(find_user): New methods.
(internal_getpwsid): Convert to call new pwdgrp methods.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(getpwuid32): Drop 2nd parameter from internal_getpwuid call.
(getpwuid_r): Ditto.
(getpwnam): Ditto for internal_getpwnam.
(getpwnam_r): Ditto.
(getpwent): Convert to call new pwdgrp methods.
* path.cc (class etc): Remove all methods.
* path.h (class etc): Drop.
* pinfo.cc (pinfo_basic::pinfo_basic): Set gid to ILLEGAL_GID rather
than UNKNOWN_GID.
(pinfo_init): Ditto.
* pwdgrp.h (internal_getpwnam): Drop 2nd parameter from declaration.
(internal_getpwuid): Ditto.
(internal_getgrgid): Ditto.
(internal_getgrnam): Ditto.
(internal_getgrent): Drop declaration.
(enum fetch_user_arg_type_t): New type.
(struct fetch_user_arg_t): New type.
(struct pg_pwd): New type.
(struct pg_grp): New type.
(class pwdgrp): Rework to provide functions for file and db requests
and caching.
(class ugid_cache_t): New class to provide RFC 2307 uid map caching.
(ugid_cache): Declare.
* sec_acl.cc: Drop including pwdgrp.h.
* sec_auth.cc: Drop including dsgetdc.h and pwdgrp.h.
(get_logon_server): Convert third parameter to ULONG flags argument
to allow arbitrary flags values in DsGetDcNameW call and change calls
to this function throughout.  Use cached account domain name rather
than calling GetComputerNameW.
(get_unix_group_sidlist): Remove.
(get_server_groups): Drop call to get_unix_group_sidlist.
(verify_token): Rework token group check without calling
internal_getgrent.
* sec_helper.cc (cygpsid::pstring): New methods, like string() but
return pointer to end of string.
(cygsid::getfromstr): Add wide character implementation.
(get_sids_info): Add RFC 2307 uid/gid mapping for Samba shares.
* security.cc: Drop including pwdgrp.h.
* security.h (DEFAULT_UID): Remove.
(UNKNOWN_UID): Remove.
(UNKNOWN_GID): Remove.
(uinfo_init): Move here from winsup.h.
(ILLEGAL_UID): Ditto.
(ILLEGAL_GID): Ditto.
(UNIX_POSIX_OFFSET): Define.  Add lengthy comment.
(UNIX_POSIX_MASK): Ditto.
(MAP_UNIX_TO_CYGWIN_ID): Ditto.
(ILLEGAL_UID16): Move here from winsup.h.
(ILLEGAL_GID16): Ditto.
(uid16touid32): Ditto.
(gid16togid32): Ditto.
(sid_id_auth): New convenience macro for SID component access.
(sid_sub_auth_count): Ditto.
(sid_sub_auth): Ditto.
(sid_sub_auth_rid): Ditto.
(cygpsid::pstring): Declare.
(cygsid::getfromstr): Declare wide character variant.
(cygsid::operator=): Ditto.
(cygsid::operator*=): Ditto.
(get_logon_server): Change declaration according to source code.
* setlsapwd.cc (setlsapwd): Drop 2nd parameter from internal_getpwnam
call.
* shared.cc (memory_init): Call cygheap->pg.init in first process.
* syscalls.cc: Drop including pwdgrp.h.
* tlsoffsets.h: Regenerate.
* tlsoffsets64.h: Ditto.
* uinfo.cc (internal_getlogin): Drop gratuitious internal_getpwuid
call.  Fix debug output.  Overwrite user gid in border case of a
missing passwd file while a group file exists.
(pwdgrp::add_line): Allocate memory on cygheap.
(pwdgrp::load): Remove.
(ugid_cache): Define.
(cygheap_pwdgrp::init): New method.
(cygheap_pwdgrp::nss_init_line): New method.
(cygheap_pwdgrp::_nss_init): New method.
(cygheap_domain_info::init): New method.
(logon_sid): Define.
(get_logon_sid): New function.
(pwdgrp::add_account_post_fetch): New method.
(pwdgrp::add_account_from_file): New methods.
(pwdgrp::add_account_from_windows): New methods.
(pwdgrp::check_file): New method.
(pwdgrp::fetch_account_from_line): New method.
(pwdgrp::fetch_account_from_file): New method.
(pwdgrp::fetch_account_from_windows): New method.
* winsup.h: Move aforementioned macros and declarations to security.h.

10 years ago* sigproc.cc (sig_send): Don't bother with an error message if we are exiting.
Christopher Faylor [Sun, 9 Feb 2014 18:31:37 +0000 (18:31 +0000)]
* sigproc.cc (sig_send): Don't bother with an error message if we are exiting.

10 years ago2014-02-07 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 9 Feb 2014 12:23:13 +0000 (12:23 +0000)]
2014-02-07  Jon TURNEY  <jon.turney@dronecode.org.uk>

* minidumper.cc: New file.
* Makefile.in (CYGWIN_BINS): Add minidumper.
* utils.xml (minidumper): New section.

10 years agoFix ChangeLog
Corinna Vinschen [Sat, 8 Feb 2014 22:25:11 +0000 (22:25 +0000)]
Fix ChangeLog

10 years ago * miscfuncs.h (class NT_readline): New class to implement line-wise
Corinna Vinschen [Sat, 8 Feb 2014 20:57:27 +0000 (20:57 +0000)]
* miscfuncs.h (class NT_readline): New class to implement line-wise
reading from file using native NT functions.
* miscfuncs.cc (NT_readline::init): New method.
* mount.cc (mount_info::from_fstab): Utilize NT_readline to read
fstab files.

10 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchown): Fix typo in
Corinna Vinschen [Thu, 6 Feb 2014 20:38:35 +0000 (20:38 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Fix typo in
comment.
* mount.cc (mount_info::from_fstab): Use tmp_pathbuf rather than
stack for big local buffer.
* net.cc (cygwin_gethostname): Call GetComputerNameExA rather than
GetComputerNameA if gethostname failed.
* shared.cc (user_info::initialize): Fix formatting.
* include/sys/file.h: Define flock and accompanying macros if not
already defined in sys/_default_fcntl.h.

10 years ago PR target/59788
Rainer Orth [Wed, 5 Feb 2014 13:17:47 +0000 (13:17 +0000)]
PR target/59788
* ltmain.sh (opt_duplicate_compiler_generated_deps): Enable on
*solaris2*.

10 years ago2014-02-04 Matthias Braun <matze@braunis.de>
Jeff Johnston [Tue, 4 Feb 2014 20:49:53 +0000 (20:49 +0000)]
2014-02-04  Matthias Braun  <matze@braunis.de>

        * libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 29.
Corinna Vinschen [Tue, 4 Feb 2014 16:32:04 +0000 (16:32 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 29.

10 years ago * aarch64/Makefile.in (RDIMON_SCRIPTS): Rule to build in-tree copies
Richard Earnshaw [Mon, 3 Feb 2014 10:30:34 +0000 (10:30 +0000)]
* aarch64/Makefile.in (RDIMON_SCRIPTS): Rule to build in-tree copies
of scripts.
(all): Build the in-tree copies of the scripts.
(clean): Also delete the in-tree copies of the scripts.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 31 Jan 2014 19:27:26 +0000 (19:27 +0000)]
*** empty log message ***

10 years ago* fhandler.h (cltype): Add cl_buf_beg, cl_buf_end.
Christopher Faylor [Fri, 31 Jan 2014 04:23:22 +0000 (04:23 +0000)]
* fhandler.h (cltype): Add cl_buf_beg, cl_buf_end.
* fhandler_console.cc (dev_console::console_attrs::set_cl_x): Honor buffer
locations.
(dev_console::console_attrs::set_cl_y): Ditto.
(fhandler_console::write): On reset, use absolute positioning to go to
beginning of buffer.  Clear entire buffer.

10 years ago* msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New. Build
DJ Delorie [Thu, 30 Jan 2014 02:46:34 +0000 (02:46 +0000)]
* msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New.  Build
from crt0.S with -DMINRT.
(CRT_OBJS): Expand.
(crt_%.o): New rule pattern.  Build multiple objects from crt0.S.
* msp430/crt0.S: Further break out functionality.  Support -DMINRT
that omits all init/fini logic.
* msp430/crtn.S: Likewise.
* msp430/msp430-sim.ld: Wildcard all .crt_* sections, sorted.
* msp430/msp430.ld: Likewise.
* msp430/msp430xl-sim.ld: Likewise.

10 years ago* faq-setup.xml: Minor snapshot instruction rewording. Update discussion about
Christopher Faylor [Wed, 29 Jan 2014 19:01:53 +0000 (19:01 +0000)]
* faq-setup.xml: Minor snapshot instruction rewording.  Update discussion about
setup*.exe.
* faq-using.xml: Update information about setup*.exe.
* faq-what.xml: Ditto.

10 years ago * aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Use bic-immediate
Corinna Vinschen [Tue, 28 Jan 2014 11:16:19 +0000 (11:16 +0000)]
* aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Use bic-immediate
form to clear WXN bit.

10 years ago * new-features.xml (ov-new1.7.28): Add new section.
Corinna Vinschen [Mon, 27 Jan 2014 21:26:36 +0000 (21:26 +0000)]
* new-features.xml (ov-new1.7.28): Add new section.

10 years ago*** empty log message ***
Corinna Vinschen [Mon, 27 Jan 2014 21:25:39 +0000 (21:25 +0000)]
*** empty log message ***

10 years ago* gendef (_setjmp (x86)): Save FPU control word location in sequential
Christopher Faylor [Mon, 27 Jan 2014 20:53:02 +0000 (20:53 +0000)]
* gendef (_setjmp (x86)): Save FPU control word location in sequential
location.  Adjust sigstack save accordingly.
(_longjmp (x86)): Ditto for restore.

10 years ago * gendef (sigdelayed (x86_64)): Save and restore FPU control word.
Corinna Vinschen [Mon, 27 Jan 2014 20:08:36 +0000 (20:08 +0000)]
* gendef (sigdelayed (x86_64)): Save and restore FPU control word.
(_sigdelayed (x86)): Ditto.  Save and restore XMM registers.  Add
comment.
(_setjmp (x86)): Save FPU control word, following FreeBSD here.
(_longjmp (x86)): Restore FPU control word.

10 years agoupdate copyright
Christopher Faylor [Mon, 27 Jan 2014 20:04:35 +0000 (20:04 +0000)]
update copyright

10 years agoFix typo
Christopher Faylor [Mon, 27 Jan 2014 00:53:43 +0000 (00:53 +0000)]
Fix typo

10 years ago* winf.cc (linebuf::fromargv): Treat '=' as a special character.
Christopher Faylor [Fri, 24 Jan 2014 20:38:49 +0000 (20:38 +0000)]
* winf.cc (linebuf::fromargv): Treat '=' as a special character.

10 years ago2014-01-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Jeff Johnston [Fri, 24 Jan 2014 19:01:15 +0000 (19:01 +0000)]
2014-01-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

        * aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Clear WXN bit
        in SCTLR_EL3. Add dsb.

10 years ago * security.h (open_local_policy): Remove declaration.
Corinna Vinschen [Thu, 23 Jan 2014 17:02:30 +0000 (17:02 +0000)]
* security.h (open_local_policy): Remove declaration.
(lsa_open_policy): Declare.
(lsa_close_policy): Declare.
* sec_auth.cc (lsa_open_policy): Rename from open_local_policy.  Take
server name as parameter.  Return NULL in case of error, rather than
INVALID_HANDLE_VALUE.
(lsa_close_policy): Rename from close_local_policy.  Make externally
available.  Get handle by value.
(create_token): Convert call to open_local_policy/close_local_policy
according to aforementioned changes.
(lsaauth): Ditto.
(lsaprivkeyauth): Ditto.
* setlsapwd.cc (setlsapwd): Ditto.

10 years ago * Makefile.common: Don't drop -gFOO switches when filtering CFLAGS
Corinna Vinschen [Wed, 22 Jan 2014 18:00:24 +0000 (18:00 +0000)]
* Makefile.common: Don't drop -gFOO switches when filtering CFLAGS
and CXXFLAGS.

10 years ago * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFile
Corinna Vinschen [Wed, 22 Jan 2014 15:45:29 +0000 (15:45 +0000)]
* path.cc (etc::test_file_change): In case of NtQueryFullAttributesFile
returning an error, only return true if file actually exists.

10 years agomerge from gcc
DJ Delorie [Tue, 21 Jan 2014 16:09:25 +0000 (16:09 +0000)]
merge from gcc

10 years ago * include/cygwin/in6.h (struct ipv6_rt_hdr): Define.
Corinna Vinschen [Mon, 20 Jan 2014 17:25:54 +0000 (17:25 +0000)]
* include/cygwin/in6.h (struct ipv6_rt_hdr): Define.
* include/cygwin/socket.h: Fix formatting.
(IP_UNICAST_IF): Define.
(IPV6_JOIN_GROUP): Remove Windowism.
(IPV6_LEAVE_GROUP): Ditto.
(IPV6_UNICAST_IF): Define.
(IPV6_TCLASS): Ditto.
(IPV6_RECVTCLASS): Ditto.

10 years ago * libc/include/setjmp.h (longjmp): Fix copy/paste error.
Corinna Vinschen [Mon, 20 Jan 2014 17:23:41 +0000 (17:23 +0000)]
* libc/include/setjmp.h (longjmp): Fix copy/paste error.

10 years ago * libc/include/setjmp.h (longjmp): Mark "noreturn" when building with
Corinna Vinschen [Sun, 19 Jan 2014 09:38:34 +0000 (09:38 +0000)]
* libc/include/setjmp.h (longjmp): Mark "noreturn" when building with
GCC.

10 years ago * include/netinet/ip6.h: New file, copied from FreeBSD vebatim.
Corinna Vinschen [Sat, 18 Jan 2014 11:37:55 +0000 (11:37 +0000)]
* include/netinet/ip6.h: New file, copied from FreeBSD vebatim.

10 years ago* dtable.h (dtable::lock): Revert static.
Christopher Faylor [Fri, 17 Jan 2014 17:22:57 +0000 (17:22 +0000)]
* dtable.h (dtable::lock): Revert static.
(dtable::unlock): Ditto.

10 years ago * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.
Corinna Vinschen [Fri, 17 Jan 2014 14:54:31 +0000 (14:54 +0000)]
* libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.
(setpassent): Declare.

10 years ago * passwd.cc (setpassent): Align to BSD definition.
Corinna Vinschen [Fri, 17 Jan 2014 14:53:04 +0000 (14:53 +0000)]
* passwd.cc (setpassent): Align to BSD definition.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 17 Jan 2014 11:11:25 +0000 (11:11 +0000)]
*** empty log message ***

10 years ago * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safe
Corinna Vinschen [Fri, 17 Jan 2014 11:07:37 +0000 (11:07 +0000)]
* syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safe
opening of the pipe with O_CLOEXEC flag.  Simplify FD_CLOEXEC handling.

10 years ago * include/sys/file.h (LOCK_SH): Drop definition in favor of new
Corinna Vinschen [Fri, 17 Jan 2014 11:01:46 +0000 (11:01 +0000)]
* include/sys/file.h (LOCK_SH): Drop definition in favor of new
definitions in newlib.
(LOCK_EX): Ditto.
(LOCK_NB): Ditto.
(LOCK_UN): Ditto.
(flock): Ditto.
(F_OK): Drop.  Already correctly defined in unistd.h.
(X_OK): Ditto.
(W_OK): Ditto.
(R_OK): Ditto.

10 years ago * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.
Corinna Vinschen [Fri, 17 Jan 2014 10:57:54 +0000 (10:57 +0000)]
* libc/include/sys/_default_fcntl.h (LOCK_SH): Define.
(LOCK_EX): Likewise.
(LOCK_NB): Likewise.
(LOCK_UN): Likewise.
(flock): Declare.

10 years ago * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.
Corinna Vinschen [Fri, 17 Jan 2014 10:56:25 +0000 (10:56 +0000)]
* include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.

10 years ago Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
Corinna Vinschen [Fri, 17 Jan 2014 10:55:32 +0000 (10:55 +0000)]
Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
semantics from POSIX to BSD.
* libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on
_STDIO_BSD_SEMANTICS.  Call __sflush_r rather than _fflush_r.  Add
comment.
* libc/stdio/fflush.c (__sflushw_r): New function, only available
if _STDIO_BSD_SEMANTICS is defined.
* libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than
_fwalk.  Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS.
Add comments.  Add FIXME.
* libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is
defined.

10 years ago* dtable.h (dtable::lock): Make static.
Christopher Faylor [Thu, 16 Jan 2014 18:40:13 +0000 (18:40 +0000)]
* dtable.h (dtable::lock): Make static.

10 years ago2014-01-10 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 10 Jan 2014 23:04:01 +0000 (23:04 +0000)]
2014-01-10  Jeff Johnston  <jjohnstn@redhat.com>

        * arm/configure.in: Revert previous fix and change host_makefile_frag
        to calculate the absolute location of srcdir/../config/default.mh.
        * arm/configure: Regenerated.

10 years ago.
Christopher Faylor [Wed, 8 Jan 2014 16:55:23 +0000 (16:55 +0000)]
.

10 years ago* exceptions.h (cygwin_exception::open_stackdumpfile): Move old function into
Christopher Faylor [Wed, 8 Jan 2014 16:51:20 +0000 (16:51 +0000)]
* exceptions.h (cygwin_exception::open_stackdumpfile): Move old function into
class.
(cygwin_exception::h): New member.
(cygwin_exception::cygwin_exception): Initialize h to NULL.
* exceptions.cc (cygwin_exception::open_stackdumpfile): Move into
cygwin_exception class.  Use 'h' class member.
(cygwin_exception::dumpstack): Close stack dump file handle if opened.

10 years ago2014-01-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 7 Jan 2014 22:41:38 +0000 (22:41 +0000)]
2014-01-07  Jeff Johnston  <jjohnstn@redhat.com>

        * arm/configure.in: Fix host_makefile_frag to use ac_abs_srcdir.
        * arm/configure: Regenerated.

10 years ago * faq-programming.xml: Update packages needed to build Cygwin.
Corinna Vinschen [Tue, 7 Jan 2014 14:54:58 +0000 (14:54 +0000)]
* faq-programming.xml: Update packages needed to build Cygwin.

10 years ago2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Mon, 6 Jan 2014 20:59:38 +0000 (20:59 +0000)]
2014-01-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define according
        to POSIX.
        (AT_EACCESS): Likewise.
        (AT_SYMLINK_NOFOLLOW): Likewise.
        (AT_SYMLINK_FOLLOW): Likewise.
        (AT_REMOVEDIR): Likewise.
        (openat): Declare according to POSIX.
        * libc/include/stdio.h (renameat): Likewise.
        * libc/include/sys/stat.h (fchmodat): Likewise.
        (fstatat): Likewise.
        (mkdirat): Likewise.
        (mkfifoat): Likewise.
        (mknodat): Likewise.
        (utimensat): Likewise.
        (futimens): Likewise.
        * libc/include/sys/unistd.h (faccessat): Likewise.
        (fchownat): Likewise.
        (linkat): Likewise.
        (readlinkat): Likewise.
        (symlinkat): Likewise.
        (unlinkat): Likewise.

10 years ago2014-01-06 Mike Frysinger <vapier@gentoo.org>
Jeff Johnston [Mon, 6 Jan 2014 19:50:33 +0000 (19:50 +0000)]
2014-01-06  Mike Frysinger  <vapier@gentoo.org>

        * libc/search/hash.c (hash_delete): Change __uint32_t to u_int.
        (hash_get): Likewise.
        (hash_put): Likewise.
        (hash_seq): Likewise.
        (hash_sync): Likewise.

Also fix former ChangeLog entry to be 2014.

10 years ago2013-01-06 Mike Frysinger <vapier@gentoo.org>
Jeff Johnston [Mon, 6 Jan 2014 19:30:50 +0000 (19:30 +0000)]
2013-01-06  Mike Frysinger  <vapier@gentoo.org>

        * libc/ctype/jp2uc.c: Include string.h.

10 years agoRecreate
Christopher Faylor [Sun, 5 Jan 2014 00:09:39 +0000 (00:09 +0000)]
Recreate

10 years ago* fhandler.h: Update copyright.
Christopher Faylor [Sat, 4 Jan 2014 23:58:32 +0000 (23:58 +0000)]
* fhandler.h: Update copyright.
(cltype): New enum.
(dev_console::console_attrs): Define struct name.
(dev_console::console_attrs::set_cl_x): New function.
(dev_console::console_attrs::set_cl_y): New function.
(fhandler_console::clear_screen): Redefine input params.
* fhandler_console.cc: Update copyright.  Throughout, reflect change in
arguments to fhandler_console::clear_screeen.
(fhandler_console::mouse_aware): Simplify logic slightly.
(fhandler_console::scroll_screen): Remove hopefully obsolete win95 code.
(dev_console::console_attrs::set_cl_x): New function.
(dev_console::console_attrs::set_cl_y): New function.
(fhandler_console::clear_screen): Redefine input params.  Calculate position
based on enum value.
(region_split): Change arguments.  Simplify.
(ReadConsoleOutputWrapper): Remove coord argument since we now always use 0, 0.
Send extra arguments to region_split.

This page took 0.068193 seconds and 5 git commands to generate.