file-utimes.c 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Pointer-wrap file-utimes.
  2. Copyright (C) 2008 Free Software Foundation, Inc.
  3. Written by FlÃvio Cruz <flaviocruz@gmail.com>
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License as
  6. published by the Free Software Foundation; either version 2, or (at
  7. your option) any later version.
  8. This program is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #include <hurd/fs.h>
  16. #include <mach/time_value.h>
  17. /* Wrap file_utimes to pass pointers as arguments. */
  18. kern_return_t
  19. helper_file_utimes (file_t utimes_file,
  20. time_value_t * new_atime, time_value_t * new_mtime)
  21. {
  22. return (file_utimes (utimes_file, *new_atime, *new_mtime));
  23. }