32 Commits

Author SHA1 Message Date
Mike Frysinger
290e19f814 drop support for pre ISO-C compilers
This drops __signed, __volatile, and __const.  Only the latter was
used in the code base, and for uClibc, not consistently.  Much of
the code used plain "const" which meant "__const" was useless.

Really, the point of this is to stay in sync with what glibc did.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-18 06:17:03 -05:00
Peter S. Mazinger
727aea1623 internals.h: mark __pthread_message hidden
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15 14:00:44 +02:00
Peter S. Mazinger
1d2dbb9eb2 linuxthreads: guard *tsd* related stuff correctly
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15 14:00:44 +02:00
Peter S. Mazinger
4b06ff8e51 move __libc_pthread_init prototype to pthread-functions.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15 14:00:43 +02:00
Peter S. Mazinger
bb0b54956b internals.h: use sysconf(_SC_PAGESIZE) instead of __pagesize
Rename PAGE_SIZE to __PAGE_SIZE to be sure that we do not get the
definition from uClibc_page.h.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15 14:00:33 +02:00
Denis Vlasenko
43ef9c6b3f *: remove some __libc_XXX functions:
__libc_accept __libc_close __libc_connect __libc_creat __libc_creat64
__libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep
__libc_open __libc_open64 __libc_pause __libc_read __libc_readv
__libc_recv __libc_recvfrom __libc_recvmsg
__libc_send __libc_sendmsg __libc_sendto
__libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev
They were removed from glibc 1 May 2004:
http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
2008-12-10 22:41:30 +00:00
Bernhard Reutner-Fischer
f1775381f9 - fix inline keyword 2008-07-23 11:19:00 +00:00
Bernhard Reutner-Fischer
81caa1a620 - fixup gnu_inline vs. C99 inline
- add missing header guards while at it
2008-01-05 11:24:00 +00:00
Mike Frysinger
da7412ee0e use sched_yield, not pthread_yield 2006-03-05 04:31:16 +00:00
Peter S. Mazinger
0c3a70aa53 Disable deprecated stuff in new linuxthreads 2006-02-13 08:39:27 +00:00
Peter S. Mazinger
fd56af193e change asm/volatile to __x__ 2006-02-01 09:25:33 +00:00
Peter S. Mazinger
2945fdf2ac __pthread_exit is noreturn only within libpthread 2006-02-01 01:34:36 +00:00
Peter S. Mazinger
44d025b3b9 New linuxthreads builds on x86, vapier: pt-allocrtsig.c is missing from sources 2006-01-31 20:54:59 +00:00
Peter S. Mazinger
8c2b377d28 s/IS_IN_linuxthreads/IS_IN_libpthread/, some prototypes, correct Makefile.in, disable __res_state, unavailable in resolv.h 2006-01-31 14:41:37 +00:00
Mike Frysinger
cccc549ced initial import of latest linuxthreads 2006-01-31 05:05:15 +00:00
Mike Frysinger
a9f5aa1cc9 rename current stable linuxthreads to linuxthreads.old to prepare for import of latest glibc version 2005-11-15 03:13:04 +00:00
Mike Frysinger
5a69eba90b revert linuxthreads to pre rev 11377 (i.e. before the massive attempt to import glibc updates) while keeping the few bugfixes ... idea is to keep both old and new linuxthreads around so we can hack on the new version while delivering the old stable version to end users 2005-11-15 03:02:51 +00:00
Mike Frysinger
f0b4463b7d implement __pthread_init_max_stacksize() which is required for FLOATING_STACKS 2005-11-07 23:41:10 +00:00
Mike Frysinger
5385df316e fix building with locale 2005-10-28 00:04:53 +00:00
Mike Frysinger
43014917a3 sync with glibc by moving the thread_desc stuff out of internals.h and into a new file descr.h ... also redo thread_desc init by specifying members in the struct by name rather than position 2005-09-09 02:39:12 +00:00
Mike Frysinger
2be79fd8f7 import the helper function pthread_for_each_thread from glibc 2005-09-08 03:17:05 +00:00
Mike Frysinger
11740630bb import misc defines from glibc 2005-09-08 03:14:23 +00:00
Eric Andersen
a4541d42ff The variable used to store pagesize is not the same as the
_dl_pagesize variable in ldso, so avoid aliasing.
 -Erik
2004-08-16 19:21:45 +00:00
Eric Andersen
64c5a652fb Fixup PAGE_SIZE problems
-Erik
2004-08-13 23:39:45 +00:00
Eric Andersen
7b79cc9ecf _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZE
instead, but we are not such a system and should not propagate such things.
2004-07-15 08:22:48 +00:00
Eric Andersen
338237994a s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/g 2004-01-16 13:43:30 +00:00
Manuel Novoa III
1217289737 Add a new *scanf implementation, includeing the *wscanf functions.
Should be standards compliant and with several optional features,
  including support for hexadecimal float notation, locale awareness,
  glibc-like locale-specific digit grouping with the `'' flag, and
  positional arg support.  I tested it pretty well (finding several
  bugs in glibc's scanf in the process), but it is brand new so be
  aware.

The *wprintf functions now support floating point output.  Also, a
  couple of bugs were squashed.  Finally, %a/%A conversions are
  now implemented.

Implement the glibc xlocale interface for thread-specific locale
  support.  Also add the various *_l(args, locale_t loc_arg) funcs.

  NOTE!!!  setlocale() is NOT threadsafe!  NOTE!!!

The strto{floating point} conversion functions are now locale aware.
  The also now support hexadecimal floating point notation.

Add the wcsto{floating point} conversion functions.

Fix a bug in mktime() related to dst.  Note that unlike glibc's mktime,
  uClibc's version always normalizes the struct tm before attempting
  to determine the correct dst setting if tm_isdst == -1 on entry.

Add a stub version of the libintl functions.  (untested)

Fixed a known memory leak in setlocale() related to the collation data.

Add lots of new config options (which Erik agreed to sort out :-),
  including finally exposing some of the stripped down stdio configs.
  Be careful with those though, as they haven't been tested in a
  long time.


(temporary) GOTCHAs...

The ctype functions are currently incorrect for 8-bit locales.  They
  will be fixed shortly.

The ctype functions are now table-based, resulting in larger staticly
  linked binaries.  I'll be adding an option to use the old approach
  in the stub locale configuration.
2003-08-01 20:08:59 +00:00
Eric Andersen
082d1540d3 Set the default thread stack size to 16k for mmu-less systems.
-Erik
2003-06-12 21:44:56 +00:00
Eric Andersen
5cbc6a7ae1 Use a funky version in a probably vein attempt at preventing gdb
from dlopen()'ing glibc's libthread_db library...
2003-03-01 09:04:55 +00:00
Eric Andersen
187dd78d7b Major update for pthreads, based in large part on improvements
from glibc 2.3.  This should make threads much more efficient.
 -Erik
2003-02-27 18:13:05 +00:00
Eric Andersen
3358b761b1 Based on work by Stefan Allius, arrange for early initialization of
pthread stuff.  Also, don't bother building libthread_db unless we
are debugging.
 -Erik
2002-08-19 10:05:03 +00:00
Eric Andersen
e356ea321c Merge in the pthread library. This is the linuxthreads library taken from
glibc 2.1.3 and ported to work with uClibc by Stefan Soucek and Erik Andersen
(me).  Stefan has hacked things up such that linuxthreads runs on MMU-less
systems (tested only on arm-nommu).  Erik cleaned things up and made it work
properly as a shared library.
 -Erik
2002-02-20 09:18:50 +00:00