ucLinux is a very good embeded sytem. Most of company use this as their development OS.

源代码在线查看: time.c

软件大小: 3456 K
上传用户: bandagemaster
关键词: development ucLinux embeded company
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* vi: set sw=4 ts=4: */				/*				 * time() for uClibc				 *				 * Copyright (C) 2000-2004 by Erik Andersen 				 *				 * GNU Library General Public License (LGPL) version 2 or later.				 */								#include "syscalls.h"				#include 				#include 				#ifdef __NR_time				_syscall1(time_t, time, time_t *, t);				#else				time_t time(time_t * t)				{					time_t result;					struct timeval tv;									if (gettimeofday(&tv, (struct timezone *) NULL)) {						result = (time_t) - 1;					} else {						result = (time_t) tv.tv_sec;					}					if (t != NULL) {						*t = result;					}					return result;				}				#endif							

相关资源