logintest.c (137015) | logintest.c (162852) |
---|---|
1/* 2 * Copyright (c) 2000 Andre Lucas. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 ** logintest.c: simple test driver for platform-independent login recording 27 ** and lastlog retrieval 28 **/ 29 30#include "includes.h" 31 32#include <sys/types.h> 33#include <sys/wait.h> | 1/* 2 * Copyright (c) 2000 Andre Lucas. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 ** logintest.c: simple test driver for platform-independent login recording 27 ** and lastlog retrieval 28 **/ 29 30#include "includes.h" 31 32#include <sys/types.h> 33#include <sys/wait.h> |
34#include <sys/socket.h> 35 36#include <netinet/in.h> 37 |
|
34#include <unistd.h> 35#include <stdlib.h> 36#include <stdio.h> 37#include <string.h> 38#include <pwd.h> 39#include <netdb.h> 40#ifdef HAVE_TIME_H 41#include <time.h> 42#endif 43 44#include "loginrec.h" 45 | 38#include <unistd.h> 39#include <stdlib.h> 40#include <stdio.h> 41#include <string.h> 42#include <pwd.h> 43#include <netdb.h> 44#ifdef HAVE_TIME_H 45#include <time.h> 46#endif 47 48#include "loginrec.h" 49 |
46RCSID("$Id: logintest.c,v 1.11 2004/07/17 04:07:42 dtucker Exp $"); 47 | |
48extern char *__progname; 49 50#define PAUSE_BEFORE_LOGOUT 3 51 52int nologtest = 0; 53int compile_opts_only = 0; 54int be_verbose = 0; 55 --- 251 unchanged lines hidden --- | 50extern char *__progname; 51 52#define PAUSE_BEFORE_LOGOUT 3 53 54int nologtest = 0; 55int compile_opts_only = 0; 56int be_verbose = 0; 57 --- 251 unchanged lines hidden --- |