Ignore:
Timestamp:
Sep 21, 2017, 5:11:07 PM (8 years ago)
Author:
bird
Message:

kmk,lib: ported kmk_touch to windows (nt).

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/ntutimes.h

    r3049 r3060  
    11/* $Id$ */
    22/** @file
    3  * MSC + NT unlink and variations.
     3 * MSC + NT utimes and lutimes.
    44 */
    55
    66/*
    7  * Copyright (c) 2005-2013 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
     7 * Copyright (c) 2005-2017 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
    88 *
    99 * Permission is hereby granted, free of charge, to any person obtaining a
     
    2929 */
    3030
    31 #ifndef ___nt_ntunlink_h
    32 #define ___nt_ntunlink_h
     31#ifndef ___nt_ntutimes_h
     32#define ___nt_ntutimes_h
    3333
    3434#include "nttypes.h"
    3535
    36 int birdUnlink(const char *pszFile);
    37 int birdUnlinkW(const wchar_t *pwszFile);
    38 int birdUnlinkEx(void *hRoot, const char *pszFile);
    39 int birdUnlinkExW(void *hRoot, const wchar_t *pwszFile);
    40 int birdUnlinkForced(const char *pszFile);
    41 int birdUnlinkForcedW(const wchar_t *pwszFile);
    42 int birdUnlinkForcedEx(void *hRoot, const char *pszFile);
    43 int birdUnlinkForcedExW(void *hRoot, const wchar_t *pszFile);
    44 int birdUnlinkForcedFast(const char *pszFile);
    45 int birdUnlinkForcedFastW(const wchar_t *pwszFile);
    46 int birdUnlinkForcedFastEx(void *hRoot, const char *pszFile);
    47 int birdUnlinkForcedFastExW(void *hRoot, const wchar_t *pwszFile);
     36int birdUtimes(const char *pszFile, BirdTimeVal_T paTimes[2]);
     37int birdLUtimes(const char *pszFile, BirdTimeVal_T paTimes[2]);
    4838
    49 #undef  unlink
    50 #define unlink(a_pszPath)     birdUnlinkForced(a_pszPath)
     39#undef  utimes
     40#define utimes(a_pszPath, a_paTimes)    birdUtimes(a_pszPath, a_paTimes)
     41#undef  lutimes
     42#define lutimes(a_pszPath, a_paTimes)   birdLUtimes(a_pszPath, a_paTimes)
    5143
    5244#endif
Note: See TracChangeset for help on using the changeset viewer.