/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | openfile.c | 57 PRFileDesc *fd; local 66 fd = PR_OpenFile(TEMPLATE_FILE_NAME, PR_RDONLY, 0666); 67 nbytes = PR_Read(fd, buf, sizeof(buf)); 68 PR_Close(fd); 71 fd = PR_OpenFile("tfil0700.txt", PR_RDWR | PR_CREATE_FILE, 0700); 72 if (NULL == fd) { 77 PR_Write(fd, buf, nbytes); 78 PR_Close(fd); 80 fd = PR_OpenFile("tfil0500.txt", PR_RDWR | PR_CREATE_FILE, 0500); 81 if (NULL == fd) { [all...] |
/vbox/src/VBox/Additions/x11/x11include/4.3/programs/Xserver/hw/xfree86/os-support/ |
H A D | xf86drmCompat.h | 93 extern int drmMGAInitDMA( int fd, drmCompatMGAInit *info ); 94 extern int drmMGACleanupDMA( int fd ); 95 extern int drmMGAFlushDMA( int fd, drmLockFlags flags ); 96 extern int drmMGAEngineReset( int fd ); 97 extern int drmMGAFullScreen( int fd, int enable ); 98 extern int drmMGASwapBuffers( int fd ); 99 extern int drmMGAClear( int fd, unsigned int flags, 102 extern int drmMGAFlushVertexBuffer( int fd, int indx, int used, int discard ); 103 extern int drmMGAFlushIndices( int fd, int indx, 105 extern int drmMGATextureLoad( int fd, in [all...] |
H A D | xf86drm.h | 387 #define DRM_LIGHT_LOCK(fd,lock,context) \ 391 if (__ret) drmGetLock(fd,context,0); \ 396 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \ 400 if (__ret) drmGetLock(fd,context,0); \ 404 #define DRM_LOCK(fd,lock,context,flags) \ 406 if (flags) drmGetLock(fd,context,flags); \ 407 else DRM_LIGHT_LOCK(fd,lock,context); \ 410 #define DRM_UNLOCK(fd,lock,context) \ 414 if (__ret) drmUnlock(fd,context); \ 460 extern int drmClose(int fd); [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/ |
H A D | xf86drmCompat.h | 97 extern int drmMGAInitDMA( int fd, drmCompatMGAInit *info ); 98 extern int drmMGACleanupDMA( int fd ); 99 extern int drmMGAFlushDMA( int fd, drmLockFlags flags ); 100 extern int drmMGAEngineReset( int fd ); 101 extern int drmMGAFullScreen( int fd, int enable ); 102 extern int drmMGASwapBuffers( int fd ); 103 extern int drmMGAClear( int fd, unsigned int flags, 106 extern int drmMGAFlushVertexBuffer( int fd, int indx, int used, int discard ); 107 extern int drmMGAFlushIndices( int fd, int indx, 109 extern int drmMGATextureLoad( int fd, in [all...] |
H A D | xf86drm.h | 417 #define DRM_LIGHT_LOCK(fd,lock,context) \ 421 if (__ret) drmGetLock(fd,context,0); \ 426 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \ 430 if (__ret) drmGetLock(fd,context,0); \ 434 #define DRM_LOCK(fd,lock,context,flags) \ 436 if (flags) drmGetLock(fd,context,flags); \ 437 else DRM_LIGHT_LOCK(fd,lock,context); \ 440 #define DRM_UNLOCK(fd,lock,context) \ 444 if (__ret) drmUnlock(fd,context); \ 490 extern int drmClose(int fd); [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/ |
H A D | posix_io.h | 25 extern ssize_t read_user ( int fd, userptr_t buffer, 28 extern ssize_t fsize ( int fd ); 29 extern int close ( int fd ); 44 * @v fd File descriptor 48 FD_SET ( int fd, fd_set *set ) { argument 49 *set |= ( 1 << fd ); 55 * @v fd File descriptor 59 FD_CLR ( int fd, fd_set *set ) { argument 60 *set &= ~( 1 << fd ); 66 * @v fd Fil 71 FD_ISSET( int fd, fd_set *set ) argument 83 read( int fd, void *buf, size_t len ) argument [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/ |
H A D | dumb_bo.h | 39 struct dumb_bo *dumb_bo_create(int fd, const unsigned width, 41 int dumb_bo_map(int fd, struct dumb_bo *bo); 42 int dumb_bo_destroy(int fd, struct dumb_bo *bo); 43 struct dumb_bo *dumb_get_bo_from_fd(int fd, int handle, int pitch, int size);
|
H A D | systemd-logind.h | 33 void systemd_logind_release_fd(int major, int minor, int fd); 40 #define systemd_logind_release_fd(major, minor, fd) close(fd)
|
/vbox/src/VBox/Additions/x11/x11include/libdrm-2.4.13/ |
H A D | radeon_cs_gem.h | 38 struct radeon_cs_manager *radeon_cs_manager_gem_ctor(int fd);
|
H A D | xf86drm.h | 73 int fd; member in struct:drmHashEntry 78 extern int drmIoctl(int fd, unsigned long request, void *arg); 80 extern drmHashEntry *drmGetEntry(int fd); 440 #define DRM_LIGHT_LOCK(fd,lock,context) \ 444 if (__ret) drmGetLock(fd,context,0); \ 449 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \ 453 if (__ret) drmGetLock(fd,context,0); \ 457 #define DRM_LOCK(fd,lock,context,flags) \ 459 if (flags) drmGetLock(fd,context,flags); \ 460 else DRM_LIGHT_LOCK(fd,loc [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/tests/ |
H A D | fileio.cpp | 50 RCFileIO fd; local 52 rv = fd.Open("filio.dat", PR_CREATE_FILE, 0666); 54 rv = fd.FileInfo(&info); 56 rv = fd.Delete("filio.dat"); 58 fd.Close();
|
/vbox/src/VBox/Additions/x11/x11include/4.3/include/extensions/ |
H A D | lbxzlib.h | 52 extern void * ZlibInit ( int fd, int level ); 54 extern int ZlibFlush ( int fd ); 55 extern int ZlibStuffInput ( int fd, unsigned char *buffer, int buflen ); 56 extern void ZlibCompressOn ( int fd ); 57 extern void ZlibCompressOff ( int fd ); 58 extern int ZlibWrite ( int fd, unsigned char *buffer, int buflen ); 59 extern int ZlibWriteV ( int fd, struct iovec *iov, int iovcnt ); 60 extern int ZlibRead ( int fd, unsigned char *buffer, int buflen ); 61 extern int ZlibInputAvail ( int fd );
|
/vbox/src/VBox/Devices/Network/lwip-new/src/include/lwip/ |
H A D | sio.h | 68 * @param fd serial device handle 72 void sio_send(u8_t c, sio_fd_t fd); 79 * @param fd serial device handle 83 u8_t sio_recv(sio_fd_t fd); 90 * @param fd serial device handle 98 u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len); 106 * @param fd serial device handle 111 u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len); 118 * @param fd serial device handle 125 u32_t sio_write(sio_fd_t fd, u8_ [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/lib/libc/src/ |
H A D | plerror.c | 49 PR_IMPLEMENT(void) PL_FPrintError(PRFileDesc *fd, const char *msg) argument 135 if (NULL != msg) PR_fprintf(fd, "%s: ", msg); 138 fd, " (%d)OUT OF RANGE, oserror = %d\n", error, oserror); 141 fd, "%s(%d), oserror = %d\n", 147 static PRFileDesc *fd = NULL; local 148 if (NULL == fd) fd = PR_GetSpecialFD(PR_StandardError); 149 PL_FPrintError(fd, msg);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/ |
H A D | rcnetio.cpp | 47 { PRStatus rv = (fd->methods->close)(fd); fd = NULL; } 50 { fd = PR_NewTCPSocket(); } 53 { fd = PR_Socket(PR_AF_INET, PR_SOCK_STREAM, protocol); } 59 PRFileDesc* newfd = fd->methods->accept(fd, &peer, timeout); 66 rcio->fd = newfd; 80 PRInt32 rv = (fd->methods->acceptread)( 81 fd, [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/ |
H A D | prfdcach.c | 81 PRFileDesc *fd; local 98 fd = (PRFileDesc*)((PRPtrdiff)pop - (PRPtrdiff)stack2fd); 107 /* we "should" be able to extract an fd from the cache */ 109 fd = _pr_fd_cache.head; /* protected extraction */ 110 if (NULL == fd) /* unexpected, but not fatal */ 118 _pr_fd_cache.head = fd->higher; 124 PR_ASSERT(&_pr_faulty_methods == fd->methods); 125 PR_ASSERT(PR_INVALID_IO_LAYER == fd->identity); 126 PR_ASSERT(_PR_FILEDESC_FREED == fd->secret->state); 130 } while (NULL == fd); /* the 156 _PR_Putfd(PRFileDesc *fd) argument 222 PRFileDesc *fd = _pr_fd_cache.head; local 241 PRFileDesc *fd = (PRFileDesc*) local 292 PRFileDesc *fd, *next; local [all...] |
H A D | prlayer.c | 53 void PR_CALLBACK pl_FDDestructor(PRFileDesc *fd) argument 55 PR_ASSERT(fd != NULL); 56 if (NULL != fd->lower) fd->lower->higher = fd->higher; 57 if (NULL != fd->higher) fd->higher->lower = fd->lower; 58 PR_DELETE(fd); 62 ** Default methods that just call down to the next fd 64 pl_TopClose(PRFileDesc *fd) argument 104 pl_DefRead(PRFileDesc *fd, void *buf, PRInt32 amount) argument 112 pl_DefWrite( PRFileDesc *fd, const void *buf, PRInt32 amount) argument 121 pl_DefAvailable(PRFileDesc *fd) argument 129 pl_DefAvailable64(PRFileDesc *fd) argument 137 pl_DefFsync(PRFileDesc *fd) argument 145 pl_DefSeek( PRFileDesc *fd, PRInt32 offset, PRSeekWhence how) argument 154 pl_DefSeek64( PRFileDesc *fd, PRInt64 offset, PRSeekWhence how) argument 163 pl_DefFileInfo(PRFileDesc *fd, PRFileInfo *info) argument 171 pl_DefFileInfo64(PRFileDesc *fd, PRFileInfo64 *info) argument 179 pl_DefWritev(PRFileDesc *fd, const PRIOVec *iov, PRInt32 size, PRIntervalTime timeout) argument 188 pl_DefConnect( PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout) argument 197 pl_DefConnectcontinue( PRFileDesc *fd, PRInt16 out_flags) argument 206 pl_TopAccept( PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout) argument 248 pl_DefBind(PRFileDesc *fd, const PRNetAddr *addr) argument 256 pl_DefListen(PRFileDesc *fd, PRIntn backlog) argument 264 pl_DefShutdown(PRFileDesc *fd, PRIntn how) argument 272 pl_DefRecv( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument 283 pl_DefSend( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument 293 pl_DefRecvfrom( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) argument 304 pl_DefSendto( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument 315 pl_DefPoll( PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags) argument 369 pl_DefTransmitfile( PRFileDesc *sd, PRFileDesc *fd, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime t) argument 380 pl_DefGetsockname(PRFileDesc *fd, PRNetAddr *addr) argument 388 pl_DefGetpeername(PRFileDesc *fd, PRNetAddr *addr) argument 396 pl_DefGetsocketoption( PRFileDesc *fd, PRSocketOptionData *data) argument 405 pl_DefSetsocketoption( PRFileDesc *fd, const PRSocketOptionData *data) argument 473 PRFileDesc *fd = NULL; local 502 PRFileDesc *fd = NULL; local 720 PR_GetIdentitiesLayer(PRFileDesc* fd, PRDescIdentity id) argument [all...] |
H A D | prfile.c | 57 static PRInt32 PR_CALLBACK FileRead(PRFileDesc *fd, void *buf, PRInt32 amount) argument 75 ("read: fd=%p osfd=%d buf=%p amount=%d", 76 fd, fd ? fd->secret->md.osfd : 0, buf, amount)); 78 rv = _PR_MD_READ(fd, buf, amount); 86 static PRInt32 PR_CALLBACK FileWrite(PRFileDesc *fd, const void *buf, PRInt32 amount) argument 106 if ( PR_TRUE == fd->secret->appendMode ) { 107 rv = PR_Seek(fd, 0, PR_SEEK_END ); 111 } /* if (fd 133 FileSeek(PRFileDesc *fd, PROffset32 offset, PRSeekWhence whence) argument 141 FileSeek64(PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence) argument 152 FileAvailable(PRFileDesc *fd) argument 171 FileAvailable64(PRFileDesc *fd) argument 193 PipeAvailable(PRFileDesc *fd) argument 200 PipeAvailable64(PRFileDesc *fd) argument 207 PipeSync(PRFileDesc *fd) argument 216 FileGetInfo(PRFileDesc *fd, PRFileInfo *info) argument 227 FileGetInfo64(PRFileDesc *fd, PRFileInfo64 *info) argument 240 FileSync(PRFileDesc *fd) argument 250 FileClose(PRFileDesc *fd) argument 269 FilePoll( PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags) argument 370 PRFileDesc *fd = 0; local 398 PRFileDesc *fd = 0; local 578 PRFileDesc *fd = NULL; local 597 PRFileDesc *fd = NULL; local 821 PRFileDesc *fd = 0; local [all...] |
H A D | prio.c | 123 PRFileDesc *fd; local 132 fd = _PR_Getfd(); 133 if (fd) { 135 fd->methods = methods; 136 fd->secret->state = _PR_FILEDESC_OPEN; 137 fd->secret->md.osfd = osfd; 138 _PR_MD_INIT_FILEDESC(fd); 143 return fd; 146 PR_IMPLEMENT(void) PR_FreeFileDesc(PRFileDesc *fd) argument 148 PR_ASSERT(fd); [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/ |
H A D | prdump.c | 54 PRUint32 _PR_DumpPrintf(PRFileDesc *fd, const char *fmt, ...) argument 63 PR_Write(fd, buf, nb); 68 void _PR_DumpThread(PRFileDesc *fd, PRThread *thread) argument 72 _PR_DumpPrintf(fd, "%05d[%08p] pri=%2d flags=0x%02x", 79 _PR_DumpPrintf(fd, " lock=%p", thread->wait.lock); 82 _PR_DumpPrintf(fd, " condvar=%p sleep=%lldms", 86 _PR_DumpPrintf(fd, " suspended"); 89 PR_Write(fd, "\n", 1); 94 thread->dump(fd, thread, thread->dumpArg); 98 static void DumpThreadQueue(PRFileDesc *fd, PRCLis argument 112 _PR_DumpThreads(PRFileDesc *fd) argument [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/ |
H A D | systemd-logind.h | 33 void systemd_logind_release_fd(int major, int minor, int fd); 40 #define systemd_logind_release_fd(major, minor, fd) close(fd)
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/ |
H A D | tmpfile.c | 65 int fd, sverrno; local 74 fd = mkstemp(buf); 75 if (fd != -1) { 79 (void)DeleteOnClose(fd); 84 if (fd == -1) 87 if ((fp = fdopen(fd, "w+")) == NULL) { 89 (void)close(fd);
|
H A D | mkstemp.c | 69 int fd; local 73 return (GETTEMP(path, &fd, 0) ? fd : -1);
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/ |
H A D | xf86drm.h | 417 #define DRM_LIGHT_LOCK(fd,lock,context) \ 421 if (__ret) drmGetLock(fd,context,0); \ 426 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \ 430 if (__ret) drmGetLock(fd,context,0); \ 434 #define DRM_LOCK(fd,lock,context,flags) \ 436 if (flags) drmGetLock(fd,context,flags); \ 437 else DRM_LIGHT_LOCK(fd,lock,context); \ 440 #define DRM_UNLOCK(fd,lock,context) \ 444 if (__ret) drmUnlock(fd,context); \ 490 extern int drmClose(int fd); [all...] |
/vbox/src/VBox/RDP/client-1.8.3/ |
H A D | pstcache.c | 50 int fd; local 55 fd = g_pstcache_fd[cache_id]; 56 rd_lseek_file(fd, 12 + cache_idx * (g_pstcache_Bpp * MAX_CELL_SIZE + sizeof(CELLHEADER))); 57 rd_write_file(fd, &stamp, sizeof(stamp)); 65 int fd; local 75 fd = g_pstcache_fd[cache_id]; 76 rd_lseek_file(fd, cache_idx * (g_pstcache_Bpp * MAX_CELL_SIZE + sizeof(CELLHEADER))); 77 rd_read_file(fd, &cellhdr, sizeof(CELLHEADER)); 79 rd_read_file(fd, celldata, cellhdr.length); 94 int fd; local 118 int fd, n; local 174 int fd; local [all...] |