main.c (161073) | main.c (161099) |
---|---|
1/* | 1/* |
2 * $FreeBSD: head/usr.sbin/sade/main.c 161073 2006-08-08 07:51:58Z delphij $ | 2 * $FreeBSD: head/usr.sbin/sade/main.c 161099 2006-08-08 13:45:46Z delphij $ |
3 * 4 * Copyright (c) 1995 5 * Jordan Hubbard. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 30 */ 31 32#include "sade.h" 33#include <sys/signal.h> 34#include <sys/fcntl.h> 35 36const char *StartName; /* Initial contents of argv[0] */ 37 | 3 * 4 * Copyright (c) 1995 5 * Jordan Hubbard. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 30 */ 31 32#include "sade.h" 33#include <sys/signal.h> 34#include <sys/fcntl.h> 35 36const char *StartName; /* Initial contents of argv[0] */ 37 |
38static void 39screech(int sig) 40{ 41 msgDebug("\007Signal %d caught! That's bad!\n", sig); 42 longjmp(BailOut, sig); 43} 44 | |
45int 46main(int argc, char **argv) 47{ 48 int choice, scroll, curr, max, status; 49 50 /* Record name to be able to restart */ 51 StartName = argv[0]; 52 --- 76 unchanged lines hidden --- | 38int 39main(int argc, char **argv) 40{ 41 int choice, scroll, curr, max, status; 42 43 /* Record name to be able to restart */ 44 StartName = argv[0]; 45 --- 76 unchanged lines hidden --- |