pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
procfs.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <ctype.h>
Include dependency graph for procfs.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

int crm_procfs_process_info (struct dirent *entry, char *name, int *pid)
 
int crm_procfs_pid_of (const char *name)
 
unsigned int crm_procfs_num_cores (void)
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 22 of file procfs.c.

Function Documentation

unsigned int crm_procfs_num_cores ( void  )

Definition at line 152 of file procfs.c.

int crm_procfs_pid_of ( const char *  name)

Definition at line 118 of file procfs.c.

int crm_procfs_process_info ( struct dirent *  entry,
char *  name,
int *  pid 
)

Definition at line 47 of file procfs.c.