scmouse.c (102290) | scmouse.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/syscons/scmouse.c 102290 2002-08-22 20:44:17Z peter $ | 26 * $FreeBSD: head/sys/dev/syscons/scmouse.c 109623 2003-01-21 08:56:16Z alfred $ |
27 */ 28 29#include "opt_syscons.h" 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/consio.h> --- 66 unchanged lines hidden (view full) --- 101 if ((cut_buffer == NULL) 102 || (cut_buffer_size < scp->xsize * scp->ysize + 1)) { 103 p = cut_buffer; 104 cut_buffer = NULL; 105 if (p != NULL) 106 free(p, M_DEVBUF); 107 cut_buffer_size = scp->xsize * scp->ysize + 1; 108 p = (u_char *)malloc(cut_buffer_size, | 27 */ 28 29#include "opt_syscons.h" 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/consio.h> --- 66 unchanged lines hidden (view full) --- 101 if ((cut_buffer == NULL) 102 || (cut_buffer_size < scp->xsize * scp->ysize + 1)) { 103 p = cut_buffer; 104 cut_buffer = NULL; 105 if (p != NULL) 106 free(p, M_DEVBUF); 107 cut_buffer_size = scp->xsize * scp->ysize + 1; 108 p = (u_char *)malloc(cut_buffer_size, |
109 M_DEVBUF, (wait) ? M_WAITOK : M_NOWAIT); | 109 M_DEVBUF, (wait) ? 0 : M_NOWAIT); |
110 if (p != NULL) 111 p[0] = '\0'; 112 cut_buffer = p; 113 } 114} 115#endif /* SC_NO_CUTPASTE */ 116 117/* move mouse */ --- 788 unchanged lines hidden --- | 110 if (p != NULL) 111 p[0] = '\0'; 112 cut_buffer = p; 113 } 114} 115#endif /* SC_NO_CUTPASTE */ 116 117/* move mouse */ --- 788 unchanged lines hidden --- |