public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Make sem_t self-contained
@ 2017-10-05 12:56 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2017-10-05 12:56 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8253c240cb0fc24697bfe2b9388cb7cad1badb34

commit 8253c240cb0fc24697bfe2b9388cb7cad1badb34
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Sep 13 13:07:31 2017 +0200

    RTEMS: Make sem_t self-contained
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/include/semaphore.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/semaphore.h b/newlib/libc/sys/rtems/include/semaphore.h
index e3c61da..44ecc58 100644
--- a/newlib/libc/sys/rtems/include/semaphore.h
+++ b/newlib/libc/sys/rtems/include/semaphore.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- * $FreeBSD$
+ * $FreeBSD: head/include/semaphore.h 314424 2017-02-28 21:47:00Z vangyzen $
  */
 
 /* semaphore.h: POSIX 1003.1b semaphores */
@@ -33,10 +33,14 @@
 #define _SEMAPHORE_H_
 
 #include <sys/cdefs.h>
+#include <sys/lock.h>
 #include <sys/_types.h>
 #include <sys/_timespec.h>
 
-typedef	__uint32_t	sem_t;
+typedef struct {
+	unsigned long _flags;
+	struct _Semaphore_Control _Semaphore;
+} sem_t;
 
 #define	SEM_FAILED	((sem_t *)0)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-05 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 12:56 [newlib-cygwin] RTEMS: Make sem_t self-contained Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).