From 5e53171dfa27fa8ab863c04e8f4a21b0fe22f088 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 14 Mar 1998 17:43:56 +0000 Subject: Added functions from POSIX standard. --- doc/posix1003.1/ch12.t | 44 +++++++++++++++++++++++++++++ doc/posix1003.1/ch13.t | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ doc/posix1003.1/ch14.t | 35 +++++++++++++++++++++++ doc/posix1003.1/ch15.t | 43 ++++++++++++++++++++++++++++ doc/posix1003.1/ch16.t | 49 ++++++++++++++++++++++++++++++++ doc/posix1003.1/ch17.t | 17 +++++++++++ doc/posix1003.1/ch18.t | 30 ++++++++++++++++++++ 7 files changed, 295 insertions(+) (limited to 'doc') diff --git a/doc/posix1003.1/ch12.t b/doc/posix1003.1/ch12.t index 1342d17ab7..0b92c83fe8 100644 --- a/doc/posix1003.1/ch12.t +++ b/doc/posix1003.1/ch12.t @@ -7,15 +7,59 @@ @c @chapter Memory Management + @section Memory Locking Functions + @subsection Lock/Unlock the Address Space of a Process + +@example +mlockall() +munlockall() +@end example + @subsection Lock/Unlock a Rand of Process Address Space + +@example +mlock() +munlock() +@end example + @section Memory Mapping Functions + @subsection Map Process Addresses to a Memory Object + +@example +mmap() +@end example + @subsection Unmap Previously Mapped Addresses + +@example +munmap() +@end example + @subsection Change Memory Protection + +@example +mprotect() +@end example + @subsection Memory Object Synchronization + +@example +msync() +@end example + @section Shared Memory Functions + @subsection Open a Shared Memory Object + +@example +shm_open() +@end example + @subsection Remove a Shared Memory Object +@example +shm_unlink() +@end example diff --git a/doc/posix1003.1/ch13.t b/doc/posix1003.1/ch13.t index e0c9c0ae69..d39321c542 100644 --- a/doc/posix1003.1/ch13.t +++ b/doc/posix1003.1/ch13.t @@ -7,27 +7,104 @@ @c @chapter Execution Scheduling + @section Scheduling Parameters + @section Scheduling Policies + @subsection SCHED_FIFO + @subsection SCHED_RR + @subsection SCHED_OTHER + @section Process Scheduling Functions + @subsection Set Scheduling Parameters + +@example +sched_setparam() +@end example + @subsection Get Scheduling Parameters + +@example +sched_getparam() +@end example + @subsection Set Scheduling Policy and Scheduling Parameters + +@example +sched_setscheduler() +@end example + @subsection Get Scheduling Policy + +@example +sched_getscheduler() +@end example + @subsection Yield Processor + +@example +sched_yield() +@end example + @subsection Get Scheduling Parameter Limits + +@example +sched_get_priority_max() +sched_get_priority_min() +sched_get_priority_rr_get_interval() +@end example + @section Thread Scheduling + @subsection Thread Scheduling Attributes + @subsection Scheduling Contention Scope + @subsection Scheduling Allocation Domain + @subsection Scheduling Documentation + @section Thread Scheduling Functions + @subsection Thread Creation Scheduling Attributes + +@example +pthread_attr_setscope() +pthread_attr_getscope() +pthread_attr_setinheritsched() +pthread_attr_getinheritsched() +pthread_attr_setschedpolicy() +pthread_attr_getschedpolicy() +pthread_attr_setschedparam() +pthread_attr_getschedparam() +@end example + @subsection Dynamic Thread Scheduling Parameters Access + +@example +pthread_setschedparam() +pthread_getschedparam() +@end example + @section Synchronization Scheduling + @subsection Mutex Initialization Scheduling Attributes + +@example +pthread_mutexattr_setprotocol() +pthread_mutexattr_getprotocol() +pthread_mutexattr_setpriceiling() +pthread_mutexattr_getpriceiling() +@end example + @subsection Change the Priority Ceiling of a Mutex +@example +pthread_mutex_setprioceiling() +pthread_mutex_getprioceiling() +@end example + diff --git a/doc/posix1003.1/ch14.t b/doc/posix1003.1/ch14.t index 7153201d74..b604b80629 100644 --- a/doc/posix1003.1/ch14.t +++ b/doc/posix1003.1/ch14.t @@ -7,15 +7,50 @@ @c @chapter Clocks and Timers + @section Data Definitions for Clocks and Timers + @subsection Time Value Specification Structures + @subsection Timer Event Notification Control Block + @subsection Type Definitions + @subsection Manifest Constants + @section Clock and Timer Functions + @subsection Clocks + +@example +clock_settime() +clock_gettime() +clock_getres() +@end example + @subsection Create a Per-Process Timer + +@example +timer_create() +@end example + @subsection Delete a Per-Process Timer + +@example +timer_delete() +@end example + @subsection Per-Process Timers + +@example +timer_settime() +timer_gettime() +timer_getoverrun() +@end example + @subsection High Resolution Sleep +@example +nanosleep() +@end example + diff --git a/doc/posix1003.1/ch15.t b/doc/posix1003.1/ch15.t index fedbbfee86..96bdbd4df7 100644 --- a/doc/posix1003.1/ch15.t +++ b/doc/posix1003.1/ch15.t @@ -7,15 +7,58 @@ @c @chapter Message Passing + @section Data Definitions for Message Queues + @subsection Data Structures + @section Message Passing Functions + @subsection Open a Message Queue + +@example +mq_open() +@end example + @subsection Close a Message Queue + +@example +mq_close() +@end example + @subsection Remove a Message Queue + +@example +mq_unlink +@end example + @subsection Send a Message to a Message Queue + +@example +mq_send() +@end example + @subsection Receive a Message From a Message Queue + +@example +mq_receive() +@end example + @subsection Notify Process That a Message is Available on a Queue + +@example +mq_notify() +@end example + @subsection Set Message Queue Attributes + +@example +mq_setattr() +@end example + @subsection Get Message Queue Attributes +@example +mq_getattr() +@end example + diff --git a/doc/posix1003.1/ch16.t b/doc/posix1003.1/ch16.t index d606593bf3..276827c105 100644 --- a/doc/posix1003.1/ch16.t +++ b/doc/posix1003.1/ch16.t @@ -7,14 +7,63 @@ @c @chapter Thread Management + @section Threads + @section Thread Functions + @subsection Thread Creation Attributes + +@example +pthread_attr_init() +pthread_attr_destroy() +pthread_attr_setstacksize() +pthread_attr_getstacksize() +pthread_attr_setstackaddr() +pthread_attr_getstackaddr() +pthread_attr_setdetachstate() +pthread_attr_getdetachstate() +@end example + @subsection Thread Creation + +@example +pthread_create() +@end example + @subsection Wait for Thread Termination + +@example +pthread_join() +@end example + @subsection Detaching a Thread + +@example +pthread_detach() +@end example + @subsection Thread Termination + +@example +pthread_exit() +@end example + @subsection Get Thread ID + +@example +pthread_self() +@end example + @subsection Compare Thread IDs + +@example +pthread_equal() +@end example + @subsection Dynamic Package Initialization +@example +pthread_once() +@end example + diff --git a/doc/posix1003.1/ch17.t b/doc/posix1003.1/ch17.t index 2e7049cd23..8e8d123ab9 100644 --- a/doc/posix1003.1/ch17.t +++ b/doc/posix1003.1/ch17.t @@ -7,8 +7,25 @@ @c @chapter Thread-Specific Data + @section Thread-Specific Data Functions + @subsection Thread-Specific Data Key Creation + +@example +pthread_key_create() +@end example + @subsection Thread-Specific Data Management + +@example +pthread_key_setspecific() +pthread_key_getspecific() +@end example + @subsection Thread-Specific Data Key Deletion +@example +pthread_key_delete() +@end example + diff --git a/doc/posix1003.1/ch18.t b/doc/posix1003.1/ch18.t index dfa3993216..f6015a77d8 100644 --- a/doc/posix1003.1/ch18.t +++ b/doc/posix1003.1/ch18.t @@ -7,19 +7,49 @@ @c @chapter Thread Cancellation + @section Thread Cancellation Overview + @subsection Cancelability States + @subsection Cancellation Points + @subsection Thread Cancellation Cleanup Handlers + @subsection Async-Cancel Safety + @section Thread Cancellation Functions + @subsection Canceling Execution of a Thread + +@example +pthread_cancel() +@end example + @subsection Setting Cancelability State + +@example +pthread_setcancelstate() +pthread_setcanceltype() +pthread_testcancel() +@end example + @subsection Establishing Cancellation Handlers + +@example +pthread_cleanup_push() +pthread_cleanup_pop() +@end example + @section Language-Independent Cancellation Functionality + @subsection Requesting Cancellation + @subsection Associating Cleanup Code With Scopes + @subsection Controlling Cancellation Within Scopes + @subsection Defined Cancellation Sequence + @subsection List of Cancellation Points -- cgit v1.2.3