a410e236ab
Use the standard libc declarations. For protecting the headers for C++ procps used to have its own defines, this change makes them use the standard libc ones. getstat() -> procps_stat_* vminfo() -> procps_vmstat_* These two components of the library now use the newer version of the API with less exposed global variables. The old methods are there for now. Signed-off-by: Craig Small <csmall@enc.com.au>
18 lines
438 B
C
18 lines
438 B
C
#ifndef PROC_DEVNAME_H
|
|
#define PROC_DEVNAME_H
|
|
|
|
#include <proc/procps.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
#define ABBREV_DEV 1 /* remove /dev/ */
|
|
#define ABBREV_TTY 2 /* remove tty */
|
|
#define ABBREV_PTS 4 /* remove pts/ */
|
|
|
|
extern unsigned dev_to_tty(char *__restrict ret, unsigned chop, dev_t dev_t_dev, int pid, unsigned int flags);
|
|
|
|
extern int tty_to_dev(const char *__restrict const name);
|
|
|
|
__END_DECLS
|
|
#endif
|