Ticket #2032 (closed patch: wontfix)

Opened 4 years ago

Last modified 4 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

Description

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.

Attachments

Change History

Changed 4 years ago by worr

Changed 4 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.

kid51

Changed 4 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
.end
Note: See TracTickets for help on using tickets.