Corinna Vinschen
633cf9b5dd
* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
...
comparison
* libc/string/memchr.c (memchr): Ditto.
* libc/string/memrchr.c (memrchr): Ditto.
* libc/string/memset.c: (memset): Ditto.
* libc/string/rawmemchr.c (rawmemchr): Ditto.
* libc/string/local.h (__locale_cjk_lang): Fix "function declaration
isn't a prototype" warning.
* libc/string/strcasestr.c (strcasestr): Ditto.
* libc/string/u_strerr.c (_user_strerror): Fix "unused parameter"
warnings.
* libc/string/rawmemchr.c (rawmemchr): Fix comment type
"// ..." -> "/* ... */".
2014-10-09 12:24:56 +00:00
Corinna Vinschen
657ca84427
Add accidentally missing ChangeLog for latest change.
2014-10-09 08:31:34 +00:00
Steve Ellcey
ca86eee8de
2014-10-08 Steve Ellcey <sellcey@mips.com>
...
* newlib/libc/machine/mips/strcmp.c: Remove.
* newlib/libc/machine/mips/strcmp.S: New.
* newlib/libc/machine/mips/Makefile.am (lib_a_SOURCES):
Replace strcmp.c with strcmp.S
* newlib/libc/machine/mips/Makefile.in: Regenerate.
2014-10-08 22:29:52 +00:00
Corinna Vinschen
da77c6d1e5
* libc/include/string.h (ffsl): Declare as GNU function.
...
(ffsll): Ditto.
2014-10-08 21:04:59 +00:00
Corinna Vinschen
d326f841c3
* common.din (ffsl): Export.
...
(ffsll): Export.
* syscalls.cc (ffs): Implement using GCC intrinsic.
(ffsl): Ditto.
(ffsll): Ditto.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2014-10-08 21:03:40 +00:00
Corinna Vinschen
2fb56bbfaa
* syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.
2014-10-08 16:34:31 +00:00
Corinna Vinschen
2bf7d695ea
* fhandler_process.cc (format_process_statm): Fix output of dirty
...
pages. Add linefeed.
2014-10-08 15:25:52 +00:00
Corinna Vinschen
ee97a4e332
Fix typo
2014-10-08 14:41:44 +00:00
DJ Delorie
34fbc9859c
merge from gcc
2014-09-28 17:46:07 +00:00
Nick Clifton
c30356443e
* configure.in: Remove config_libnosys=false
...
* configure: Regenerated.
* msp430/nosyscalls.S: Rename to ciosyscalls.S
* msp430/Makefile.in: Change LIBNOSYS to LIB_CIO.
2014-09-22 15:26:46 +00:00
Jeff Johnston
99eb60455b
2014-09-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/features.h: Add __NEWLIB__ and
__NEWLIB_MINOR__ macros.
2014-09-17 22:20:16 +00:00
Jeff Johnston
ad9ed96b6b
2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
...
Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de>
* libc/include/string.h: Correct guard for strnlen().
2014-09-16 19:59:01 +00:00
Jeff Johnston
3158e7d674
2014-09-15 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/month_lengths.c: Fix to define __month_lengths.
2014-09-15 16:05:37 +00:00
Jeff Johnston
78a52749b2
2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/tzcalc_limits.c: Fix __months_lengths reference.
2014-09-12 21:41:46 +00:00
Jeff Johnston
43b3310bc9
2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/month_lengths.c: Actually add file this time.
* libc/time/tzcalc_limits.c: Ditto.
2014-09-12 16:38:10 +00:00
Jeff Johnston
c9dded6775
2014-09-11 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/time/month_lengths.c: New file with __month_lengths array
(previously mon_lengths array in mktm_r.c)
* libc/time/tzcalc_limits.c: New file with __tzcalc_limits() from
mktm_r.c
* libc/time/lcltime_r.c (localtime_r): Simplify by changing call to
_mktm_r() with call to gmtime_r() and code moved from _mktm_r() which
was used to do time zone adjustments
* libc/time/gmtime_r.c (gmtime_r): Simplify by moving all relevant
code from _mktm_r(), breaking all dependencies on time zone related
functions
* libc/time/mktm_r.c: Delete file
* libc/time/local.h: Update accordingly - remove declaration of
_mktm_r(), add declaration of __month_lengths[]
* libc/time/Makefile.am: Modify accordingly.
* libc/time/Makefile.in: Regenerate.
2014-09-11 21:55:01 +00:00
Jeff Johnston
1c5ab1f862
2014-09-08 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/machine/arm/Makefile.am: Fix typo.
* libc/machine/arm/Makefile.in: Regenerated.
2014-09-08 18:57:52 +00:00
Corinna Vinschen
6e16a3169f
* pathnames.xml (cygdrive): Add /proc/cygdrive description.
2014-09-05 19:40:39 +00:00
Corinna Vinschen
f207699a53
* fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.
...
(format_proc_cygdrive): New function to implement /proc/cygdrive.
2014-09-05 19:11:01 +00:00
Jeff Johnston
c8a01afd97
2014-09-05 Hale Wang <hale.wang@arm.com>
...
* libc/machine/arm/memchr.S: Clean up the wrapper.
* libc/machine/arm/memcpy.S: Likewise.
* libc/machine/arm/memchr-stub.c: Delete this redundant file.
* libc/machine/arm/memcpy-stub.c: Likewise.
* libc/machine/arm/strcmp.S: Add speed-preferred wrapper.
* libc/machine/arm/strlen.S: Likewise.
* libc/machine/arm/Makefile.am: Add dependencies.
* libc/machine/arm/Makefile.in: Regenerated.
* libc/machine/arm/configure.in: Add dependencies.
* libc/machine/arm/configure: Regenerated.
2014-09-05 17:26:42 +00:00
Corinna Vinschen
bea3ef947a
* exception.h (class exception): Remove unnecessary #ifdef.
...
* uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Fix length
counter to include trailing NUL.
* sec_auth.cc (get_user_groups): Add experimental exception handler.
(get_user_local_groups): Ditto.
2014-09-05 11:47:33 +00:00
Corinna Vinschen
acc511d184
* uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATION
...
PACKAGE AUTHORITY SIDs.
* winlean.h (DNLEN): Raise to 31. Explain why.
2014-09-05 09:46:26 +00:00
Corinna Vinschen
e7565f1088
* libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configuration
...
option "--enable-lite-exit" is in effect. Refactor the code.
2014-09-05 09:42:15 +00:00
Corinna Vinschen
1ec7de7271
* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
2014-09-05 09:31:32 +00:00
Corinna Vinschen
a015d9b507
Add missing libc/machine/arm/aeabi_memcpy.c file
2014-09-05 08:42:45 +00:00
Corinna Vinschen
9adec6fd79
* libc/time/mktm_r.c (_mktm_r): Optimize speed.
2014-09-04 09:47:14 +00:00
Corinna Vinschen
7d407cb678
Add missing libc/machine/arm/aeabi_memcpy-armv7a.S file
2014-09-04 08:27:35 +00:00
Corinna Vinschen
f9bafa4640
* libc/time/clock.c (clock): Fix warnings about signed-unsigned
...
comparisons.
* libc/time/strftime.c (strftime): Likewise.
* libc/time/strptime.c (match_string): Fix warning about discarding
'restrict' qualifier from pointer target type.
2014-09-04 08:27:03 +00:00
Corinna Vinschen
4a9103c410
* libc/machine/arm/aeabi_memcpy.c: New file.
...
* libc/machine/arm/aeabi_memcpy-armv7a.S: New file.
* libc/machine/arm/Makefile.am: Add dependencies.
* libc/machine/arm/Makefile.in: Regenerated.
2014-09-04 08:23:23 +00:00
Corinna Vinschen
e5110581dc
* sec_acl.cc (aclcheck32): Check for required default entries as well.
...
Enable check for missing CLASS_OBJ entries, now that setfacl creates
them.
2014-09-03 12:46:19 +00:00
Corinna Vinschen
ef1e66cfbf
* setfacl.c (addmissing): New function to add missing acl entries to
...
a modified acl per the rules set by aclcheck.
(setfacl): Call addmissing unless action is Delete.
2014-09-03 12:44:05 +00:00
Corinna Vinschen
3e61dde3f1
* utils.xml (setfacl): Align documentation to help text in setfacl.
2014-09-03 09:34:10 +00:00
Corinna Vinschen
451e1f4879
* setfacl.c (getaclentry): Fix previous fix again. Allow lone 'm' as
...
well as any lone default entry if action is Delete. Fix comments.
(usage): Align usage text.
2014-09-03 09:32:53 +00:00
Corinna Vinschen
89d195a7d1
* setfacl.c (getaclentry): Fix return value in case of a lone 'm' if
...
action is Delete. Drop requirement for a trailing colon if action is
Delete.
2014-09-03 08:57:20 +00:00
Corinna Vinschen
7a1cf1a003
* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.
2014-09-02 20:07:21 +00:00
Corinna Vinschen
b4536f29c5
* ntsec.xml (ntsec-common): Drop outdated comment about underdeveloped
...
Solaris ACL API support.
2014-08-31 20:06:14 +00:00
Corinna Vinschen
f2b03c9258
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts
...
as groups. Add comment.
2014-08-31 19:33:19 +00:00
Corinna Vinschen
f3b0b4cb51
* utils.xml (setfacl): Drop outdated note that default ACEs are not
...
taken into account.
2014-08-31 19:20:10 +00:00
Corinna Vinschen
9845fcbb6b
* setfacl.c (usage): Drop outdated note that default ACEs are not
...
taken into account.
2014-08-31 19:20:04 +00:00
Corinna Vinschen
489d1e5db9
* ntsec.xml: Disable description of db_prefix and db_separator settings.
2014-08-31 18:19:03 +00:00
Corinna Vinschen
cc332c9e27
* uinfo.cc (cygheap_pwdgrp::init): Fix comment. Rearrange code for
...
style.
(cygheap_pwdgrp::nss_init_line): Disable db_prefix and db_separator
settings. Add comment.
(pwdgrp::fetch_account_from_windows): Drop outdated comment. Fix code
fetching primary group gid of group setting in SAM description field.
Change comment accordingly.
2014-08-31 18:18:49 +00:00
Corinna Vinschen
3faecb14b4
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating an
...
entry for "NULL SID".
2014-08-31 14:16:04 +00:00
Corinna Vinschen
ebf78cec85
* sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,
...
and VTX bits. Create owner, group, other and NULL entries in the same
way and in the same order as alloc_sd.
(getacl): Skip NULL ACE.
2014-08-31 14:13:01 +00:00
Corinna Vinschen
e7ee42f33d
* utils.xml (getfacl): Document additional suid/sgid/vtx flag printing.
2014-08-31 13:47:32 +00:00
Corinna Vinschen
c7953da22d
* getfacl.c (usage): Add flags description.
...
(main): Print suid/sgid/vtx flags if available.
2014-08-31 13:46:34 +00:00
Corinna Vinschen
1a33a5c6d3
* fhandler.cc (fhandler_base::facl): Drop CLASS_OBJ entry.
...
* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto in noacl case.
* sec_acl.cc (getacl): Compute useful fake CLASS_OBJ and DEF_CLASS_OBJ
permission bits based on how these values are generated on Linux.
Add commants to explain what the code is doing.
* security.cc (get_attribute_from_acl): Compute group permission based
on the actual primary group permissions and all secondary user and group
ACCESS_ALLOWED_ACEs to emulate Linux' behaviour more closely.
(check_access): Fix typos im comment.
* include/cygwin/acl.h (MIN_ACL_ENTRIES): Redefine as 3.
2014-08-28 12:38:52 +00:00
Corinna Vinschen
c51ce2447a
* fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Try the
...
FileFsSizeInformation information class on filesystems choking on
FileFsFullSizeInformation (I see you Netapp!)
2014-08-28 12:29:42 +00:00
DJ Delorie
dd48219ba9
* libc/include/math.h (frexpl): Remove parameter name.
2014-08-27 19:27:03 +00:00
Corinna Vinschen
326510785e
* fhandler.h (fhandler_pty_slave::fch_open_handles): Add bool parameter
...
to declaration.
* fhandler_tty.cc (fhandler_pty_slave::fch_open_handles): Add bool
parameter "chown". Only request WRITE_OWNER access when opening pty
synchronization objects if "chown" is set.
(fhandler_pty_slave::fchmod): Call fch_open_handles with new bool
parameter set to false.
(fhandler_pty_slave::fchown): Call fch_open_handles with new bool
parameter set to true.
* kernel32.cc (CreateFileMappingW): Fix default standard rights for
file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow
changing the DACL (fixes "access denied" error in pinfo::set_acl).
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Change debug
output to print mode bits in octal.
* security.cc (alloc_sd): Ditto.
(set_file_attribute): Ditto.
2014-08-27 11:42:17 +00:00
Corinna Vinschen
37579836e3
* kernel32.cc (CreateFileMappingW): Fix default standard rights for
...
file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow
changing the DACL (fixes "access denied" error in pinfo::set_acl).
2014-08-27 10:44:50 +00:00