Project

General

Profile

Actions

Feature #2034

closed

Rewrite perl kstat in c

Added by David Höppner over 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2012-01-25
Due date:
% Done:

40%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:


Related issues

Is duplicate of illumos gate - Bug #749: "/usr/bin/kstat" should be rewritten in CResolved2011-02-22

Actions
Actions #1

Updated by Alexander Eremin over 11 years ago

This is duplicates of #749, anyway - thanks David, going to test it!

Actions #2

Updated by David Höppner over 11 years ago

Alexander Eremin wrote:

This is duplicates of #749, anyway - thanks David, going to test it!

sorry, i did search the tracker, but did not find this ticket...

it needs usr/src/common/list/list.c to compile:
cc kstat.c list.c -lgen -lkstat

some raw stats are still missing. maybe test it in 2-3 days
should be more complete then. i CANT test it myself on sparc.

thanks, for you feedback!

Actions #3

Updated by Igor Pashev over 11 years ago

David Höppner wrote:

it needs usr/src/common/list/list.c to compile:
cc kstat.c list.c -lgen -lkstat

Is libgen really needed? AFAIK basedir() is in libc.

Actions #4

Updated by David Höppner over 11 years ago

it needs usr/src/common/list/list.c to compile:
cc kstat.c list.c -lgen -lkstat

Is libgen really needed? AFAIK basedir() is in libc.

its for shell like pattern matching with gmatch(). btw perl kstat also supports
perl regex's of the form // not sure if i can drop this feature.

Actions #5

Updated by Igor Pashev over 11 years ago

David Höppner wrote:

it needs usr/src/common/list/list.c to compile:
cc kstat.c list.c -lgen -lkstat

Is libgen really needed? AFAIK basedir() is in libc.

its for shell like pattern matching with gmatch(). btw perl kstat also supports
perl regex's of the form // not sure if i can drop this feature.

doesn't fnmatch() do the same (as gmatch)?
I just think libgen is too old for new programs ;-)

Actions #6

Updated by Garrett D'Amore over 10 years ago

  • Status changed from New to Closed

Closing as dup of 749.

Actions

Also available in: Atom PDF