Skip to content
  1. Oct 09, 2017
  2. Oct 08, 2017
  3. Oct 07, 2017
  4. Oct 06, 2017
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
      3b67c067
    • Gregory Nutt's avatar
      drivers/serial/tcdrain: tcdrain() was recently added to the NuttX C library. ... · 5b04c25d
      Gregory Nutt authored
      drivers/serial/tcdrain:  tcdrain() was recently added to the NuttX C library.  But there is a problem.  The specification of tcdrain() requires that it be a cancellation point.  In order to do this, tcdrain was moved from the C library into the OS and the addition cancellation point hooks were added.  In non-FLAT builds, access via system calls is also now supported.
      5b04c25d
    • Gregory Nutt's avatar
      Adds new OS internal functions nxsig_sleep() and nxsig_usleep. These differ... · 936df1bc
      Gregory Nutt authored
      Adds new OS internal functions nxsig_sleep() and nxsig_usleep.  These differ from the standard sleep() and usleep() in that (1) they don't cause cancellation points, and (2) don't set the errno variable (if applicable).  All calls to sleep() and usleep() changed to calls to nxsig_sleep() and nxsig_usleep().
      
      Squashed commit of the following:
      
          Change all calls to usleep() in the OS proper to calls to nxsig_usleep()
      
          sched/signal:  Add a new OS internal function nxsig_usleep() that is functionally equivalent to usleep() but does not cause a cancellaption point and does not modify the errno variable.
      
          sched/signal:  Add a new OS internal function nxsig_sleep() that is functionally equivalent to sleep() but does not cause a cancellaption point.
      936df1bc
    • Gregory Nutt's avatar
      This commit adds internal versions of the signal interfaces: · fdd0dcc0
      Gregory Nutt authored
        sigtimedwait() -> nxsig_timedwait()
        sigwaitinfo()  -> nxsig_waitinfo()
        nanosleep()    -> nxsig_nanosleep()
      
      The internal OS versions differ from the standard application interfaces in that:
      
        - They do not create cancellation points, and
        - they do not modify the application's errno variable
      
      Squashed commit of the following:
      
          sched/signal:  Replace all usage of sigwaitinfo(), sigtimedwait(), and nanosleep() with the OS internal counterparts nxsig_waitinfo(), nxsig_timedwait(), and nxsig_nanosleep().
      
          sched/signal:  Add nxsig_nanosleep().  This is an internal OS version of nanosleep().  It differs in that it does not set the errno varaiable and does not create a cancellation point.
      
          sched/signal:  Add nxsig_timedwait() and nxsig_waitinfo().  These are internal OS versions of sigtimedwait() and sigwaitinfo().  They differ in that they do not set the errno varaiable and they do not create cancellation points.
      fdd0dcc0