procps/proc/devname.h
Craig Small 6252bf439f library: Remove tty_to_dev()
This library call was imported into w as it was only used in
this program.  Converting a tty to a device is not really the
work for libprocps.
2015-09-01 20:41:25 +10:00

16 lines
379 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);
__END_DECLS
#endif