Logo Search packages:      
Sourcecode: vbox3 version File versions  Download package

vboxgetty.h

/*
** $Id: vboxgetty.h,v 1.7 2001/01/14 13:50:21 pape Exp $
**
** Copyright 1996-1998 Michael 'Ghandi' Herold <michael@abadonna.mayn.de>
*/

#ifndef _VBOXGETTY_H
#define _VBOXGETTY_H 1

#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>

/** Defines **************************************************************/

#define VBOX_ROOT_UMASK       "0022"

#define VBOXUSER_CALLID       64
#define VBOXUSER_NUMBER       64
#define VBOXUSER_USERNAME     64

/** Structures ***********************************************************/

00025 struct vboxuser
{
      uid_t                   uid;
      gid_t                   gid;
      int                     umask;
      long                    space;
      unsigned char     incomingid[VBOXUSER_CALLID + 1];
      unsigned char     localphone[VBOXUSER_NUMBER + 1];
      unsigned char     name[VBOXUSER_USERNAME + 1];
      unsigned char     home[PATH_MAX + 1];
};

extern struct vboxmodem vboxmodem;

/** Variables ************************************************************/

extern unsigned char temppathname[PATH_MAX + 1];
extern unsigned char savettydname[NAME_MAX + 1];
extern unsigned char *progbasename;
extern unsigned int vboxputty_wait;
extern unsigned int vboxputty_busywait;
extern unsigned int vboxputty_busydial;

/** Prototypes ***********************************************************/

extern void  quit_program(int);
extern int   set_process_permissions(uid_t, gid_t, int);

#endif /* _VBOXGETTY_H */

Generated by  Doxygen 1.6.0   Back to index