About 13,100,000 results
Open links in new tab
  1. linux - Creating a new directory in C - Stack Overflow

    To create a new directory in C, you can use the mkdir function defined in <sys/stat.h>. This function requires two arguments: the path of the new directory and the permissions for it.

  2. linux - How to open, read, and write from serial port in C? - Stack ...

    I am a little bit confused about reading and writing to a serial port. I have a USB device in Linux that uses the FTDI USB serial device converter driver. When I plug it in, it creates: /dev/ttyUSB1. I …

  3. How to get thread id of a pthread in linux c program?

    Jan 13, 2014 · In a Linux C program, how do I print the thread id of a thread created by the pthread library? For example like how we can get pid of a process by getpid().

  4. Reading and writing to serial port in C on Linux - Stack Overflow

    Aug 7, 2013 · I'm trying to send/receive data over an USB Port using FTDI, so I need to handle serial communication using C/C++. I'm working on Linux (Ubuntu). Basically, I am connected to a device …

  5. How to use shared memory with Linux in C - Stack Overflow

    Mar 3, 2014 · How to use shared memory with Linux in C Asked 14 years, 8 months ago Modified 2 years, 7 months ago Viewed 471k times

  6. linux - Is there an alternative sleep function in C to milliseconds ...

    Jul 21, 2009 · In my case on Linux, _POSIX_C_SOURCE starts out undefined so unistd.h gets included. The include of unistd.h causes _POSIX_C_SOURCE to get defined to something above 199309L.

  7. What languages are Windows, Mac OS X and Linux written in?

    Feb 24, 2009 · The Linux kernel is mostly written in C (and a bit of assembly language, I'd imagine), but some of the important userspace utilities (programs) are shell scripts written in the Bash scripting …

  8. linux - C non-blocking keyboard input - Stack Overflow

    I recommend a separate thread which blocks on the keyboard input and passes the input to the other, main thread each time a key press comes in. Here is an example I wrote in Python. For C, be sure to …

  9. How to get the PID of a process in Linux in C - Stack Overflow

    May 5, 2017 · Did you see one of this: Get process id by name in C C function to find a process ID and kill it man sysctl (3) You can use sysctl to give you the needed information without having to pass …

  10. md5sum of file in Linux C - Stack Overflow

    Mar 27, 2013 · I want to find md5sum of a file in Linux C, Is there any API where I can send file name to get md5sum of that file.