WORD Pgeteuid()

Description:  Returns the effective user ID of the calling process.

Opcode:  312  (0x0138)

Availability:  If the MiNT cookie is present.

Binding:  
    move.w #$138,-(sp)
    trap #1
    addq.l #2,sp
Return value:  The returned WORD is the effective user ID of the process.

Definition:
    Some things in the system require to be the superuser ("root") of the system to be able to use them. That is to say that a normal user (not root) may never be able to use them. The owner of a process can grant permissions to another user by setting the "effective user ID" of the process it owns to the ID of the user he wants to grant permissions to. This is done using the Pseteuid call.
    The Pgeteuid call is usefull to know to whom (what user ID) the permissions on the process are granted. 


mailto: Panzano
HTTP:


See Also: Nothing


Thanks for your GEMTOS visit!!!

(C) 2000 Gemtos.free.fr. All rights reserved by the authors.