imgact_gzip.c (37656) | imgact_gzip.c (40435) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $Id: imgact_gzip.c,v 1.33 1998/06/16 14:36:40 bde Exp $ | 9 * $Id: imgact_gzip.c,v 1.34 1998/07/15 05:00:26 bde Exp $ |
10 * 11 * This module handles execution of a.out files which have been run through 12 * "gzip". This saves diskspace, but wastes cpu-cycles and VM. 13 * 14 * TODO: 15 * text-segments should be made R/O after being filled 16 * is the vm-stuff safe ? 17 * should handle the entire header of gzip'ed stuff. --- 352 unchanged lines hidden (view full) --- 370 371/* 372 * Tell kern_execve.c about it, with a little help from the linker. 373 * Since `const' objects end up in the text segment, TEXT_SET is the 374 * correct directive to use. 375 */ 376 377static const struct execsw gzip_execsw = {exec_gzip_imgact, "gzip"}; | 10 * 11 * This module handles execution of a.out files which have been run through 12 * "gzip". This saves diskspace, but wastes cpu-cycles and VM. 13 * 14 * TODO: 15 * text-segments should be made R/O after being filled 16 * is the vm-stuff safe ? 17 * should handle the entire header of gzip'ed stuff. --- 352 unchanged lines hidden (view full) --- 370 371/* 372 * Tell kern_execve.c about it, with a little help from the linker. 373 * Since `const' objects end up in the text segment, TEXT_SET is the 374 * correct directive to use. 375 */ 376 377static const struct execsw gzip_execsw = {exec_gzip_imgact, "gzip"}; |
378TEXT_SET(execsw_set, gzip_execsw); | 378EXEC_SET(execgzip, gzip_execsw); |