From a52144381736f15ec23ca4e245bf8c022df8d861 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 31 Mar 2011 01:42:50 +0000 Subject: [PATCH] Move more files into subdirectories under lib/ git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3445 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 5 ++ Documentation/NuttxPortingGuide.html | 2 +- Makefile | 4 +- include/nuttx/pthread.h | 85 +++++++++++++++++++ include/pthread.h | 12 ++- lib/Makefile | 16 ++-- lib/pthread/Make.defs | 49 +++++++++++ {sched => lib/pthread}/pthread_attrdestroy.c | 5 +- .../pthread}/pthread_attrgetinheritsched.c | 5 +- .../pthread}/pthread_attrgetschedparam.c | 5 +- .../pthread}/pthread_attrgetschedpolicy.c | 5 +- .../pthread}/pthread_attrgetstacksize.c | 5 +- {sched => lib/pthread}/pthread_attrinit.c | 6 +- .../pthread}/pthread_attrsetinheritsched.c | 6 +- .../pthread}/pthread_attrsetschedparam.c | 5 +- .../pthread}/pthread_attrsetschedpolicy.c | 5 +- .../pthread}/pthread_attrsetstacksize.c | 6 +- .../pthread}/pthread_barrierattrdestroy.c | 4 +- .../pthread}/pthread_barrierattrgetpshared.c | 4 +- .../pthread}/pthread_barrierattrinit.c | 4 +- .../pthread}/pthread_barrierattrsetpshared.c | 4 +- .../pthread}/pthread_condattrdestroy.c | 5 +- {sched => lib/pthread}/pthread_condattrinit.c | 5 +- .../pthread}/pthread_mutexattrdestroy.c | 6 +- .../pthread}/pthread_mutexattrgetpshared.c | 6 +- .../pthread}/pthread_mutexattrgettype.c | 6 +- .../pthread}/pthread_mutexattrinit.c | 6 +- .../pthread}/pthread_mutexattrsetpshared.c | 6 +- .../pthread}/pthread_mutexattrsettype.c | 6 +- .../semaphore/Make.defs | 13 +-- {sched => lib/semaphore}/sem_destroy.c | 18 ++-- {sched => lib/semaphore}/sem_getvalue.c | 18 ++-- {sched => lib/semaphore}/sem_init.c | 19 ++--- sched/Makefile | 21 +---- sched/pthread_create.c | 10 +-- sched/pthread_internal.h | 15 ++-- syscall/syscall.csv | 27 ------ tools/Makefile.host | 48 +++++++++++ 38 files changed, 293 insertions(+), 184 deletions(-) create mode 100644 include/nuttx/pthread.h create mode 100644 lib/pthread/Make.defs rename {sched => lib/pthread}/pthread_attrdestroy.c (96%) rename {sched => lib/pthread}/pthread_attrgetinheritsched.c (96%) rename {sched => lib/pthread}/pthread_attrgetschedparam.c (96%) rename {sched => lib/pthread}/pthread_attrgetschedpolicy.c (96%) rename {sched => lib/pthread}/pthread_attrgetstacksize.c (96%) rename {sched => lib/pthread}/pthread_attrinit.c (96%) rename {sched => lib/pthread}/pthread_attrsetinheritsched.c (96%) rename {sched => lib/pthread}/pthread_attrsetschedparam.c (96%) rename {sched => lib/pthread}/pthread_attrsetschedpolicy.c (96%) rename {sched => lib/pthread}/pthread_attrsetstacksize.c (96%) rename {sched => lib/pthread}/pthread_barrierattrdestroy.c (97%) rename {sched => lib/pthread}/pthread_barrierattrgetpshared.c (97%) rename {sched => lib/pthread}/pthread_barrierattrinit.c (97%) rename {sched => lib/pthread}/pthread_barrierattrsetpshared.c (97%) rename {sched => lib/pthread}/pthread_condattrdestroy.c (95%) rename {sched => lib/pthread}/pthread_condattrinit.c (95%) rename {sched => lib/pthread}/pthread_mutexattrdestroy.c (96%) rename {sched => lib/pthread}/pthread_mutexattrgetpshared.c (96%) rename {sched => lib/pthread}/pthread_mutexattrgettype.c (96%) rename {sched => lib/pthread}/pthread_mutexattrinit.c (96%) rename {sched => lib/pthread}/pthread_mutexattrsetpshared.c (96%) rename {sched => lib/pthread}/pthread_mutexattrsettype.c (96%) rename tools/Makefile.mkconfig => lib/semaphore/Make.defs (88%) rename {sched => lib/semaphore}/sem_destroy.c (95%) rename {sched => lib/semaphore}/sem_getvalue.c (95%) rename {sched => lib/semaphore}/sem_init.c (95%) create mode 100644 tools/Makefile.host diff --git a/ChangeLog b/ChangeLog index 7d88af34be..020c83e023 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1628,3 +1628,8 @@ the named app's /bin directory. * lib/: Move all source files into a subdirectory of lib/ named after the header file in which the library function is prototyped. + * sched/ and lib/pthread/: Move pthread attribute-related interfaces + from sched/ to lib/pthread where they more appropriately belong. + * sched/ and lib/semaphore/: Move some semaphore-related interfaces + from sched/ to lib/pthread where they more appropriately belong. + * syscall/: The beginnings of an options syscall interface. diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 9aca6c345a..285d274b5d 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -916,7 +916,7 @@ include/