Lines Matching defs:fgets
4 Subject: fgets(stdin) --> readline() redirector
10 distribution. It is a shared library that redirects calls to fgets(stdin)
23 FILE NAME: fgets.c TARGET: libfgets.so
27 ABSTRACT: Customize fgets() behavior via LD_PRELOAD in the following ways:
29 -- If fgets(stdin) is called, redirect to GNU readline() to obtain
52 AIX: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lreadline -ltermcap
53 HP-UX: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldld -lreadline
54 Linux: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lreadline
55 SunOS: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lgen -lreadline
59 -KPIC fgets.c -Bdynamic -lc -ldl -lgen -ltermcap -lreadline
73 program "foo" that uses fgets() for command-line input:
79 set dir2 = "/usr/fgets"
133 /* for dynamically connecting to the native fgets() */
247 _fgets = (fgets_t) dlsym ( REAL_LIBC, "fgets" ) ;
250 "libfgets: failed to dynamically link to native fgets()\n"
326 /* fgets() intercept */
328 fgets (
372 _fgets = (fgets_t) dlsym ( REAL_LIBC, "fgets" ) ;
375 "libfgets: failed to dynamically link to native fgets()\n"