Lines Matching defs:src
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
100 utmp_frec2api(const struct futmp *src, struct utmp *dst)
102 if (src == NULL)
105 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
106 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
107 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
108 dst->ut_pid = src->ut_pid;
109 dst->ut_type = src->ut_type;
110 dst->ut_exit.e_termination = src->ut_exit.e_termination;
111 dst->ut_exit.e_exit = src->ut_exit.e_exit;
112 dst->ut_time = (time_t)src->ut_time;
116 utmp_api2frec(const struct utmp *src, struct futmp *dst)
118 if (src == NULL)
121 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
122 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
123 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
124 dst->ut_pid = src->ut_pid;
125 dst->ut_type = src->ut_type;
126 dst->ut_exit.e_termination = src->ut_exit.e_termination;
127 dst->ut_exit.e_exit = src->ut_exit.e_exit;
128 dst->ut_time = (time32_t)src->ut_time;