Permalink
Cannot retrieve contributors at this time
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?
mxq/ppidcache.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
12 lines (10 sloc)
485 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _PPIDCACHE_H | |
#define _PPIDCACHE_H | |
#include <sys/types.h> | |
struct ppidcache *ppidcache_new(void); | |
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 |