Searched defs:handle (Results 1 - 25 of 29) sorted by relevance

12

/PHP_TRUNK/TSRM/
H A Dreaddir.h30 HANDLE handle; /* _findfirst/_findnext handle */ member in struct:__anon3
/PHP_TRUNK/win32/
H A Dreaddir.h34 HANDLE handle; /* _findfirst/_findnext handle */ member in struct:__anon567
H A Dreaddir.c26 HANDLE handle; local
54 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) {
65 dp->handle = handle;
77 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) {
100 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) {
125 handle in this case (no first file found). */
126 if (dp->handle != INVALID_HANDLE_VALUE) {
127 FindClose(dp->handle);
141 HANDLE handle; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_extensions.c30 DL_HANDLE handle; local
34 handle = DL_LOAD(path);
35 if (!handle) {
48 extension_version_info = (zend_extension_version_info *) DL_FETCH_SYMBOL(handle, "extension_version_info");
50 extension_version_info = (zend_extension_version_info *) DL_FETCH_SYMBOL(handle, "_extension_version_info");
52 new_extension = (zend_extension *) DL_FETCH_SYMBOL(handle, "zend_extension_entry");
54 new_extension = (zend_extension *) DL_FETCH_SYMBOL(handle, "_zend_extension_entry");
62 DL_UNLOAD(handle);
79 DL_UNLOAD(handle);
95 DL_UNLOAD(handle);
[all...]
H A Dzend_stream.c53 static size_t zend_stream_stdio_reader(void *handle, char *buf, size_t len TSRMLS_DC) /* {{{ */ argument
55 return fread(buf, 1, len, (FILE*)handle);
58 static void zend_stream_stdio_closer(void *handle TSRMLS_DC) /* {{{ */
60 if (handle && (FILE*)handle != stdin) {
61 fclose((FILE*)handle);
65 static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
68 if (handle && fstat(fileno((FILE*)handle), &buf) == 0) {
92 stream->handle
[all...]
H A Dzend_stream.h30 typedef size_t (*zend_stream_fsizer_t)(void* handle TSRMLS_DC);
31 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC);
32 typedef void (*zend_stream_closer_t)(void* handle TSRMLS_DC);
54 void *handle; member in struct:_zend_stream
70 } handle; member in struct:_zend_file_handle
75 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC);
H A Dzend_objects_API.c115 int handle; local
118 handle = EG(objects_store).free_list_head;
119 EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]);
125 handle = EG(objects_store).top++;
127 object->handle = handle;
128 EG(objects_store).object_buckets[handle] = object;
131 #define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle) \
132 SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle], EG(objects_store).free_list_head); \
133 EG(objects_store).free_list_head = handle;
137 zend_uint handle = object->handle; local
172 zend_uint handle = object->handle; local
[all...]
H A Dzend_types.h179 zend_uint handle; // TODO: may be removed ??? member in struct:_zend_object
189 long handle; // TODO: may be removed ??? member in struct:_zend_resource
417 #define Z_OBJ_HANDLE(zval) (Z_OBJ((zval)))->handle
432 #define Z_RES_HANDLE(zval) Z_RES(zval)->handle
564 _res->handle = (h); \
577 _res->handle = (h); \
H A Dzend_extensions.h91 DL_HANDLE handle; member in struct:_zend_extension
121 ZEND_API int zend_register_extension(zend_extension *new_extension, DL_HANDLE handle TSRMLS_DC);
H A Dzend_modules.h99 void *handle; member in struct:_zend_module_entry
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c473 /* handle situations where user turns the engine off */
537 zfd.handle.stream.handle = pbb;
538 zfd.handle.stream.reader = php_apache_read_stream;
539 zfd.handle.stream.closer = NULL;
540 zfd.handle.stream.fsizer = php_apache_fsizer_stream;
541 zfd.handle.stream.isatty = 0;
711 static size_t php_apache_read_stream(void *handle, char *buf, size_t wantlen TSRMLS_DC) argument
713 php_apr_bucket_brigade *pbb = (php_apr_bucket_brigade *)handle;
731 static size_t php_apache_fsizer_stream(void *handle TSRMLS_D
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c866 FILE *handle = VCWD_FOPEN(param->str, "w+"); local
868 if (handle) {
869 phpdbg_export_breakpoints(handle TSRMLS_CC);
870 fclose(handle);
/PHP_TRUNK/main/streams/
H A Dplain_wrapper.c238 zend_uintptr_t handle = _get_osfhandle(self->fd); local
240 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
241 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
277 zend_uintptr_t handle = _get_osfhandle(self->fd); local
279 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
280 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_dotnet.c268 IObjectHandle *handle = NULL; local
271 hr = IUnknown_QueryInterface(unk, &IID_IObjectHandle, &handle);
275 hr = IObjectHandle_Unwrap(handle, &unwrapped);
304 IObjectHandle_Release(handle);
/PHP_TRUNK/ext/interbase/
H A Dibase_service.c31 isc_svc_handle handle; member in struct:__anon67
43 if (isc_service_detach(IB_STATUS, &sv->handle)) {
59 so invalidate the handle on errors */
67 "interbase service manager handle", module_number);
154 ZEND_FETCH_RESOURCE(svm, ibase_service *, res, -1, "Interbase service manager handle",
174 if (isc_service_start(IB_STATUS, &svm->handle, NULL, spb_len, buf)) {
214 isc_svc_handle handle = NULL; local
238 if (isc_service_attach(IB_STATUS, 0, loc, &handle, (unsigned short)spb_len, buf)) {
244 svm->handle = handle;
[all...]
H A Dphp_ibase_includes.h73 isc_db_handle handle; member in struct:__anon69
80 isc_tr_handle handle; member in struct:__anon70
157 /* determine if a resource is a link or transaction handle */
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c834 /* {{{ proto bool pcntl_signal(int signo, callback handle [, bool restart_syscalls])
838 zval *handle; local
843 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz|b", &signo, &handle, &restart_syscalls) == FAILURE) {
866 if (Z_TYPE_P(handle) == IS_LONG) {
867 if (Z_LVAL_P(handle) != (long) SIG_DFL && Z_LVAL_P(handle) != (long) SIG_IGN) {
868 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value for handle argument specified");
871 if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), (int) restart_syscalls) == SIG_ERR) {
879 if (!zend_is_callable(handle, 0, &func_name TSRMLS_CC)) {
888 if (zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle)) {
1218 zval param, *handle, retval; local
1249 call_user_function(EG(function_table), NULL, handle, &retval, 1, &param TSRMLS_CC); local
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar.c288 /* close open file handle - allows removal or rename of
2223 * Process a phar stream name, ensuring we can handle any of:
3291 static size_t phar_zend_stream_reader(void *handle, char *buf, size_t len TSRMLS_DC) /* {{{ */ argument
3293 return php_stream_read(phar_get_pharfp((phar_archive_data*)handle TSRMLS_CC), buf, len);
3297 static size_t phar_zend_stream_fsizer(void *handle TSRMLS_DC) /* {{{ */
3299 return ((phar_archive_data*)handle)->halt_offset + 32;
3343 file_handle->handle.stream.handle = phar;
3344 file_handle->handle.stream.reader = phar_zend_stream_reader;
3345 file_handle->handle
[all...]
/PHP_TRUNK/ext/standard/
H A Ddl.c104 void *handle; local
144 handle = DL_LOAD(libpath);
145 if (!handle) {
163 get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module");
170 get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "_get_module");
174 if (DL_FETCH_SYMBOL(handle, "zend_extension_entry") || DL_FETCH_SYMBOL(handle, "_zend_extension_entry")) {
175 DL_UNLOAD(handle);
179 DL_UNLOAD(handle);
199 void *handle; member in struct:pre_4_1_0_module_entry
[all...]
H A Ddns.c353 dns_handle_t handle; local
356 struct __res_state *handle = &state; local
388 handle = dns_open(NULL);
389 if (handle == NULL) {
394 if (res_ninit(handle)) {
402 i = php_dns_search(handle, hostname, C_IN, type, ans, sizeof(ans));
408 php_dns_free_handle(handle);
763 dns_handle_t handle; local
766 struct __res_state *handle = &state; local
880 handle
980 dns_handle_t handle; local
983 struct __res_state *handle = &state; local
[all...]
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.h59 zval handle; member in struct:_xsl_object
/PHP_TRUNK/main/
H A Dmain.c1359 static void php_zend_stream_closer(void *handle TSRMLS_DC) /* {{{ */
1361 php_stream_close((php_stream*)handle);
1365 static void php_zend_stream_mmap_closer(void *handle TSRMLS_DC) /* {{{ */
1367 php_stream_mmap_unmap((php_stream*)handle);
1368 php_zend_stream_closer(handle TSRMLS_CC);
1372 static size_t php_zend_stream_fsizer(void *handle TSRMLS_DC) /* {{{ */
1375 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1382 static int php_stream_open_for_zend(const char *filename, zend_file_handle *handle TSRMLS_DC) /* {{{ */
1384 return php_stream_open_for_zend_ex(filename, handle, USE_PATH|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
1388 PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, in argument
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c104 static int (*accelerator_orig_zend_stream_open_function)(const char *filename, zend_file_handle *handle TSRMLS_DC);
746 if (fstat(file_handle->handle.fd, &statbuf) == -1) {
751 if (fstat(fileno(file_handle->handle.fp), &statbuf) == -1) {
780 php_stream *stream = (php_stream *)file_handle->handle.stream.handle;
925 /* we don't handle this well for now. */
1666 static int persistent_stream_open_function(const char *filename, zend_file_handle *handle TSRMLS_DC)
1685 handle->filename = (char*)filename;
1686 handle->free_filename = 0;
1695 handle
1743 zend_file_handle handle; local
[all...]
H A Dzend_accelerator_module.c288 zend_file_handle handle = {0}; local
291 handle.filename = filename;
292 handle.type = ZEND_HANDLE_FILENAME;
298 validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS;
302 if ((key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC)) != NULL) {
305 validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS;
699 zend_file_handle handle; local
712 handle.filename = script_name;
713 handle.free_filename = 0;
714 handle
[all...]
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c860 * it then calls the corresponding PHP function to handle the method.
957 Register a PHP function to handle method matching method_name */
962 zval *handle, *method_name; local
965 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsz", &handle, &method_key, &method_key_len, &method_name) == FAILURE) {
969 ZEND_FETCH_RESOURCE(server, xmlrpc_server_data*, handle, -1, "xmlrpc server", le_xmlrpc_server);
992 zval *method_name, *handle; local
995 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &handle, &method_name) == FAILURE) {
999 ZEND_FETCH_RESOURCE(server, xmlrpc_server_data*, handle, -1, "xmlrpc server", le_xmlrpc_server);
1021 zval *caller_params, *handle, *output_opts = NULL; local
1027 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsz|a", &handle,
1119 zval *handle, *desc; local
[all...]

Completed in 57 milliseconds

12