summaryrefslogtreecommitdiff
path: root/src/lib/evil/pwd.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-07-28 09:27:27 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-28 09:27:27 +0100
commita6ade14c5e65ab729b1013388ec1aea4be22afc7 (patch)
treeb290aa6c715f3a2a10dc8b067d8ab3781e840d21 /src/lib/evil/pwd.h
parent04848c98f217b3fa1fc2a49bce2649895e705611 (diff)
Evil: remove pwd code in Evil and fix compilation failures after the removal
Summary: remove pwd code in Evil Test Plan: compilation Reviewers: zmike, cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9420
Diffstat (limited to 'src/lib/evil/pwd.h')
-rw-r--r--src/lib/evil/pwd.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
deleted file mode 100644
index 104acd9600..0000000000
--- a/src/lib/evil/pwd.h
+++ /dev/null
@@ -1,89 +0,0 @@
1#ifndef __EVIL_PWD_H__
2#define __EVIL_PWD_H__
3
4
5/**
6 * @file pwd.h
7 * @brief The file that provides functions ported from Unix in pwd.h.
8 * @defgroup Evil_Pwd_Group Pwd.h functions
9 * @ingroup Evil
10 *
11 * This header provides functions ported from Unix in pwd.h.
12 *
13 * @{
14 */
15
16
17#include <time.h>
18
19#include <Evil.h>
20
21#ifdef EAPI
22# undef EAPI
23#endif
24
25#ifdef _WIN32
26# ifdef EFL_BUILD
27# ifdef DLL_EXPORT
28# define EAPI __declspec(dllexport)
29# else
30# define EAPI
31# endif
32# else
33# define EAPI __declspec(dllimport)
34# endif
35#endif
36
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42
43/**
44 * @struct passwd
45 * @brief A structure that describes a password.
46 */
47struct passwd {
48 char *pw_name; /**< user name */
49 char *pw_passwd; /**< encrypted password (always @c NULL) */
50 uid_t pw_uid; /**< user uid (always 0) */
51 gid_t pw_gid; /**< user gid (always 0) */
52 time_t pw_change; /**< password change time (always 0) */
53 char *pw_class; /**< user access class (always @c NULL) */
54 char *pw_gecos; /**< Honeywell login info */
55 char *pw_dir; /**< home directory */
56 char *pw_shell; /**< default shell */
57 time_t pw_expire; /**< account expiration (always 0) */
58 int pw_fields; /**< internal: fields filled in (always 0) */
59};
60
61/**
62 * @brief Return a passwd structure.
63 *
64 * @param n The name of the user.
65 * @return A stacally allocated passwd structure.
66 *
67 * This function fills a static buffer @ref passwd with the user name @p n.
68 *
69 * Conformity: None.
70 *
71 * Supported OS: Windows XP.
72 */
73EAPI struct passwd *getpwnam(const char *n);
74
75
76#ifdef __cplusplus
77}
78#endif
79
80#undef EAPI
81#define EAPI
82
83
84/**
85 * @}
86 */
87
88
89#endif /* __EVIL_PWD_H__ */