add prototypes, and defaults for _PATH_*

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5517 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-03-11 16:53:35 +00:00
parent 37f8af4c17
commit f1523706c3

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan * Copyright (c) 1997, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -71,6 +71,15 @@
#include <krb5.h> #include <krb5.h>
#endif #endif
#ifndef _PATH_BSHELL
#define _PATH_BSHELL "/bin/sh"
#endif
#ifndef _PATH_TTY
#define _PATH_TTY "/dev/tty"
#endif
#ifndef _PATH_DEV
#define _PATH_DEV "/dev/"
#endif
#ifndef _PATH_WTMP #ifndef _PATH_WTMP
#ifdef WTMP_FILE #ifdef WTMP_FILE
#define _PATH_WTMP WTMP_FILE #define _PATH_WTMP WTMP_FILE
@@ -79,10 +88,12 @@
#endif #endif
#endif #endif
int read_string(const char*, char*, size_t, int);
char *clean_ttyname (char*); char *clean_ttyname (char*);
char *make_id (char*); char *make_id (char*);
void prepare_utmp (struct utmp*, char*, const char*, const char*);
int read_string (const char*, char*, size_t, int);
void stty_default (void);
void utmp_login (char*, const char*, const char*);
int utmpx_login (char*, const char*, const char*);
#endif /* __LOGIN_LOCL_H__ */ #endif /* __LOGIN_LOCL_H__ */