Ticket #2032 (closed patch: wontfix)

Opened 11 years ago

Last modified 11 years ago

Small patch to add get_effective_user_id to parrot

Reported by: worr Owned by: jkeenan
Priority: minor Milestone:
Component: core Version: 3.1.0
Severity: low Keywords:
Cc: cotto, whiteknight Language:
Patch status: new Platform: all


Perl6 at the very least needs to be able to get the effective user id as well as the real user id of the running process. I wrote a quick, small patch to add this functionality.


Change History

Changed 11 years ago by worr

Changed 11 years ago by jkeenan

  • status changed from new to assigned
  • owner set to jkeenan
  • component changed from none to core
  • cc cotto, whiteknight added

I tried the patch out on linux/i386 and all tests passed. See  Smolder 11195.

Do we want to apply it? Are there any other tests we should write before we apply it?

Thank you very much.


Changed 11 years ago by cotto

  • status changed from assigned to closed
  • resolution set to wontfix

I'm rejecting this ticket. The current user's effective uid isn't a concept that makes sense on all of Parrot's supported platforms. If an HLL needs this, it can be implemented in PIR using dlfunc as follows:

.sub main :main
    .local pmc nci, stub
    stub = new ['Undef']
    nci = dlfunc stub, 'getuid', 'i'
    $I0 = nci()
    say $I0
Note: See TracTickets for help on using tickets.