Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2000 12:01:55 -0400
From:      "Patrick Bihan-Faou" <patrick@mindstep.com>
To:        <freebsd-stable@FreeBSD.ORG>
Subject:   Inconsistent declarations in wormio.h and cdrio.h
Message-ID:  <0ab001c00088$cef5c760$040aa8c0@local.mindstep.com>

next in thread | raw e-mail | index | archive | help
Hi,


Going trough the output of a make world on fresh code (date August 5, 2000),
I came accross these warnings:



===> usr.bin/trusscp
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/../../sys/ker
n/syscalls.master syscalls.master/bin/sh
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/../../sys/ker
n/makesyscalls.sh syscalls.master
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/i386.confsh
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/../../usr.bin
/kdump/mkioctls
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/include > ioctl.cIn file included from :63:
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/include/sys/wormio.h:102: warning: `CDRIOCBLANK'
redefined
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/include/sys/cdrio.h:59: warning: this is the
location of the previous definition cp
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/../../sys/i38
6/linux/syscalls.master i386l-syscalls.master
/bin/sh
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/../../sys/ker
n/makesyscalls.sh i386l-syscalls.master
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/i386linux.con
f
rm -f .depend
mkdep -f
pend -a    -I/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss 
-I. -I/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freeb
sd/kernel/freebsd-src/i386/usr/include
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/main.c
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/setup.c
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/syscalls.c
ioctl.c
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/i386-fbsd.c
/home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss/i386-linux.c
In file included from ioctl.c:92:
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/include/sys/wormio.h:102: warning: `CDRIOCBLANK'
redefined
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/include/sys/cdrio.h:59: warning: this is the
location of the previous definition
cd /home/patrick/mindbox/freebsd/kernel/freebsd-src/usr.bin/truss; make
_EXTRADEPEND
echo truss:
/home/patrick/mindbox/freebsd/kernel/tmpobj/home/patrick/mindbox/freebsd/ker
nel/freebsd-src/i386/usr/lib/libc.a  >> .depend




Now looking at the definitions of CDRIOCBLANK in both wormio.h and cdrio.h
here is what I found:

wormio.h:
#define CDRIOCBLANK             _IO('c', 100)

cdrio.h
#define CDRIOCBLANK             _IOW('c', 100, int)


Now this is not really nice... I assume that the correct one comes from
cdrio.h, but I guess that it needs some verification...


Patrick.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0ab001c00088$cef5c760$040aa8c0>