epoc32/include/stdapis/utmp.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/stdapis/utmp.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/utmp.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,68 @@
     1.4 -utmp.h
     1.5 +// utmp.h
     1.6 +//
     1.7 +// © Portions copyright (c) 2006 Symbian Software Ltd. All rights reserved.
     1.8 +//
     1.9 +/*
    1.10 + * Copyright (c) 1988, 1993
    1.11 + *	The Regents of the University of California.  All rights reserved.
    1.12 + * (c) UNIX System Laboratories, Inc.
    1.13 + * All or some portions of this file are derived from material licensed
    1.14 + * to the University of California by American Telephone and Telegraph
    1.15 + * Co. or Unix System Laboratories, Inc. and are reproduced herein with
    1.16 + * the permission of UNIX System Laboratories, Inc.
    1.17 + *
    1.18 + * Redistribution and use in source and binary forms, with or without
    1.19 + * modification, are permitted provided that the following conditions
    1.20 + * are met:
    1.21 + * 1. Redistributions of source code must retain the above copyright
    1.22 + *    notice, this list of conditions and the following disclaimer.
    1.23 + * 2. Redistributions in binary form must reproduce the above copyright
    1.24 + *    notice, this list of conditions and the following disclaimer in the
    1.25 + *    documentation and/or other materials provided with the distribution.
    1.26 + * 4. Neither the name of the University nor the names of its contributors
    1.27 + *    may be used to endorse or promote products derived from this software
    1.28 + *    without specific prior written permission.
    1.29 + *
    1.30 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    1.31 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.32 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.33 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.34 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.35 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.36 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.37 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.38 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.39 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.40 + * SUCH DAMAGE.
    1.41 + *
    1.42 + *	@(#)utmp.h	8.2 (Berkeley) 1/21/94
    1.43 + * $FreeBSD: src/include/utmp.h,v 1.10 2001/10/27 20:40:54 peter Exp $
    1.44 + */
    1.45 +
    1.46 +#ifndef	_UTMP_H_ 
    1.47 +#define	_UTMP_H_
    1.48 +
    1.49 +#include <sys/types.h>
    1.50 +
    1.51 +#define	_PATH_UTMP	"/var/run/utmp"
    1.52 +#define	_PATH_WTMP	"/var/log/wtmp"
    1.53 +#define	_PATH_LASTLOG	"/var/log/lastlog"
    1.54 +
    1.55 +#define	UT_NAMESIZE	16	/* see MAXLOGNAME in <sys/param.h> */
    1.56 +#define	UT_LINESIZE	8
    1.57 +#define	UT_HOSTSIZE	16
    1.58 +
    1.59 +struct lastlog {
    1.60 +	int32_t	ll_time;
    1.61 +	char	ll_line[UT_LINESIZE];
    1.62 +	char	ll_host[UT_HOSTSIZE];
    1.63 +};
    1.64 +
    1.65 +struct utmp {
    1.66 +	char	ut_line[UT_LINESIZE];
    1.67 +	char	ut_name[UT_NAMESIZE];
    1.68 +	char	ut_host[UT_HOSTSIZE];
    1.69 +	int32_t	ut_time;
    1.70 +};
    1.71 +
    1.72 +#endif /* !_UTMP_H_ */