crypt.c File Reference

#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <stdarg.h>
#include <sys/wait.h>

Include dependency graph for crypt.c:

Go to the source code of this file.

Defines

#define nil   ((void*)0)
#define pipe   _pipe
#define fork   _fork
#define close   _close
#define dup2   _dup2
#define execl   _execl
#define read   _read
#define _exit   __exit
#define write   _write
#define waitpid   _waitpid
#define LEN   1024

Functions

static void tell (const char *s0,...)
char * crypt (const char *key, const char *salt)

Variables

static char PWDAUTH [] = "/usr/lib/pwdauth"


Define Documentation

#define _exit   __exit
 

Definition at line 13 of file crypt.c.

Referenced by _catch(), _hlt(), catch(), crypt(), do_child(), error(), exit(), exitshell(), halt(), main(), onint(), openhere(), popen(), reader(), run(), run_job(), shell(), startup(), susystem(), and system().

#define close   _close
 

Definition at line 9 of file crypt.c.

#define dup2   _dup2
 

Definition at line 10 of file crypt.c.

Referenced by ar_start_gzip(), cgiexec(), close1(), crypt(), daemonloop(), do_child(), fdxcmd(), filter(), forkexec(), getfp(), grave(), haunt(), iosetup(), main(), run_job(), rundiff(), shell(), shellescape(), startup(), test29b(), and test29c().

#define execl   _execl
 

Definition at line 11 of file crypt.c.

Referenced by crypt(), do_login(), dosh(), doshell(), exec2(), f_pshinf(), getpwd(), lp(), m_shell(), main(), Mkdir(), precmd(), run_job(), SH(), shell(), shellescape(), spawn(), susystem(), System(), and test11a().

#define fork   _fork
 

Definition at line 8 of file crypt.c.

Referenced by ar_start_gzip(), cgiexec(), copydir(), crypt(), daemonize(), daemonloop(), doit(), doPASV(), doshell(), DoTalk(), Exec_Shell(), execute(), f_pshinf(), fdxcmd(), ffork(), filter(), forkshell(), grave(), haunt(), locked(), lp(), m_shell(), main(), make_dir(), Mkdir(), newdisk(), parent(), precmd(), rcmd(), reader(), rpipe(), run(), run_job(), rundiff(), runvec(), safePopenOut(), savelet(), SH(), shell(), shellescape(), spawn(), start_service(), startup(), subr(), System(), system(), talk(), term_inout(), test11a(), test11b(), test1a(), test1b(), test20d(), test25b(), test25c(), test25e(), test26b(), test26c(), test2a(), test2b(), test2c(), test2d(), test2e(), test2f(), test30a(), test31a(), test32b(), test32c(), test33a(), test33b(), test34c(), test35c(), test37c(), test37f(), test37g(), test37h(), test38a(), test38b(), test5a(), test5b(), test5c(), test5e(), test5f(), test5h(), test5i(), test7b(), test7c(), test7e(), test7f(), test7g(), test7h(), test7j(), test8a(), test8b(), and zcopy().

#define LEN   1024
 

Definition at line 26 of file crypt.c.

#define nil   ((void*)0)
 

Definition at line 6 of file crypt.c.

#define pipe   _pipe
 

Definition at line 7 of file crypt.c.

Referenced by ar_start_gzip(), cgiexec(), crypt(), daemonloop(), DoTalk(), evalbackcmd(), evalpipe(), execute(), fdxcmd(), ffork(), filter(), getpwd(), main(), openhere(), openpipe(), rpipe(), run(), run_job(), safePopenOut(), shellescape(), startup(), test03(), test04(), test11(), test19d(), test19g(), test26c(), test27a(), test2a(), test2b(), test38a(), test5h(), test5i(), test7a(), test8a(), and test8b().

#define read   _read
 

Definition at line 12 of file crypt.c.

#define waitpid   _waitpid
 

Definition at line 15 of file crypt.c.

Referenced by ar_close(), catch_child(), CleanUpPasv(), copylink(), crypt(), DataConnect(), do_exit(), endfdxcmd(), lp(), main(), reader(), shell(), sigchld(), startup(), test2d(), test2e(), and waitproc().

#define write   _write
 

Definition at line 14 of file crypt.c.


Function Documentation

char* crypt const char *  key,
const char *  salt
 

Definition at line 42 of file crypt.c.

References _exit, close, dup2, EINTR, errno, execl, fail, fork, k, LEN, n, nil, p, pid, pipe, PWDAUTH, read, s, status, strerror(), tell(), waitpid, and write.

static void tell const char *  s0,
  ...
[static]
 

Definition at line 28 of file crypt.c.

References nil, s, strlen(), va_arg, va_end, va_start, and write.


Variable Documentation

char PWDAUTH[] = "/usr/lib/pwdauth" [static]
 

Definition at line 25 of file crypt.c.

Referenced by crypt().


Generated on Fri Apr 14 23:17:24 2006 for minix by  doxygen 1.4.6