Lines Matching refs:ZSTR_LEN
244 if (ZSTR_LEN(val) < data->st_size) { in ps_files_write()
249 n = pwrite(data->fd, ZSTR_VAL(val), ZSTR_LEN(val), 0); in ps_files_write()
254 unsigned int to_write = ZSTR_LEN(val) > UINT_MAX ? UINT_MAX : (unsigned int)ZSTR_LEN(val); in ps_files_write()
263 …to_write = wrote > -1 ? (ZSTR_LEN(val) - n > UINT_MAX ? UINT_MAX : (unsigned int)(ZSTR_LEN(val) - … in ps_files_write()
268 n = write(data->fd, ZSTR_VAL(val), ZSTR_LEN(val)); in ps_files_write()
272 if (n != ZSTR_LEN(val)) { in ps_files_write()
501 n = pread(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val), 0); in PS_READ_FUNC()
506 unsigned int to_read = ZSTR_LEN(*val) > UINT_MAX ? UINT_MAX : (unsigned int)ZSTR_LEN(*val); in PS_READ_FUNC()
515 …to_read = read_in > -1 ? (ZSTR_LEN(*val) - n > UINT_MAX ? UINT_MAX : (unsigned int)(ZSTR_LEN(*val)… in PS_READ_FUNC()
521 n = read(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val)); in PS_READ_FUNC()
536 ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0'; in PS_READ_FUNC()