editor.c (2f1aa2ab) editor.c (21a0d117)
1/* $OpenBSD: editor.c,v 1.220 2009/08/07 00:26:34 martynas Exp $ */
1/* $OpenBSD: editor.c,v 1.221 2009/08/12 20:01:54 deraadt Exp $ */
2
3/*
4 * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#ifndef lint
2
3/*
4 * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#ifndef lint
20static char rcsid[] = "$OpenBSD: editor.c,v 1.220 2009/08/07 00:26:34 martynas Exp $";
20static char rcsid[] = "$OpenBSD: editor.c,v 1.221 2009/08/12 20:01:54 deraadt Exp $";
21#endif /* not lint */
22
23#include <sys/types.h>
24#include <sys/param.h>
25#include <sys/stat.h>
26#include <sys/ioctl.h>
27#include <sys/sysctl.h>
28#define DKTYPENAMES

--- 43 unchanged lines hidden (view full) ---

72};
73
74/* entries for swap and var are changed by editor_allocspace() */
75const struct space_allocation alloc_big[] = {
76 { MEG(80), GIG(1), 5, "/" },
77 { MEG(80), MEG(256), 5, "swap" },
78 { MEG(120), GIG(4), 8, "/tmp" },
79 { MEG(80), GIG(4), 13, "/var" },
21#endif /* not lint */
22
23#include <sys/types.h>
24#include <sys/param.h>
25#include <sys/stat.h>
26#include <sys/ioctl.h>
27#include <sys/sysctl.h>
28#define DKTYPENAMES

--- 43 unchanged lines hidden (view full) ---

72};
73
74/* entries for swap and var are changed by editor_allocspace() */
75const struct space_allocation alloc_big[] = {
76 { MEG(80), GIG(1), 5, "/" },
77 { MEG(80), MEG(256), 5, "swap" },
78 { MEG(120), GIG(4), 8, "/tmp" },
79 { MEG(80), GIG(4), 13, "/var" },
80 { MEG(600), GIG(2), 2, "/usr" },
80 { MEG(900), GIG(2), 5, "/usr" },
81 { MEG(512), GIG(1), 3, "/usr/X11R6" },
82 { GIG(2), GIG(6), 5, "/usr/local" },
83 { GIG(1), GIG(2), 3, "/usr/src" },
84 { GIG(1), GIG(2), 3, "/usr/obj" },
81 { MEG(512), GIG(1), 3, "/usr/X11R6" },
82 { GIG(2), GIG(6), 5, "/usr/local" },
83 { GIG(1), GIG(2), 3, "/usr/src" },
84 { GIG(1), GIG(2), 3, "/usr/obj" },
85 { GIG(1), GIG(300), 53, "/home" }
85 { GIG(1), GIG(300), 50, "/home" }
86 /* Anything beyond this leave for the user to decide */
87};
88
89const struct space_allocation alloc_medium[] = {
90 { MEG(800), GIG(2), 5, "/" },
91 { MEG(80), MEG(256), 10, "swap" },
92 { MEG(900), GIG(3), 78, "/usr" },
93 { MEG(256), GIG(2), 7, "/home" }

--- 2165 unchanged lines hidden ---
86 /* Anything beyond this leave for the user to decide */
87};
88
89const struct space_allocation alloc_medium[] = {
90 { MEG(800), GIG(2), 5, "/" },
91 { MEG(80), MEG(256), 10, "swap" },
92 { MEG(900), GIG(3), 78, "/usr" },
93 { MEG(256), GIG(2), 7, "/home" }

--- 2165 unchanged lines hidden ---