JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Resource Management, Oracle Solaris Zones, and Oracle Solaris 10 Zones Developer's Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Resource Management in the Oracle Solaris Operating System

2.  Projects and Tasks

Overview of Projects and Tasks

/etc/project File

Project and Task API Functions

Code Examples for Accessing project Database Entries

Programming Issues Associated With Projects and Tasks

3.  Using the C Interface to Extended Accounting

4.  Using the Perl Interface to Extended Accounting

5.  Resource Controls

6.  Resource Pools

7.  Design Considerations for Resource Management Applications in Oracle Solaris Zones

8.  Configuration Examples

Index

Project and Task API Functions

The following functions are provided to assist developers in working with projects. The functions use entries that describe user projects in the project database.

endprojent(3PROJECT)

Close the project database and deallocate resources when processing is complete.

fgetprojent(3PROJECT)

Returns a pointer to a structure containing an entry in the project database. Rather than using nsswitch.conf, fgetprojent() reads a line from a stream.

getdefaultproj(3PROJECT)

Check the validity of the project keyword, look up the project, and return a pointer to the project structure if found.

getprojbyid(3PROJECT)

Search the project database for an entry with the number that specifies the project ID.

getprojbyname(3PROJECT)

Search the project database for an entry with the string that specifies project name.

getprojent(3PROJECT)

Returns a pointer to a structure containing an entry in the project database.

inproj(3PROJECT)

Check whether the specified user is permitted to use the specified project.

setproject(3PROJECT)

Calling process joins the target project by creating a new task in the target project.

setprojent(3PROJECT)

Rewind the project database to allow repeated searches.