| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
#include "tcp_unix.h" |
| 30 |
#include "mail.h" |
| 31 |
#include "osdep.h" |
| 32 |
#include <stdio.h> |
| 33 |
#include <sys/stat.h> |
| 34 |
#include <sys/time.h> |
| 35 |
#include <sys/socket.h> |
| 36 |
#include <netinet/in.h> |
| 37 |
#include <arpa/inet.h> |
| 38 |
#include <netdb.h> |
| 39 |
#include <ctype.h> |
| 40 |
#include <errno.h> |
| •41 |
#ifndef errno |
| 42 |
extern int errno; |
| •43 |
#endif |
| 44 |
#include <pwd.h> |
| 45 |
#include <shadow.h> |
| 46 |
#include <sys/select.h> |
| 47 |
#include "misc.h" |
| 48 |
|
| 49 |
#define DIR_SIZE(d) d->d_reclen |
| 50 |
|
| 51 |
extern char *crypt (const char *pw, const char *salt); |
| 52 |
|
| 53 |
#include "fs_unix.c" |
| 54 |
#include "ftl_unix.c" |
| 55 |
#include "nl_unix.c" |
| 56 |
#include "env_unix.c" |
| 57 |
#include "tcp_unix.c" |
| 58 |
#include "gr_waitp.c" |
| 59 |
#include "tz_sv4.c" |
| 60 |
#include "gethstid.c" |
| 61 |
#include "scandir.c" |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
#undef readdir |
| 69 |
|
| 70 |
struct direct *Readdir (DIR *dirp) |
| 71 |
{ |
| 72 |
static struct direct dc; |
| 73 |
struct dirent *de = readdir (dirp); |
| 74 |
if (!de) return NIL; |
| 75 |
dc.d_fileno = 0; |
| 76 |
dc.d_namlen = strlen (strcpy (dc.d_name,de->d_name)); |
| 77 |
dc.d_reclen = sizeof (dc); |
| 78 |
return &dc; |
| 79 |
} |