Search Results

Search: Posts Made By: fwrlfo
Forum: Programming 12-27-2013
1,327
Posted By DGPickett
Where did you try the sleep? One time test >= is...
Where did you try the sleep? One time test >= is better, in case you sleep past.
Forum: Programming 12-28-2013
1,327
Posted By kg_gaurav
i think using timer control and timer_tick event...
i think using timer control and timer_tick event would be better. Google it.
Forum: Programming 12-26-2012
1,146
Posted By achenle
stat(2): file status - Linux man page...
stat(2): file status - Linux man page (http://linux.die.net/man/2/stat)
Forum: Programming 12-25-2012
1,962
Posted By achenle
You don't allocate any memory for your "thread"...
You don't allocate any memory for your "thread" variable to point to.

So "thread[loops]" point to some random location.
Forum: Programming 12-17-2012
1,264
Posted By jim mcnamara
First off there is a limit to the number of open...
First off there is a limit to the number of open files

ulimit -n

That is as many as you should try to open.

Secondly, systems limits the number of threads you can create. You should use...
Forum: Programming 12-13-2012
2
1,724
Posted By joeyg
Example, with a little humor
A 'fork' is used when there is no dependency related to the fork-ed process; things do not all have to be done sequentially.

Example 1.
you get up
you wake up your son/daughter
you take your...
Forum: Programming 12-13-2012
2
1,724
Posted By Corona688
Calling fork doesn't "make your program faster". ...
Calling fork doesn't "make your program faster".

The point is, the parent and the child run separately. If you have two or more cores, they can run literally at the same time. They can work on...
Forum: Programming 12-10-2012
1,621
Posted By Corona688
Post your entire code. From the look of those...
Post your entire code. From the look of those warnings, there may be a problem with the way you declared your variables.

You also don't ever null-terminate your array, putting a '\0' as the last...
Forum: Programming 12-10-2012
1,621
Posted By Corona688
Post your entire code. What is this for? ...
Post your entire code.

What is this for? printf("%c\n");

%c means 'print one character that I passesd as an argument' but you passed no argument. It's going to print whatever garbage happens...
Forum: Programming 11-09-2012
1,170
Posted By fpmurphy
Here is what POSIX.1 says: If name is an...
Here is what POSIX.1 says:

If name is an invalid value, sysconf() shall return -1 and set errno to indicate the error.
If the variable corresponding to name is described in <limits.h> as a...
Forum: Programming 11-07-2012
950
Posted By Corona688
It returns some details on what you can and can't...
It returns some details on what you can and can't do to a file or terminal.

See man 3 fpathconf (https://www.unix.com/man-page/linux/3/fpathconf/).
Forum: Programming 10-13-2012
2,700
Posted By jim mcnamara
O_APPEND guarantees that every write to the file...
O_APPEND guarantees that every write to the file will be at the end of the file. lseek guarantees that the file pointer is positioned to the current EOF of the file. It does not guarantee that...
Forum: Programming 10-13-2012
2,016
Posted By spacebar
In addition to what JohnGraham said, here are...
In addition to what JohnGraham said, here are some examples:
List the files in a Unix directory with C (http://www.lemoda.net/c/list-directory/index.html)
List files in current directory - C / C++...
Forum: Programming 10-13-2012
2,016
Posted By JohnGraham
See the man pages for opendir() and readdir().
See the man pages for opendir() and readdir().
Forum: Programming 10-13-2012
1,156
Posted By Don Cragun
A simple translation from C to English is: ...
A simple translation from C to English is:

Read no more than BUF_SIZE bytes from the file associated with the file descriptor inputFd into the array of characters at the address specified by buf...
Forum: Programming 10-13-2012
3,160
Posted By JohnGraham
These errors are nothing to do with #include...
These errors are nothing to do with #include files - your compiler is finding them just fine.

Your problem is that the compiler can't find where these functions are defined - it's seen a header...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy