source: EcnlProtoTool/trunk/musl-1.1.18/include/utmp.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 998 bytes
Line 
1#ifndef _UTMP_H
2#define _UTMP_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <utmpx.h>
9
10#define ACCOUNTING 9
11#define UT_NAMESIZE 32
12#define UT_HOSTSIZE 256
13#define UT_LINESIZE 32
14
15struct lastlog {
16 time_t ll_time;
17 char ll_line[UT_LINESIZE];
18 char ll_host[UT_HOSTSIZE];
19};
20
21#define ut_time ut_tv.tv_sec
22#define ut_name ut_user
23#define ut_addr ut_addr_v6[0]
24#define utmp utmpx
25#define e_exit __e_exit
26#define e_termination __e_termination
27
28void endutent(void);
29struct utmp *getutent(void);
30struct utmp *getutid(const struct utmp *);
31struct utmp *getutline(const struct utmp *);
32struct utmp *pututline(const struct utmp *);
33void setutent(void);
34
35void updwtmp(const char *, const struct utmp *);
36int utmpname(const char *);
37
38int login_tty(int);
39
40#define _PATH_UTMP "/dev/null/utmp"
41#define _PATH_WTMP "/dev/null/wtmp"
42
43#define UTMP_FILE _PATH_UTMP
44#define WTMP_FILE _PATH_WTMP
45#define UTMP_FILENAME _PATH_UTMP
46#define WTMP_FILENAME _PATH_WTMP
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif
Note: See TracBrowser for help on using the repository browser.