Home
last modified time | relevance | path

Searched refs:spwd (Results 1 – 25 of 41) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/passwd/
Dgetspnam_r.c32 struct spwd *spwd; in getspnam_r_0100() local
33 struct spwd spwd_storage; in getspnam_r_0100()
36 int result = getspnam_r(spwd_name, &spwd_storage, buf, sizeof(buf), &spwd); in getspnam_r_0100()
38 EXPECT_PTRNE("getspnam_r_0100", spwd, NULL); in getspnam_r_0100()
39 EXPECT_EQ("getspnam_r_0100", strcmp(spwd_name, spwd->sp_namp), 0); in getspnam_r_0100()
50 struct spwd *spwd; in getspnam_r_0200() local
51 struct spwd spwd_storage; in getspnam_r_0200()
53 int result = getspnam_r("bin", &spwd_storage, buf, sizeof(buf), &spwd); in getspnam_r_0200()
55 EXPECT_PTREQ("getspnam_r_0300", spwd, NULL); in getspnam_r_0200()
66 struct spwd *spwd; in getspnam_r_0300() local
[all …]
/third_party/python/Lib/test/
Dtest_spwd.py6 spwd = import_helper.import_module('spwd') variable
14 entries = spwd.getspall()
17 self.assertIsInstance(entry, spwd.struct_spwd)
20 entries = spwd.getspall()
24 entry = spwd.getspnam(random_name)
25 self.assertIsInstance(entry, spwd.struct_spwd)
47 spwd.getspnam('invalid user name')
49 self.assertRaises(TypeError, spwd.getspnam)
50 self.assertRaises(TypeError, spwd.getspnam, 0)
51 self.assertRaises(TypeError, spwd.getspnam, random_name, 0)
[all …]
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dshadow.h15 struct spwd { struct
29 struct spwd *getspent(void); argument
30 struct spwd *fgetspent(FILE *);
31 struct spwd *sgetspent(const char *);
32 int putspent(const struct spwd *, FILE *);
34 struct spwd *getspnam(const char *);
35 int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
/third_party/musl/porting/liteos_m/kernel/include/
Dshadow.h15 struct spwd { struct
29 struct spwd *getspent(void); argument
30 struct spwd *fgetspent(FILE *);
31 struct spwd *sgetspent(const char *);
32 int putspent(const struct spwd *, FILE *);
34 struct spwd *getspnam(const char *);
35 int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
/third_party/musl/include/
Dshadow.h15 struct spwd { struct
29 struct spwd *getspent(void); argument
30 struct spwd *fgetspent(FILE *);
31 struct spwd *sgetspent(const char *);
32 int putspent(const struct spwd *, FILE *);
34 struct spwd *getspnam(const char *);
35 int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
/third_party/musl/porting/uniproton/kernel/include/
Dshadow.h15 struct spwd { struct
29 struct spwd *getspent(void); argument
30 struct spwd *fgetspent(FILE *);
31 struct spwd *sgetspent(const char *);
32 int putspent(const struct spwd *, FILE *);
34 struct spwd *getspnam(const char *);
35 int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
/third_party/toybox/toys/pending/
Dsulogin.c80 struct spwd * spwd = NULL; in sulogin_main() local
104 if ((spwd = getspnam (pwd->pw_name))) pass = spwd->sp_pwdp; in sulogin_main()
Dchsh.c34 struct spwd *shadow_info;
/third_party/musl/src/passwd/
Dfgetspent.c4 struct spwd *fgetspent(FILE *f) in fgetspent()
7 static struct spwd sp; in fgetspent()
9 struct spwd *res = 0; in fgetspent()
Dgetspnam.c5 struct spwd *getspnam(const char *name) in getspnam()
7 static struct spwd sp; in getspnam()
9 struct spwd *res; in getspnam()
Dgetspnam_r.c23 int __parsespent(char *s, struct spwd *sp) in __parsespent()
61 int getspnam_r(const char *name, struct spwd *sp, char *buf, size_t size, struct spwd **res) in getspnam_r()
Dgetspent.c11 struct spwd *getspent() in getspent()
Dputspent.c7 int putspent(const struct spwd *sp, FILE *f) in putspent()
Dpwf.h15 hidden int __parsespent(char *s, struct spwd *sp);
/third_party/toybox/toys/other/
Dlogin.c80 struct spwd *spwd = getspnam (username); in login_main() local
82 if (spwd) pass = spwd->sp_pwdp; in login_main()
/third_party/musl/porting/linux/user/src/passwd/
Dgetspnam_r.c30 int __parsespent(char *s, struct spwd *sp) in __parsespent()
68 int getspnam_r(const char *name, struct spwd *sp, char *buf, size_t size, struct spwd **res) in getspnam_r()
/third_party/python/Doc/library/
Dspwd.rst1 :mod:`spwd` --- The shadow password database
4 .. module:: spwd
17 attributes correspond to the members of the ``spwd`` structure (Attribute field
Dpwd.rst48 system-dependent. If available, the :mod:`spwd` module should be used where
74 Module :mod:`spwd`
Dunix.rst16 spwd.rst
/third_party/python/Modules/
Dspwdmodule.c88 static PyObject *mkspent(PyObject *module, struct spwd *p) in mkspent()
142 struct spwd *p; in spwd_getspnam_impl()
180 struct spwd *p; in spwd_getspall_impl()
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs375 pub struct spwd {
1607 pub fn getspent() -> *mut spwd; in getspent()
1609 pwd: *mut spwd, in getspent_r() argument
1612 res: *mut *mut spwd, in getspent_r() argument
1616 pub fn getspnam(name: *const ::c_char) -> *mut spwd; in getspnam() argument
1619 spwd: *mut spwd, in getspnam_r() argument
1622 res: *mut *mut spwd, in getspnam_r() argument
1624 pub fn sgetspent(line: *const ::c_char) -> *mut spwd; in sgetspent() argument
1627 spwd: *mut spwd, in sgetspent_r() argument
1630 res: *mut *mut spwd, in sgetspent_r() argument
[all …]
/third_party/musl/ndk_musl_include/
Dshadow.h15 struct spwd { struct
/third_party/toybox/toys/lsb/
Dsu.c49 struct spwd *shp;
Dpasswd.c59 struct spwd *sp; in passwd_main()
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
Dmod.rs1124 spbuf: *mut ::spwd, in fgetspent_r() argument
1127 spbufp: *mut *mut ::spwd, in fgetspent_r() argument
1131 spbuf: *mut ::spwd, in sgetspent_r() argument
1134 spbufp: *mut *mut ::spwd, in sgetspent_r() argument
1137 spbuf: *mut ::spwd, in getspent_r() argument
1140 spbufp: *mut *mut ::spwd, in getspent_r() argument

12