Ticket #2032 (closed patch: wontfix)

Opened 6 years ago

Last modified 6 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 6 years ago by worr

Changed 6 years ago by jkeenan

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

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 6 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.