Mercurial > emacs
annotate etc/ulimit.hack @ 51192:e7a9fef91d7d
(struct glyph_matrix): Rename members window_left_x
to window_left_col, window_top_y to window_top_line. All uses
changed.
(FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
use FRAME_INTERNAL_BORDER_WIDTH macro instead as
internal_border_width is now set to 0 for non-window frames.
(WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
(WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
(WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
(WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
(WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
(WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
(FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
(WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
(WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
Move to window.h and renamed [see window.h changes].
(WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
(WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
(WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Use
WINDOW_TOTAL_LINES.
(frame_update_line_height): Remove prototype.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 24 May 2003 21:56:19 +0000 |
parents | e96ffe544684 |
children | 695cf19ef79e |
rev | line source |
---|---|
25853 | 1 #!/bin/sh |
2 # | |
3 # ulimit.hack: Create an intermediate program for use in | |
4 # between kernel initialization and init startup. | |
5 # This is needed on a 3b system if the standard CDLIMIT is | |
6 # so small that the dumped Emacs file cannot be written. | |
7 # This program causes everyone to get a bigger CDLIMIT value | |
8 # so that the dumped Emacs can be written out. | |
9 # | |
10 # Users of V.3.1 and later should not use this; see etc/MACHINES | |
11 # and reconfig your kernel's CDLIMIT parameter instead. | |
12 # | |
13 # Caveat: Heaven help you if you screw this up. This puts | |
14 # a new program in as /etc/init, which then execs the real init. | |
15 # | |
16 cat > ulimit.init.c << \EOF | |
17 main(argc, argv) | |
18 int argc; | |
19 char *argv[]; | |
20 { | |
21 ulimit(2, 262144L); /* "2" is the "set" command. */ | |
22 /* 262,144 allows for 128Mb files to be written. */ | |
23 /* If that value isn't suitable, roll your own. */ | |
24 execv("/etc/real.init", argv); | |
25 } | |
26 EOF | |
27 # | |
28 # Compile it and put it in place of the usual init program. | |
29 # | |
30 cc ulimit.init.c -o ulimit.init | |
31 mv /etc/init /etc/real.init | |
32 mv ulimit.init /etc/ulimit.init | |
33 ln /etc/ulimit.init /etc/init | |
34 mv ulimit.init.c /etc/ulimit.init.c # to keep src for this hack nearby. | |
35 chmod 0754 /etc/init | |
36 exit 0 | |
37 # | |
38 # Upon system reboot, all processes will inherit the new large ulimit. |