res_init.c (7c478bd9) res_init.c (6a1c6faa)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 1999 Sun Microsystems, Inc. All rights reserved.
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28/* All Rights Reserved */
29
30/*
31 * University Copyright- Copyright (c) 1982, 1986, 1988

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

77 * domain or run without a server on your machine.
78 *
79 * Note the user can always override then domain name with the environment
80 * variable LOCALDOMAIN which has absolute priority.
81 *
82 *
83 * Return 0 if completes successfully, -1 on error
84 */
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28/* All Rights Reserved */
29
30/*
31 * University Copyright- Copyright (c) 1982, 1986, 1988

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

77 * domain or run without a server on your machine.
78 *
79 * Note the user can always override then domain name with the environment
80 * variable LOCALDOMAIN which has absolute priority.
81 *
82 *
83 * Return 0 if completes successfully, -1 on error
84 */
85res_init()
85int
86res_init(void)
86{
87 register FILE *fp;
88 register char *cp, **pp;
89 register int n;
90 char buf[BUFSIZ];
91#ifdef SYSV
92 extern char *strchr();
93#else

--- 211 unchanged lines hidden ---
87{
88 register FILE *fp;
89 register char *cp, **pp;
90 register int n;
91 char buf[BUFSIZ];
92#ifdef SYSV
93 extern char *strchr();
94#else

--- 211 unchanged lines hidden ---