?? tad.c
字號(hào):
/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/lib/tad.c,v 1.3 2003/01/15 14:04:37 josh Exp $ *//* * Copyright (C) 1999-2005 Wind River Systems, Inc. * All rights reserved. Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//**************************************************************************** * Copyright 1997 Epilogue Technology Corporation. * Copyright 1998 Integrated Systems, Inc. * All rights reserved. ****************************************************************************//* * $Log: tad.c,v $ * Revision 1.3 2003/01/15 14:04:37 josh * directory structure shifting * * Revision 1.2 2001/11/08 15:56:30 tneale * Updated for newest file layout * * Revision 1.1.1.1 2001/11/05 17:48:44 tneale * Tornado shuffle * * Revision 1.5 2001/01/19 22:23:55 paul * Update copyright. * * Revision 1.4 2000/03/17 00:12:48 meister * Update copyright message * * Revision 1.3 1998/02/25 15:21:52 sra * Finish moving types.h, bug.h, and bugdef.h to common/h/. * * Revision 1.2 1998/02/25 04:57:43 sra * Update copyrights. * * Revision 1.1 1997/08/12 22:31:18 lowell * kick release numbers to avoid the "0.*" special case * * Revision 0.2 1997/03/20 06:53:17 sra * DFARS-safe copyright text. Zap! * * Revision 0.1 1997/02/12 19:40:01 lowell * I think this is okay. * But I'm not positive yet -- I just wanted to check it in quick * so the autotester wouldn't choke on its absence. * * *//* [clearcase]modification history-------------------01a,19apr05,job update copyright notices*//* * Time and Date code, really just for Decorum's use so far. * */#ifndef EPILOGUE_TYPES_H#include <wrn/wm/common/types.h>#endif#ifndef EPILOGUE_INSTALL_H#include <wrn/wm/common/install.h>#endif#ifndef ATTACHE_CONFIG_H#include <wrn/wm/attache/config.h>#endif#ifndef ATTACHE_PACKET_H#include <wrn/wm/attache/packet.h>#endif#ifndef ATTACHE_GLUE_H#include <wrn/wm/attache/glue.h>#endif#ifndef ATTACHE_TIMER_H#include <wrn/wm/attache/timer.h>#endif#include <decorum/h/date.h>/* Glue code for different sources of time. */#if INSTALL_ATTACHE_NETIME_SERVER#include <wrn/wm/attache/netime.h>void att_glue_getime(struct decorum_rawtime * now){ now->time = netime_now(); if (now->time) now->type = T0_RFC868; else now->type = T0_NONE;}#endif /* INSTALL_ATTACHE_NETIME_SERVER */#ifdef INSTALL_on_unix/* An example for using the UNIX idea of the time. * Uses standard C library calls, so it should work on any UNIX. * It assumes that time(3) gives a 32-bit number of seconds since * 1 January, 1970, as is standard on UNIX. Last I checked, anyway. * Known to work on 4.4BSD and SunOS 4.1.4. */#include <sys/time.h>void unix_glue_getime(struct decorum_rawtime * now){ now->time = (bits32_t)time(0); now->type = T0_UNIX;}#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -