Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bnu/interface.c
          +++ new/usr/src/cmd/bnu/interface.c
↓ open down ↓ 294 lines elided ↑ open up ↑
 295  295          }
 296  296  
 297  297          /* on every N_CHECKth call, check that are still in DATAXFER state */
 298  298          if (++n_writ == N_CHECK) {
 299  299                  n_writ = 0;
 300  300                  if (t_getstate(fd) != T_DATAXFER)
 301  301                          return (FAIL);
 302  302          }
 303  303  
 304  304          if (info.tsdu <= 0 || nbytes <= info.tsdu)
 305      -                return (t_snd(fd, buf, nbytes, NULL));
      305 +                return (t_snd(fd, buf, nbytes, 0));
 306  306  
 307  307          /* if get here, then there is a limit on transmit size  */
 308  308          /* (info.tsdu > 0) and buf exceeds it                   */
 309  309          i = ret = 0;
 310  310          while (nbytes >= info.tsdu) {
 311      -                if ((ret = t_snd(fd,  &buf[i], info.tsdu, NULL)) != info.tsdu)
      311 +                if ((ret = t_snd(fd,  &buf[i], info.tsdu, 0)) != info.tsdu)
 312  312                          return ((ret >= 0 ? (i + ret) : ret));
 313  313                  i += info.tsdu;
 314  314                  nbytes -= info.tsdu;
 315  315          }
 316  316          if (nbytes != 0) {
 317      -                if ((ret = t_snd(fd,  &buf[i], nbytes, NULL)) != nbytes)
      317 +                if ((ret = t_snd(fd,  &buf[i], nbytes, 0)) != nbytes)
 318  318                          return ((ssize_t)(ret >= 0 ? (i + ret) : ret));
 319  319                  i += nbytes;
 320  320          }
 321  321          return ((ssize_t)i);
 322  322  }
 323  323  
 324  324  
 325  325  /*
 326  326   *      tioctl - stub for tli ioctl routine
 327  327   */
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX