Print this page
OS-4517 lxbrand convert bind to IKE (remove unused function)
OS-4517 lxbrand convert bind to IKE
OS-4505 lxbrand java fails to bind on ipv6 address
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
OS-3752 Increase IOV_MAX to at least 1024
        
@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 
 /*
  * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2015, Joyent, Inc. All rights reserved.
  */
 
 #include <sys/types.h>
 #include <sys/t_lock.h>
 #include <sys/param.h>
@@ -434,12 +435,14 @@
  * Makes sure the sending and the destination sonodes are compatible.
  * The vnode is returned held.
  *
  * The underlying filesystem VSOCK vnode has a v_stream pointer that
  * references the actual stream head (hence indirectly the actual sonode).
+ *
+ * This function is non-static so it can be used by brand emulation.
  */
-static int
+int
 so_ux_lookup(struct sonode *so, struct sockaddr_un *soun, int checkaccess,
                 vnode_t **vpp)
 {
         vnode_t         *vp;    /* Underlying filesystem vnode */
         vnode_t         *rvp;   /* real vnode */
@@ -1877,11 +1880,11 @@
 
 ssize_t
 soreadfile(file_t *fp, uchar_t *buf, u_offset_t fileoff, int *err, size_t size)
 {
         struct uio auio;
-        struct iovec aiov[MSG_MAXIOVLEN];
+        struct iovec aiov[1];
         register vnode_t *vp;
         int ioflag, rwflag;
         ssize_t cnt;
         int error = 0;
         int iovcnt = 0;