Sponsored Content
Top Forums Programming How to prevent a C++ program reading a file that is still being written to.? Post 302907145 by chris01010 on Thursday 26th of June 2014 07:53:15 AM
Old 06-26-2014
Unfortunately we are using an adaptor and not a full version of Connect Direct (which is what is making life hard).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File being used/written

Hello, Which command in unix can tell whether a file is being used/written by another process. e.g. If one process is copying a very big file in some directory and there is another cronjob process which checks for a new file and in this directory and process the file. I want to check, if the... (4 Replies)
Discussion started by: sanjay92
4 Replies

2. UNIX for Dummies Questions & Answers

reading filenames inside a program

UNIX Sun Ultra60 5.5.1 Hello everybody, I have a problem that seems simple but turns out to be complex (for me at least). My program needs to open a directory (this part is easy), scan each filename and determine whether or not a file with the suffix (.07) exists. So the program would return... (5 Replies)
Discussion started by: j_t_kim
5 Replies

3. Programming

How to clear the content of a pipe (STDIN) after it is written to another program?

PROGRAM A <-> PROGRAM B PROGRAM A sends data as STDIN ro PROGRAM B and when PROGRAM B is executed from PROGRAM A, it sends output back to PROGRAM A. This is implemented using 2 pipes (fd1 & fd2). The above process happens in a loop and during the second run, the previous data that had been... (10 Replies)
Discussion started by: vvaidyan
10 Replies

4. Shell Programming and Scripting

How to prevent the pattern "^[[0m" from being written to a file ????

Hi folks, I am using a shell script to display the referred libraries names of any specified cpp code. Given below is the script: shell script "grblib" ------------------------------------------------------------------------- #!/bin/sh # get the lines having "include" pattern ... (5 Replies)
Discussion started by: frozensmilz
5 Replies

5. Shell Programming and Scripting

prevent errors/warnings from being written to log file

i have this script which works fine but shows errors when it runs..these are more like warnings and the script runs fine.. i am on a sun machine.. i know it writes all the error messages to a master log file.. is there any way i can turn off these warnings/error messages and prevent them from being... (2 Replies)
Discussion started by: npatwardhan
2 Replies

6. Linux

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (0 Replies)
Discussion started by: vinod_chitrali
0 Replies

7. Programming

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (2 Replies)
Discussion started by: vinod_chitrali
2 Replies

8. Shell Programming and Scripting

Reading from a file a background program writes to

Hi! #!/usr/bin/env bash rm tmpcomm nc -v -u -l 444 | hexdump -b > tmpcomm while : do read l1 < tmpcomm read l2 < tmpcomm read l3 < tmpcomm read l4 < tmpcomm # do something doneI start netcat in the background and listen for an incoming conncetion. All incoming... (1 Reply)
Discussion started by: torax123
1 Replies

9. Programming

Reading long options in C++ program

I am reading arguments passed to a C++ program which accepts long options. Long options start with '--', with the value joined with the option by an = sign, with no intervening spaces. An example is as follows: programName --vdz=15.0 I want to store 'vdz' in variable 'key', whereas... (4 Replies)
Discussion started by: kristinu
4 Replies

10. Programming

Debugging a program written in two languages

Subject: Debugging a program written in two languages Platform: Linux (Kubuntu) I am trying to debug a C application with bindings to some simple functions written in Ada using the GNAT Programming Studio IDE (GPS). The main entry point is in C. The debugger is gdb. I managed to compile... (0 Replies)
Discussion started by: NiGHTS
0 Replies
XvQueryAdaptors(3)						  libXv Functions						XvQueryAdaptors(3)

NAME
XvQueryAdaptors - return adaptor information for a screen SYNOPSIS
#include <X11/extensions/Xvlib.h> int XvQueryAdaptors(Display *dpy, Window window, unsigned int *p_num_adaptors, XvAdaptorInfo **pp_adaptor_info); ARGUMENTS
dpy Specifies the connection to the X server. window Specifies a window of the screen for which the adaptor information is desired. p_num_adaptors A pointer to where the number of adaptors for the specified screen is returned. pp_adaptor_info A pointer to where the list of returned adaptor information is returned. DESCRIPTION
XvQueryAdaptors(3) returns an video adaptor information for the screen of the specified drawable. The XvAdaptorInfo structure has the following organiza- tion: typedef struct { XvPortID base_id; unsigned long num_ports; char type; char *name; unsigned long num_formats; XvFormat *formats; unsigned long num_adaptors; } XvAdaptorInfo; base_id The resource ID of the first adaptor port. num_ports The number of ports supported by the adaptor. type A bit mask with the value XvInputMask asserted if the adaptor supports video input, and value XvOutputMask asserted if the adaptor supports video output. In Xv protocol 2.2 and later, there are 3 new bits defined - XvVideoMask, XvStillMask and XvImageMask indi- cating that the adaptor is capable of video, still or image primitives respectively. name A vendor specific name that identifies the adaptor. num_formats The number of depth/visual id formats supported by the adaptor. formats A pointer to an array of XvFormat structures. The XvFormat structure has the following organization: typedef struct { char depth; unsigned long visual_id; } XvFormat; depth A drawable depth supported by the adaptor. visual_id A visual-id supported for the given depth by the adaptor. RETURN VALUES
[Success] Returned if XvQueryAdaptors(3) completed successfully. [XvBadExtension] Returned if the Xv extension is unavailable. [XvBadAlloc] Returned if XvQueryAdaptors(3) failed to allocate memory to process the request. DIAGNOSTICS
[Drawable] Returned if the requested drawable does not exist. SEE ALSO
XvFreeAdaptorInfo(3) X Version 11 libXv 1.0.7 XvQueryAdaptors(3)
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy