Pseteuid()

LONG Pseteuid(euid)

WORD euid;
Pseteuid() sets the effective user id for the calling process.
Opcode323 (0x0143)
AvailabilityAvailable when a 'MiNT' cookie with a version of at least 1.11 exists.
Parameterseuid specifies the new effective user id for the calling process.
Binding
move.w	euid,-(sp)
move.w	#$0143,-(sp)
trap	#1
addq.l	#4,sp
Return ValuePseteuid() returns new euid on success or a negative GEMDOS error code otherwise.
CaveatsPrior to MiNT version 1.12 this call contained a bug affecting its functionality.

Setting effective user id needs root privileges.

CommentsThis call is often used by daemon processes to downgrade their privileges to user level.
See Also Psetegid(), Psetuid(), Psetreuid()