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.
139 utmpx_frec2api(const struct futmpx *src, struct utmpx *dst)
141 if (src == NULL)
144 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
145 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
146 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
147 dst->ut_pid = src->ut_pid;
148 dst->ut_type = src->ut_type;
149 dst->ut_exit.e_termination = src->ut_exit.e_termination;
150 dst->ut_exit.e_exit = src->ut_exit.e_exit;
151 dst->ut_tv.tv_sec = (time_t)src->ut_tv.tv_sec;
152 dst->ut_tv.tv_usec = (suseconds_t)src->ut_tv.tv_usec;
153 dst->ut_session = src->ut_session;
155 dst->ut_syslen = src->ut_syslen;
156 (void) memcpy(dst->ut_host, src->ut_host, sizeof (dst->ut_host));
160 utmpx_api2frec(const struct utmpx *src, struct futmpx *dst)
162 if (src == NULL)
165 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user));
166 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
167 (void) memcpy(dst->ut_id, src->ut_id, sizeof (dst->ut_id));
168 dst->ut_pid = src->ut_pid;
169 dst->ut_type = src->ut_type;
170 dst->ut_exit.e_termination = src->ut_exit.e_termination;
171 dst->ut_exit.e_exit = src->ut_exit.e_exit;
172 dst->ut_tv.tv_sec = (time32_t)src->ut_tv.tv_sec;
173 dst->ut_tv.tv_usec = (int32_t)src->ut_tv.tv_usec;
174 dst->ut_session = src->ut_session;
176 dst->ut_syslen = src->ut_syslen;
177 (void) memcpy(dst->ut_host, src->ut_host, sizeof (dst->ut_host));