Skip to content
Permalink
74ebbc3e9a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 481 Bytes
#ifndef _PPIDCACHE_H
#define _PPIDCACHE_H
#include <sys/types.h>
struct ppidcache *ppidcache_new();
void ppidcache_free (struct ppidcache *ppidcache);
pid_t ppidcache_get_ppid(struct ppidcache *ppidcache, pid_t pid);
int ppidcache_is_descendant(struct ppidcache *ppidcache, pid_t ancestor, pid_t candidate);
void ppidcache_scan(struct ppidcache *ppidcache);
void ppidcache_do_descendants(struct ppidcache *ppidcache, pid_t pid, int cb(void *data, pid_t pid), void *data);
#endif