5 More Discussions You Might Find Interesting
1. What is on Your Mind?
We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers.
Here is a new YT video on this question:
What Editor Does Everyone Use?
https://youtu.be/gqE8RTZZt9g
Of course, vi was the overwhelming favorite.
Credits:
1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
2. Shell Programming and Scripting
all,
i've been reading to try and get an abstract idea of the process effeciency of commands , sed, bash, perl, awk, find, grep, etc
which processes will spawn?, fork?, launch subshell?, etc and under what conditions?
how do you know which commands have the faster and better stdio... (2 Replies)
Discussion started by: f77hack
2 Replies
3. Programming
i'm tring to make 2 processes each read from the same file but only one of them read the file.
FILE * fileptr1;
fileptr1 = fopen("file1.txt","rt");
pid2=fork();
while(1)
{
fscanf(fileptr1,"%s",temp1);
if(feof(fileptr1)==0)
{
printf("%i",getpid()); //id of current process ... (6 Replies)
Discussion started by: ddx08
6 Replies
4. UNIX for Advanced & Expert Users
I am trying to figure out why when i have the following code
int main( { printf("0\n"); fork(); printf("1\n"); exit(0);}
and type in the shell
a.out | cat
the output of this program is
0
1
0
1
instead of
0
1
1
does anyone know? (3 Replies)
Discussion started by: Phantom12345
3 Replies
5. UNIX for Advanced & Expert Users
Hey guys,
I'm given this bit of code, but, I'm having some problems executing it with the functions I've defined so far. I'm suppose to define the funtions "parse" and "execute." Parse splits the command in buf into individual arguments. It strips whitespace, replacing those it finds with NULLS... (3 Replies)
Discussion started by: richardspence2
3 Replies
XvStopVideo(3) Library Functions Manual XvStopVideo(3)
Name
XvStopVideo - stop active video
Syntax
#include <X11/extensions/Xvlib.h>
XvGetStill(Display *dpy, XvPortID port, Drawable draw);
Arguments
dpy Specifies the connection to the X server.
port Specifies the port for which video is to be stopped.
draw Specifies the drawable associated with the named port.
Description
XvStopVideo(3) stops active video for the specified port and drawable. If the port is not processing video, or if it is processing video
in a different drawable, the request is ignored. When video is stopped a XvVideoNotify(3) event with detail XvStopped is generated for the
associated drawable.
Returned Values
[Success]
Returned if XvStopVideo(3) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvStopVideo(3) failed to allocate memory to process the request.
Diagnostics
[XvBadPort]
Generated if the requested port does not exist.
[BadDrawable]
Generated if the requested drawable does not exist.
See Also
XvGetVideo(3), XvPutVideo(3), XvVideoNotifyEvent(3)
X Version 11 libXv 1.0.4 XvStopVideo(3)