… | |
… | |
23 | *----------------------------------------------------------------------*/ |
23 | *----------------------------------------------------------------------*/ |
24 | |
24 | |
25 | #include "../config.h" /* NECESSARY */ |
25 | #include "../config.h" /* NECESSARY */ |
26 | |
26 | |
27 | #include <stdlib.h> |
27 | #include <stdlib.h> |
|
|
28 | #include <wchar.h> |
28 | |
29 | |
29 | #include "rxvt.h" /* NECESSARY */ |
30 | #include "rxvt.h" /* NECESSARY */ |
30 | #ifdef MENUBAR |
31 | #ifdef MENUBAR |
31 | #include "version.h" |
32 | #include "version.h" |
32 | #include "menubar.h" |
33 | #include "menubar.h" |
… | |
… | |
1407 | if (bar == NULL || fp == NULL) |
1408 | if (bar == NULL || fp == NULL) |
1408 | return; |
1409 | return; |
1409 | time (&t); |
1410 | time (&t); |
1410 | |
1411 | |
1411 | fprintf (fp, |
1412 | fprintf (fp, |
1412 | "# " APL_SUBCLASS " (%s) Pid: %u\n# Date: %s\n\n", |
1413 | "# " RESCLASS " (%s) Pid: %u\n# Date: %s\n\n", |
1413 | rs[Rs_name], (unsigned int)getpid (), ctime (&t)); |
1414 | rs[Rs_name], (unsigned int)getpid (), ctime (&t)); |
1414 | |
1415 | |
1415 | /* dump in reverse order */ |
1416 | /* dump in reverse order */ |
1416 | bar = CurrentBar->prev; |
1417 | bar = CurrentBar->prev; |
1417 | do |
1418 | do |
… | |
… | |
1754 | FILE *fp; |
1755 | FILE *fp; |
1755 | |
1756 | |
1756 | /* enough space to hold the results */ |
1757 | /* enough space to hold the results */ |
1757 | char buffer[32]; |
1758 | char buffer[32]; |
1758 | |
1759 | |
1759 | sprintf (buffer, "/tmp/" APL_SUBCLASS "-%u", |
1760 | sprintf (buffer, "/tmp/" RESCLASS "-%u", |
1760 | (unsigned int)getpid ()); |
1761 | (unsigned int)getpid ()); |
1761 | |
1762 | |
1762 | if ((fp = fopen (buffer, "wb")) != NULL) |
1763 | if ((fp = fopen (buffer, "wb")) != NULL) |
1763 | { |
1764 | { |
1764 | xterm_seq (XTerm_title, buffer, CHAR_ST); |
1765 | xterm_seq (XTerm_title, buffer, CHAR_ST); |