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.
103 utmp_frec2api(const struct futmp *src, struct utmp *dst)
105 if (src == NULL)
108 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
109 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
110 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
111 dst->ut_pid = src->ut_pid;
112 dst->ut_type = src->ut_type;
113 dst->ut_exit.e_termination = src->ut_exit.e_termination;
114 dst->ut_exit.e_exit = src->ut_exit.e_exit;
115 dst->ut_time = (time_t)src->ut_time;
119 utmp_api2frec(const struct utmp *src, struct futmp *dst)
121 if (src == NULL)
124 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
125 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
126 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
127 dst->ut_pid = src->ut_pid;
128 dst->ut_type = src->ut_type;
129 dst->ut_exit.e_termination = src->ut_exit.e_termination;
130 dst->ut_exit.e_exit = src->ut_exit.e_exit;
131 dst->ut_time = (time32_t)src->ut_time;