lineedit: do not hardcode ctrl-C and ctrl-D, use termios fields.
[oweals/busybox.git] / libbb / mode_string.c
index 01029bfeed9a9720dbd002f1f78cc2a82e5f3ffc..7d4e514b1f2e24292a484289089c009e47dca4dd 100644 (file)
@@ -47,11 +47,11 @@ static const mode_t mode_flags[] = {
 
 /* The previous version used "0pcCd?bB-?l?s???".  However, the '0', 'C',
  * and 'B' types don't appear to be available on linux.  So I removed them. */
-static const char type_chars[16] = "?pc?d?b?-?l?s???";
-/*                                  0123456789abcdef */
-static const char mode_chars[7] = "rwxSTst";
+static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???";
+/***************************************** 0123456789abcdef */
+static const char mode_chars[7] ALIGN1 = "rwxSTst";
 
-const char *bb_mode_string(int mode)
+const char* FAST_FUNC bb_mode_string(mode_t mode)
 {
        static char buf[12];
        char *p = buf;
@@ -88,10 +88,10 @@ const char *bb_mode_string(int mode)
 /* The previous version used "0pcCd?bB-?l?s???".  However, the '0', 'C',
  * and 'B' types don't appear to be available on linux.  So I removed them. */
 static const char type_chars[16] = "?pc?d?b?-?l?s???";
-/*                                  0123456789abcdef */
+/********************************** 0123456789abcdef */
 static const char mode_chars[7] = "rwxSTst";
 
-const char *bb_mode_string(int mode)
+const char* FAST_FUNC bb_mode_string(mode_t mode)
 {
        static char buf[12];
        char *p = buf;