aboutsummaryrefslogtreecommitdiff
path: root/libthreads
Commit message (Collapse)AuthorAgeFilesLines
* Fix extern inline useSamuel Thibault2012-03-252-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext2fs/Makefile (SRCS): Add xinl.c * libtreefs/Makefile (OTHERSRCS): Likewise. * term/Makefile (SRCS): Likewise. * ufs/Makefile (SRCS): Likewise. * hostmux/hostmux-xinl.c: Define HOSTMUX_DEFINE_EI instead of HOSTMUX_EI. * libdiskfs/extern-inline.c: Define DISKFS_DEFINE_EXTERN_INLINE instead of DISKFS_EXTERN_INLINE. * libftpconn/xinl.c: Define FTP_CONN_DEFINE_EI instead of FTP_CONN_EI. * libpipe/pipe-funcs.c: Define PIPE_DEFINE_EI instead of PIPE_EI. * libpipe/pq-funcs.c: Define PQ_DEFINE_EI instead of PQ_EI. * libshouldbeinlibc/idvec-funcs.c: Define IDVEC_DEFINE_EI instead of IDVEC_EI. * libshouldbeinlibc/maptime-funcs.c: Define MAPTIME_DEFINE_EI instead of MAPTIME_EI. * libshouldbeinlibc/ugids-xinl.c: Define UGIDS_DEFINE_EI instead of UGIDS_EI. * libstore/xinl.c: Define STORE_DEFINE_EI instead of STORE_EI. * libthreads/rwlock.c: Define RWLOCK_DEFINE_EI instead of RWLOCK_EI. * ext2fs/xinl.c: New file, define EXT2FS_DEFINE_EI and include "ext2fs.h" * libtreefs/xinl.c: New file, define TREEFS_DEFINE_EI and include "treefs.h" and "mig-decls.h". * term/xinl.c: New file, define TERM_DEFINE_EI and include "term.h". * ufs/xinl.c: New file, define UFS_DEFINE_EI and include "ufs.h" * ext2fs/ext2fs.h: Include <features.h>, define EXT2FS_EI to __extern_inline instead of "extern inline", define it to empty when EXT2FS_DEFINE_EI is defined. Always declare extern inline prototypes, and define extern inlines content only if __USE_EXTERN_INLINES or EXT2FS_DEFINE_EI is defined. * libdiskfs/diskfs.h: Likewise with DISKFS_EXTERN_INLINE and DISKFS_DEFINE_EXTERN_INLINE. * libftpconn/ftpconn.h: Likewise with FTP_CONN_EI and FTP_CONN_DEFINE_EI. * libftpconn/priv.h: Likewise. * libpipe/pipe.h: Likewise with PIPE_EI and PIPE_DEFINE_EI. * libpipe/pq.h: Likewise with PQ_EI and PQ_DEFINE_EI. * libshouldbeinlibc/idvec.h: Likewise with IDVEC_EI and IDVEC_DEFINE_EI. * libshouldbeinlibc/maptime.h: Likewise with MAPTIME_EI and MAPTIME_DEFINE_EI. * libshouldbeinlibc/ugids.h: Likewise with UGIDS_EI and UGIDS_DEFINE_EI. * libstore/store.h: Likewise with STORE_EI and STORE_DEFINE_EI. * libthreads/rwlock.h: Likewise with RWLOCK_EI and RWLOCK_DEFINE_EI. * term/term.h: Likewise with TERM_EI and TERM_DEFINE_EI. * ufs/ufs.h: Likewise with UFS_EI and UFS_DEFINE_EI. * libtreefs/treefs.h: Include <features.h>, define TREE_FS_EI to __extern_inline, or to empty when TREEFS_DEFINE_EI is defined. Use TREEFS_EI instead of "extern inline". * libtreefs/mig-decls.h: Use TREEFS_EI instead of "extern inline".
* Merge branch 'tls/libthreads'Thomas Schwinge2011-10-204-5/+48
|\ | | | | | | | | Conflicts: libthreads/ChangeLog
| * TLS support for libthreads.Samuel Thibault2011-10-205-5/+62
| | | | | | | | | | | | | | | | | | | | | | * libthreads/cprocs.c (cproc_create): Call into glibc to allocate static TLS block. * libthreads/cthread_internals.h (tcbhead_t): New structure; as in glibc. (cproc_setup): Take TCB parameter. (_dl_allocate_tls): Declare; from glibc. * libthreads/alpha/thread.c (cproc_setup): Compile-time warning for missing TLS support. * libthreads/i386/thread.c (cproc_setup): Imlement TLS support.
* | fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | | | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* | Enable debugging in mutex_try_lock tooSamuel Thibault2010-09-031-1/+1
| | | | | | | | | | * libthreads/cthreads.h (mutex_try_lock): Call WAIT_SET_DEBUG when spin_try_lock succeeds.
* | WAIT_DEBUG: permit to get function names instead of threadsSamuel Thibault2010-09-031-19/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | From the idea of Sergio Lopez. * libthreads/cthreads.h [WAIT_FUNC_DEBUG] (mutex): Replace struct cthread *holder field with const char *fname. (WAIT_CLEAR_DEBUG, WAIT_SET_DEBUG): New macros which clear and set fname or holder according to WAIT_FUNC_DEBUG and WAIT_DEBUG being defined. (mutex_init, mutex_unlock): Call WAIT_CLEAR_DEBUG in all cases instead of setting the `holder' field according to WAIT_DEBUG being defined (mutex_lock): Call WAIT_SET_DEBUG in all cases instead of setting the `holder' field according to WAIT_DEBUG being defined.
* | Fix "make dist" in `libthreads'.Ludovic Courtès2010-08-011-1/+6
| | | | | | | | | | * libthreads/Makefile (lndist, lndist-map-file): New targets. Link `libthreads.map' to the distribution directory.
* | Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-499/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
* | 2008-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-08-022-2/+13
| | | | | | | | | | | | | | | | | | | | [libpthread] * sysdeps/i386/bits/memory.h (__memory_barrier): Add memory clobber. * sysdeps/i386/bits/spin-lock.h (__pthread_spin_trylock, __pthread_spin_unlock): Add memory clobbers. [libthreads] * i386/cthreads.h (spin_unlock, spin_try_lock): Add memory clobbers.
* | Correct ChangeLog file.Thomas Schwinge2008-07-011-0/+4
| |
* | 2007-06-14 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-06-142-1/+21
|/ | | | * cthread_internals.h (cproc_block): Add prototype.
* 2006-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2007-03-031-4/+16
| | | | | | * libpthread/sysdeps/i386/machine-sp.h (thread_stack_pointer): Optimize esp read. * libpthread/i386/cthreads.h (cthread_sp): Likewise.
* .Roland McGrath2002-08-301-0/+5
|
* 2002-08-26 Roland McGrath <roland@frob.com>Roland McGrath2002-08-301-0/+12
| | | | | * cthreads.c (cthread_body) [HAVE_USELOCALE]: Call uselocale to initialize the thread to the global locale.
* Add comment to last change, for the benefit of the next merge :)Marcus Brinkmann2002-07-311-0/+10
|
* 2002-07-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-07-312-1/+10
| | | | | * cthreads.c (cthread_init): Move cthread_alloc call before cproc_init call (lost in merge).
* 2002-07-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-07-292-1/+33
| | | | | | * stack.c (stack_init): Put back in setting of the __hurd_threadvar_stack_mask and __hurd_threadvar_stack_offset variables (which got lost in the merge).
* .Roland McGrath2002-06-011-0/+3
|
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-06-012-17/+36
| | | | | * cthreads.h: Do not define WAIT_DEBUG to affect inlines. * options.h: Not here either.
* .Roland McGrath2002-05-291-0/+2
|
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-2/+16
| | | | * cprocs.c (cproc_block): Can't be static, called from cancel-cond.c.
* .Roland McGrath2002-05-281-0/+7
|
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-281-2/+22
| | | | | | * cthreads.h (hurd_condition_wait, condition_implies, condition_unimplies): Restore decls lost in merge. (mutex_clear): Define as mutex_init instead of bogon (lost in merge).
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-281-4/+15
| | | | | * cthreads.c (cthread_fork_prepare, cthread_fork_parent, cthread_fork_child): Don't call malloc_fork_* (lost in merge).
* .Roland McGrath2002-05-281-0/+5
|
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-281-9/+14
| | | | | * lockfile.c: Use __attribute__ magic instead of #pragma magic for alias definitions. Don't bother to make them weak.
* .Roland McGrath2002-05-271-0/+18
|
* 2002-05-26 Roland McGrath <roland@frob.com>Roland McGrath2002-05-271-66/+36
| | | | | | | | | | | | | Changes merged from CMU MK83a version: * cthreads.h, options.h: Various cleanups. * call.c, cthread_data.c, sync.c, mig_support.c, stack.c: Likewise. * i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise. * cthread_internals.h: Add decls for internal functions. (struct cproc): Use vm_offset_t for stack_base and stack_size members. Use natural_t for context member. * cprocs.c: Use prototypes for all defns. * cthreads.c: Likewise. (cthread_exit): Cast any_t to integer_t before int.
* 2002-05-26 Roland McGrath <roland@frob.com>Roland McGrath2002-05-271-9/+17
| | | | * alpha/thread.c: #if 0 out the silly bzero decl.
* 2002-05-26 Roland McGrath <roland@frob.com>Roland McGrath2002-05-2711-607/+616
| | | | | | | | | | | | | Changes merged from CMU MK83a version: * cthreads.h, options.h: Various cleanups. * call.c, cthread_data.c, sync.c, mig_support.c: Likewise. * i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise. * cthread_internals.h: Add decls for internal functions. (struct cproc): Use vm_offset_t for stack_base and stack_size members. Use natural_t for context member. * cprocs.c: Use prototypes for all defns. * cthreads.c: Likewise. (cthread_exit): Cast any_t to integer_t before int.
* 2002-05-26 Roland McGrath <roland@frob.com>Roland McGrath2002-05-274-0/+435
| | | | | * alpha/cthreads.h, alpha/thread.c, alpha/csw.S, alpha/lock.S: New files, verbatim from CMU release MK83a user/threads/alpha.
* .Roland McGrath2002-05-081-0/+8
|
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-1/+12
| | | | * cthreads.c (cthread_exit): Cast any_t to long before int.
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-082-3/+19
| | | | | | * cthread_internals.h: int -> void * for `busy' member. * cprocs.c (cthread_mach_msg): Don't cast to int when setting it. * cprocs.c (cthread_mag_active): Likewise.
* .Roland McGrath2002-05-081-0/+7
|
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-2/+13
| | | | | * cthreads.h (cthread_sp): Cast to vm_address_t instead of int. (mutex_unlock): Cast to void * instead of int.
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-1/+12
| | | | * cprocs.c (cproc_list_lock): Declare type as spin_lock_t.
* .Roland McGrath2002-05-011-0/+4
|
* 2002-03-24 Roland McGrath <roland@frob.com>Roland McGrath2002-05-011-2/+2
| | | | * libthreads.map: Use GLIBC_2.2.6 set instead of GLIBC_2.2.
* .Roland McGrath2001-12-221-0/+4
|
* 2001-12-22 Roland McGrath <roland@frob.com>Roland McGrath2001-12-221-4/+14
| | | | * i386/thread.c (cthread_sp): Use __thread_stack_pointer.
* .Roland McGrath2001-08-241-0/+4
|
* 2001-08-23 Roland McGrath <roland@frob.com>Roland McGrath2001-08-241-46/+5
| | | | * lockfile.c: Rewritten to use macros now defined by libc.
* .Roland McGrath2001-03-311-0/+1
|
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-03-311-9/+12
| | | | | | | | | | | | * cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise. * i386/thread.c: Likewise. * cthread_data.c: Likewise.
* .Roland McGrath2001-03-311-0/+1
|
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-03-311-2/+8
| | | | | | | | | | | * cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise. * i386/thread.c: Likewise.
* .Roland McGrath2001-03-311-0/+10
|
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-03-317-97/+126
| | | | | | | | | | * cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise.
* .Roland McGrath2001-02-261-0/+5
|