Home
last modified time | relevance | path

Searched refs:os_handle (Results 1 – 25 of 177) sorted by relevance

12345678

/dports/devel/ptlib/ptlib-2.10.11/src/ptlib/unix/
H A Dossaix.cxx196 os_handle = -1; in Construct()
295 if (os_handle < 0) in Setup()
363 if (os_handle < 0) in Close()
367 os_handle = -1; in Close()
388 os_handle = -1; in Close()
397 if (os_handle > 0) { in Write()
423 if (os_handle > 0) { in Read()
603 if (os_handle == 0) in HasPlayCompleted()
668 if (os_handle == 0) in StartRecording()
689 if (os_handle == 0) in IsRecordBufferFull()
[all …]
H A Dvxaudio.cxx126 os_handle = -1; in Construct()
222 if (os_handle < 0) in Setup()
258 if (os_handle < 0) in Close()
262 os_handle = -1; in Close()
283 os_handle = -1; in Close()
295 if (os_handle > 0) { in Write()
324 if (os_handle > 0) { in Read()
486 if (os_handle == 0) in HasPlayCompleted()
539 if (os_handle == 0) in StartRecording()
559 if (os_handle == 0) in IsRecordBufferFull()
[all …]
H A Dqsa.cxx136 os_handle = -1; in Construct()
248 os_handle = 0; in Open()
385 if (os_handle < 0) in Close()
409 os_handle = -1; in Close()
424 if (os_handle < 0) in Write()
465 if (os_handle < 0) in Read()
508 if (os_handle < 0) in SetFormat()
569 if (os_handle < 0) in SetBuffers()
617 if (os_handle < 0) in GetBuffers()
637 if (os_handle < 0) in PlaySound()
[all …]
H A Dserchan.cxx122 if (os_handle >= 0) { in Close()
206 ConvertOSError(os_handle); in Open()
215 TCGETATTR(os_handle, &oldTermio); in Open()
218 TCSETATTR(os_handle, &Termio); in Open()
232 ::fcntl(os_handle, F_SETFD, 1); in Open()
244 if (os_handle < 0) in SetSpeed()
392 if (os_handle < 0) in SetSpeed()
452 if (os_handle < 0) in SetDataBits()
495 if (os_handle < 0) in SetParity()
536 if (os_handle < 0) in SetStopBits()
[all …]
H A Dchannel.cxx56 os_handle = -1; in Construct()
89 if (os_handle < 0) in PXSetIOBlock()
151 if (os_handle < 0) in Read()
181 if (os_handle < 0) in Write()
233 if (os_handle < 0) in Read()
249 if (os_handle < 0) in Write()
278 if (os_handle < 0) in Close()
298 if (os_handle < 0) in PXClose()
301 PTRACE(6, "PWLib\tClosing channel, fd=" << os_handle); in PXClose()
306 int handle = os_handle; in PXClose()
[all …]
H A Dmacosaudio.cxx187 os_handle = r.m_result; in Open()
212 os_handle = r.m_result; in Open()
256 if( os_handle < 0 ) in SetFormat()
268 if( os_handle < 0 ) in SetFormat()
350 if (os_handle >= 0) { in Close()
355 os_handle = -1; in Close()
361 if (os_handle > 0) { in Close()
367 os_handle = -1; in Close()
407 commandRequest r(kIsPlaying, os_handle); in HasPlayCompleted()
502 commandRequest r(kStopPlayer, os_handle); in Abort()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/plugins/sound_sunaudio/
H A Dsound_sunaudio.cxx73 os_handle = -1; in Construct()
111 os_handle = -1; in Open()
128 os_handle = -1; in Open()
148 if (os_handle < 0) in Close()
221 if (os_handle < 0) in SetBuffers()
246 if (os_handle < 0) in GetBuffers()
301 if (os_handle < 0) in PlaySound()
348 if (os_handle < 0) in HasPlayCompleted()
361 if (os_handle < 0) in WaitForPlayCompletion()
371 if (os_handle < 0) in Read()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/plugins/sound_alsa/
H A Dsound_alsa.cxx52 os_handle = NULL; in PSoundChannelALSA()
63 os_handle = NULL; in PSoundChannelALSA()
83 os_handle = NULL; in Construct()
249 if (!os_handle) in SetHardwareParams()
363 if (!os_handle) in Close()
479 if (!os_handle) in SetFormat()
538 if (!os_handle) in PlaySound()
556 if (!os_handle) in PlayFile()
591 if (!os_handle) in HasPlayCompleted()
600 if (!os_handle) in WaitForPlayCompletion()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/plugins/sound_oss/
H A Dsound_oss.cxx82 os_handle = -1; in Construct()
465 if (os_handle < 0) in Close()
485 os_handle = -1; in Close()
622 if (os_handle < 0) in SetFormat()
681 if (os_handle < 0) in SetBuffers()
728 if (os_handle < 0) in GetBuffers()
749 if (os_handle < 0) in PlaySound()
766 if (os_handle < 0) in PlayFile()
795 if (os_handle < 0) in HasPlayCompleted()
808 if (os_handle < 0) in WaitForPlayCompletion()
[all …]
/dports/net/opal/opal-3.10.10/src/lids/
H A Dixjunix.cxx304 os_handle = -1; in OpalIxJDevice()
364 info.fd = os_handle; in Open()
410 int f = fcntl(os_handle, F_GETFL); in Open()
415 os_handle = new_handle; in Open()
478 int stat = ::close(os_handle); in Close()
487 os_handle = -1; in Close()
606 IOCTL(os_handle, PHONE_WINK); in SetLineOffHook()
814 IOCTL(os_handle, PHONE_REC_STOP); in SetReadFormat()
935 FD_SET(os_handle, &wfds); in SetWriteFormat()
1134 FD_SET(os_handle, &rfds); in ReadFrame()
[all …]
/dports/lang/parrot/parrot-8.1.0/src/platform/generic/
H A Dio.c115 PIOHANDLE os_handle; in Parrot_io_internal_std_os_handle() local
120 os_handle = STDIN_FILENO; in Parrot_io_internal_std_os_handle()
123 os_handle = STDOUT_FILENO; in Parrot_io_internal_std_os_handle()
126 os_handle = STDERR_FILENO; in Parrot_io_internal_std_os_handle()
130 return os_handle; in Parrot_io_internal_std_os_handle()
344 Parrot_io_internal_flush(SHIM_INTERP, const PIOHANDLE os_handle) in Parrot_io_internal_flush() argument
346 return fsync(os_handle); in Parrot_io_internal_flush()
367 const int bytes = read(os_handle, buf, len); in Parrot_io_internal_read()
399 const int count = write(os_handle, ptr, to_write); in Parrot_io_internal_write()
442 const PIOOFF_T pos = lseek(os_handle, offset, whence); in Parrot_io_internal_seek()
[all …]
H A Dsocket.c535 Parrot_io_internal_connect(PARROT_INTERP, PIOHANDLE os_handle, ARGIN(void *addr), in Parrot_io_internal_connect() argument
539 if (connect((PIOSOCKET)os_handle, (struct sockaddr *)addr, addr_len) != 0) { in Parrot_io_internal_connect()
567 Parrot_io_internal_bind(PARROT_INTERP, PIOHANDLE os_handle, ARGMOD(void *addr), in Parrot_io_internal_bind() argument
570 if (bind((PIOSOCKET)os_handle, (struct sockaddr *)addr, addr_len) != 0) in Parrot_io_internal_bind()
589 Parrot_io_internal_listen(PARROT_INTERP, PIOHANDLE os_handle, INTVAL sec) in Parrot_io_internal_listen() argument
591 if (listen((PIOSOCKET)os_handle, sec) != 0) in Parrot_io_internal_listen()
620 newsock = accept((PIOSOCKET)os_handle, (struct sockaddr *)addr, &addr_len); in Parrot_io_internal_accept()
658 if ((error = send((PIOSOCKET)os_handle, buf + byteswrote, len, 0)) >= 0) { in Parrot_io_internal_send()
697 if ((error = recv((PIOSOCKET)os_handle, buf, len, 0)) >= 0) { in Parrot_io_internal_recv()
736 Parrot_io_internal_poll(PARROT_INTERP, PIOHANDLE os_handle, int which, int sec, in Parrot_io_internal_poll() argument
[all …]
/dports/lang/parrot/parrot-8.1.0/src/io/
H A Dsocket.c231 PIOHANDLE os_handle; in io_socket_read_b()
232 GETATTR_Socket_os_handle(interp, handle, os_handle); in io_socket_read_b()
252 PIOHANDLE os_handle; in io_socket_write_b()
411 PIOHANDLE os_handle; in io_socket_open()
413 return Parrot_io_internal_flush(interp, os_handle); in io_socket_open()
430 PIOHANDLE os_handle; in io_socket_is_open()
432 return os_handle != PIO_INVALID_HANDLE; in io_socket_is_open()
450 PIOHANDLE os_handle; in io_socket_close() local
453 if (os_handle != PIO_INVALID_HANDLE) in io_socket_close()
525 PIOHANDLE os_handle; in io_socket_get_piohandle()
[all …]
H A Dfilehandle.c300 return Parrot_io_internal_flush(interp, os_handle); in io_filehandle_flush()
354 return Parrot_io_internal_tell(interp, os_handle); in io_filehandle_tell()
446 PIOHANDLE os_handle; in io_filehandle_open()
463 os_handle = Parrot_io_internal_open(interp, path, flags); in io_filehandle_open()
465 if (os_handle == PIO_INVALID_HANDLE) { in io_filehandle_open()
479 if (Parrot_io_internal_is_tty(interp, os_handle)) in io_filehandle_open()
482 SETATTR_FileHandle_os_handle(interp, handle, os_handle); in io_filehandle_open()
506 return os_handle != PIO_INVALID_HANDLE; in io_filehandle_is_open()
526 if (os_handle == PIO_INVALID_HANDLE) in io_filehandle_close()
665 PARROT_FILEHANDLE(filehandle)->os_handle = file_descriptor; in io_filehandle_set_os_handle()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/src/ptlib/msos/
H A Dmswin.cxx208 GetCommError(os_handle, &stat); in Read()
243 GetCommError(os_handle, &stat); in Write()
260 os_handle = -1; in Close()
386 if (os_handle < 0) { in Open()
387 switch (os_handle) { in Open()
410 os_handle = -1; in Open()
418 CloseComm(os_handle); in Open()
658 if (os_handle >= 0) { in Execute()
659 _close(os_handle); in Execute()
660 os_handle = -1; in Execute()
[all …]
H A Dwinsock.cxx173 SOCKET s = os_handle; in os_close()
174 os_handle = -1; in os_close()
195 if (::connect(os_handle, addr, size) != SOCKET_ERROR) in os_connect()
200 ::ioctlsocket(os_handle, FIONBIO, &fionbio); in os_connect()
205 P_fd_set writefds = os_handle; in os_connect()
206 P_fd_set exceptfds = os_handle; in os_connect()
213 writefds = os_handle; in os_connect()
214 exceptfds = os_handle; in os_connect()
221 if (writefds.IsPresent(os_handle)) { in os_connect()
303 P_fd_set readfds = os_handle; in os_recvfrom()
[all …]
H A Dmsdos.cxx131 return psprintf("COM%i", os_handle+1); in GetName()
167 os_handle = -1; in Close()
269 _bios_serialcom(_COM_INIT, os_handle, biosParm); in SetCommsParam()
278 os_handle = -1; in Open()
282 os_handle = port[3] - '1'; in Open()
394 return (_bios_serialcom(_COM_STATUS, os_handle, 0)&0x8010) == 0x10; in GetCTS()
448 if (os_handle >= 0) { in Execute()
449 _close(os_handle); in Execute()
450 os_handle = -1; in Execute()
457 os_handle = _open(fromChild, _O_RDONLY); in Execute()
[all …]
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/dso/win32/
H A Ddso.c57 HINSTANCE os_handle; in apr_dso_load() local
77 os_handle = LoadLibraryExW(wpath, NULL, 0); in apr_dso_load()
78 if (!os_handle) in apr_dso_load()
79 os_handle = LoadLibraryExW(wpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); in apr_dso_load()
80 if (!os_handle) in apr_dso_load()
103 os_handle = LoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); in apr_dso_load()
104 if (!os_handle) in apr_dso_load()
105 os_handle = LoadLibraryEx(path, NULL, 0); in apr_dso_load()
106 if (!os_handle) in apr_dso_load()
121 (*res_handle)->handle = (void*)os_handle; in apr_dso_load()
/dports/devel/apr1/apr-1.7.0/dso/win32/
H A Ddso.c57 HINSTANCE os_handle; in apr_dso_load() local
77 os_handle = LoadLibraryExW(wpath, NULL, 0); in apr_dso_load()
78 if (!os_handle) in apr_dso_load()
79 os_handle = LoadLibraryExW(wpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); in apr_dso_load()
80 if (!os_handle) in apr_dso_load()
103 os_handle = LoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); in apr_dso_load()
104 if (!os_handle) in apr_dso_load()
105 os_handle = LoadLibraryEx(path, NULL, 0); in apr_dso_load()
106 if (!os_handle) in apr_dso_load()
121 (*res_handle)->handle = (void*)os_handle; in apr_dso_load()
/dports/lang/parrot/parrot-8.1.0/src/platform/win32/
H A Dio.c279 Parrot_io_internal_close(PARROT_INTERP, PIOHANDLE os_handle) in Parrot_io_internal_close() argument
283 if (os_handle != INVALID_HANDLE_VALUE) { in Parrot_io_internal_close()
284 if (CloseHandle(os_handle) == 0) in Parrot_io_internal_close()
321 Parrot_io_internal_flush(PARROT_INTERP, PIOHANDLE os_handle) in Parrot_io_internal_flush() argument
335 return FlushFileBuffers(os_handle); in Parrot_io_internal_flush()
442 Parrot_io_internal_seek(PARROT_INTERP, PIOHANDLE os_handle, in Parrot_io_internal_seek() argument
475 Parrot_io_internal_tell(PARROT_INTERP, PIOHANDLE os_handle) in Parrot_io_internal_tell() argument
522 PIOHANDLE os_handle; in Parrot_io_internal_open_pipe() local
577 os_handle = hread; in Parrot_io_internal_open_pipe()
581 os_handle = hwrite; in Parrot_io_internal_open_pipe()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/plugins/sound_esd/
H A Dsound_esd.cxx143 os_handle = esd_record_stream_fallback( format, rate, host, name ); in Open()
145 os_handle = esd_play_stream_fallback( format, rate, host, name ); in Open()
147 if ( os_handle <= 0 ) in Open()
155 if (os_handle <= 0) //Cannot set volume in loop back mode. in SetVolume()
163 if (os_handle <= 0) //Cannot get volume in loop back mode. in GetVolume()
214 if (os_handle >= 0) { in Write()
217 rval = ::write(os_handle, buf, len); in Write()
266 if (os_handle < 0) in Read()
272 int retval = ::read(os_handle, ((char *)buf)+lastReadCount, len-lastReadCount); in Read()
312 if (os_handle < 0) { in WaitForRecordBufferFull()
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/dso/unix/
H A Ddso.c84 shl_t os_handle = shl_load(path, BIND_IMMEDIATE, 0L); in apr_dso_load() local
88 NSModule os_handle = NULL; in apr_dso_load()
95 os_handle = NSLinkModule(image, path, in apr_dso_load()
99 if (!os_handle) { in apr_dso_load()
106 os_handle = NSLinkModule(image, path, FALSE); in apr_dso_load()
113 os_handle = (NSModule)DYLD_LIBRARY_HANDLE; in apr_dso_load()
123 void *os_handle = dlopen((char *)path, RTLD_NOW | RTLD_LOCAL); in apr_dso_load()
127 void *os_handle; in apr_dso_load()
139 os_handle = dlopen(path, flags); in apr_dso_load()
145 if(os_handle == NULL) { in apr_dso_load()
[all …]
/dports/devel/apr1/apr-1.7.0/dso/unix/
H A Ddso.c84 shl_t os_handle = shl_load(path, BIND_IMMEDIATE, 0L); in apr_dso_load() local
88 NSModule os_handle = NULL; in apr_dso_load()
95 os_handle = NSLinkModule(image, path, in apr_dso_load()
99 if (!os_handle) { in apr_dso_load()
106 os_handle = NSLinkModule(image, path, FALSE); in apr_dso_load()
113 os_handle = (NSModule)DYLD_LIBRARY_HANDLE; in apr_dso_load()
123 void *os_handle = dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL); in apr_dso_load()
127 void *os_handle; in apr_dso_load()
139 os_handle = dlopen(path, flags); in apr_dso_load()
145 if(os_handle == NULL) { in apr_dso_load()
[all …]
/dports/devel/ptlib/ptlib-2.10.11/src/ptlib/Nucleus++/
H A Dsocket.cxx58 if (os_handle < 0) in os_close()
62 ::shutdown(os_handle, 2); in os_close()
67 PProcess::Current().PXAbortIOBlock(os_handle); in os_close()
70 int retval = ::closesocket(os_handle); in os_close()
71 os_handle = -1; in os_close()
113 int val = ::connect(os_handle, addr, size);
417 if (os_handle < 0) {
512 os_handle = -1;
590 if (!ConvertOSError(ioctl(os_handle, SIOCGIFADDR, &ifr)))
616 if (!ConvertOSError(ioctl(os_handle, SIOCGIFFLAGS, &ifr)))
[all …]
/dports/devel/ptlib/ptlib-2.10.11/plugins/sound_shm/
H A Dsound_shm.cxx134 os_handle = NULL; in PSoundChannelSHM()
145 os_handle = NULL; in PSoundChannelSHM()
171 os_handle = NULL; in Construct()
278 if (!os_handle) in Close()
280 DPRINT(("ashm close oshandle=%d\n", (int)os_handle)); in Close()
282 os_handle = NULL; in Close()
327 if (!os_handle) in SetFormat()
391 if (!os_handle) in PlaySound()
414 if (!os_handle) in PlayFile()
501 if (!os_handle) in Abort()
[all …]

12345678