… | |
… | |
30 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
30 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
31 | *---------------------------------------------------------------------*/ |
31 | *---------------------------------------------------------------------*/ |
32 | |
32 | |
33 | #include "../config.h" /* NECESSARY */ |
33 | #include "../config.h" /* NECESSARY */ |
34 | #include "rxvt.h" /* NECESSARY */ |
34 | #include "rxvt.h" /* NECESSARY */ |
35 | #include "main.intpro" /* PROTOS for internal routines */ |
|
|
36 | |
35 | |
37 | #include <csignal> |
36 | #include <csignal> |
38 | #include <cstring> |
37 | #include <cstring> |
39 | |
38 | |
40 | #ifdef TTY_GID_SUPPORT |
39 | #ifdef TTY_GID_SUPPORT |
… | |
… | |
590 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
589 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
591 | |
590 | |
592 | return p; |
591 | return p; |
593 | } |
592 | } |
594 | |
593 | |
595 | /* INTPROTO */ |
|
|
596 | void * |
594 | void * |
597 | rxvt_calloc (size_t number, size_t size) |
595 | rxvt_calloc (size_t number, size_t size) |
598 | { |
596 | { |
599 | void *p = calloc (number, size); |
597 | void *p = calloc (number, size); |
600 | |
598 | |
… | |
… | |
602 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
600 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
603 | |
601 | |
604 | return p; |
602 | return p; |
605 | } |
603 | } |
606 | |
604 | |
607 | /* INTPROTO */ |
|
|
608 | void * |
605 | void * |
609 | rxvt_realloc (void *ptr, size_t size) |
606 | rxvt_realloc (void *ptr, size_t size) |
610 | { |
607 | { |
611 | void *p = realloc (ptr, size); |
608 | void *p = realloc (ptr, size); |
612 | |
609 | |
… | |
… | |
848 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
845 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
849 | |
846 | |
850 | #if 0 |
847 | #if 0 |
851 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
848 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
852 | if (cmd_pid) /* force through to the command */ |
849 | if (cmd_pid) /* force through to the command */ |
853 | kill (cmd_pid, SIGWINCH); |
850 | kill (-cmd_pid, SIGWINCH); |
854 | #endif |
851 | #endif |
855 | } |
852 | } |
856 | |
853 | |
857 | /*----------------------------------------------------------------------*/ |
854 | /*----------------------------------------------------------------------*/ |
858 | /* set_fonts () - load and set the various fonts |
855 | /* set_fonts () - load and set the various fonts |