aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-07-23 14:52:08 +0000
committerMatt Kraai <kraai@debian.org>2001-07-23 14:52:08 +0000
commit439e3df65300100e4b63580141eaa238c30431d5 (patch)
treef74320f9994faf4d68826c95cb8d043e35d3a685 /include/libbb.h
parent0139ca92ff4b960e904d18bc0254499e163e2545 (diff)
downloadbusybox-w32-439e3df65300100e4b63580141eaa238c30431d5.tar.gz
busybox-w32-439e3df65300100e4b63580141eaa238c30431d5.tar.bz2
busybox-w32-439e3df65300100e4b63580141eaa238c30431d5.zip
Add support for devfs device names.
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index c167e10bc..3cf932dc4 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -288,4 +288,32 @@ extern const char * const name_longer_than_foo;
288extern const char * const unknown; 288extern const char * const unknown;
289extern const char * const can_not_create_raw_socket; 289extern const char * const can_not_create_raw_socket;
290 290
291#ifdef BB_FEATURE_DEVFS
292# define CURRENT_VC "/dev/vc/0"
293# define VC_1 "/dev/vc/1"
294# define VC_2 "/dev/vc/2"
295# define VC_3 "/dev/vc/3"
296# define VC_4 "/dev/vc/4"
297# define VC_5 "/dev/vc/5"
298# define SC_0 "/dev/tts/0"
299# define SC_1 "/dev/tts/1"
300# define VC_FORMAT "/dev/vc/%d"
301# define SC_FORMAT "/dev/tts/%d"
302#else
303# define CURRENT_VC "/dev/tty0"
304# define VC_1 "/dev/tty1"
305# define VC_2 "/dev/tty2"
306# define VC_3 "/dev/tty3"
307# define VC_4 "/dev/tty4"
308# define VC_5 "/dev/tty5"
309# define SC_0 "/dev/ttyS0"
310# define SC_1 "/dev/ttyS1"
311# define VC_FORMAT "/dev/tty%d"
312# define SC_FORMAT "/dev/ttyS%d"
313#endif
314
315/* The following devices are the same on devfs and non-devfs systems. */
316#define CURRENT_TTY "/dev/tty"
317#define CONSOLE_DEV "/dev/console"
318
291#endif /* __LIBBB_H__ */ 319#endif /* __LIBBB_H__ */