summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* headers: properly decorate attributesEric Blake2014-08-0118-64/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found by: find -name '*.h' |xargs grep -i 'attribute.*(([a-z]' For an example of the type of bugs this causes, try compiling this valid C11 program (it's valid because 'noreturn' is reserved for use in the user namespace unless you include <stdnoreturn.h>): $ cat foo.c #define noreturn __attribute__((noreturn)) #include <stdlib.h> $ gcc -c -o foo.o -Wall foo.c In file included from /usr/include/stdlib.h:11:0, from foo.c:2: foo.c:1:18: error: expected ')' before '__attribute__' #define noreturn __attribute__((noreturn)) ^ /usr/include/stdlib.h:66:28: error: expected ',' or ';' before ')' token _VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn))); ^ * libc/machine/spu/spu_timer_internal.h: Decorate attribute names with __, for namespace safety. * libc/machine/xscale/machine/profile.h: Likewise. * libc/include/stdlib.h: Likewise. * libc/include/_ansi.h: Likewise. * libc/include/sys/unistd.h: Likewise. * libc/sys/linux/linuxthreads/libc-symbols.h: Likewise. * libc/sys/linux/linuxthreads/internals.h: Likewise. * libc/sys/linux/machine/i386/weakalias.h: Likewise. * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise. * libc/sys/linux/machine/i386/dl-machine.h: Likewise. * libc/sys/linux/libc-symbols.h: Likewise. * libc/sys/linux/iconv/gconv_charset.h: Likewise. * libc/sys/linux/include/resolv.h: Likewise. * libc/sys/linux/sys/unistd.h: Likewise. * libc/sys/linux/dl/atomicity.h: Likewise. * libc/sys/linux/dl/dynamic-link.h: Likewise. * libc/sys/linux/dl/ldsodefs.h: Likewise.
* * faq-what.xml (faq.what.who): CGF has retired.Yaakov Selkowitz2014-08-012-8/+5
|
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix comment.Corinna Vinschen2014-07-302-8/+11
|
* * ntsec.xml: Small improvments.Corinna Vinschen2014-07-302-10/+18
|
* * new-features.xml: (ov-new1.7): Change section title.Corinna Vinschen2014-07-302-1/+5
|
* * new-features.xml: (ov-new1.7.1): Add new section. Move old 1.7Corinna Vinschen2014-07-302-41/+50
| | | | sections into section level 3.
* * cygwin.xsl: Allow 3 section levels in TOC.Corinna Vinschen2014-07-307-221/+1381
| | | | | | | | | | | | * new-features.xml: (ov-new1.7.32): Add new section. * ntsec.xml: Rename top-level section to reflect extension of topics. Remove old /etc/passwd, /etc/group considerations. Add new sections explaining Windows to POSIX account mapping. Make setuid sections third level sections. * pathnames.xml: Note new method of account mapping for fstab.d/$USER. * faq-setup.xml: Rework references to /etc/passwd and /etc/group to reflect changes to account handling. * faq-using.xml: Ditto.
* * libc/string/strerror.c: Fix documentation so makedoc doesn'tCorinna Vinschen2014-07-302-1/+6
| | | | stumble over a sole EAGAIN.
* Add missing utils.xmlCorinna Vinschen2014-07-291-0/+1
|
* * mkgroup.c (usage): Move info message that this /etc/group isn't reallyCorinna Vinschen2014-07-294-16/+24
| | | | | required anymore more to the top of the usage output. * mkpasswd.c (usage): Ditto for /etc/passwd. Drop old text from output.
* * cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset.Corinna Vinschen2014-07-295-20/+49
| | | | | | | | | | | | | | | | * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Return UINT32_MAX in case of error. * security.h (PRIMARY_POSIX_OFFSET): Define. (NOACCESS_POSIX_OFFSET): Define. (UNUSABLE_POSIX_OFFSET): Define. * uinfo.cc (cygheap_domain_info::init): Drop initializing lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_file): Set PosixOffset to either UNUSABLE_POSIX_OFFSET or NOACCESS_POSIX_OFFSET in case we don't get a sensible offset from AD. Explain why. Drop setting ch lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_windows): Replace constant 0x100000 with PRIMARY_POSIX_OFFSET throughout.
* Fix typo in previous commitAnthony Green2014-07-281-1/+1
|
* Add moxiebox support.Anthony Green2014-07-276-7/+276
|
* * fhandler_socket.cc (fhandler_socket::send_internal): Fix value ofCorinna Vinschen2014-07-242-2/+12
| | | | | out_len when tweaking the last buffer so out_len is correct in a subsequent if expression.
* 2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-07-222-0/+8
| | | | | * libc/include/sys/time.h: Add prototype for adjtime() and wrap it and settimeofday() prototype with __BSD_VISIBLE.
* * thread.cc (pthread::init_mainthread): Initialize thread mutex toCorinna Vinschen2014-07-212-0/+9
| | | | type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.
* bump to 32Corinna Vinschen2014-07-212-1/+5
|
* * uinfo.cc: Fix typo in comment.Corinna Vinschen2014-07-212-1/+5
|
* * new-features.xml: (ov-new1.7.31): Add new section.Corinna Vinschen2014-07-212-0/+31
|
* *** empty log message ***Corinna Vinschen2014-07-181-1/+1
|
* Fix missing generated filesCorinna Vinschen2014-07-171-0/+3
|
* * configure.host: Remove or16 and or32 targets and add or1k.Corinna Vinschen2014-07-1712-6/+6646
| | | | | | | | * libc/include/machine/ieeefp.h: Replace or32 with or1k. * libc/machine/configure.in: Add or1k subdirectory. * libc/machine/or1k/configure.in: New file. * libc/machine/or1k/Makefile.am: New file. * libc/machine/or1k/setjmp.S: New file.
* .Christopher Faylor2014-07-161-0/+4
|
* * arm/elf-aprofile-validation.specs (*link): Make text segmentCorinna Vinschen2014-07-163-2/+8
| | | | | 64k-aligned. * arm/elf-aprofile-ve.specs (*link): Likewise.
* *** empty log message ***Corinna Vinschen2014-07-161-0/+5
|
* * thread.cc (pthread::create): Handle stackaddr as upper bound address.Corinna Vinschen2014-07-163-16/+56
| | | | | | | | | | | | | | | | | Add comment. (pthread_attr_setstack): Store upper bound address in stackaddr. Explain why. (pthread_attr_getstack): Handle stackaddr as upper bound address. Add comment. (pthread_attr_setstackaddr): Add comment. (pthread_attr_getstackaddr): Add comment. (pthread_attr_getstacksize): Return default stacksize if stacksize has not been set by the application, just as on Linux. Add comment. (pthread_getattr_np): Store upper bound address in stackaddr. Explain why. * include/pthread.h: Remove outdated comment. (pthread_attr_getstackaddr): Mark as deprecated, as on Linux. (pthread_attr_setstackaddr): Ditto.
* *** empty log message ***Corinna Vinschen2014-07-162-8/+39
|
* Fix typoCorinna Vinschen2014-07-161-1/+1
|
* * sigproc.cc (sigproc_init): Set aside more buffer space for signal pipes.Christopher Faylor2014-07-152-2/+21
| | | | | (sig_send): Retry WriteFiles which fail when there is no error but packbytes have not been sent.
* * sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.Christopher Faylor2014-07-152-1/+5
|
* Fix typoCorinna Vinschen2014-07-151-1/+1
|
* * sigproc.cc (send_sig): Fix bad format in diagnostic output.Christopher Faylor2014-07-143-3/+398
|
* * libc/include/sys/errno.h: Fix comments.Corinna Vinschen2014-07-143-36/+100
| | | | | | * libc/string/strerror.c: Fix documentation. (_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET, EADDRNOTAVAIL, EOVERFLOW. Fix strings for EMFILE and EDOM.
* * uinfo.cc (cygheap_domain_info::init): Correctly setCorinna Vinschen2014-07-142-17/+22
| | | | | | lowest_tdo_posix_offset to UNIX_POSIX_OFFSET. (fetch_posix_offset): Redesign to fake a POSIX offset in all cases where we can't fetch a non-0 POSIX offset from our primary domain.
* * thread.cc (pthread_mutex::pthread_mutex): Change default typeCorinna Vinschen2014-07-143-5/+17
| | | | | | | | | | | to PTHREAD_MUTEX_NORMAL. (pthread_mutex::unlock): Return EPERM if the mutex has no owner and the mutex type is PTHREAD_MUTEX_ERRORCHECK, as on Linux. (pthread_mutexattr::pthread_mutexattr): Ditto. (pthread_mutex_unlock): Do not fail if mutex is a normal mutex initializer. * include/pthread.h (PTHREAD_MUTEX_INITIALIZER): Redefine as PTHREAD_NORMAL_MUTEX_INITIALIZER_NP.
* [aarch64] Add memchr.Richard Earnshaw2014-07-115-6/+229
| | | | | | | | | 2014-07-11 K�vin Petit <kevin.petit@arm.com> * libc/machine/aarch64/memchr.S: New file. * libc/machine/aarch64/memchr-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add the new files. * libc/machine/aarch64/Makefile.in: Regenerated.
* * thread.cc (pthread::create): Use PTHREAD_DEFAULT_STACKSIZE stacksizeCorinna Vinschen2014-07-092-13/+23
| | | | | | | | | | | | if attr.stacksize is 0. (pthread_attr::pthread_attr): Initialize stacksize to 0 to align more closely to Linux. (pthread_attr_getstack): Fix incorrect stackaddr computation. Return stackaddr just like pthread_attr_getstackaddr. Remove slightly off comment. (pthread_attr_getstackaddr): Remove slightly off comment. (pthread_getattr_np): Return stackaddr and stacksize based on the full allocated stackarea.
* * exceptions.cc (exception::myfault_handle): Rephrase comment.Corinna Vinschen2014-07-092-1/+8
|
* * exceptions.cc (exception::myfault_handle): Fix typo in comment.Corinna Vinschen2014-07-092-1/+5
|
* * exceptions.cc (exception::myfault_handle): Disable handlingCorinna Vinschen2014-07-073-0/+10
| | | | STATUS_STACK_OVERFLOW. Explain why.
* 2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz>Richard Earnshaw2014-07-072-1/+8
| | | | | | Richard Earnshaw <rearnsha@arm.com> * libc/machine/arm/memchr.S (.arch): Require revision ARMv6t2.
* * configure.in (--enable-newlib-nano-formatted-io): Set to "no"Corinna Vinschen2014-07-073-2/+8
| | | | | by default. * configure: Regenerated.
* * fhandler_socket.cc (fhandler_socket::send_internal): Improve loop toCorinna Vinschen2014-07-072-16/+49
| | | | | | write streams in chunks of wmem() bytes to raise performance when writing small buffers. Rename variables and add comments to help understanding the code in years to come.
* * passwd.cc (pg_ent::enumerate_ad): Revert to simply skipping a domainCorinna Vinschen2014-07-072-16/+10
| | | | if opening the connection to the domain fails.
* * libc/minires.c (minires_dprintf): Change "Minires" to "Resolv" toCorinna Vinschen2014-07-072-2/+13
| | | | | | differ from external minres lib. (res_nquerydomain): Fix off-by-one in domain concatenation. Add debug output.
* * configure.ac: Don't accept isl 0.10.Rainer Orth2014-07-053-55/+8
| | | | * configure: Regenerate.
* 2014-07-04 Bin Cheng <bin.cheng@arm.com>Jeff Johnston2014-07-0436-221/+3573
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README (--enable-newlib-nano-formatted-io): Describe. * acconfig.h (_NANO_FORMATTED_IO): Undef. * newlib.hin (_NANO_FORMATTED_IO): Undef. * configure.in (--enable-newlib-nano-formatted-io): New option. * configure: Regenerated. * libc/configure.in (--enable-newlib-nano-formatted-io): New option. * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_NANO_FORMATTED_IO): Support new configuration option. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/asnprintf.c (_asniprintf_r, asniprintf): Use _NANO_FORMATTED_IO to declare alias prototypes. * libc/stdio/asprintf.c (_asiprintf_r, asiprintf): Ditto. * libc/stdio/dprintf.c (_diprintf_r, diprintf): Ditto. * libc/stdio/fprintf.c (_fiprintf_r, fiprintf): Ditto. * libc/stdio/fscanf.c (fiscanf, _fiscanf_r): Ditto. * libc/stdio/printf.c (_iprintf_r, iprintf): Ditto. * libc/stdio/scanf.c (iscanf, _iscanf_r): Ditto. * libc/stdio/snprintf.c (_sniprintf_r, sniprintf): Ditto. * libc/stdio/sprintf.c (_siprintf_r, siprintf): Ditto. * libc/stdio/sscanf.c (siscanf, _siscanf_r): Ditto. * libc/stdio/vasnprintf.c (_vasniprintf_r, vasniprintf): Ditto. * libc/stdio/vasprintf.c (vasiprintf, _vasiprintf_r): Ditto. * libc/stdio/vdprintf.c (_vdiprintf_r, vdiprintf): Ditto. * libc/stdio/vprintf.c (viprintf, _viprintf_r): Ditto. * libc/stdio/vscanf.c (viscanf, _viscanf_r): Ditto. * libc/stdio/vsnprintf.c (vsniprintf, _vsniprintf_r): Ditto. * libc/stdio/vsprintf.c (vsiprintf, _vsiprintf_r): Ditto. * libc/stdio/vsscanf.c (vsiscanf, _vsiscanf_r): Ditto. * libc/stdio/nano-vfprintf.c: New file. * libc/stdio/nano-vfprintf_float.c: New file. * libc/stdio/nano-vfprintf_i.c: New file. * libc/stdio/nano-vfprintf_local.h: New file. * libc/stdio/nano-vfscanf.c: New file. * libc/stdio/nano-vfscanf_float.c: New file. * libc/stdio/nano-vfscanf_i.c: New file. * libc/stdio/nano-vfscanf_local.h: New file.
* * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Add debugCorinna Vinschen2014-07-032-0/+9
| | | | output.
* * legal.xml: Fix copyright.Corinna Vinschen2014-06-262-1/+5
|
* * errno.cc (errmap): Fix order of SERVICE_REQUEST_TIMEOUT.Corinna Vinschen2014-06-252-1/+5
|