Project

General

Profile

Actions

Feature #14139

closed

Want libproc convenience function for lwpsinfo

Added by Robert Mustacchi 21 days ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Today libproc has the proc_get_psinfo convenience function. It'd be nice to add something here for the lwpsinfo file. This adds a proc_get_lwpsinfo. One note here is that we purposefully use an unsigned int for the thread id rather than a pthread_t, thread_t, thr_t, or other ids. We use the underlying type here so we can avoid the need to include any specific thread header in libproc.h which saves a lot of trouble, since someone can be using any of them.

Actions #1

Updated by Robert Mustacchi 12 days ago

I tested this via the new test suite addition.

Actions #2

Updated by Electric Monk 8 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit dea9f5e6a4938723acec9624b3aa3f680f2f5c9f

commit  dea9f5e6a4938723acec9624b3aa3f680f2f5c9f
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2021-10-16T14:56:11.000Z

    14126 clock_gettime() could work with thread/proc clocks
    14139 Want libproc convenience function for lwpsinfo
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF