6556585 lx brand emulation library incorrectly translates F_SETOWN
authorkucharsk
Tue, 15 May 2007 07:40:20 -0700
changeset 4240 f99fb5ec78a4
parent 4239 216fbb89c7bc
child 4241 b39742cafe7a
6556585 lx brand emulation library incorrectly translates F_SETOWN
usr/src/lib/brand/lx/lx_brand/common/fcntl.c
--- a/usr/src/lib/brand/lx/lx_brand/common/fcntl.c	Tue May 15 07:14:06 2007 -0700
+++ b/usr/src/lib/brand/lx/lx_brand/common/fcntl.c	Tue May 15 07:40:20 2007 -0700
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -195,13 +195,11 @@
 		break;
 
 	case LX_F_SETOWN:
-		rc = fcntl(fd, FIOSETOWN, arg);
+		rc = fcntl(fd, F_SETOWN, arg);
 		break;
 
 	case LX_F_GETOWN:
-		lx_debug("\tioctl(%d, 0x%x - %s, ...)",
-		    fd, FIOGETOWN, "FIOGETOWN");
-		rc = ioctl(fd, FIOGETOWN, arg);
+		rc = fcntl(fd, F_GETOWN, arg);
 		break;
 
 	default: