procps/proc/devname.h
2003-09-28 02:45:05 +00:00

18 lines
431 B
C

#ifndef PROC_DEVNAME_H
#define PROC_DEVNAME_H
#include "procps.h"
EXTERN_C_BEGIN
#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);
EXTERN_C_END
#endif