From 4b9555d70cffed7161182736b4955899d3daa55a Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 12 Nov 1995 04:42:58 +0000 Subject: [PATCH] Added (null for the i386) conversions from ibcs2's bogus fcntl args struct to the standard bogus fcntl args struct. --- sys/i386/ibcs2/ibcs2_fcntl.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sys/i386/ibcs2/ibcs2_fcntl.c b/sys/i386/ibcs2/ibcs2_fcntl.c index 8907ae92637b..c638bd008d03 100644 --- a/sys/i386/ibcs2/ibcs2_fcntl.c +++ b/sys/i386/ibcs2/ibcs2_fcntl.c @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: ibcs2_fcntl.c,v 1.3 1995/10/16 05:52:53 swallace Exp $ */ #include @@ -250,22 +250,22 @@ ibcs2_fcntl(p, uap, retval) case IBCS2_F_DUPFD: SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_DUPFD; - SCARG(&fa, arg) = SCARG(uap, arg); + SCARG(&fa, arg) = (/* XXX */ int)SCARG(uap, arg); return fcntl(p, &fa, retval); case IBCS2_F_GETFD: SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_GETFD; - SCARG(&fa, arg) = SCARG(uap, arg); + SCARG(&fa, arg) = (/* XXX */ int)SCARG(uap, arg); return fcntl(p, &fa, retval); case IBCS2_F_SETFD: SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_SETFD; - SCARG(&fa, arg) = SCARG(uap, arg); + SCARG(&fa, arg) = (/* XXX */ int)SCARG(uap, arg); return fcntl(p, &fa, retval); case IBCS2_F_GETFL: SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_GETFL; - SCARG(&fa, arg) = SCARG(uap, arg); + SCARG(&fa, arg) = (/* XXX */ int)SCARG(uap, arg); error = fcntl(p, &fa, retval); if (error) return error; @@ -274,7 +274,8 @@ ibcs2_fcntl(p, uap, retval) case IBCS2_F_SETFL: SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_SETFL; - SCARG(&fa, arg) = (void *)ioflags2oflags((int)SCARG(uap, arg)); + SCARG(&fa, arg) = (/* XXX */ int) + ioflags2oflags((int)SCARG(uap, arg)); return fcntl(p, &fa, retval); case IBCS2_F_GETLK: @@ -288,7 +289,7 @@ ibcs2_fcntl(p, uap, retval) cvt_iflock2flock(&ifl, flp); SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_GETLK; - SCARG(&fa, arg) = (void *)flp; + SCARG(&fa, arg) = (/* XXX */ int)flp; error = fcntl(p, &fa, retval); if (error) return error; @@ -308,7 +309,7 @@ ibcs2_fcntl(p, uap, retval) cvt_iflock2flock(&ifl, flp); SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_SETLK; - SCARG(&fa, arg) = (void *)flp; + SCARG(&fa, arg) = (/* XXX */ int)flp; return fcntl(p, &fa, retval); } @@ -324,7 +325,7 @@ ibcs2_fcntl(p, uap, retval) cvt_iflock2flock(&ifl, flp); SCARG(&fa, fd) = SCARG(uap, fd); SCARG(&fa, cmd) = F_SETLKW; - SCARG(&fa, arg) = (void *)flp; + SCARG(&fa, arg) = (/* XXX */ int)flp; return fcntl(p, &fa, retval); } }