Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FOR-TESTING] Merge the cygwin-3_5-branch #78

Draft
wants to merge 51 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
9577467
bump DLL version to 3.5.5
github-cygwin Aug 25, 2024
68a14b6
Cygwin: console: Disable cons_master_thread in win32-input-mode
tyan0 Aug 31, 2024
37ab3e0
Cygwin: pipe: Fix a regression that raw_write() slows down
tyan0 Aug 31, 2024
784ce7a
Cygwin: accommodate gcc -Og option
github-cygwin Feb 14, 2024
c7fe29f
Cygwin: pipe: Restore blocking mode of read pipe on close()/raw_read()
tyan0 Sep 6, 2024
0281d2c
cygwin: pread/pwrite: prevent EBADF error after fork()
chrfranke Oct 23, 2024
6e39f39
Cygwin: timer_delete: Fix return value
chrfranke Oct 23, 2024
db6ad93
powf: Fix the hi+lo decomposition for 2/(3ln2) (FreeBSD)
Sep 11, 2024
f21b930
powf: Fixed 2 bugs in the computation /* t_h=ax+bp[k] High */. (FreeBSD)
Sep 11, 2024
142c3c3
powf: Fixed another precision bug in powf() (FreeBSD)
Sep 11, 2024
b76735a
Cygwin: lockf: Fix adding a new lock over multiple locks
tyan0 Oct 19, 2024
f86a181
Cygwin: lockf: Make lockf() return ENOLCK when too many locks
tyan0 Oct 19, 2024
d700812
Cygwin: console: Inherit pcon hand over from parent pty
tyan0 Oct 31, 2024
3d364b9
Cygwin: pipe: fix shift value
github-cygwin Oct 31, 2024
2962922
Add recent pipe change to release note
tyan0 Oct 31, 2024
ea01b87
Cygwin: cygfe: Fix a bug that signal handler destroys fpu states
tyan0 Oct 31, 2024
7316884
Cygwin: console: Fix open() failure when the console owner calls exec().
tyan0 Nov 5, 2024
f307544
Cygwin: console: Re-fix open() failure on exec() by console owner
tyan0 Nov 6, 2024
92f4e10
Cygwin: console: Use GetCurrentProcessId() instead of myself->dwProce…
tyan0 Nov 6, 2024
38ab2b7
Cygwin: console: Fix clean up conditions in close()
tyan0 Nov 8, 2024
9dad29c
Cygwin: pthread: Correct pthread_cleanup macros to avoid potential sy…
shaobosong Nov 10, 2024
b9060e0
Cygwin: Change pthread_sigqueue() to accept thread id
mgeisert Nov 12, 2024
22474a6
Cygwin: check_dir_not_empty: Avoid leaving the allocated buffer.
bernhardu Nov 16, 2024
c4102f8
Cygwin: lockf: Fix access violation in lf_clearlock().
tyan0 Nov 13, 2024
67b31bc
Cygwin: flock: Fix overlap handling in lf_setlock() and lf_clearlock()
tyan0 Nov 15, 2024
2196f93
Cygwin: SetThreadName: avoid spurious debug message
github-cygwin Nov 20, 2024
46474ec
Cygwin: sigtimedwait: Fix segfault when timeout is used
tyan0 Nov 17, 2024
d06ba04
Cygwin: sched_getscheduler: fix error handling
chrfranke Nov 25, 2024
96d729b
Cygwin: sched_setscheduler: allow changes of the priority
chrfranke Nov 27, 2024
9af37ca
Cygwin: termios: Trim buffer size for GetConsoleProcessList()
tyan0 Dec 4, 2024
fff6372
Change various declarations to ANSI style to avoid problems with gcc 15
Blackhex Dec 3, 2024
c8e978a
Cygwin: Fix compatibility with GCC 15
Blackhex Dec 4, 2024
bb854e0
Cygwin: try_to_bin: transpose deleted file name to valid Unicode chars
github-cygwin Dec 4, 2024
bbf8484
libm/common: Fix nextafter and nextafterf when x == y
kito-cheng Dec 5, 2024
a951054
Cygwin: signal: Fix deadlock between main thread and sig thread
tyan0 Nov 25, 2024
09be373
Cygwin: signal: Handle queued signal without explicit __SIGFLUSH
tyan0 Nov 25, 2024
e1b6996
Cygwin: signal: Drop unnecessary queue flush
tyan0 Nov 25, 2024
f930a97
Cygwin: signal: Fix another deadlock between main and sig thread
tyan0 Nov 27, 2024
3a28aac
Cygwin: gendef: unify comments in terms of acquiring/releasing stacklock
github-cygwin Nov 23, 2024
da6d5f8
Cygwin: cygtls: Prompt system to switch tasks explicitly in lock()
tyan0 Nov 29, 2024
8fa1c02
Cygwin: signal: Fix a short period of deadlock
tyan0 Nov 29, 2024
e9fdf6f
Cygwin: signal: Optimize the priority of the sig thread
tyan0 Nov 29, 2024
7adfc92
Cygwin: signal: Increase chance of handling signal in main thread
tyan0 Dec 3, 2024
60fa8d7
Cygwin: setjmp/longjmp: decrement incyg after signal handling
github-cygwin Dec 4, 2024
52d1c85
Cygwin: cygtls: add volatile qualifier to spinning
github-cygwin Dec 5, 2024
9c34e02
Cygwin: setjmp/longjmp: drop setting spinning flag
github-cygwin Dec 5, 2024
2f9258b
Cygwin: Add setjmp/longjmp fix to 3.5.5 release messages
github-cygwin Dec 5, 2024
5bd4f99
Cygwin: signal: Remove queue entry from the queue chain when cleared
tyan0 Nov 29, 2024
b38ba4b
Cygwin: signal: Introduce a lock for the signal queue
tyan0 Dec 4, 2024
db55d54
Cygwin: Document several fixes for signal handling in release note
tyan0 Nov 26, 2024
024ca8c
Merge branch 'cygwin-3_5-branch'
dscho Dec 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions newlib/libc/posix/collate.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ struct __collate_st_chain_pri __collate_chain_pri_table[TABLE_SIZE];
void __collate_err(int ex, const char *f);

int
__collate_load_tables(encoding)
char *encoding;
__collate_load_tables(
char *encoding
)
{
char buf[PATH_MAX];
FILE *fp;
Expand Down Expand Up @@ -113,8 +114,9 @@ __collate_load_tables(encoding)
}

u_char *
__collate_substitute(s)
const u_char *s;
__collate_substitute(
const u_char *s
)
{
int dest_len, len, nlen;
int delta = strlen((const char *) s);
Expand Down Expand Up @@ -143,9 +145,12 @@ __collate_substitute(s)
}

void
__collate_lookup(t, len, prim, sec)
const u_char *t;
int *len, *prim, *sec;
__collate_lookup(
const u_char *t,
int *len,
int *prim,
int *sec
)
{
struct __collate_st_chain_pri *p2;

Expand All @@ -165,8 +170,7 @@ __collate_lookup(t, len, prim, sec)
}

u_char *
__collate_strdup(s)
u_char *s;
__collate_strdup(u_char *s)
{
u_char *t = (u_char *) strdup((const char *) s);

Expand Down
6 changes: 4 additions & 2 deletions newlib/libc/posix/collcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
* "[a-z]"-type ranges with national characters.
*/

int __collate_range_cmp (c1, c2)
int c1, c2;
int __collate_range_cmp (
int c1,
int c2
)
{
static char s1[2], s2[2];
int ret;
Expand Down
82 changes: 44 additions & 38 deletions newlib/libc/posix/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,13 @@ static char *pchar(int ch);
== size_t nmatch, regmatch_t pmatch[], int eflags);
*/
static int /* 0 success, REG_NOMATCH failure */
matcher(g, string, nmatch, pmatch, eflags)
struct re_guts *g;
char *string;
size_t nmatch;
regmatch_t pmatch[];
int eflags;
matcher(
struct re_guts *g,
char *string,
size_t nmatch,
regmatch_t pmatch[],
int eflags
)
{
char *endp;
int i;
Expand Down Expand Up @@ -346,12 +347,13 @@ int eflags;
== char *stop, sopno startst, sopno stopst);
*/
static char * /* == stop (success) always */
dissect(m, start, stop, startst, stopst)
struct match *m;
char *start;
char *stop;
sopno startst;
sopno stopst;
dissect(
struct match *m,
char *start,
char *stop,
sopno startst,
sopno stopst
)
{
int i;
sopno ss; /* start sop of current subRE */
Expand Down Expand Up @@ -539,13 +541,14 @@ sopno stopst;
== char *stop, sopno startst, sopno stopst, sopno lev);
*/
static char * /* == stop (success) or NULL (failure) */
backref(m, start, stop, startst, stopst, lev)
struct match *m;
char *start;
char *stop;
sopno startst;
sopno stopst;
sopno lev; /* PLUS nesting level */
backref(
struct match *m,
char *start,
char *stop,
sopno startst,
sopno stopst,
sopno lev /* PLUS nesting level */
)
{
int i;
sopno ss; /* start sop of current subRE */
Expand Down Expand Up @@ -744,12 +747,13 @@ sopno lev; /* PLUS nesting level */
== char *stop, sopno startst, sopno stopst);
*/
static char * /* where tentative match ended, or NULL */
fast(m, start, stop, startst, stopst)
struct match *m;
char *start;
char *stop;
sopno startst;
sopno stopst;
fast(
struct match *m,
char *start,
char *stop,
sopno startst,
sopno stopst
)
{
states st = m->st;
states fresh = m->fresh;
Expand Down Expand Up @@ -835,12 +839,13 @@ sopno stopst;
== char *stop, sopno startst, sopno stopst);
*/
static char * /* where it ended */
slow(m, start, stop, startst, stopst)
struct match *m;
char *start;
char *stop;
sopno startst;
sopno stopst;
slow(
struct match *m,
char *start,
char *stop,
sopno startst,
sopno stopst
)
{
states st = m->st;
states empty = m->empty;
Expand Down Expand Up @@ -931,13 +936,14 @@ sopno stopst;
== #define NNONCHAR (CODEMAX-CHAR_MAX)
*/
static states
step(g, start, stop, bef, ch, aft)
struct re_guts *g;
sopno start; /* start state within strip */
sopno stop; /* state after stop state within strip */
states bef; /* states reachable before */
int ch; /* character or NONCHAR code */
states aft; /* states already known reachable after */
step(
struct re_guts *g,
sopno start, /* start state within strip */
sopno stop, /* state after stop state within strip */
states bef, /* states reachable before */
int ch, /* character or NONCHAR code */
states aft /* states already known reachable after */
)
{
cset *cs;
sop s;
Expand Down
11 changes: 6 additions & 5 deletions newlib/libc/posix/fnmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ fnmatch(pattern, string, flags)
}

static int
rangematch(pattern, test, flags, newp)
const char *pattern;
char test;
int flags;
char **newp;
rangematch(
const char *pattern,
char test,
int flags,
char **newp
)
{
int negate, ok;
char c, c2;
Expand Down
Loading