Feature #2034

Rewrite perl kstat in c

Added by David Höppner about 7 years ago. Updated about 6 years ago.

Status:ClosedStart date:2012-01-25
Priority:NormalDue date:
Assignee:David Höppner% Done:

40%

Category:cmd - userland programs
Target version:-
Difficulty:Medium Tags:needs-triage


Related issues

Duplicates illumos gate - Bug #749: "/usr/bin/kstat" should be rewritten in C Resolved 2011-02-22

History

#1 Updated by Alexander Eremin about 7 years ago

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

#2 Updated by David Höppner about 7 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!

#3 Updated by Igor Pashev about 7 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.

#4 Updated by David Höppner about 7 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.

#5 Updated by Igor Pashev about 7 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 ;-)

#6 Updated by Garrett D'Amore about 6 years ago

  • Status changed from New to Closed

Closing as dup of 749.

Also available in: Atom