mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
File timestamps displayed with -d+3 debug output now presented in UTC (+0000) timezone. Other related minor stylistic changes: - timestamp_from_target() renamed to timestamp_from_path() - timestamp_from_target() parameter order switched - comment updates - added some const function parameter modifiers - some header #include directives reordered alphabetically [SVN r79501]
57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
/*
|
|
* Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
|
|
*
|
|
* This file is part of Jam - see jam.c for Copyright information.
|
|
*/
|
|
|
|
/* This file is ALSO:
|
|
* Copyright 2001-2004 David Abrahams.
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
/*
|
|
* filesys.h - OS specific file routines
|
|
*/
|
|
|
|
#ifndef FILESYS_DWA20011025_H
|
|
#define FILESYS_DWA20011025_H
|
|
|
|
#include "hash.h"
|
|
#include "lists.h"
|
|
#include "object.h"
|
|
#include "pathsys.h"
|
|
#include "timestamp.h"
|
|
|
|
|
|
typedef struct file_info_t
|
|
{
|
|
OBJECT * name;
|
|
short is_file;
|
|
short is_dir;
|
|
unsigned long size;
|
|
timestamp time;
|
|
LIST * files;
|
|
} file_info_t;
|
|
|
|
typedef void (*scanback)( void * closure, OBJECT * path, int found,
|
|
timestamp const * const t );
|
|
|
|
|
|
void file_archscan( char const * arch, scanback func, void * closure );
|
|
void file_build1( PATHNAME * const f, string * file ) ;
|
|
void file_dirscan( OBJECT * dir, scanback func, void * closure );
|
|
file_info_t * file_info( OBJECT * const path );
|
|
int file_is_file( OBJECT * const path );
|
|
int file_mkdir( char const * const path );
|
|
file_info_t * file_query( OBJECT * const path );
|
|
void file_remove_atexit( OBJECT * const path );
|
|
int file_time( OBJECT * const path, timestamp * const time );
|
|
|
|
/* Internal utility worker functions. */
|
|
int file_query_posix_( file_info_t * const info );
|
|
|
|
void file_done();
|
|
|
|
#endif
|