Most voted "posix" questions
14 questions
Sort by count of
-
16
votes2
answers2560
viewsFork in Windows
There is something in Windows like (or some alternative similar to) fork of the POSIX (UNIX and Mac) systems to create a child process that is an exact copy of the parent and runs from the call…
-
8
votes2
answers156
viewsHow to Ensure Writing File on a Single Disk Block?
Performing several searches in a few days I found nothing that guarantees that my file will be written in a single block of the disk (I know that block is only a metaphor for sectors of the disk…
-
4
votes3
answers347
views -
3
votes1
answer131
viewsWhat is the advantage of using Perl-compatible regular expression functions or POSIX-compatible ones in PHP? In what context do you use both?
PHP has regular expression functions compatible with Perl and POSIX. However, I can’t see if one stands out from the other or which contexts of use favor one or the other. It would just be a matter…
-
2
votes1
answer46
views"SIGSEGV" error when receiving a large data packet
Hello, I am facing a "SIGSEGV" error when receiving a large data packet with the recv function of the library using C language on a Posix - UNIX system, if any soul can help me a thank you. buffer:…
-
2
votes2
answers292
viewsHow to reuse a pthreads?
I’m using pthread.h and using the following functions: // // Cria A thread // thread_argsPP[contthreadsPP] = contthreadsPP; pthread_create(&threadsPP[contthreadsPP], NULL, ReceivePinPad, (void…
-
2
votes1
answer256
viewsError in running order of pthreads
My job main was like this (fnThread was set further back): int main() { int i; int *result; pthread_t tid[N]; for (i=0; i<N; i++) { if (pthread_create (&tid[i], 0 ,fnThread, (void*)(&i))…
-
1
votes1
answer90
viewsPOSIX - problems to write to file using open and write
About this code below, is giving write problem, but if I use creat without flags it runs. The goal is to copy a file, the file that will be copied is called 'test.txt' and what will be created…
-
1
votes1
answer75
viewsHow to plot only a part of a Posixct variable?
I have a df with two variables. The first is a time counter that reaches 9min at a 1000Hz acquisition rate (so it’s huge 540 thousand lines). The second variable is an electrophysiological…
-
0
votes1
answer119
viewsDoubt with use of`pthread` in Posix
I am using the following routine with library command pthread.h: // // Declaração // pthread_t threads[NUM_THREADS]; // // Criacao // for(...) { pthread_create(&threads[i], NULL, MainTH, (void…
-
0
votes1
answer56
viewsSIGSEGV error in using a pointer
I have the following problem: I am creating a pointer and allocating memory in it, passing its reference to function, but when I read it in the function happens the error reported in the title.…
-
0
votes1
answer29
viewsWhy can’t I create an IPC key with the ~/. bashrc file?
I was working out some school exercises and in the statement there was a question: One can generate an IPC key with the file . bashrc? I not knowing the answer to the question, I created a C program…
-
0
votes1
answer286
viewshow to resolve "SIGSEGV" error when using`strcpy`
Hello, I am facing an error "SIGSEGV": strcpy(buffer_ReceiveAutomation, ls_buffer_PPouAUT); << ERROR and buffer is incomplete from recv, but if I change the sizeof(ls_buffer_PPouAUT) by the…
-
0
votes1
answer74
views