Deleted Added
full compact
hexdump.c (70301) hexdump.c (70861)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
39 * $FreeBSD: head/sys/kern/subr_prf.c 70301 2000-12-23 07:33:32Z mjacob $
39 * $FreeBSD: head/sys/kern/subr_prf.c 70861 2001-01-10 04:43:51Z jake $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/msgbuf.h>
46#include <sys/malloc.h>
47#include <sys/proc.h>

--- 60 unchanged lines hidden (view full) ---

108int
109uprintf(const char *fmt, ...)
110{
111 struct proc *p = curproc;
112 va_list ap;
113 struct putchar_arg pca;
114 int retval = 0;
115
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/msgbuf.h>
46#include <sys/malloc.h>
47#include <sys/proc.h>

--- 60 unchanged lines hidden (view full) ---

108int
109uprintf(const char *fmt, ...)
110{
111 struct proc *p = curproc;
112 va_list ap;
113 struct putchar_arg pca;
114 int retval = 0;
115
116 if (p && p != idleproc && p->p_flag & P_CONTROLT &&
116 if (p && p != PCPU_GET(idleproc) && p->p_flag & P_CONTROLT &&
117 p->p_session->s_ttyvp) {
118 va_start(ap, fmt);
119 pca.tty = p->p_session->s_ttyp;
120 pca.flags = TOTTY;
121 retval = kvprintf(fmt, putchar, &pca, 10, ap);
122 va_end(ap);
123 }
124 return retval;

--- 716 unchanged lines hidden ---
117 p->p_session->s_ttyvp) {
118 va_start(ap, fmt);
119 pca.tty = p->p_session->s_ttyp;
120 pca.flags = TOTTY;
121 retval = kvprintf(fmt, putchar, &pca, 10, ap);
122 va_end(ap);
123 }
124 return retval;

--- 716 unchanged lines hidden ---