File: TestPipes.cpp

package info (click to toggle)
gromacs 2026.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 274,304 kB
  • sloc: xml: 3,831,921; cpp: 686,728; ansic: 75,300; python: 21,171; sh: 3,553; perl: 2,246; yacc: 644; fortran: 397; lisp: 265; makefile: 179; lex: 125; awk: 68; csh: 39
file content (14 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifdef __CYGWIN__
    /* Pipes need POSIX things, not just std ones */
    #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h>

int
main()
{
  FILE *fp;

  fp = popen("/tmp/xyz","r");
  return (fp==NULL);
}