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_modules.h99 void *handle; member in struct:_zend_module_entry
H A Dzend_stream.c52 static size_t zend_stream_stdio_reader(void *handle, char *buf, size_t len TSRMLS_DC) /* {{{ */ argument
54 return fread(buf, 1, len, (FILE*)handle);
57 static void zend_stream_stdio_closer(void *handle TSRMLS_DC) /* {{{ */
59 if (handle && (FILE*)handle != stdin) {
60 fclose((FILE*)handle);
64 static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
67 if (handle && zend_fstat(fileno((FILE*)handle), &buf) == 0) {
91 stream->handle
[all...]
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.h33 typedef size_t (*zend_stream_fsizer_t)(void* handle TSRMLS_DC);
34 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC);
35 typedef void (*zend_stream_closer_t)(void* handle TSRMLS_DC);
57 void *handle; member in struct:_zend_stream
70 } handle; member in struct:_zend_file_handle
78 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 uint32_t handle = object->handle; local
172 uint32_t handle = object->handle; local
[all...]
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);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c285 zend_file_handle handle = {0}; local
288 handle.filename = filename;
289 handle.type = ZEND_HANDLE_FILENAME;
295 validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS;
299 if ((key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC)) != NULL) {
302 validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS;
696 zend_file_handle handle; local
709 handle.filename = script_name;
710 handle.free_filename = 0;
711 handle
[all...]
H A DZendAccelerator.c104 static int (*accelerator_orig_zend_stream_open_function)(const char *filename, zend_file_handle *handle TSRMLS_DC);
752 if (zend_fstat(file_handle->handle.fd, &statbuf) == -1) {
757 if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) {
786 php_stream *stream = (php_stream *)file_handle->handle.stream.handle;
931 /* we don't handle this well for now. */
1663 static int persistent_stream_open_function(const char *filename, zend_file_handle *handle TSRMLS_DC)
1681 handle->filename = (char*)filename;
1682 handle->free_filename = 0;
1691 handle
1738 zend_file_handle handle; local
[all...]
/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:__anon90
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.h72 isc_db_handle handle; member in struct:__anon92
79 isc_tr_handle handle; member in struct:__anon93
156 /* 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) != (zend_long) SIG_DFL && Z_LVAL_P(handle) != (zend_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/soap/
H A Dphp_sdl.c3375 void delete_sdl_impl(void *handle) argument
3377 sdlPtr tmp = (sdlPtr)handle;
3413 void delete_sdl(void *handle) argument
3415 sdlPtr tmp = (sdlPtr)handle;
/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...]
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.h59 zval handle; member in struct:_xsl_object
/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/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/main/streams/
H A Dplain_wrapper.c244 zend_uintptr_t handle = _get_osfhandle(self->fd); local
246 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
247 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
283 zend_uintptr_t handle = _get_osfhandle(self->fd); local
285 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
286 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
/PHP_TRUNK/ext/standard/
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...]
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...]
/PHP_TRUNK/main/
H A Dmain.c1361 static void php_zend_stream_closer(void *handle TSRMLS_DC) /* {{{ */
1363 php_stream_close((php_stream*)handle);
1367 static void php_zend_stream_mmap_closer(void *handle TSRMLS_DC) /* {{{ */
1369 php_stream_mmap_unmap((php_stream*)handle);
1370 php_zend_stream_closer(handle TSRMLS_CC);
1374 static size_t php_zend_stream_fsizer(void *handle TSRMLS_DC) /* {{{ */
1377 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1384 static int php_stream_open_for_zend(const char *filename, zend_file_handle *handle TSRMLS_DC) /* {{{ */
1386 return php_stream_open_for_zend_ex(filename, handle, USE_PATH|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
1390 PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, in argument
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar.c288 /* close open file handle - allows removal or rename of
2175 * Process a phar stream name, ensuring we can handle any of:
3243 static size_t phar_zend_stream_reader(void *handle, char *buf, size_t len TSRMLS_DC) /* {{{ */ argument
3245 return php_stream_read(phar_get_pharfp((phar_archive_data*)handle TSRMLS_CC), buf, len);
3249 static size_t phar_zend_stream_fsizer(void *handle TSRMLS_DC) /* {{{ */
3251 return ((phar_archive_data*)handle)->halt_offset + 32;
3295 file_handle->handle.stream.handle = phar;
3296 file_handle->handle.stream.reader = phar_zend_stream_reader;
3297 file_handle->handle
[all...]

Completed in 38 milliseconds

12