Section 7.3. Project and Task APIs


7.3. Project and Task APIs

7.3.1. Interfaces for Projects and Tasks

In this section, we discuss them and then look at those kernel components that must be modified to support the new model. We then discuss the project database and the libexacct accounting file library. Finally, we consider new commands to access the new functionality, and modifications to existing commands to support it. The following functions are provided to interface with projects. The functions use entries that describe user projects in the project database.

Table 7.2. Interfaces for Projects and Tasks

Interface Name

Description

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)

Add a user process to a project.

setprojent(3PROJECT)

Rewind the project database to allow repeated searches.





SolarisT Internals. Solaris 10 and OpenSolaris Kernel Architecture
Solaris Internals: Solaris 10 and OpenSolaris Kernel Architecture (2nd Edition)
ISBN: 0131482092
EAN: 2147483647
Year: 2004
Pages: 244

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net