]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
8 years agoBump CygwinAPI minor.
Corinna Vinschen [Mon, 25 Jul 2016 09:28:48 +0000 (11:28 +0200)]
Bump CygwinAPI minor.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoImplement strfmon_l
Corinna Vinschen [Mon, 25 Jul 2016 09:26:08 +0000 (11:26 +0200)]
Implement strfmon_l

Use latest code from FreeBSD

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoRename __get_locale_XXX to __get_XXX_locale to use unified naming scheme
Corinna Vinschen [Mon, 25 Jul 2016 09:24:59 +0000 (11:24 +0200)]
Rename __get_locale_XXX to __get_XXX_locale to use unified naming scheme

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoMove lconv into struct __locale_t and implement __localeconv_l
Corinna Vinschen [Mon, 25 Jul 2016 09:23:36 +0000 (11:23 +0200)]
Move lconv into struct __locale_t and implement __localeconv_l

Based on FreeBSD, just don't export symbol yet, unless required.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoImplement per-locale string functions
Corinna Vinschen [Sun, 24 Jul 2016 18:00:34 +0000 (20:00 +0200)]
Implement per-locale string functions

strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l,
wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l,
strftime_l.

Add missing CHEWOUT_FILES from previous patch.

TODO: strfmon_l.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoImplement all per-locale ctype functions
Corinna Vinschen [Sun, 24 Jul 2016 13:44:43 +0000 (15:44 +0200)]
Implement all per-locale ctype functions

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoMove localeconv, duplocale, freelocale, newlocale, uselocale into separate files
Corinna Vinschen [Sat, 23 Jul 2016 19:40:50 +0000 (21:40 +0200)]
Move localeconv, duplocale, freelocale, newlocale, uselocale into separate files

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoinclude/locale.h: Fix POSIX guards
Corinna Vinschen [Sat, 23 Jul 2016 12:19:52 +0000 (14:19 +0200)]
include/locale.h: Fix POSIX guards

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoRemove non-working __part_load_locale function and any related code
Corinna Vinschen [Sat, 23 Jul 2016 12:19:25 +0000 (14:19 +0200)]
Remove non-working __part_load_locale function and any related code

Add TODO markers in case somebody wants to pick this up again

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoposix.xml: Note duplocale, freelocale, newlocale, uselocale as implemented
Corinna Vinschen [Sat, 23 Jul 2016 12:01:15 +0000 (14:01 +0200)]
posix.xml: Note duplocale, freelocale, newlocale, uselocale as implemented

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoFix memory handling in functions called from loadlocale
Corinna Vinschen [Sat, 23 Jul 2016 11:30:21 +0000 (13:30 +0200)]
Fix memory handling in functions called from loadlocale

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoImplement newlocale, freelocale, duplocale, uselocale
Corinna Vinschen [Fri, 22 Jul 2016 20:54:07 +0000 (22:54 +0200)]
Implement newlocale, freelocale, duplocale, uselocale

Add global const __C_locale for reference purposes.

Bump Cygwin API minor number and DLL major version number to 2.6.0.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoUse __get_global_locale function where appropriate
Corinna Vinschen [Fri, 22 Jul 2016 20:40:45 +0000 (22:40 +0200)]
Use __get_global_locale function where appropriate

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoRearrange struct __locale_t pointers into an array
Corinna Vinschen [Fri, 22 Jul 2016 17:57:56 +0000 (19:57 +0200)]
Rearrange struct __locale_t pointers into an array

This allows looping through the structs and buffers.  Also
rearrange definitions to follow order of LC_xxx values.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoChange loadlocale to fill a __locale_t given as parameter
Corinna Vinschen [Thu, 21 Jul 2016 18:49:42 +0000 (20:49 +0200)]
Change loadlocale to fill a __locale_t given as parameter

Don't use global variables.  This allows to call loadlocale from
the yet to be created newlocale().

Rename _thr_locale_t to __locale_t (these locales are not restricted
to threads so the name is misleading).

Along these lines, fix _set_ctype to take a __locale_t as parameter.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoConsolidate wctomb/mbtowc calls for POSIX-1.2008
Corinna Vinschen [Wed, 20 Jul 2016 20:05:59 +0000 (22:05 +0200)]
Consolidate wctomb/mbtowc calls for POSIX-1.2008

- Remove charset parameter from low level __foo_wctomb/__foo_mbtowc calls.
- Instead, create array of function for ISO and Windows codepages to point
  to function which does not require to evaluate the charset string on
  each call.  Create matching helper functions.  I.e., __iso_wctomb,
  __iso_mbtowc, __cp_wctomb and __cp_mbtowc are functions returning the
  right function pointer now.
- Create __WCTOMB/__MBTOWC macros utilizing per-reent locale and replace
  calls to __wctomb/__mbtowc with calls to __WCTOMB/__MBTOWC.
- Drop global __wctomb/__mbtowc vars.
- Utilize aforementioned changes in Cygwin to get rid of charset in other,
  calling functions and simplify the code.
- In Cygwin restrict global cygheap locale info to the job performed
  by internal_setlocale.  Use UTF-8 instead of ASCII on the fly in
  internal conversion functions.
- In Cygwin dll_entry, make sure to initialize a TLS area with a NULL
  _REENT->_locale pointer.  Add comment to explain why.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoPOSIX-1.2008 per-thread locales, groundwork part 2
Corinna Vinschen [Tue, 19 Jul 2016 14:48:07 +0000 (16:48 +0200)]
POSIX-1.2008 per-thread locales, groundwork part 2

Move all locale category structure definitions into setlocale.h and remove
other headers in locale subdir.  Create inline accessor functions for
current category struct pointers and use throughout.  Use pointers to
"C" locale category structs by default in __global_locale.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoPOSIX-1.2008 per-thread locales, groundwork part 1
Corinna Vinschen [Wed, 13 Jul 2016 14:51:33 +0000 (16:51 +0200)]
POSIX-1.2008 per-thread locales, groundwork part 1

Introduce first cut of struct _thr_locale_t used for the locale_t definition.
Introduce global instance called __global_locale used by default.
Introduce internal inline functions __get_global_locale, __get_locale_r,
__get_current_locale.

Remove usage of global variables in favor of accessor functions pointing to
__global_locale for now.  Include all local headers in locale subdir from
setlocale.h to get single include for internal locale access.

Introduce __CTYPE_PTR macro to replace direct access to __ctype_ptr__
and use throughout in isxxx functions.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>

8 years agoDo not include wctype.h in wchar.h with _GNU_SOURCE
Yaakov Selkowitz [Fri, 12 Aug 2016 18:44:26 +0000 (13:44 -0500)]
Do not include wctype.h in wchar.h with _GNU_SOURCE

_GNU_SOURCE generally enables all features, but in this case the POSIX
requirement to #include <wctype.h> for these is preferred.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoDefine va_list in stdio.h and wchar.h
Yaakov Selkowitz [Fri, 12 Aug 2016 08:16:52 +0000 (03:16 -0500)]
Define va_list in stdio.h and wchar.h

This typedef, along with that of FILE in wchar.h, were XSI prior to
inclusion in POSIX.1-2008.

Fixes: https://sourceware.org/ml/newlib/2016/msg00640.html
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoRemove unused import/rexec.c accidentally imported by commit b6e90a06
Corinna Vinschen [Fri, 12 Aug 2016 12:52:09 +0000 (14:52 +0200)]
Remove unused import/rexec.c accidentally imported by commit b6e90a06

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoInclude wctype.h in wchar.h as an XSI extension
Yaakov Selkowitz [Thu, 11 Aug 2016 21:33:43 +0000 (16:33 -0500)]
Include wctype.h in wchar.h as an XSI extension

However, note that this inclusion is obsolescent in SUSv4 and therefore
may be removed in the next revision.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: wctype.h
Yaakov Selkowitz [Thu, 11 Aug 2016 19:16:24 +0000 (14:16 -0500)]
Feature test macros overhaul: wctype.h

iswblank was first introduced in C99.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agokill(pid, sig) before waitpid() returns -1 for sig != 0
Erik Bray [Thu, 11 Aug 2016 13:57:53 +0000 (15:57 +0200)]
kill(pid, sig) before waitpid() returns -1 for sig != 0

This is a followup to a report back in 2011 about essentially the same issue:

https://cygwin.com/ml/cygwin/2011-04/msg00031.html

The same test program in that report demonstrates the issue, but with
kill sending any non-zero signal.  To reiterate, the problem here is
POSIX compliance with respect to sending signals to zombie processes.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html
claims:

  Existing implementations vary on the result of a kill() with pid
  indicating an inactive process (a terminated process that has not been
  waited for by its parent). Some indicate success on such a call
  (subject to permission checking), while others give an error of
  [ESRCH].  Since the definition of process lifetime in this volume of
  POSIX.1-2008 covers inactive processes, the [ESRCH] error as described
  is inappropriate in this case. In particular, this means that an
  application cannot have a parent process check for termination of a
  particular child with kill().  (Usually this is done with the null
  signal; this can be done reliably with waitpid().)

In response to the originally issue, this was fixed *specifically* for
the case of kill(pid, 0).  But my reading of the above is that kill()
should return 0 in this case regardless of the signal (modulo
permissions, etc.).  On Linux, for example, when calling kill with pid
of a zombie process the kernel will happily deliver the signal to the
relevant task_struct; it will just never be acted on since the task
will never run again.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFeature test macros overhaul: wchar.h, part 2
Yaakov Selkowitz [Wed, 10 Aug 2016 19:47:35 +0000 (14:47 -0500)]
Feature test macros overhaul: wchar.h, part 2

Many wchar.h functions were never properly guarded; these changes should
make the header fully compliant.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoarc: Fix strcmp for big endian without barrel shifter
Anton Kolesov [Thu, 21 Jul 2016 10:19:34 +0000 (13:19 +0300)]
arc: Fix strcmp for big endian without barrel shifter

strcmp.S contained invalid guard for code that used barrel-shifter optional
instruction - it was checking for !ARC601 instead of whether barrel shifter
is present. While it is true that ARC601 doesn't have barrel shifter, so
does some other ARC EM configurations.

2016-07-21  Anton Kolesov  <Anton.Kolesov@synopsys.com>

* libc/machine/arc/strcmp.S: Fix big endian without barrel shifter.

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
8 years agoarc: Add align keyword.
Claudiu Zissulescu [Tue, 28 Jun 2016 13:12:16 +0000 (15:12 +0200)]
arc: Add align keyword.

libgloss/
2016-06-28  Claudiu Zissulescu  <claziss@synopsys.com>

* arc/crt0.S: Add align keyword.

8 years agoarc: Use prefetch instead of prealloc.
Claudiu Zissulescu [Tue, 26 Apr 2016 13:27:31 +0000 (15:27 +0200)]
arc: Use prefetch instead of prealloc.

Prealloc instruction may not be present in all HS variants. Hence, use
prefetch instead of prealloc.

newlib/
2016-04-26  Claudiu Zissulescu  <claziss@synopsys.com>

* libc/machine/arc/memset-archs.S: Use prefetch.

8 years agoarc: Use unaligned loads/stores for memcopy.
Claudiu Zissulescu [Tue, 26 Apr 2016 13:25:06 +0000 (15:25 +0200)]
arc: Use unaligned loads/stores for memcopy.

newlib/
2016-04-26  Claudiu Zissulescu  <claziss@synopsys.com>

* libc/machine/arc/memcpy-archs.S: Add and enable memcpy using
unaligned loads/stores.

8 years agortems: define _POSIX_CLOCK_SELECTION feature
Gedare Bloom [Mon, 1 Aug 2016 19:55:58 +0000 (14:55 -0500)]
rtems: define _POSIX_CLOCK_SELECTION feature

Enable definition of clock_nanosleep() since it was added to RTEMS.

Signed-off-by: Joel Sherrill <joelemail@rtems.org>
8 years agortems: add sys/mman.h
Gedare Bloom [Mon, 1 Aug 2016 19:55:57 +0000 (14:55 -0500)]
rtems: add sys/mman.h

This file was copied verbatim from FreeBSD and is in sync
with the FreeBSD svn version used by rtems-libbsd.

Signed-off-by: Joel Sherrill <joelemail@rtems.org>
8 years agoWorkaround for filesystems with broken FileAllInformation info class (NcFsd)
Corinna Vinschen [Thu, 4 Aug 2016 09:13:57 +0000 (11:13 +0200)]
Workaround for filesystems with broken FileAllInformation info class (NcFsd)

See discussion starting at https://cygwin.com/ml/cygwin/2016-07/msg00350.html

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix console clear screen if buffer is full
Corinna Vinschen [Wed, 3 Aug 2016 12:34:01 +0000 (14:34 +0200)]
Fix console clear screen if buffer is full

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix console clear screen in case of partial scrolling
Corinna Vinschen [Mon, 1 Aug 2016 10:35:51 +0000 (12:35 +0200)]
Fix console clear screen in case of partial scrolling

Commit d7586cb incorrectly checked only for the new cursor position
beyond the old cursor position to decide if we have to correct for user
scrolling.  Since this situation is handled just fine if the cursor is
still visible, only perform the subsequent correction if the cursor is
not in the visible console window.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoOpen process with PROCESS_QUERY_INFORMATION to fetch maps
Corinna Vinschen [Mon, 1 Aug 2016 09:52:30 +0000 (11:52 +0200)]
Open process with PROCESS_QUERY_INFORMATION to fetch maps

Commit ba58e5f lowered permission requirements when opening threads
and processes to {PROCESS,THREAD}_QUERY_LIMITED_INFORMATION.  However,
when creating the /proc/<PID>/maps file, the call to VirtualQueryEx
requires PROCESS_QUERY_INFORMATION access

Note: It seems PROCESS_QUERY_LIMITED_INFORMATION is sufficient starting
with Windows 8.1, but this is neither documented on MSDN, nor is it a
safe bet.  It may have to do with a fixed implementation of the UAC
trust levels.  Let's better follow the docs for now.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix clear screen behaviour of console when user scrolled up or down
Corinna Vinschen [Fri, 29 Jul 2016 10:07:46 +0000 (12:07 +0200)]
Fix clear screen behaviour of console when user scrolled up or down

We must call SetConsoleCursorPosition prior to SetConsoleWindowInfo,
otherwise the scroll bars will not be updated by the OS.  Make sure
to scroll the console window by just the right amount to have the
new cursor position one line after the used console buffer area at
the top of the console window, no matter the scroll state.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix buffer scrolling when performing a "clear screen"
Corinna Vinschen [Wed, 27 Jul 2016 18:39:24 +0000 (20:39 +0200)]
Fix buffer scrolling when performing a "clear screen"

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDon't raise SIGTTIN from poll/select
Corinna Vinschen [Tue, 26 Jul 2016 18:03:07 +0000 (19:03 +0100)]
Don't raise SIGTTIN from poll/select

SIGTTIN should be raised when read() is made on a tty in a backgrounded
process, but not when it's tested with poll()/select().

I guess poll()/select() does need to call bg_check(), in order to detect the
error conditions that notices (that is, if bg_check() returns bg_eof or
bg_error, then fd is ready as an error condition exists) so add an optional
parameter to fhandler_base::bg_select() to indicate that signals aren't
desired.

See https://cygwin.com/ml/cygwin-developers/2016-07/msg00004.html

8 years agoRemove redundant macro and function called `__getreent'
Corinna Vinschen [Wed, 27 Jul 2016 12:00:30 +0000 (14:00 +0200)]
Remove redundant macro and function called `__getreent'

Just rely on the inline version in include/cygwin/config.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoposix.xml: Add missing unimplemented functions from POSIX-1.2013
Corinna Vinschen [Sat, 23 Jul 2016 11:56:52 +0000 (13:56 +0200)]
posix.xml: Add missing unimplemented functions from POSIX-1.2013

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoChange "nodomain+nobody" to "no+body"
Corinna Vinschen [Fri, 22 Jul 2016 07:41:23 +0000 (09:41 +0200)]
Change "nodomain+nobody" to "no+body"

Per https://cygwin.com/ml/cygwin-apps/2016-07/msg00059.html

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoHandle WinFSP nobody account
Corinna Vinschen [Wed, 29 Jun 2016 15:12:38 +0000 (17:12 +0200)]
Handle WinFSP nobody account

Per discussion started at
https://cygwin.com/ml/cygwin/2016-06/msg00347.html

S-1-0-65534 == uid/gid 65534 == nodomain+nobody

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix typo
Corinna Vinschen [Mon, 18 Jul 2016 20:03:37 +0000 (22:03 +0200)]
Fix typo

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd release message for commit 71df3bf
Corinna Vinschen [Mon, 18 Jul 2016 20:03:00 +0000 (22:03 +0200)]
Add release message for commit 71df3bf

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agotruncl: Fix setting rounding bits in FPU control word
Corinna Vinschen [Mon, 18 Jul 2016 20:00:17 +0000 (22:00 +0200)]
truncl: Fix setting rounding bits in FPU control word

Mingw-w64, which is the source of this code, uses different
definitions of the rounding bits FE_TONEAREST and friends.
They immediately reflect the bit values in the FPU control word,
while on Cygwin they are shifted down to become the values 0-3.

Fix the bit computing expression to account for the difference.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agomath.h: fix guards on basic M_ constants
Yaakov Selkowitz [Fri, 15 Jul 2016 14:06:53 +0000 (09:06 -0500)]
math.h: fix guards on basic M_ constants

MAXFLOAT, M_PI, and friends date back to at least XPG4v2, so this guard
was incorrect even prior to the feature test macros overhaul.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoPut previous doc in correct section
Eric Blake [Thu, 14 Jul 2016 19:26:29 +0000 (13:26 -0600)]
Put previous doc in correct section

SSIZE_MAX was a bug fix, not a huge change.

Signed-off-by: Eric Blake <eblake@redhat.com>
8 years agoAdd release message for commit fe9e3b4
Corinna Vinschen [Thu, 14 Jul 2016 18:55:04 +0000 (20:55 +0200)]
Add release message for commit fe9e3b4

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoTransform all special chars in relative Windows path string
Corinna Vinschen [Thu, 14 Jul 2016 18:52:04 +0000 (20:52 +0200)]
Transform all special chars in relative Windows path string

get_nt_native_path handles the transposition of chars not allowed
in Windows pathnames.  However, it never starts transposition at
the start of the string, which is wrong for relative paths.  Fix it.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix 32-bit SSIZE_MAX
Eric Blake [Wed, 13 Jul 2016 20:35:43 +0000 (14:35 -0600)]
Fix 32-bit SSIZE_MAX

POSIX requires that SSIZE_MAX have the same type as ssize_t, but
on 32-bit, we were defining it as a long even though ssize_t
resolves to an int.  It also requires that SSIZE_MAX be usable
via preprocessor #if, so we can't cheat and use a cast.

If this were newlib, I'd have had to hack _intsup.h to probe the
qualities of size_t (via gcc's __SIZE_TYPE__), similar to how we
already probe the qualities of int8_t and friends, then cross our
fingers that ssize_t happens to have the same rank (most systems
do, but POSIX permits a system where they differ such as size_t
being long while ssize_t is int).  Unfortunately gcc gives us
neither __SSIZE_TYPE__ nor __SSIZE_MAX__.  On the other hand, our
limits.h is specific to cygwin, so we can just shortcut to the
correct results rather than being generic to all possible ABI.

Signed-off-by: Eric Blake <eblake@redhat.com>
8 years agoAdd release message for commit 82e0649
Corinna Vinschen [Thu, 14 Jul 2016 17:11:45 +0000 (19:11 +0200)]
Add release message for commit 82e0649

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agomachine/_types.h: __blkcnt_t should be signed
Ray Donnelly [Thu, 14 Jul 2016 11:40:47 +0000 (12:40 +0100)]
machine/_types.h: __blkcnt_t should be signed

[1] states: "blkcnt_t and off_t shall be signed integer types."

This causes pacman to fail when the size requirement
of the net update operation is negative, instead it
calculated a huge positive number.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html

8 years agoImprove description of Cygwin ldd utility
Jon Turney [Sat, 2 Jul 2016 15:45:02 +0000 (16:45 +0100)]
Improve description of Cygwin ldd utility

Improve the description of Cygwin ldd utility to give a bit more detail
about how it does what it does

Also add a security warning (modelled after the one in the Linux manpage)
that it may end up executing the file it is applied to.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
8 years agoUse <filename> tag, not <pathname> tag
Jon Turney [Sat, 2 Jul 2016 15:46:48 +0000 (16:46 +0100)]
Use <filename> tag, not <pathname> tag

Fix an instance of the invalid <pathname> tag in Cygwin utils documentation,
by using the valid <filename> tag instead.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
8 years agoUse <example> tag at same level as <para>, not inside it
Jon Turney [Sat, 2 Jul 2016 15:46:23 +0000 (16:46 +0100)]
Use <example> tag at same level as <para>, not inside it

In Cygwin utils documentation, use the <example> tag at same level as
<para>, not inside it.

This improves the generated manpages.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
8 years agoAdd release message for commit 8cff156
Corinna Vinschen [Wed, 6 Jul 2016 17:16:05 +0000 (19:16 +0200)]
Add release message for commit 8cff156

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agostrace: Make sure strace timer isn't copied to child process
Corinna Vinschen [Wed, 6 Jul 2016 17:12:59 +0000 (19:12 +0200)]
strace: Make sure strace timer isn't copied to child process

At fork time the .data and .bss segments of the Cygwin DLL are copied
over to the child process.  This also copies the strace timer since
it's in the .bss segment so far.  Fix that by moving the strace timer
out into the .data_cygwin_nocopy segment.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix typo in comment added by previous commit
Corinna Vinschen [Wed, 6 Jul 2016 16:23:05 +0000 (18:23 +0200)]
Fix typo in comment added by previous commit

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRedefine locale info in struct _reent for per-thread locales
Corinna Vinschen [Wed, 6 Jul 2016 13:41:35 +0000 (15:41 +0200)]
Redefine locale info in struct _reent for per-thread locales

The _reent members _current_category and _current_locale are not
used at all.  _current_locale is set to "C" in various points of
the code but its value is just as unused as _current_category.

This patch redefines these members without changing the size of the
structure to allow for an implementation of per-thread locales per
POSIX-1.2008 (i.e. uselocale and usage of the per-thread locale in
subsequent function calls).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRegenerate newlib Makefiles
Jon Turney [Mon, 4 Jul 2016 16:53:06 +0000 (17:53 +0100)]
Regenerate newlib Makefiles

8 years agoRegenerate newlib Makefiles
Jon Turney [Mon, 4 Jul 2016 16:09:30 +0000 (17:09 +0100)]
Regenerate newlib Makefiles

8 years agoMake newlib manpages (v3)
Jon Turney [Fri, 24 Jun 2016 20:50:15 +0000 (21:50 +0100)]
Make newlib manpages (v3)

Add makedocbook, a tool to process makedoc markup and output DocBook XML
refentries.

Process all the source files which are processed with makedoc with
makedocbook as well

Add chapter-texi2docbook, a tool to automatically generate DocBook XML
chapter files from the chapter .texi files.  For generating man pages all we
care about is the content of the refentries, so all this needs to do is
convert the @include of the makedoc generated .def files to xi:include of
the makedocbook generated .xml files.

Add skeleton Docbook XML book files, lib[cm].in.xml which include these
generated chapters, which in turn include the generated files containing
refentries, which is processed with xsltproc to generate the lib[cm].xml

Add new make targets to generate and install man pages from lib[cm].xml

8 years agoldd: Handle executable relocation when setting breakpoint
Corinna Vinschen [Sat, 2 Jul 2016 10:36:05 +0000 (12:36 +0200)]
ldd: Handle executable relocation when setting breakpoint

set_entry_point_break() uses GetModuleInformation to fetch the
address of the exe's entry point.  However, just as with
lpStartAddress from the CREATE_PROCESS_DEBUG_EVENT event, the
returned address is only computed from the PE file header.  It's
not actually the entry point in memory, if the executable is
relocated (ASLR).  See
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684229(v=vs.85).aspx

Convert this to using the info from CREATE_PROCESS_DEBUG_EVENT
combined with the offset from the PE file header's  AddressOfEntryPoint
to deal with relocation.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoldd: terminate process on hitting breakpoint
Corinna Vinschen [Sat, 2 Jul 2016 10:27:04 +0000 (12:27 +0200)]
ldd: terminate process on hitting breakpoint

So far ldd terminates the inferior process as soon as some thread
is started.  Apparently threads are started from even ntdll.dll
before the main thread of the application is started.  As a result
the dll list is cut short since ldd terminates prematurely.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoMake sure to use the Winsock definition of FIONREAD in ioctlsocket call
Corinna Vinschen [Fri, 1 Jul 2016 14:56:07 +0000 (16:56 +0200)]
Make sure to use the Winsock definition of FIONREAD in ioctlsocket call

Commit b1b46d45 introduced a regression.  After redefining FIONREAD
as part of restructuring newlib/Cygwin headers, the call to ioctlsocket
in the FIONREAD branch of fhandler_socket::ioctl should have been
changed to use the Winsock definition of FIONREAD, which I neglected.
This only affects 64 bit Cygwin.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRestore mingw64-x86_64-gcc-core in FAQ listing required packages
Jon Turney [Wed, 29 Jun 2016 14:08:19 +0000 (15:08 +0100)]
Restore mingw64-x86_64-gcc-core in FAQ listing required packages

Restore mingw64-x86_64-gcc-core to requirements for 32-bit builds in FAQ
listing required packages, and give reason.

8 years agoUpdate FAQ listing required packages for building Cygwin
Jon Turney [Mon, 27 Jun 2016 16:32:35 +0000 (17:32 +0100)]
Update FAQ listing required packages for building Cygwin

docbook2X is now required for building documentation
libiconv differences between x86_64 and x86 no longer exist

8 years agoContinuous Integration: Add Tea CI build configuration.
Qian Hong [Sun, 26 Jun 2016 06:41:16 +0000 (14:41 +0800)]
Continuous Integration: Add Tea CI build configuration.

8 years agoPhoenix-RTOS: Add caddr_t definition to <sys/types.h>.
Kuba Sejdak [Tue, 28 Jun 2016 08:47:49 +0000 (10:47 +0200)]
Phoenix-RTOS: Add caddr_t definition to <sys/types.h>.

8 years agoReformat some too-long lines
Corinna Vinschen [Mon, 27 Jun 2016 16:00:56 +0000 (18:00 +0200)]
Reformat some too-long lines

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd comment to point out missing access right per documentation
Corinna Vinschen [Mon, 27 Jun 2016 16:00:01 +0000 (18:00 +0200)]
Add comment to point out missing access right per documentation

In get_mem_values we open the process without PROCESS_VM_READ access
and are *still* able to request working set information, despite
MSDN claiming we need it for this purpose.  Instead of adding this
access right, just add an comment to point this out for now.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse PROCESS/THREAD_QUERY_LIMITED_INFORMATION where appropriate
Corinna Vinschen [Mon, 27 Jun 2016 15:56:16 +0000 (17:56 +0200)]
Use PROCESS/THREAD_QUERY_LIMITED_INFORMATION where appropriate

Using PROCESS/THREAD_QUERY_INFORMATION may limit the number of
processes/threads we can inspect depending on their integrity level.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoSet supported Windows release to Windows 10
Corinna Vinschen [Mon, 27 Jun 2016 15:51:41 +0000 (17:51 +0200)]
Set supported Windows release to Windows 10

This affects setting _WIN32_WINNT and WINVER.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove pre-Vista considerations from utilities
Corinna Vinschen [Mon, 27 Jun 2016 15:50:25 +0000 (17:50 +0200)]
Remove pre-Vista considerations from utilities

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoPhoenix-RTOS: Adjust network-related headers to new kernel API.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:55 +0000 (14:14 +0200)]
Phoenix-RTOS: Adjust network-related headers to new kernel API.

8 years agoPhoenix-RTOS: Add dummy implementation of fdatasync() syscall.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:54 +0000 (14:14 +0200)]
Phoenix-RTOS: Add dummy implementation of fdatasync() syscall.

8 years agoAdd dummy implementation of getentropy(), if_nametoindex() and if_indextoname() funct...
Kuba Sejdak [Fri, 24 Jun 2016 12:14:53 +0000 (14:14 +0200)]
Add dummy implementation of getentropy(), if_nametoindex() and if_indextoname() functions.

8 years agoPhoenix-RTOS: Implement daemon() function.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:52 +0000 (14:14 +0200)]
Phoenix-RTOS: Implement daemon() function.

8 years agoPhoenix-RTOS: Add checking EOF in getmntent().
Kuba Sejdak [Fri, 24 Jun 2016 12:14:51 +0000 (14:14 +0200)]
Phoenix-RTOS: Add checking EOF in getmntent().

8 years agoPhoenix-RTOS: Provide __progname symbol for user-space apps.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:50 +0000 (14:14 +0200)]
Phoenix-RTOS: Provide __progname symbol for user-space apps.

8 years agoPhoenix-RTOS: Fix warning with pointer treated as integer.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:49 +0000 (14:14 +0200)]
Phoenix-RTOS: Fix warning with pointer treated as integer.

8 years agoPhoenix-RTOS: Add <netpacket/packet.h> header and import <net/if_arp.h> header from...
Kuba Sejdak [Fri, 24 Jun 2016 12:14:48 +0000 (14:14 +0200)]
Phoenix-RTOS: Add <netpacket/packet.h> header and import <net/if_arp.h> header from FreeBSD.

8 years agoPhoenix-RTOS: Provide daemon() and fdatasync() syscalls in <sys/unistd.h>.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:47 +0000 (14:14 +0200)]
Phoenix-RTOS: Provide daemon() and fdatasync() syscalls in <sys/unistd.h>.

8 years agoAdd release message for commit b2867a6
Corinna Vinschen [Mon, 27 Jun 2016 11:21:19 +0000 (13:21 +0200)]
Add release message for commit b2867a6

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd missing OBJCOPY variable to Makefile.in
Corinna Vinschen [Sat, 26 Mar 2016 11:32:18 +0000 (12:32 +0100)]
Add missing OBJCOPY variable to Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRevert "Use .DELETE_ON_ERROR"
Jon Turney [Sat, 25 Jun 2016 16:08:18 +0000 (17:08 +0100)]
Revert "Use .DELETE_ON_ERROR"

This reverts commit 62b0bf0b8b65f16909b0e8d150a9c238cf6eb44a.

8 years agoRevert "Add missing OBJCOPY variable to Makefile.in"
Jon Turney [Sat, 25 Jun 2016 16:08:06 +0000 (17:08 +0100)]
Revert "Add missing OBJCOPY variable to Makefile.in"

This reverts commit fdc45c4bfbf382cac03e0b8267771fd7c5f678e6.

8 years agoRevert "Make newlib manpages via DocBook XML (v3)"
Jon Turney [Sat, 25 Jun 2016 16:07:43 +0000 (17:07 +0100)]
Revert "Make newlib manpages via DocBook XML (v3)"

This reverts commit 041ea4106881a3434e63ca95a38c911515793f09.

8 years agoMake newlib manpages via DocBook XML (v3)
Jon Turney [Fri, 24 Jun 2016 20:50:15 +0000 (21:50 +0100)]
Make newlib manpages via DocBook XML (v3)

Add makedocbook, a tool to process makedoc markup and output DocBook XML
refentries.

Process all the source files which are processed with makedoc with
makedocbook as well

Add chapter-texi2docbook, a tool to automatically generate DocBook XML
chapter files from the chapter .texi files.  For generating man pages all we
care about is the content of the refentries, so all this needs to do is
convert the @include of the makedoc generated .def files to xi:include of
the makedocbook generated .xml files.

Add skeleton Docbook XML book files, lib[cm].in.xml which include these
generated chapters, which in turn include the generated files containing
refentries, which is processed with xsltproc to generate the lib[cm].xml

Add new make targets to generate and install man pages from lib[cm].xml

8 years agoAdd missing OBJCOPY variable to Makefile.in
Corinna Vinschen [Sat, 26 Mar 2016 11:32:18 +0000 (12:32 +0100)]
Add missing OBJCOPY variable to Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse .DELETE_ON_ERROR
Jon Turney [Fri, 25 Mar 2016 13:56:03 +0000 (13:56 +0000)]
Use .DELETE_ON_ERROR

Use .DELETE_ON_ERROR
Make the fact that we are running dllfixdbg less obscure

8 years agoRemove leftover useless copyright hints
Corinna Vinschen [Sat, 25 Jun 2016 11:36:52 +0000 (13:36 +0200)]
Remove leftover useless copyright hints

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoClarify setting of child_info::msv_count in child_info.h
Corinna Vinschen [Sat, 25 Jun 2016 08:21:13 +0000 (10:21 +0200)]
Clarify setting of child_info::msv_count in child_info.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove CYGWIN=detect_bloda option
Corinna Vinschen [Tue, 15 Dec 2015 17:28:03 +0000 (18:28 +0100)]
Remove CYGWIN=detect_bloda option

8 years agoNo longer support "Interact with desktop"
Corinna Vinschen [Fri, 24 Jun 2016 22:42:36 +0000 (00:42 +0200)]
No longer support "Interact with desktop"

Always create child user window station and desktop, unless only
spawning with restricted token.  Also fix formatting of a few comments
in child_info_spawn::worker.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix comments for AI_ADDRCONFIG and AI_V4MAPPED
Corinna Vinschen [Tue, 15 Dec 2015 20:50:35 +0000 (21:50 +0100)]
Fix comments for AI_ADDRCONFIG and AI_V4MAPPED

8 years agosyscalls.cc: Merge desktop_ini_ext into desktop_ini
Corinna Vinschen [Tue, 15 Dec 2015 20:50:14 +0000 (21:50 +0100)]
syscalls.cc: Merge desktop_ini_ext into desktop_ini

8 years agofhandler_pty_master::pty_master_thread: Always check for correct pid
Corinna Vinschen [Tue, 15 Dec 2015 20:49:19 +0000 (21:49 +0100)]
fhandler_pty_master::pty_master_thread: Always check for correct pid

8 years agoRemove unused GetTickCount_ns
Corinna Vinschen [Tue, 15 Dec 2015 20:48:02 +0000 (21:48 +0100)]
Remove unused GetTickCount_ns

8 years agoFix various OS-related comments
Corinna Vinschen [Tue, 15 Dec 2015 20:43:33 +0000 (21:43 +0100)]
Fix various OS-related comments

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This page took 0.072546 seconds and 5 git commands to generate.