Lines Matching refs:nread
30 mach_msg_type_number_t nread, more; in _hurd_get_host_config() local
53 nread = buflen; in _hurd_get_host_config()
54 err = __io_read (config, &data, &nread, -1, buflen); in _hurd_get_host_config()
63 memcpy (buf, data, nread); in _hurd_get_host_config()
64 __vm_deallocate (__mach_task_self (), (vm_address_t) data, nread); in _hurd_get_host_config()
68 if (nread == 0 && more == 0) in _hurd_get_host_config()
76 while (nread > 0 && buf[nread - 1] == '\n') in _hurd_get_host_config()
77 buf[--nread] = '\0'; in _hurd_get_host_config()
80 if (nread < buflen) in _hurd_get_host_config()
81 buf[nread] = '\0'; in _hurd_get_host_config()
83 if (nread != 0 && buf[nread - 1] != '\0') in _hurd_get_host_config()
91 return nread; in _hurd_get_host_config()