Lines Matching refs:lval

331 		long lval;  in from_zval_integer_common()  local
336 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) { in from_zval_integer_common()
346 Z_LVAL(lzval) = lval; in from_zval_integer_common()
368 long lval; in from_zval_write_int() local
371 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_int()
376 if (lval > INT_MAX || lval < INT_MIN) { in from_zval_write_int()
382 ival = (int)lval; in from_zval_write_int()
387 long lval; in from_zval_write_uint32() local
390 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_uint32()
395 if (sizeof(long) > sizeof(uint32_t) && (lval < 0 || lval > 0xFFFFFFFF)) { in from_zval_write_uint32()
401 ival = (uint32_t)lval; in from_zval_write_uint32()
406 long lval; in from_zval_write_net_uint16() local
409 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_net_uint16()
414 if (lval < 0 || lval > 0xFFFF) { in from_zval_write_net_uint16()
420 ival = htons((uint16_t)lval); in from_zval_write_net_uint16()
425 long lval; in from_zval_write_sa_family() local
428 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_sa_family()
433 if (lval < 0 || lval > (sa_family_t)-1) { /* sa_family_t is unsigned */ in from_zval_write_sa_family()
439 ival = (sa_family_t)lval; in from_zval_write_sa_family()
444 long lval; in from_zval_write_pid_t() local
447 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_pid_t()
452 if (lval < 0 || (pid_t)lval != lval) { /* pid_t is signed */ in from_zval_write_pid_t()
458 ival = (pid_t)lval; in from_zval_write_pid_t()
463 long lval; in from_zval_write_uid_t() local
466 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_uid_t()
473 if (sizeof(long) > sizeof(uid_t) && (lval < 0 || (uid_t)lval != lval)) { in from_zval_write_uid_t()
479 if (sizeof(long) > sizeof(uid_t) && (uid_t)lval != lval) { in from_zval_write_uid_t()
486 ival = (uid_t)lval; in from_zval_write_uid_t()
1079 long lval; in from_zval_write_msghdr_buffer_size() local
1082 lval = from_zval_integer_common(elem, ctx); in from_zval_write_msghdr_buffer_size()
1087 if (lval < 0 || lval > MAX_USER_BUFF_SIZE) { in from_zval_write_msghdr_buffer_size()
1089 "given %ld", (long)MAX_USER_BUFF_SIZE, lval); in from_zval_write_msghdr_buffer_size()
1095 msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)lval, ctx); in from_zval_write_msghdr_buffer_size()
1096 msghdr->msg_iov[0].iov_len = (size_t)lval; in from_zval_write_msghdr_buffer_size()