Searched defs:handle (Results 1 - 25 of 30) 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
53 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) {
64 dp->handle = handle;
76 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) {
99 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) {
124 handle in this case (no first file found). */
125 if (dp->handle != INVALID_HANDLE_VALUE) {
126 FindClose(dp->handle);
140 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);
130 zend_register_extension(zend_extension *new_extension, DL_HANDLE handle) argument
[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);
H A Dzend_modules.h99 void *handle; member in struct:_zend_module_entry
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_stream.c52 static size_t zend_stream_stdio_reader(void *handle, char *buf, size_t len) /* {{{ */ argument
54 return fread(buf, 1, len, (FILE*)handle);
57 static void zend_stream_stdio_closer(void *handle) /* {{{ */ argument
59 if (handle && (FILE*)handle != stdin) {
60 fclose((FILE*)handle);
64 static size_t zend_stream_stdio_fsizer(void *handle) /* {{{ */ argument
67 if (handle && zend_fstat(fileno((FILE*)handle), &buf) == 0) {
91 stream->handle
128 zend_stream_open(const char *filename, zend_file_handle *handle) argument
[all...]
H A Dzend_stream.h33 typedef size_t (*zend_stream_fsizer_t)(void* handle);
34 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
35 typedef void (*zend_stream_closer_t)(void* handle);
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);
/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:__anon93
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:__anon95
79 isc_tr_handle handle; member in struct:__anon96
156 /* determine if a resource is a link or transaction handle */
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c107 static int (*accelerator_orig_zend_stream_open_function)(const char *filename, zend_file_handle *handle );
755 if (zend_fstat(file_handle->handle.fd, &statbuf) == -1) {
760 if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) {
789 php_stream *stream = (php_stream *)file_handle->handle.stream.handle;
934 /* we don't handle this well for now. */
1666 static int persistent_stream_open_function(const char *filename, zend_file_handle *handle) argument
1684 handle->filename = (char*)filename;
1685 handle->free_filename = 0;
1694 handle
1741 zend_file_handle handle; local
[all...]
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) == SUCCESS;
299 if ((key = accel_make_persistent_key_ex(&handle, filename_len, &key_length)) != NULL) {
302 validate_timestamp_and_record(persistent_script, &handle) == SUCCESS;
696 zend_file_handle handle; local
709 handle.filename = script_name;
710 handle.free_filename = 0;
711 handle
[all...]
/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(), "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, E_WARNING, "Invalid value for handle argument specified");
871 if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), (int) restart_syscalls) == SIG_ERR) {
880 if (!zend_is_callable(handle, 0, &func_name)) {
889 if (zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle)) {
1219 zval param, *handle, retval; local
1253 call_user_function(EG(function_table), NULL, handle, &retval, 1, &param); local
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar.c288 /* close open file handle - allows removal or rename of
2172 * 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) /* {{{ */ argument
3245 return php_stream_read(phar_get_pharfp((phar_archive_data*)handle), buf, len);
3249 static size_t phar_zend_stream_fsizer(void *handle) /* {{{ */ argument
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...]
/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
997 dns_handle_t handle; local
1000 struct __res_state *handle = &state; local
[all...]
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c860 * it then calls the corresponding PHP function to handle the method.
955 Register a PHP function to handle method matching method_name */
960 zval *handle, *method_name; local
963 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsz", &handle, &method_key, &method_key_len, &method_name) == FAILURE) {
967 ZEND_FETCH_RESOURCE(server, xmlrpc_server_data*, handle, -1, "xmlrpc server", le_xmlrpc_server);
990 zval *method_name, *handle; local
993 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rz", &handle, &method_name) == FAILURE) {
997 ZEND_FETCH_RESOURCE(server, xmlrpc_server_data*, handle, -1, "xmlrpc server", le_xmlrpc_server);
1019 zval *caller_params, *handle, *output_opts = NULL; local
1025 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsz|a", &handle,
1117 zval *handle, *desc; local
[all...]
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.h59 zval handle; member in struct:_xsl_object
/PHP_TRUNK/main/
H A Dmain.c1361 static void php_zend_stream_closer(void *handle) /* {{{ */ argument
1363 php_stream_close((php_stream*)handle);
1367 static void php_zend_stream_mmap_closer(void *handle) /* {{{ */ argument
1369 php_stream_mmap_unmap((php_stream*)handle);
1370 php_zend_stream_closer(handle);
1374 static size_t php_zend_stream_fsizer(void *handle) /* {{{ */ argument
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) /* {{{ */ argument
1386 return php_stream_open_for_zend_ex(filename, handle, USE_PATH|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE);
1390 PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, in argument
[all...]
/PHP_TRUNK/main/streams/
H A Dplain_wrapper.c245 zend_uintptr_t handle = _get_osfhandle(self->fd); local
247 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
248 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
284 zend_uintptr_t handle = _get_osfhandle(self->fd); local
286 if (handle != (zend_uintptr_t)INVALID_HANDLE_VALUE) {
287 self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE;
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c471 /* handle situations where user turns the engine off */
535 zfd.handle.stream.handle = pbb;
536 zfd.handle.stream.reader = php_apache_read_stream;
537 zfd.handle.stream.closer = NULL;
538 zfd.handle.stream.fsizer = php_apache_fsizer_stream;
539 zfd.handle.stream.isatty = 0;
707 static size_t php_apache_read_stream(void *handle, char *buf, size_t wantlen) argument
709 php_apr_bucket_brigade *pbb = (php_apr_bucket_brigade *)handle;
727 static size_t php_apache_fsizer_stream(void *handle) argument
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c105 PHPDBG_API void phpdbg_export_breakpoints(FILE *handle) /* {{{ */ argument
109 fputs(string, handle);
H A Dphpdbg_prompt.c898 DL_HANDLE handle; local
921 handle = DL_LOAD(*path);
923 if (!handle) {
943 extension_version_info = (zend_extension_version_info *) DL_FETCH_SYMBOL(handle, "extension_version_info");
945 extension_version_info = (zend_extension_version_info *) DL_FETCH_SYMBOL(handle, "_extension_version_info");
947 new_extension = (zend_extension *) DL_FETCH_SYMBOL(handle, "zend_extension_entry");
949 new_extension = (zend_extension *) DL_FETCH_SYMBOL(handle, "_zend_extension_entry");
966 zend_register_extension(new_extension, handle);
985 get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module");
987 get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "_get_modul
1089 FILE *handle = VCWD_FOPEN(param->str, "w+"); local
[all...]

Completed in 63 milliseconds

12