gen_subs.c (11746) | gen_subs.c (20420) |
---|---|
1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 20 unchanged lines hidden (view full) --- 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * | 1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 20 unchanged lines hidden (view full) --- 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * |
37 * $Id: gen_subs.c,v 1.5 1995/08/07 19:17:36 wollman Exp $ | 37 * $Id: gen_subs.c,v 1.6 1995/10/23 21:23:14 ache Exp $ |
38 */ 39 40#ifndef lint | 38 */ 39 40#ifndef lint |
41static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93"; | 41static char const sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93"; |
42#endif /* not lint */ 43 44#include <sys/types.h> 45#include <sys/time.h> 46#include <sys/stat.h> 47#include <sys/param.h> 48#include <stdio.h> 49#include <utmp.h> --- 77 unchanged lines hidden (view full) --- 127 name_gid(sbp->st_gid, 1)); 128 129 /* 130 * print device id's for devices, or sizes for other nodes 131 */ 132 if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK)) 133# ifdef NET2_STAT 134 (void)printf("%4u,%4u ", MAJOR(sbp->st_rdev), | 42#endif /* not lint */ 43 44#include <sys/types.h> 45#include <sys/time.h> 46#include <sys/stat.h> 47#include <sys/param.h> 48#include <stdio.h> 49#include <utmp.h> --- 77 unchanged lines hidden (view full) --- 127 name_gid(sbp->st_gid, 1)); 128 129 /* 130 * print device id's for devices, or sizes for other nodes 131 */ 132 if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK)) 133# ifdef NET2_STAT 134 (void)printf("%4u,%4u ", MAJOR(sbp->st_rdev), |
135 MINOR(sbp->st_rdev)); |
|
135# else 136 (void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev), | 136# else 137 (void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev), |
138 (unsigned long)MINOR(sbp->st_rdev)); |
|
137# endif | 139# endif |
138 MINOR(sbp->st_rdev)); | |
139 else { 140# ifdef NET2_STAT 141 (void)printf("%9lu ", sbp->st_size); 142# else 143 (void)printf("%9qu ", sbp->st_size); 144# endif 145 } 146 --- 341 unchanged lines hidden --- | 140 else { 141# ifdef NET2_STAT 142 (void)printf("%9lu ", sbp->st_size); 143# else 144 (void)printf("%9qu ", sbp->st_size); 145# endif 146 } 147 --- 341 unchanged lines hidden --- |