diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-28 12:04:39 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-28 12:04:39 -0600 |
commit | 557108c7011c211dddd4920457f950c9e6d33d4f (patch) | |
tree | 0555dab144a86232dc9cf027b769a7a0e6a26d2a /nuttx/syscall | |
parent | 212ec1530e550b6d4a4a5088dc45a8f8315e3e20 (diff) | |
download | px4-nuttx-557108c7011c211dddd4920457f950c9e6d33d4f.tar.gz px4-nuttx-557108c7011c211dddd4920457f950c9e6d33d4f.tar.bz2 px4-nuttx-557108c7011c211dddd4920457f950c9e6d33d4f.zip |
Add sem_timedwait to syscalls
Diffstat (limited to 'nuttx/syscall')
-rw-r--r-- | nuttx/syscall/syscall.csv | 1 | ||||
-rw-r--r-- | nuttx/syscall/syscall_lookup.h | 3 | ||||
-rw-r--r-- | nuttx/syscall/syscall_stublookup.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/syscall/syscall.csv b/nuttx/syscall/syscall.csv index 3ae366a39..088103f45 100644 --- a/nuttx/syscall/syscall.csv +++ b/nuttx/syscall/syscall.csv @@ -103,6 +103,7 @@ "sem_destroy","semaphore.h","","int","FAR sem_t*" "sem_open","semaphore.h","","FAR sem_t*","FAR const char*","int","..." "sem_post","semaphore.h","","int","FAR sem_t*" +"sem_timedwait","semaphore.h","","int","FAR sem_t*","FAR const struct timespec *" "sem_trywait","semaphore.h","","int","FAR sem_t*" "sem_unlink","semaphore.h","","int","FAR const char*" "sem_wait","semaphore.h","","int","FAR sem_t*" diff --git a/nuttx/syscall/syscall_lookup.h b/nuttx/syscall/syscall_lookup.h index 7f6da78ab..4962474c5 100644 --- a/nuttx/syscall/syscall_lookup.h +++ b/nuttx/syscall/syscall_lookup.h @@ -1,7 +1,7 @@ /**************************************************************************** * syscall/syscall_lookup.h * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -60,6 +60,7 @@ SYSCALL_LOOKUP(sem_close, 1, STUB_sem_close) SYSCALL_LOOKUP(sem_destroy, 2, STUB_sem_destroy) SYSCALL_LOOKUP(sem_open, 6, STUB_sem_open) SYSCALL_LOOKUP(sem_post, 1, STUB_sem_post) +SYSCALL_LOOKUP(sem_timedwait, 2, STUB_sem_timedwait) SYSCALL_LOOKUP(sem_trywait, 1, STUB_sem_trywait) SYSCALL_LOOKUP(sem_unlink, 1, STUB_sem_unlink) SYSCALL_LOOKUP(sem_wait, 1, STUB_sem_wait) diff --git a/nuttx/syscall/syscall_stublookup.c b/nuttx/syscall/syscall_stublookup.c index 50e302e59..19059370c 100644 --- a/nuttx/syscall/syscall_stublookup.c +++ b/nuttx/syscall/syscall_stublookup.c @@ -80,6 +80,7 @@ uintptr_t STUB_sem_destroy(int nbr, uintptr_t parm1); uintptr_t STUB_sem_open(int nbr, uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5, uintptr_t parm6); uintptr_t STUB_sem_post(int nbr, uintptr_t parm1); +uintptr_t STUB_sem_timedwait(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_sem_trywait(int nbr, uintptr_t parm1); uintptr_t STUB_sem_unlink(int nbr, uintptr_t parm1); uintptr_t STUB_sem_wait(int nbr, uintptr_t parm1); |