Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 3 of 3) sorted by relevance

/hurd/
A Dget-host.c30 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()
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()
[all …]
A Dfd-read.c29 mach_msg_type_number_t nread; in _hurd_fd_read() local
33 return __io_read (port, &data, &nread, offset, *nbytes); in _hurd_fd_read()
37 nread = *nbytes; in _hurd_fd_read()
43 if (nread > *nbytes) /* Sanity check for bogus server. */ in _hurd_fd_read()
45 __vm_deallocate (__mach_task_self (), (vm_address_t) data, nread); in _hurd_fd_read()
48 memcpy (buf, data, nread); in _hurd_fd_read()
49 __vm_deallocate (__mach_task_self (), (vm_address_t) data, nread); in _hurd_fd_read()
52 *nbytes = nread; in _hurd_fd_read()
A Dfopenport.c28 mach_msg_type_number_t nread; in readio() local
32 nread = n; in readio()
33 if (err = __io_read ((io_t) cookie, &bufp, &nread, -1, n)) in readio()
38 memcpy (buf, bufp, nread); in readio()
40 (vm_address_t) bufp, (vm_size_t) nread); in readio()
43 return nread; in readio()

Completed in 6 milliseconds