rc_find_pids man page on Gentoo

Man page or keyword search:  
man Server   6889 pages
apropos Keyword Search (all sections)
Output format
Gentoo logo
[printable version]

RC_FIND_PIDS(3)		    System Manager's Manual	       RC_FIND_PIDS(3)

NAME
     rc_find_pids — finds the pids of processes that match the given criteria

LIBRARY
     Run Command library (librc, -lrc)

SYNOPSIS
     #include <rc.h>

     RC_PIDLIST *
     rc_find_pids(const char *const *argv, const char *cmd, uid_t uid,
	 pid_t pid);

DESCRIPTION
     rc_find_pids() returns RC_PIDLIST, a structure based on the LIST macro
     from queue(3) which contains all the pids found matching the given crite‐
     ria.  If pid is given then only that pid is returned if it is running.
     Otherise we check all instances of argv with a process name of cmd owned
     by uid, all of which are optional.

     The returned list should be freed when done.

IMPLEMENTATION NOTES
     On BSD systems we use Kernel Data Access Library (libkvm, -lkvm) and on
     Linux systems we use the /proc filesystem to find our processes.

     Each RC_PID should be freed in the list as well as the list itself when
     done.

SEE ALSO
     free(3), queue(3)

AUTHORS
     Roy Marples <roy@marples.name>

OpenRC				 Mar 17, 2008				OpenRC
[top]

List of man pages available for Gentoo

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net