Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BZ #2978]
2006-08-03  Ulrich Drepper  <drepper@redhat.com>
	* rt/Makefile (tests): Add tst-clock2.
	* rt/tst-clock2.c: New file.

	[BZ #2978]
	* resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
	function and its parameters and pass it to new thread.
	(__gai_notify): Add support for alternative waiting for completion.
	* resolv/gai_suspend.c (gai_suspend): Add support for alternative
	waiting for completion.
	* resolv/getaddrinfo_a.c: Likewise.
	* resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
	waiting for completion is used.
	* resolv/gai_misc.c: Allow overwriting code to start helper thread.
	* resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
	* resolv/gai_error.c: Likewise.
	* resolv/gai_sigqueue.c: Likewise.

	* hurd/getdport.c (__detdport): Don't return EBADF; instead set
	errno to EBADF and return MACH_PORT_NULL.
	* posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
  • Loading branch information
Ulrich Drepper committed Aug 3, 2006
1 parent 6eab4ee commit f1762c0
Show file tree
Hide file tree
Showing 15 changed files with 397 additions and 37 deletions.
26 changes: 22 additions & 4 deletions ChangeLog
@@ -1,13 +1,31 @@
2006-08-03 Ulrich Drepper <drepper@redhat.com>

* rt/Makefile (tests): Add tst-clock2.
* rt/tst-clock2.c: New file.

[BZ #2978]
* resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
function and its parameters and pass it to new thread.
(__gai_notify): Add support for alternative waiting for completion.
* resolv/gai_suspend.c (gai_suspend): Add support for alternative
waiting for completion.
* resolv/getaddrinfo_a.c: Likewise.
* resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
waiting for completion is used.
* resolv/gai_misc.c: Allow overwriting code to start helper thread.
* resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
* resolv/gai_error.c: Likewise.
* resolv/gai_sigqueue.c: Likewise.

2006-08-02 Thomas Schwinge <tschwinge@gnu.org>

* hurd/getdport.c (__detdport): Don't return EBADF; instead set
errno to EBADF and return MACH_PORT_NULL.
* hurd/getdport.c (__detdport): Don't return EBADF; instead set
errno to EBADF and return MACH_PORT_NULL.

2006-06-23 Joseph Myers <joseph@codesourcery.com>

[BZ #2980]
* posix/Makefile (CFLAGS-waitid.c): Add
-fasynchronous-unwind-tables.
* posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.

2006-08-02 Ulrich Drepper <drepper@redhat.com>

Expand Down
7 changes: 7 additions & 0 deletions localedata/ChangeLog
@@ -1,3 +1,10 @@
2006-08-03 Ulrich Drepper <drepper@redhat.com>

* SUPPORTED (SUPPORTED-LOCALES): Add csb_PL.UTF-8.

[BZ #2961]
* locales/csb_PL: New file.

2006-08-01 Ulrich Drepper <drepper@redhat.com>

* locales/es_NI: Define real t_fmt_ampm and am_pm.
Expand Down
1 change: 1 addition & 0 deletions localedata/SUPPORTED
Expand Up @@ -72,6 +72,7 @@ ca_IT.UTF-8/UTF-8 \
ca_IT/ISO-8859-15 \
cs_CZ.UTF-8/UTF-8 \
cs_CZ/ISO-8859-2 \
csb_PL/UTF-8 \
cy_GB.UTF-8/UTF-8 \
cy_GB/ISO-8859-14 \
da_DK.UTF-8/UTF-8 \
Expand Down
210 changes: 210 additions & 0 deletions localedata/locales/csb_PL
@@ -0,0 +1,210 @@
comment_char %
escape_char /
%
% Kashubian Language Locale for Poland
% Source: csb_PL locale
% Contact: Michal Ostrowski
% Email: ostrowski.michal@gmail.com
% Tel: +48586717262
% Fax: none
% Language: csb
% Territory: PL
% Revision: 1.0
% Date: 2006-07-25
% Application: general
% Users: general
% Charset: UTF-8
% Distribution and use is free, also
% for commercial purposes.

LC_IDENTIFICATION
title "Kashubian locale for Poland"
source "csb_PL locale"
address ""
contact "Michal Ostrowski"
email "bug-glibc-locales@gnu.org"
tel ""
fax ""
language "Kashubian"
territory "Poland"
revision "1.0"
date "2006-07-25"
audience "general"
application "GNU locale"
abbreviation ""
%
category "csb_PL:2000";LC_IDENTIFICATION
category "csb_PL:2000";LC_CTYPE
category "csb_PL:2000";LC_COLLATE
category "csb_PL:2000";LC_TIME
category "csb_PL:2000";LC_NUMERIC
category "csb_PL:2000";LC_MONETARY
category "csb_PL:2000";LC_MESSAGES
category "csb_PL:2000";LC_PAPER
category "csb_PL:2000";LC_NAME
category "csb_PL:2000";LC_ADDRESS
category "csb_PL:2000";LC_TELEPHONE

END LC_IDENTIFICATION

LC_CTYPE
copy "pl_PL"
END LC_CTYPE

LC_COLLATE
copy "iso14651_t1"

collating-symbol <aogonek>
collating-symbol <atilde>
collating-symbol <eacute>
collating-symbol <ediaeresis>
collating-symbol <lstroke>
collating-symbol <nacute>
collating-symbol <ograve>
collating-symbol <oacute>
collating-symbol <ocircumflex>
collating-symbol <ugrave>
collating-symbol <zdot>

reorder-after <a>
<aogonek>
<atilde>

reorder-after <e>
<eacute>
<ediaeresis>

reorder-after <l>
<lstroke>

reorder-after <n>
<nacute>

reorder-after <o>
<ograve>
<oacute>
<ocircumflex>

reorder-after <u>
<ugrave>

reorder-after <z>
<zdot>

reorder-after <U0061>
<U0105> <aogonek>;<BAS>;<MIN>;IGNORE
<U0104> <aogonek>;<BAS>;<CAP>;IGNORE
<U00E3> <atilde>;<BAS>;<MIN>;IGNORE
<U00C3> <atilde>;<BAS>;<CAP>;IGNORE

reorder-after <U0065>
<U00E9> <eacute>;<BAS>;<MIN>;IGNORE
<U00C9> <eacute>;<BAS>;<CAP>;IGNORE
<U00EB> <ediaeresis>;<BAS>;<MIN>;IGNORE
<U00CB> <ediaeresis>;<BAS>;<CAP>;IGNORE

reorder-after <U006C>
<U0142> <lstroke>;<BAS>;<MIN>;IGNORE
<U0141> <lstroke>;<BAS>;<CAP>;IGNORE

reorder-after <U006E>
<U0144> <nacute>;<BAS>;<MIN>;IGNORE
<U0143> <nacute>;<BAS>;<CAP>;IGNORE

reorder-after <U006F>
<U00F2> <ograve>;<BAS>;<MIN>;IGNORE
<U00D2> <ograve>;<BAS>;<CAP>;IGNORE
<U00F3> <oacute>;<BAS>;<MIN>;IGNORE
<U00D3> <oacute>;<BAS>;<CAP>;IGNORE
<U00F4> <ocircumflex>;<BAS>;<MIN>;IGNORE
<U00D4> <ocircumflex>;<BAS>;<CAP>;IGNORE

reorder-after <U0075>
<U00F9> <ugrave>;<BAS>;<MIN>;IGNORE
<U00D9> <ugrave>;<BAS>;<CAP>;IGNORE

reorder-after <U007A>
<U017C> <zdot>;<BAS>;<MIN>;IGNORE
<U017B> <zdot>;<BAS>;<CAP>;IGNORE

reorder-end

END LC_COLLATE

LC_MESSAGES
yesexpr "<U005E><U005B><U004A><U006A><U0054><U0074><U0059><U0079><U005D><U002E><U002A>"
noexpr "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"

END LC_MESSAGES

LC_MONETARY
copy "pl_PL"
END LC_MONETARY

LC_NUMERIC
copy "pl_PL"
END LC_NUMERIC

LC_TIME
abday "<U006E><U0069><U0065>"; "<U0070><U00F2><U006E>";/
"<U0077><U0074><U00F3>"; "<U0073><U0074><U0072>";/
"<U0063><U007A><U0077>"; "<U0070><U0069><U0105>";/
"<U0073><U006F><U0062>"

day "<U006E><U0069><U0065><U0064><U007A><U0065><U006C><U0061>";/
"<U0070><U00F2><U006E><U0069><U0065><U0064><U007A><U00F4><U0142><U006B>";/
"<U0077><U0074><U00F3><U0072><U006B>";/
"<U0073><U0074><U0072><U007A><U006F><U0064><U0061>";/
"<U0063><U007A><U0077><U0069><U00F4><U0072><U0074><U006B>";/
"<U0070><U0069><U0105><U0074><U006B>";/
"<U0073><U006F><U0062><U00F2><U0074><U0061>"
abmon "<U0073><U0074><U00EB>"; "<U0067><U0072><U006F>";/
"<U0073><U0074><U006D>"; "<U0142><U017C><U00EB>";/
"<U006D><U00F4><U006A>"; "<U0063><U007A><U0065>";/
"<U006C><U00EB><U0070>"; "<U007A><U00E9><U006C>";/
"<U0073><U00E9><U0077>"; "<U0072><U0075><U006A>";/
"<U006C><U00EB><U0073>"; "<U0067><U00F2><U0064>"
mon "<U0073><U0074><U00EB><U0063><U007A><U006E><U0069><U006B>";/
"<U0067><U0072><U006F><U006D><U0069><U0063><U007A><U006E><U0069><U006B>";/
"<U0073><U0074><U0072><U0075><U006D><U0069><U0061><U006E><U006E><U0069><U006B>";/
"<U0142><U017C><U00EB><U006B><U0077><U0069><U00F4><U0074>";/
"<U006D><U00F4><U006A>";/
"<U0063><U007A><U0065><U0072><U0077><U0069><U0144><U0063>";/
"<U006C><U00EB><U0070><U0069><U006E><U0063>";/
"<U007A><U00E9><U006C><U006E><U0069><U006B>";/
"<U0073><U00E9><U0077><U006E><U0069><U006B>";/
"<U0072><U0075><U006A><U0061><U006E>";/
"<U006C><U00EB><U0073><U0074><U006F><U0070><U0061><U0064><U006E><U0069><U006B>";/
"<U0067><U00F2><U0064><U006E><U0069><U006B>"
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
d_fmt "<U0025><U0059><U002D><U0025><U006D><U002D><U0025><U0064>"
t_fmt "<U0025><U0054>"
am_pm "";""
t_fmt_ampm ""
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
<U0025><U005A><U0020><U0025><U0059>"
week 7;19971201;4
first_weekday 2
first_workday 2
END LC_TIME

LC_PAPER
copy "pl_PL"
END LC_PAPER

LC_TELEPHONE
copy "pl_PL"
END LC_TELEPHONE

LC_MEASUREMENT
copy "pl_PL"
END LC_MEASUREMENT

LC_NAME
copy "pl_PL"
END LC_NAME

LC_ADDRESS
copy "pl_PL"
END LC_ADDRESS
4 changes: 4 additions & 0 deletions nptl/ChangeLog
@@ -1,3 +1,7 @@
2006-08-03 Ulrich Drepper <drepper@redhat.com>

* sysdeps/pthread/gai_misc.h: New file.

2006-08-01 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
Expand Down
4 changes: 2 additions & 2 deletions resolv/gai_cancel.c
@@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
Expand All @@ -20,7 +20,7 @@
#include <netdb.h>
#include <pthread.h>

#include "gai_misc.h"
#include <gai_misc.h>


int
Expand Down
4 changes: 2 additions & 2 deletions resolv/gai_error.c
@@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
Expand All @@ -19,7 +19,7 @@

#include <netdb.h>

#include "gai_misc.h"
#include <gai_misc.h>

int
gai_error (struct gaicb *req)
Expand Down
32 changes: 24 additions & 8 deletions resolv/gai_misc.c
@@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
Expand All @@ -23,10 +23,31 @@
#include <stdlib.h>
#include <sys/time.h>

#include "gai_misc.h"
#include <gai_misc.h>



#ifndef gai_create_helper_thread
# define gai_create_helper_thread __gai_create_helper_thread

extern inline int
__gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
void *arg)
{
pthread_attr_t attr;

/* Make sure the thread is created detached. */
pthread_attr_init (&attr);
pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);

int ret = pthread_create (threadp, &attr, tf, arg);

(void) pthread_attr_destroy (&attr);
return ret;
}
#endif


/* Pool of request list entries. */
static struct requestlist **pool;

Expand Down Expand Up @@ -229,16 +250,11 @@ __gai_enqueue_request (struct gaicb *gaicbp)
if (nthreads < optim.gai_threads && idle_thread_count == 0)
{
pthread_t thid;
pthread_attr_t attr;

newp->running = 1;

/* Make sure the thread is created detached. */
pthread_attr_init (&attr);
pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);

/* Now try to start a thread. */
if (pthread_create (&thid, &attr, handle_requests, newp) == 0)
if (gai_create_helper_thread (&thid, handle_requests, newp) == 0)
/* We managed to enqueue the request. All errors which can
happen now can be recognized by calls to `gai_error'. */
++nthreads;
Expand Down
4 changes: 3 additions & 1 deletion resolv/gai_misc.h
@@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
Expand Down Expand Up @@ -29,7 +29,9 @@ struct waitlist
{
struct waitlist *next;

#ifndef DONT_NEED_GAI_MISC_COND
pthread_cond_t *cond;
#endif
volatile int *counterp;
/* The next field is used in asynchronous `lio_listio' operations. */
struct sigevent *sigevp;
Expand Down

0 comments on commit f1762c0

Please sign in to comment.