RTEMS 6.3
Loading...
Searching...
No Matches
src Directory Reference

Files

 
_execve.c
 _execve()
 
aio_cancel.c
 Cancel Asynchronous I/O Operation.
 
aio_error.c
 Returns the error status for the Asynchronous I/O request.
 
aio_fsync.c
 Syncing of all Outstanding Asynchronous I/O Operations.
 
aio_misc.c
 Private implementation for Asynchronous I/O.
 
aio_read.c
 Asynchronous read operation.
 
aio_return.c
 Final return status for Asynchronous I/O request.
 
aio_suspend.c
 Wait for Asynchronous I/O Request.
 
aio_write.c
 Asynchronous write operation.
 
alarm.c
 System Generates Signal for process after realtime seconds elapsed.
 
barrierattrdestroy.c
 Function shall Destroy a Barrier Attribues Object.
 
barrierattrgetpshared.c
 Barrier Attributes Get Process Shared.
 
barrierattrinit.c
 Initialize the Barrier Attributes Object.
 
barrierattrsetpshared.c
 Set the Process-Shared Attribute of the Barrier Attributes Object.
 
cancel.c
 Canceling Execution of a Thread.
 
cleanuppush.c
 POSIX Cleanup Support.
 
clockgetcpuclockid.c
 Function Returns Clock ID of CPU-time Clock of process specified.
 
clockgetres.c
 Function Returns the Resolution of any Clock.
 
clockgettime.c
 Retrieves the Specified Clock Time.
 
clocknanosleep.c
 Suspends Execution of calling thread until Time elapses.
 
clocksettime.c
 Set Time of Clock.
 
condattrdestroy.c
 Destroy Condition Attribute.
 
condattrgetclock.c
 Get the Clock Condition Variable Attributes.
 
condattrgetpshared.c
 Get the Process-Shared Condition Variable Attributes.
 
condattrinit.c
 Initialization of Conditional Attributes.
 
condattrsetclock.c
 Set the Clock Condition Variable Attributes.
 
condattrsetpshared.c
 Set the Process-Shared Condition Variable Attributes.
 
condbroadcast.c
 Broadcast a Condition.
 
conddefaultattributes.c
 Condition variable Attributes structure.
 
conddestroy.c
 Destroy a Condition Variable.
 
condinit.c
 Initialize a Condition Variable.
 
condsignal.c
 Signal a Condition.
 
condsignalsupp.c
 Implements wake up version of the "signal" operation.
 
condtimedwait.c
 Waiting on a Condition.
 
condwait.c
 Waiting on a Condition.
 
condwaitsupp.c
 POSIX Condition Variables Wait Support.
 
confstr.c
 Implementation for confstr method.
 
fork.c
 Inoperable implementation of fork() for POSIX threads.
 
getitimer.c
 Function Gets Value of an Interval Timer.
 
key.c
 POSIX Keys Information with Zero Objects.
 
keycreate.c
 Thread-Specific Data Key Create.
 
keydelete.c
 Deletes Thread-specific Data Key Previously Returned by keycreate.c.
 
keygetspecific.c
 Thread-Specific Data Management.
 
keysetspecific.c
 Set Specific Key.
 
kill.c
 Send a Signal to a Process.
 
kill_r.c
 Send a Signal to a Process.
 
killinfo.c
 Send a Signal to a Process.
 
lio_listio.c
 Function Initiates a List of I/O Requests with Single Function Call.
 
mlock.c
 
mlockall.c
 
mmap.c
 
mprotect.c
 Change Memory Protection.
 
mqueue.c
 POSIX Message Queue Information with Zero Objects.
 
mqueueclose.c
 Function closes the Message Queue.
 
mqueuedeletesupp.c
 POSIX Delete Message Queue.
 
mqueuegetattr.c
 Message Queue Attributes.
 
mqueuenotify.c
 Notify Process that a Message is Available on a Queue.
 
mqueueopen.c
 Creates a new POSIX Message Queue or Opens an Existing Queue.
 
mqueuereceive.c
 Receive a Message From a Message Queue.
 
mqueuerecvsupp.c
 POSIX Message Queue Receive Support.
 
mqueuesend.c
 Adds Message Pointed by msg_ptr to Message Queue Reffered by mqdes.
 
mqueuesendsupp.c
 POSIX Message Queue and Send Support.
 
mqueuesetattr.c
 Set Message Queue Attributes.
 
mqueuetimedreceive.c
 Receive Message from Message Queue.
 
mqueuetimedsend.c
 Send a Message to a Message Queue.
 
msync.c
 
munlock.c
 
munlockall.c
 
mutexattrdestroy.c
 Destroy Mutex Attributes Object.
 
mutexattrgetprioceiling.c
 Mutex Initialization Scheduling Attributes.
 
mutexattrgetprotocol.c
 Get protocol Attribute of Mutex Attribute Obect.
 
mutexattrgetpshared.c
 Obtaining process-shared Attribute Value from the Attributes Object.
 
mutexattrgettype.c
 Function gets the Mutex Type Attribute.
 
mutexattrinit.c
 Mutex Initialization Attribute.
 
mutexattrsetprioceiling.c
 Mutex Initialization Scheduling Attributes.
 
mutexattrsetprotocol.c
 Mutex Initialization Scheduling Attributes.
 
mutexattrsetpshared.c
 Function sets Current pshared Attribute for Mutex Attributes Object.
 
mutexattrsettype.c
 Set a Mutex Type.
 
mutexdestroy.c
 Initializing and Destroying a Mutex.
 
mutexgetprioceiling.c
 Returns the Current Priority Ceiling of the Mutex.
 
mutexinit.c
 Initialize a Mutex.
 
mutexlock.c
 Call to function enables locking of Mutex Object referenced by mutex.
 
mutexlocksupp.c
 Support Call to function Enables Locking of Mutex Object.
 
mutexsetprioceiling.c
 Changes the Priority Ceiling of a Mutex and Releases it.
 
mutextimedlock.c
 Mutex Timed Lock.
 
mutextrylock.c
 Try to Lock Mutex.
 
mutexunlock.c
 Locking and Unlocking a Mutex.
 
nanosleep.c
 Suspends Execution of calling thread until Time elapses.
 
pause.c
 Suspend Process Execution.
 
pbarrierdestroy.c
 Destroy a Barrier Object.
 
pbarrierinit.c
 Call to Function Enables Reinitializing of the Barrier.
 
pbarrierwait.c
 Wait at a Barrier.
 
posix_madvise.c
 
prwlockdestroy.c
 Destroy a RWLock.
 
prwlockinit.c
 Allocate resources to use the read-write lock and Initialize it.
 
prwlockrdlock.c
 Obtain a Read Lock on a RWLock Instance.
 
prwlocktimedrdlock.c
 Attempt to Obtain a Read Lock on a RWLock Instance.
 
prwlocktimedwrlock.c
 Function applies a Write lock to RWLock referenced by rwlock.
 
prwlocktryrdlock.c
 Attempt to Obtain a Read Lock on a RWLock Instance.
 
prwlocktrywrlock.c
 Attempt to Obtain a Write Lock on a RWLock Instance.
 
prwlockunlock.c
 Function Releases a lock held on RWLock object referenced by rwlock.
 
prwlockwrlock.c
 Obtain a Write Lock on a RWlock Instance.
 
psignal.c
 POSIX Signals Manager Initialization.
 
psignalclearprocesssignals.c
 POSIX_signals clear_process_signals.
 
psignalclearsignals.c
 POSIX Signals Clear Signals.
 
psignalsetprocesssignals.c
 POSIX Signals Set Process Signals.
 
psignalunblockthread.c
 POSIX Signals Thread Unlock.
 
pspindestroy.c
 Destroy a Spinlock.
 
pspininit.c
 POSIX Function Initializes a Spinlock Instance.
 
pspinlock.c
 Wait at a Spinlock.
 
pspinunlock.c
 Function Unlocks a Spin Lock Object.
 
psxnametoid.c
 POSIX Name to ID.
 
psxpriorityisvalid.c
 POSIX Is Priority Valid.
 
psxsemaphore.c
 POSIX Semaphore Information with Zero Objects.
 
psxtimercreate.c
 Create a Per-Process Timer.
 
psxtimerdelete.c
 Deletes a POSIX Interval Timer.
 
psxtransschedparam.c
 Translate sched_param into SuperCore Terms.
 
pthread.c
 Private Support Information for POSIX Threads.
 
pthreadatfork.c
 Register Fork Handlers.
 
pthreadattrdefault.c
 Private Support Information for POSIX Threads.
 
pthreadattrdestroy.c
 Thread Creation Attributes.
 
pthreadattrgetaffinitynp.c
 Pthread Attribute Get Affinity.
 
pthreadattrgetdetachstate.c
 Function gets the detachstate Attribute in the attr Object.
 
pthreadattrgetguardsize.c
 Thread Creation Attributes.
 
pthreadattrgetinheritsched.c
 Thread Creation Scheduling Attributes.
 
pthreadattrgetschedparam.c
 Returns Scheduling Parameter Attributes of Thread Attributes Object.
 
pthreadattrgetschedpolicy.c
 Get The Schedpolicy Attribute.
 
pthreadattrgetscope.c
 Function gets the Contentionscope Attribute in the attr object.
 
pthreadattrgetstack.c
 Function Gets the Thread Creation Stack Attributes in the attr.
 
pthreadattrgetstackaddr.c
 Thread Creation Attributes.
 
pthreadattrgetstacksize.c
 Thread Creation Attributes.
 
pthreadattrinit.c
 Thread Attributes Creation.
 
pthreadattrsetaffinitynp.c
 Pthread Attribute Set Affinity.
 
pthreadattrsetdetachstate.c
 Thread Creation Attributes.
 
pthreadattrsetguardsize.c
 Thread Creation Attributes.
 
pthreadattrsetinheritsched.c
 Function sets the inheritsched Attribute in the attr Argument.
 
pthreadattrsetschedparam.c
 Thread Creation Scheduling Parameters.
 
pthreadattrsetschedpolicy.c
 Sets Scheduling policy Attributes of Thread Attributes Object.
 
pthreadattrsetscope.c
 Function Sets the Contentionscope Attribute in the attr Object.
 
pthreadattrsetstack.c
 Function Sets Thread Creation Stack Attributes in the attr object.
 
pthreadattrsetstackaddr.c
 Sets the Thread Creation stackaddr Attribute in the attr Object.
 
pthreadattrsetstacksize.c
 Sets the Thread Creation Stacksize Attribute in the attr object.
 
pthreadconcurrency.c
 Pthread Get/Set Concurrency.
 
pthreadcreate.c
 Function Starts a New Thread in The Calling Process.
 
pthreaddetach.c
 Detaching a Thread.
 
pthreadequal.c
 Compare Thread IDs.
 
pthreadexit.c
 POSIX Thread Exit Shared Helper.
 
pthreadgetaffinitynp.c
 Pthread Get Affinity.
 
pthreadgetattrnp.c
 Pthread Get Attribute.
 
pthreadgetcpuclockid.c
 Returns Clock ID for CPU time clock of the thread.
 
pthreadgetschedparam.c
 Gets Scheduling Policy and Parameters of Individual Threads.
 
pthreadinitthreads.c
 POSIX Threads Initialize User Threads Body.
 
pthreadjoin.c
 Suspends Execution of Calling Thread until Target Thread Terminates.
 
pthreadkill.c
 Sends a signal Asynchronously directed to a thread.
 
pthreadonce.c
 Call to function by Thread will call init_routine with no Arguments.
 
pthreadsetaffinitynp.c
 Pthread Set Affinity.
 
pthreadsetschedparam.c
 Function sets scheduling policy and parameters of the thread.
 
pthreadsigmask.c
 Examine and/or change the calling thread's signal mask.
 
ptimer.c
 POSIX Timer Information with Zero Objects.
 
rwlockattrdestroy.c
 Function Destroys a read-write lock Attributes object.
 
rwlockattrgetpshared.c
 Get the Process-Shared Attribute of the RWLock.
 
rwlockattrinit.c
 Initialises a RWLock Attributes object attr with the default value.
 
rwlockattrsetpshared.c
 RWLock Attributes Set Process Shared.
 
sched_getparam.c
 Set Scheduling Parameters.
 
sched_getprioritymax.c
 Returns the Appropriate Maximum for Scheduling policy.
 
sched_getprioritymin.c
 Get the Minimum Priority Limit.
 
sched_getscheduler.c
 Function Returns Scheduling Policy of the process specified by pid.
 
sched_rr_get_interval.c
 Limits for Scheduling Parameter.
 
sched_setparam.c
 Sets Scheduling Parameters Associated with Scheduling Policies.
 
sched_setscheduler.c
 Set Scheduling Policy and Scheduling Parameters.
 
sched_yield.c
 Yield Processor.
 
semaphoredeletesupp.c
 POSIX Delete Semaphore.
 
semclose.c
 Close a Named Semaphore.
 
semdestroy.c
 Destroy an Unnamed Semaphore.
 
semgetvalue.c
 Get the Value of a Semaphore.
 
seminit.c
 Initializing of an Unnamed Semaphore.
 
semopen.c
 Function Creates New POSIX semaphore or Opens an existing Semaphore.
 
sempost.c
 Unlock a Semaphore.
 
semtimedwait.c
 Lock a Semaphore.
 
semtrywait.c
 Lock a Semaphore.
 
semwait.c
 Lock a Semaphore.
 
setcancelstate.c
 Setting Cancelability State.
 
setcanceltype.c
 Sets the Cancelability Type of Calling Thread to value given in type.
 
setitimer.c
 Set the Timer.
 
shm.c
 POSIX Shared Memory Information with Zero Objects.
 
shmheap.c
 
shmopen.c
 
shmwkspace.c
 
sigaction.c
 Allows calling process to examine action of a Specific Signal.
 
sigaddset.c
 Function Adds Signal from Set.
 
sigdelset.c
 Deleted Signal from Set.
 
sigemptyset.c
 Manipulate Signal Sets.
 
sigfillset.c
 Manipulate Signal Sets.
 
sigismember.c
 Manipulate Signal Sets.
 
signal_2.c
 POSIX Function Installs signal Handler.
 
sigpending.c
 Examine Pending Signals.
 
sigprocmask.c
 Examine and Change Blocked Signals.
 
sigqueue.c
 Queue a Signal to a Process.
 
sigsuspend.c
 Replacing signal mask with *sigmask and suspending calling process.
 
sigtimedwait.c
 Wait for Queued Signals.
 
sigwait.c
 Synchronously Accept a Signal.
 
sigwaitinfo.c
 Suspends Execution of Calling Thread until Signals in set Delivered.
 
sysconf.c
 Get Configurable System Variables.
 
testcancel.c
 Setting test on Cancelability State.
 
timergetoverrun.c
 Get Overrun Count for a POSIX Per-Process Timer.
 
timergettime.c
 Function Fetches State of POSIX Per-Process Timers.
 
timersettime.c
 Function Arms or Disarms the Timer Identified by timerid.
 
ualarm.c
 Schedule Alarm.
 
vfork.c
 Creates Child process Of The Calling process.
 
wait.c
 Wait for Process to Change State.
 
waitpid.c
 Wait for Process to Change State.

Detailed Description

This program should print out the default attribute settings for a POSIX message queue.

#include <mqueue.h>
#include <stdio.h>
main()
{
mqd_t mqfd;
struct mq_attr mqstat;
int status;
/* this should create it */
mqfd = mq_open("myipc",O_WRONLY|O_CREAT,NULL);
if ( (int)mqfd == -1 ) {
perror( "Unable to open message queue" );
exit( 1 );
}
status = mq_getattr(mqfd, &mqstat);
if ( !status ) {
printf( "mq_maxmsg: %d\n", mqstat.mq_maxmsg );
printf( "mq_msgsize: %d\n", mqstat.mq_msgsize );
printf( "mq_curmsgs: %d\n", mqstat.mq_curmsgs );
} else {
perror( "Unable to get attributes on message queue" );
exit( 1 );
}
/* this should delete it */
(void) mq_close( mqfd );
exit( 0 );
}