Searched refs:usec (Results 1 - 9 of 9) sorted by relevance

/PHP_TRUNK/ext/standard/tests/mail/
H A Dmail_skipif.inc9 socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 10, 'usec' => 10));
/PHP_TRUNK/ext/sockets/
H A Dsockets.c850 long usec = 0; local
852 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a!a!a!z!|l", &r_array, &w_array, &e_array, &sec, &usec) == FAILURE) {
883 if (usec > 999999) {
884 tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000);
885 tv.tv_usec = usec % 1000000;
888 tv.tv_usec = usec;
1919 add_assoc_long(return_value, "usec", tv.tv_usec);
1955 zval **sec, **usec; local
2020 const char usec_key[] = "usec";
2029 if (zend_hash_find(opt_ht, usec_key, sizeof(usec_key), (void **)&usec)
[all...]
/PHP_TRUNK/ext/standard/
H A Duniqid.c53 int sec, usec, prefix_len = 0; local
73 usec = (int) (tv.tv_usec % 0x100000);
75 /* The max value usec can have is 0xF423F, so we use only five hex
79 spprintf(&uniqid, 0, "%s%08x%05x%.8F", prefix, sec, usec, php_combined_lcg(TSRMLS_C) * 10);
81 spprintf(&uniqid, 0, "%s%08x%05x", prefix, sec, usec);
H A Dstreamsfuncs.c773 long usec = 0; local
776 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a!a!a!Z!|l", &r_array, &w_array, &e_array, &sec, &usec) == FAILURE)
818 } else if (usec < 0) {
824 if (usec > 999999) {
825 tv.tv_sec = Z_LVAL_PP(sec) + (usec / 1000000);
826 tv.tv_usec = usec % 1000000;
829 tv.tv_usec = usec;
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_fe.c75 ZEND_ARG_INFO(0, usec)
H A Dmysqli_nonapi.c783 /* {{{ proto int mysqli_poll(array read, array write, array error, long sec [, long usec]) U
789 long sec = 0, usec = 0; local
793 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a!a!al|l", &r_array, &e_array, &dont_poll_array, &sec, &usec) == FAILURE) {
796 if (sec < 0 || usec < 0) {
797 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative values passed for sec and/or usec");
813 ret = mysqlnd_poll(new_r_array, new_e_array, &new_dont_poll_array, sec, usec, &desc_num);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.h117 #define mysqlnd_poll(r, err, d_pull,sec,usec,desc_num) _mysqlnd_poll((r), (err), (d_pull), (sec), (usec), (desc_num) TSRMLS_CC)
121 PHPAPI enum_func_status _mysqlnd_poll(MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, int * desc_num TSRMLS_DC);
H A Dmysqlnd.c1370 _mysqlnd_poll(MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, int * desc_num TSRMLS_DC) argument
1380 if (sec < 0 || usec < 0) {
1381 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative values passed for sec and/or usec");
1415 if (usec > 999999) {
1416 tv.tv_sec = sec + (usec / 1000000);
1417 tv.tv_usec = usec % 1000000;
1420 tv.tv_usec = usec;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c2567 int usec; local
2572 usec = (int)(end.tv_usec - start.tv_usec);
2575 usec = (int)(end.tv_usec + 1000000 - start.tv_usec);
2577 fprintf(stderr, "\nElapsed time: %d.%06d sec\n", sec, usec);

Completed in 35 milliseconds