TOC PREV NEXT INDEX

POSIX 1.b Migration Guide

Preface

For More Information

Typographical Conventions

Special Notes

Technical Support

LynuxWorks U.S. Headquarters

LynuxWorks Europe

World Wide Web

Chapter 1 Introduction

POSIX.1b Description

Overview of Major Changes

Library Structure and Compiler Option Changes

Library Structure Changes

Compiler Option Changes

New Library Structure Issues

Name Conflicts Between liblynx.a and libc.a

Identifying Function Usage in Applications

Other Functions in liblynx.a

Using Parts of liblynx.a in an Application

Other General Changes

Chapter 2 Scheduling

Scheduler Priority

Draft 9 code

Equivalent POSIX.1b code

Changes to Macros

Draft 9 code

Equivalent POSIX.1b code

Macros vs. Functions

yield ()

SCHED_OTHER

Non-Preemptible Scheduling Policy

Interoperability

Chapter 3 Real-Time Signals

Normal Signals Versus Events

Events Versus Real-Time Signals

The sigaction Structure

sigaction Structure Contents

The Event Structure

event Structure Contents

signal and event Handler Synopses

siginfo_t Structure

Data Structures

Signal Handlers

Use of the sigqueue Function

Sending a Real-Time Signal to a Process

Draft 9 Code

Equivalent POSIX.1b Code

Polling for a Real-Time Signal

Draft 9 Code

Equivalent POSIX.1b Code

Equivalence for Other Draft 9 Event Functions

Timers, Message Queues, and Asynchronous I/O

Changes from Draft 9 to POSIX.1b

Data Structures

Indefinite/Timed Wait

Ability to Send Arbitrary Data

Drafts 9 and 10 Event Functions

Interoperability

Chapter 4 Message Queues

Creating Message Queues

Draft 9 Code

Equivalent POSIX.1b Code

Data Structure Changes

Getting and Setting Message Queue Attributes

Draft 9 Code

Equivalent POSIX.1b Code

Sending and Receiving Messages

Draft 9 Code

Equivalent POSIX.1b Code

Notification of Message Availability

Changes from Draft 9 to POSIX.1b

Interface Changes

Data Structures

Attributes

Messages

Message Priorities

Selective Receive

Process Priorities

Synchronization Control

Buffer Management

Sending and Receiving Events

Purging, Data Buffer Allocation/Freeing

Sender ID

Queue Wrap

Time-Stamping

Truncation Control

A Pointer-Worth of Data

Notification of Message Availability

exec() Behavior

New Utilities

Interoperability

Chapter 5 Shared Memory

Introduction

Creating and Deleting Shared Memory

Draft 9 Code

Equivalent POSIX.1b Code

Mapping and Unmapping Shared Memory

Draft 9 Code

Equivalent POSIX.1b code

Changes from Draft 9 to POSIX.1b

Persistence

Size of Shared Memory Object

Shared/Private Changes

fork() Behavior

Protection

msync() and mprotect() Functions

Return Values

New Utilities

Inter-Operability

Chapter 6 Clocks and Timers

Introduction

Resolution of a Clock

Draft 9 Code

Equivalent POSIX.1b Code

Creation and Deletion of a Timer

Draft 9 Code

Equivalent POSIX.1b Code

Setting a Timer

Draft 9 Code

Equivalent POSIX.1b Code

Determining Timer Overrun Count(s)

Draft 9 Code

Equivalent POSIX.1b Code

Changes from Draft 9 to POSIX.1b

Overrun Count

Signal/Event Associated with a Timer

Signal Number

Relative and Absolute Times

Resolutions

Get Timer Value

Create Timer

Clock Resolution

nanosleep()

Pending Signals/Events

Interoperability

Chapter 7 Semaphores

Introduction

Unnamed Semaphores

Creating a Named Semaphore

Draft 9 Code

Equivalent POSIX.1b Code

Posting and Waiting on Semaphores

Draft 9 Code

Equivalent POSIX.1b Code

Conditional Posting to Semaphores

Draft 9 Code

Equivalent POSIX.1b Code

Changes from Draft 9 to POSIX.1b

Conditional Posting

Permission Checking

New Utilities

Interoperability

Chapter 8 Memory Locking

Locking the Specific Address Space

Draft 9 Code

Equivalent POSIX.1b Code

Locking Future Growth

Draft 9 Code

Equivalent POSIX.1b Code

Changes from Draft 9 to POSIX.1b

Locking Flags

Multiple Locks

Locking/Unlocking the Entire Process

Current/Future Locking

Interoperability

Chapter 9 Asynchronous I/O

Data Structure Changes

Asynchronous Read and Write

Draft 9 Code

Equivalent POSIX.1b Code

List Directed I/O

Draft 9 Code

Equivalent POSIX.1b Code

Changes from Draft 9 to POSIX.1b

Data Structures

Timed Suspension

Cancellation Notification

listio Signal Delivery

aio_fsync()

Interoperability

Appendix A Functions Callable from Signal Handlers

Appendix B Mapping Between Drafts

Index




LynuxWorks, Inc.
855 Branham Lane East
San Jose, CA 95138
http://www.lynuxworks.com
1.800.255.5969
TOC PREV NEXT INDEX