2002-12-09 12:30:07 +05:30
|
|
|
#ifndef PROC_DEVNAME_H
|
|
|
|
#define PROC_DEVNAME_H
|
|
|
|
|
2002-11-25 15:46:33 +05:30
|
|
|
#include "procps.h"
|
2011-06-05 16:53:15 +05:30
|
|
|
#include "readproc.h"
|
2002-11-25 15:46:33 +05:30
|
|
|
|
2002-12-09 12:30:07 +05:30
|
|
|
EXTERN_C_BEGIN
|
|
|
|
|
2002-02-02 04:17:29 +05:30
|
|
|
#define ABBREV_DEV 1 /* remove /dev/ */
|
|
|
|
#define ABBREV_TTY 2 /* remove tty */
|
|
|
|
#define ABBREV_PTS 4 /* remove pts/ */
|
|
|
|
|
2012-01-09 16:14:51 +05:30
|
|
|
extern unsigned dev_to_tty(char *__restrict ret, unsigned chop, dev_t dev_t_dev, int pid, unsigned int flags);
|
2002-02-02 04:17:29 +05:30
|
|
|
|
2012-01-09 16:14:51 +05:30
|
|
|
extern int tty_to_dev(const char *__restrict const name);
|
2002-12-09 12:30:07 +05:30
|
|
|
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|