posix-api Questions

7

Solved

Do I need an extern "C" {} block to include standard C headers in a C++ program. Only consider standard C headers which do not have counterparts in C++. For example: extern "C" { #include <fc...
Intendance asked 10/11, 2011 at 22:46

1

Solved

Gcc and printf says that timer_t is pointer (on my linux). But what is placed by this pointer, and is NULL a valid timer id? Also, is it platform-specific thing, e. g. it is pointer on linux, int ...
Osteoclasis asked 26/3, 2017 at 19:49

1

Solved

Based on @Kametrixom answer, I have made some test application for parallel calculation of sum in an array. My test application looks like this: import UIKit import Metal class ViewController: U...
Philia asked 6/7, 2016 at 19:53

1

Solved

I am trying to understand the usage of socket APIs (recv, send, select, close, etc) on parallel threads. That means using one socket file descriptor on two parallel threads. I have gone through thi...
Aymer asked 30/3, 2016 at 15:5

3

Solved

Is there a full POSIX implementation available in/for Windows 7 (I'm thinking of Windows Services for UNIX)? Is it available in every version of the OS (it seems not)? How does it add/improve or ...
Presumably asked 20/1, 2011 at 10:36

5

Solved

I just want my main thread to wait for any and all my (p)threads to complete before exiting. The threads come and go a lot for different reasons, and I really don't want to keep track of all of t...
Draper asked 27/5, 2011 at 15:35

1

Solved

While using the POSIX Message queues I noticed there were some files being created on the File system with the name I was creating the queues. My questions : Q1. Do message queues queue up the mes...
Loreenlorelei asked 27/2, 2013 at 15:29

2

Solved

If a linux process is waiting for I/O (i.e it is in SLEEP state) and a SIGKILL signal is issued against it, upon termination (STOPPED state) will it pass through RUNNING or READY state? In other w...
Seavir asked 2/4, 2013 at 13:57

1

Solved

I've written a simple wrapper script for repeating commands when they fail called retry.py. However as I want to see the output of child command I've had to pull some pty tricks. This works OK for ...
Dickinson asked 4/3, 2013 at 11:40

0

In Linux, is it possible to get the reference count value (counter value of using a file) for a specified file by descriptor by using non-kernel API?
Disavow asked 20/2, 2013 at 9:0

5

Solved

Maybe I'm just missing it, but isn't there a function equivalent to fprintf for file descriptors, or even a way to temporarily flip-flop between them?
Natie asked 22/11, 2010 at 14:43

2

Solved

Is the O_LARGEFILE flag needed if all that I want to do is write a large file (O_WRONLY) or append to a large file (O_APPEND | O_WRONLY)? From a thread that I read titled "Cannot write >2gb index ...

1

Solved

From what I have been reading on The Open Group website on fcntl, open, read, and write, I get the impression that whether O_NONBLOCK is set on a file descriptor, and hence whether non-blocking I/O...
Polymerous asked 22/5, 2010 at 21:53

3

Solved

If I fork a child process, and the child process exits before the parent calls waitpid, then is the exit status information that is set by waitpid still valid? If so, when does it become not valid;...
Phanotron asked 19/5, 2010 at 12:56
1

© 2022 - 2024 — McMap. All rights reserved.