1 #if !defined(lint) && !defined(DOS)
2 static char rcsid
[] = "$Id: status.c 761 2007-10-23 22:35:18Z hubert@u.washington.edu $";
6 * ========================================================================
7 * Copyright 2006 University of Washington
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * ========================================================================
18 #include "../pith/headers.h"
19 #include "../pith/status.h"
20 #include "../pith/state.h"
23 /*----------------------------------------------------------------------
24 Put a message with 1 printf argument on queue for status line
26 Args: min_t -- minimum time to display message for
27 max_t -- minimum time to display message for
28 s -- printf style control string
29 a -- argument for printf
31 Result: message queued
36 q_status_message1(int flags
, int min_t
, int max_t
, char *s
, void *a
)
38 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a
);
39 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
44 /*----------------------------------------------------------------------
45 Put a message with 2 printf argument on queue for status line
47 Args: min_t -- minimum time to display message for
48 max_t -- maximum time to display message for
49 s -- printf style control string
50 a1 -- argument for printf
51 a2 -- argument for printf
53 Result: message queued
58 q_status_message2(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
)
60 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
);
61 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
66 /*----------------------------------------------------------------------
67 Put a message with 3 printf argument on queue for status line
69 Args: min_t -- minimum time to display message for
70 max_t -- maximum time to display message for
71 s -- printf style control string
72 a1 -- argument for printf
73 a2 -- argument for printf
74 a3 -- argument for printf
76 Result: message queued
81 q_status_message3(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
)
83 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
);
84 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
89 /*----------------------------------------------------------------------
90 Put a message with 4 printf argument on queue for status line
93 Args: min_t -- minimum time to display message for
94 max_t -- maximum time to display message for
95 s -- printf style control string
96 a1 -- argument for printf
97 a2 -- argument for printf
98 a3 -- argument for printf
99 a4 -- argument for printf
101 Result: message queued
102 ----------------------------------------------------------------------*/
105 q_status_message4(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
)
107 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
);
108 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
114 q_status_message5(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
)
116 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
);
117 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
123 q_status_message6(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
)
125 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
);
126 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
130 /*----------------------------------------------------------------------
131 Put a message with 7 printf argument on queue for status line
134 Args: min_t -- minimum time to display message for
135 max_t -- maximum time to display message for
136 s -- printf style control string
137 a1 -- argument for printf
138 a2 -- argument for printf
139 a3 -- argument for printf
140 a4 -- argument for printf
141 a5 -- argument for printf
142 a6 -- argument for printf
143 a7 -- argument for printf
146 Result: message queued
147 ----------------------------------------------------------------------*/
150 q_status_message7(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
)
152 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
153 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
159 q_status_message8(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
, void *a8
)
161 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
162 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);