subr_terminal.c (219888) | subr_terminal.c (243802) |
---|---|
1/*- 2 * Copyright (c) 2009 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: user/ed/newcons/sys/kern/subr_terminal.c 219888 2011-03-22 21:31:31Z ed $"); | 31__FBSDID("$FreeBSD: user/ed/newcons/sys/kern/subr_terminal.c 243802 2012-12-02 22:21:40Z nwhitehorn $"); |
32 33#include <sys/param.h> 34#include <sys/cons.h> 35#include <sys/consio.h> 36#include <sys/kernel.h> 37#include <sys/lock.h> 38#include <sys/malloc.h> 39#include <sys/mutex.h> --- 138 unchanged lines hidden (view full) --- 178 char name[8]; 179 va_list ap; 180 181 va_start(ap, fmt); 182 vsnrprintf(name, sizeof name, 32, fmt, ap); 183 va_end(ap); 184 185 tp = tty_alloc(&terminal_tty_class, tm); | 32 33#include <sys/param.h> 34#include <sys/cons.h> 35#include <sys/consio.h> 36#include <sys/kernel.h> 37#include <sys/lock.h> 38#include <sys/malloc.h> 39#include <sys/mutex.h> --- 138 unchanged lines hidden (view full) --- 178 char name[8]; 179 va_list ap; 180 181 va_start(ap, fmt); 182 vsnrprintf(name, sizeof name, 32, fmt, ap); 183 va_end(ap); 184 185 tp = tty_alloc(&terminal_tty_class, tm); |
186 tty_makedev(tp, NULL, name); | 186 tty_makedev(tp, NULL, "%s", name); |
187 tm->tm_tty = tp; 188 terminal_sync_ttysize(tm); 189} 190 191void 192terminal_set_winsize(struct terminal *tm, const struct winsize *size) 193{ 194 term_rect_t r; --- 350 unchanged lines hidden --- | 187 tm->tm_tty = tp; 188 terminal_sync_ttysize(tm); 189} 190 191void 192terminal_set_winsize(struct terminal *tm, const struct winsize *size) 193{ 194 term_rect_t r; --- 350 unchanged lines hidden --- |