|
|
1.1 ! root 1: #include <X11/copyright.h> ! 2: ! 3: /* ! 4: * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. ! 5: * ! 6: * All Rights Reserved ! 7: * ! 8: * Permission to use, copy, modify, and distribute this software and its ! 9: * documentation for any purpose and without fee is hereby granted, ! 10: * provided that the above copyright notice appear in all copies and that ! 11: * both that copyright notice and this permission notice appear in ! 12: * supporting documentation, and that the name of Digital Equipment ! 13: * Corporation not be used in advertising or publicity pertaining to ! 14: * distribution of the software without specific, written prior permission. ! 15: * ! 16: * ! 17: * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 18: * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 19: * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 20: * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 21: * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 22: * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 23: * SOFTWARE. ! 24: */ ! 25: ! 26: /* ! 27: * MODIFICATION HISTORY ! 28: * ! 29: * 000 -- M. Gancarz, DEC Ultrix Engineering Group ! 30: * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group, ! 31: Western Software Lab. Convert to X11. ! 32: */ ! 33: ! 34: #ifndef lint ! 35: static char *sccsid = "%W% %G%"; ! 36: #endif ! 37: ! 38: #include "uwm.h" ! 39: ! 40: Bool Restart(window, mask, button, x, y) ! 41: Window window; /* Event window. */ ! 42: int mask; /* Button/key mask. */ ! 43: int button; /* Button event detail. */ ! 44: int x, y; /* Event mouse position. */ ! 45: { ! 46: XButtonEvent button_event; ! 47: ! 48: XFreeFont(dpy, IFontInfo); ! 49: XFreeFont(dpy, PFontInfo); ! 50: XFreeFont(dpy, MFontInfo); ! 51: XBell(dpy, VOLUME_PERCENTAGE(Volume)); ! 52: XBell(dpy, VOLUME_PERCENTAGE(Volume)); ! 53: XFlush(dpy); ! 54: execvp(*Argv, Argv, Environ); ! 55: fprintf(stderr, "uwm: Restart failed!\n"); ! 56: } ! 57: ! 58: Bool Quit(window, mask, button, x, y) ! 59: Window window; /* Event window. */ ! 60: int mask; /* Button/key mask. */ ! 61: int button; /* Button event detail. */ ! 62: int x, y; /* Event mouse position. */ ! 63: { ! 64: exit(0); ! 65: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.