Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for __opensock (1.61 sec)

  1. ci/official/containers/ml_build_arm64/builder.devtoolset/stringop_trunc.patch

       struct ifreq ifr;
    +  if (strlen (ifname) >= IFNAMSIZ)
    +    {
    +      __set_errno (ENODEV);
    +      return 0;
    +    }
    +
    +  strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
    +
       int fd = __opensock ();
     
       if (fd < 0)
         return 0;
     
    -  strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
       if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0)
         {
           int saved_errno = errno;
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Nov 11 19:25:56 UTC 2024
    - 42.9K bytes
    - Viewed (0)
Back to top