Searched refs:fu (Results 1 - 3 of 3) sorted by relevance
/barrelfish-master/lib/libc/gen/ |
H A D | utxdb.c | 40 #define UTOF_STRING(ut, fu, field) do { \ 41 strncpy((fu)->fu_ ## field, (ut)->ut_ ## field, \ 42 MIN(sizeof (fu)->fu_ ## field, sizeof (ut)->ut_ ## field)); \ 44 #define UTOF_ID(ut, fu) do { \ 45 memcpy((fu)->fu_id, (ut)->ut_id, \ 46 MIN(sizeof (fu)->fu_id, sizeof (ut)->ut_id)); \ 48 #define UTOF_PID(ut, fu) do { \ 49 (fu)->fu_pid = htobe32((ut)->ut_pid); \ 51 #define UTOF_TYPE(ut, fu) do { \ 52 (fu) 62 utx_to_futx(const struct utmpx *ut, struct futx *fu) argument 127 futx_to_utx(const struct futx *fu) argument [all...] |
H A D | getutxent.c | 114 getfutxent(struct futx *fu) argument 139 if (len > sizeof *fu) { 141 if (fread(fu, sizeof(*fu), 1, uf) != 1) 143 fseek(uf, len - sizeof(*fu), SEEK_CUR); 146 memset(fu, 0, sizeof(*fu)); 147 if (fread(fu, len, 1, uf) != 1) 151 if (fread(fu, sizeof(*fu), 160 struct futx fu; local 170 struct futx fu; local 206 struct futx fu; local 230 struct futx fu; local [all...] |
H A D | pututxline.c | 70 utx_active_add(const struct futx *fu) argument 97 if (memcmp(fu->fu_id, fe.fu_id, sizeof(fe.fu_id)) == 129 else if (fwrite(fu, sizeof(*fu), 1, fp) < 1) 140 utx_active_remove(struct futx *fu) argument 159 if (memcmp(fu->fu_id, fe.fu_id, sizeof(fe.fu_id)) != 0) 165 else if (fwrite(fu, sizeof(*fu), 1, fp) < 1) 179 utx_active_init(const struct futx *fu) argument 187 _write(fd, fu, sizeo 199 utx_lastlogin_add(const struct futx *fu) argument 256 utx_log_add(const struct futx *fu) argument 291 struct futx fu; local [all...] |
Completed in 72 milliseconds