2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
10 int sblib_find (char * path
, char * name
, char * f_outname
)
19 devnull
= open ("/dev/null", O_WRONLY
, 0600);
20 fd
= open (f_outname
, O_WRONLY
, 0600);
22 fd
= open (f_outname
, O_WRONLY
| O_CREAT
, 0600);
28 lseek (fd
, 0, SEEK_END
);
31 execlp ("find", path
, "-name", name
, NULL
);
33 waitpid (pid
, &status
, 0);