<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/include, branch libressl-v2.2.4</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v2.2.4</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v2.2.4'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2015-04-07T01:27:07+00:00</updated>
<entry>
<title>Make pthread_atfork() track the DSO that called it like atexit() does,</title>
<updated>2015-04-07T01:27:07+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-04-07T01:27:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fd187e2b735724c166cd750838f5169b96a51c6f'/>
<id>urn:sha1:fd187e2b735724c166cd750838f5169b96a51c6f</id>
<content type='text'>
unregistering callbacks if the DSO is unloaded.  Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.

verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
</content>
</entry>
<entry>
<title>Make consistent the syscall stubs for the syscalls that got special</title>
<updated>2011-10-16T06:29:56+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2011-10-16T06:29:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a45814dbda3fe7b73d9575b576ba6477225985e6'/>
<id>urn:sha1:a45814dbda3fe7b73d9575b576ba6477225985e6</id>
<content type='text'>
handling to fix up the alignment of 64bit arguments so that they do
the same dance where _thread_sys_FOO is the real stub and FOO is a
weak alias.  For some of them, this is needed for cancellation handling.

From discussions with fgsch@, ok millert@
</content>
</entry>
<entry>
<title>remove _thread_malloc_init prototype</title>
<updated>2008-06-14T15:43:43+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2008-06-14T15:43:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5b5778393595ddb408f774ca0db7a9d40f6782f5'/>
<id>urn:sha1:5b5778393595ddb408f774ca0db7a9d40f6782f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove _MALLOC_LOCK_INIT; major bump; ok deraadt@</title>
<updated>2008-06-13T21:18:42+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2008-06-13T21:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b65da525816f8a4366b3b8f09e0bbcec6ec867a6'/>
<id>urn:sha1:b65da525816f8a4366b3b8f09e0bbcec6ec867a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- make arc4random*() functions thread safe. Use a custom spinlock function</title>
<updated>2008-01-01T00:43:39+00:00</updated>
<author>
<name>kurt</name>
<email></email>
</author>
<published>2008-01-01T00:43:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d08c4e4910d78ef0ddd9e7917c1f2d61b0021d4a'/>
<id>urn:sha1:d08c4e4910d78ef0ddd9e7917c1f2d61b0021d4a</id>
<content type='text'>
instead of the generic pthread macros since free(3) uses __arc4_getbyte()
when freeing small sized allocations and the generic pthread macros call
malloc(3).
- eliminate passing pointers to a static variable with global scope (rs)
for additional code clarity and reduction.
- shlib minor bumps for libc and libpthread due to new functions.
From andreas@ with some bits from me. okay tedu@ marc@ w/some spot
checking from millert@
</content>
</entry>
<entry>
<title>fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work with</title>
<updated>2007-11-19T02:54:19+00:00</updated>
<author>
<name>kurt</name>
<email></email>
</author>
<published>2007-11-19T02:54:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=82238b8a1552ad2206b7677e25095266b6f52a0f'/>
<id>urn:sha1:82238b8a1552ad2206b7677e25095266b6f52a0f</id>
<content type='text'>
both static and non-static mutexs.
</content>
</entry>
<entry>
<title>_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, so</title>
<updated>2007-06-05T18:11:48+00:00</updated>
<author>
<name>kurt</name>
<email></email>
</author>
<published>2007-06-05T18:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a9f7df88bc0ab9f89af4f9e71a3e4daea3a14008'/>
<id>urn:sha1:a9f7df88bc0ab9f89af4f9e71a3e4daea3a14008</id>
<content type='text'>
isolate its usage to libpthread only and replace with generic non-static
mutex support in the one place it is needed:
 - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the
   functions weak so that libpthread can override with its own new
   versions that do the locking.
 - remove _thread_fd_lock/unlock() weak functions from libc and adjust
   libpthread for the change.
 - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc
   to support non-static mutexes in libc and add libpthread and librthread
   implementations for them. libc can utilize non-static mutexes via the
   new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can
   support both static and non-static mutexes but currently only using
   them for non-static.
 - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe
   for both thread libraries by using a non-static mutex in the struct
   _dirdesc (typedef DIR), utilizing it in the *dir functions and remove
   remaining and incorrect _FD_LOCK/UNLOCK() use in libc.
 - add comments to both thread libraries to indicate libc depends on the
   current implementation of static mutex initialization. suggested by
   marc@
 - major bump libc and libpthread due to function removal, structure
   change and weak symbol conversions.
okay marc@, tedu@
</content>
</entry>
<entry>
<title>Part 2 of file descriptor race and deadlock corrections.</title>
<updated>2006-09-26T14:18:28+00:00</updated>
<author>
<name>kurt</name>
<email></email>
</author>
<published>2006-09-26T14:18:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3e7a96453995beff0dd6bfbefb9db0b02fbb7ef5'/>
<id>urn:sha1:3e7a96453995beff0dd6bfbefb9db0b02fbb7ef5</id>
<content type='text'>
Adjust design of file descriptor table to eliminate races
with both opening and closing of file descriptor entries
and eliminates one class of deadlocks. One nice side effect
of this change in design should be better performance for
applications that open and close many file descriptors due
to reduced fd_table_lock contention and fd entry reuse.

- Add entry states to manage use of entry and eliminate
some closing races. fd entries are not deallocated upon
close() now.
- Call _thread_fd_table_init with one of five discreet
modes to properly initialize an entry and manage the
state transition to open.
- When closing an entry hold the entry spinlock locked
across the state transition and the _thread_sys_close
call to close another race.
- Introduce a new lock type FD_RDWR_CLOSE that transitions
either a closed entry or an open entry into closing state
and then waits for a RDWR lock so that the lock queue can
unwind normally. All subsequent fd lock attempts for that
entry are rejected with EBADF until the fd is fully closed,
or reopened by dup2(). Once a thread holds the FD_RDWR_LOCK
it is safe to close() it or dup2() on it.
- When a thread creates a new fd there is a window of time
when another thread could attempt to use the fd before the
creating thread has initialized the entry for it. This can
result in improper status_flags for the entry, so record
the entries init mode, detect when this has happened and
correct the status_flags when needed.

reviewed by marc@ &amp; brad@, tested by several, okay brad@
</content>
</entry>
<entry>
<title>Avouid a race in atexit() handling by introducing a lock. Problem</title>
<updated>2006-02-22T07:16:32+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2006-02-22T07:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f79af607fea8db71524b8a4a1553fb437b284616'/>
<id>urn:sha1:f79af607fea8db71524b8a4a1553fb437b284616</id>
<content type='text'>
originally reported by Gergely Kovacs; help from dhartmei@;
ok tedu@ millert@
</content>
</entry>
<entry>
<title>Use a forward declaration of struct timespec instead of assuming</title>
<updated>2005-11-15T11:56:40+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2005-11-15T11:56:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5aae9fa1f07b086b852d9795330efd3d419d8804'/>
<id>urn:sha1:5aae9fa1f07b086b852d9795330efd3d419d8804</id>
<content type='text'>
it has already been defined by previous includes.  While this
is true at the moment, it will no longer be true after a pending
includes cleanup.  OK marc@
</content>
</entry>
</feed>
