Changeset be0fc099 in rtems


Ignore:
Timestamp:
Nov 2, 1999, 3:55:34 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3f421dab
Parents:
861e94d9
Message:

Added CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES and
CONFIGURE_MAXIMUM_POSIX_SEMAPHORES.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/sapi/include/confdefs.h

    r861e94d9 rbe0fc099  
    361361
    362362#include <sys/types.h>
     363#include <sys/siginfo.h>
     364#include <mqueue.h>
    363365#include <rtems/posix/cond.h>
     366#include <rtems/posix/mqueue.h>
    364367#include <rtems/posix/mutex.h>
    365368#include <rtems/posix/key.h>
    366369#include <rtems/posix/psignal.h>
     370#include <rtems/posix/semaphore.h>
    367371#include <rtems/posix/threadsup.h>
    368372
     
    389393#ifndef CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
    390394#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 0
     395#endif
     396
     397#ifndef CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
     398#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 0
     399#endif
     400
     401#ifndef CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
     402#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 0
    391403#endif
    392404
     
    459471   ( sizeof(POSIX_signals_Siginfo_node) + CONFIGURE_OBJECT_TABLE_STUFF ) )
    460472
     473#define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_message_queues) \
     474  ((_message_queues) * \
     475   ( sizeof( POSIX_Message_queue_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
     476#define CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES(_semaphores) \
     477  ((_semaphores) * \
     478   ( sizeof( POSIX_Semaphore_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
    461479 
    462480
     
    469487    CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS( \
    470488        CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) + \
     489    CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES( \
     490        CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES ) + \
     491    CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES( \
     492        CONFIGURE_MAXIMUM_POSIX_SEMAPHORES ) + \
    471493    (CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE) \
    472494   )
     
    668690  CONFIGURE_MAXIMUM_POSIX_TIMERS,
    669691  CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS,
     692  CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES,
     693  CONFIGURE_MAXIMUM_POSIX_SEMAPHORES,
    670694  CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE,
    671695  CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME
  • cpukit/sapi/include/confdefs.h

    r861e94d9 rbe0fc099  
    361361
    362362#include <sys/types.h>
     363#include <sys/siginfo.h>
     364#include <mqueue.h>
    363365#include <rtems/posix/cond.h>
     366#include <rtems/posix/mqueue.h>
    364367#include <rtems/posix/mutex.h>
    365368#include <rtems/posix/key.h>
    366369#include <rtems/posix/psignal.h>
     370#include <rtems/posix/semaphore.h>
    367371#include <rtems/posix/threadsup.h>
    368372
     
    389393#ifndef CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
    390394#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 0
     395#endif
     396
     397#ifndef CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
     398#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 0
     399#endif
     400
     401#ifndef CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
     402#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 0
    391403#endif
    392404
     
    459471   ( sizeof(POSIX_signals_Siginfo_node) + CONFIGURE_OBJECT_TABLE_STUFF ) )
    460472
     473#define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_message_queues) \
     474  ((_message_queues) * \
     475   ( sizeof( POSIX_Message_queue_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
     476#define CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES(_semaphores) \
     477  ((_semaphores) * \
     478   ( sizeof( POSIX_Semaphore_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
    461479 
    462480
     
    469487    CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS( \
    470488        CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) + \
     489    CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES( \
     490        CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES ) + \
     491    CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES( \
     492        CONFIGURE_MAXIMUM_POSIX_SEMAPHORES ) + \
    471493    (CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE) \
    472494   )
     
    668690  CONFIGURE_MAXIMUM_POSIX_TIMERS,
    669691  CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS,
     692  CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES,
     693  CONFIGURE_MAXIMUM_POSIX_SEMAPHORES,
    670694  CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE,
    671695  CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME
Note: See TracChangeset for help on using the changeset viewer.