futimes(3)


NAME

   futimes, lutimes - change file timestamps

SYNOPSIS

   #include <sys/time.h>

   int futimes(int fd, const struct timeval tv[2]);

   int lutimes(const char *filename, const struct timeval tv[2]);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   futimes(), lutimes():
       Since glibc 2.19:
           _DEFAULT_SOURCE
       Glibc 2.19 and earlier:
           _BSD_SOURCE

DESCRIPTION

   futimes()  changes  the  access and modification times of a file in the
   same way  as  utimes(2),  with  the  difference  that  the  file  whose
   timestamps  are  to  be changed is specified via a file descriptor, fd,
   rather than via a pathname.

   lutimes() changes the access and modification times of a  file  in  the
   same way as utimes(2), with the difference that if filename refers to a
   symbolic  link,  then  the  link  is  not  dereferenced:  instead,  the
   timestamps of the symbolic link are changed.

RETURN VALUE

   On  success,  zero is returned.  On error, -1 is returned, and errno is
   set appropriately.

ERRORS

   Errors  are  as  for  utimes(2),  with  the  following  additions   for
   futimes():

   EBADF  fd is not a valid file descriptor.

   ENOSYS The /proc filesystem could not be accessed.

   The following additional error may occur for lutimes():

   ENOSYS The  kernel does not support this call; Linux 2.6.22 or later is
          required.

VERSIONS

   futimes() is available since glibc 2.3.  lutimes() is  available  since
   glibc 2.6, and is implemented using the utimensat(2) system call, which
   is supported since kernel 2.6.22.

ATTRIBUTES

   For  an  explanation  of  the  terms  used   in   this   section,   see
   attributes(7).

   
   Interface             Attribute      Value   
   
   futimes(), lutimes()  Thread safety  MT-Safe 
   

CONFORMING TO

   These  functions  are not specified in any standard.  Other than Linux,
   they are available only on the BSDs.

SEE ALSO

   utime(2), utimensat(2), symlink(7)

COLOPHON

   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/menu_new.3menu.html
menu_new(3menu) - create and destroy menu items (Man Page)
The function new_item allocates a new item and initializes it from the name and description pointers. Please notice that the item stores only the pointers to th

manpages/slk_attrset.3ncurses.html
slk_attrset(3ncurses) - curses soft label routines (ManPage)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

manpages/vsscanf.3.html
vsscanf(3) - input format conversion - Linux manual page....
The scanf() family of functions scans input according to format as described below. This format may contain conversion specifications; the results from such con

manpages/ccosl.3.html
ccosl(3) - complex cosine function - Linux manual page......
The complex cosine function is defined as: ccos(z) = (exp(i * z) + exp(-i * z)) / 2 VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING

manpages/TAP::Parser::Utils.3pm.html
TAP::Parser::Utils(3pm) - Internal TAP::Parser utilities....
FOR INTERNAL USE ONLY ! INTERFACE split_shell Shell style argument parsing. Handles backslash escaping, single and double quoted strings but not shell substitut

manpages/FcLangSetEqual.3.html
FcLangSetEqual(3) - test for matching langsets (Man Page)...
Returns FcTrue if and only if ls_a supports precisely the same language and territory combinations as ls_b. VERSION Fontconfig version 2.8.0 FcLangSetEqual.3 (L

manpages/sinhf.3.html
sinhf(3) - hyperbolic sine function - Linux manual page.....
The sinh() function returns the hyperbolic sine of x, which is defined mathematically as: sinh(x) = (exp(x) - exp(-x)) / 2 RETURN VALUE On success, these functi

manpages/gnutls_srp_set_client_credentials.3.html
gnutls_srp_set_client_credentials(3) - API function.........
This function sets the username and password, in a gnutls_srp_client_credentials_t structure. Those will be used in SRP authentication. username and password sh

manpages/XmbufCreateStereoWindow.3.html
XmbufCreateStereoWindow(3) - X multibuffering functions.....
The application programming library for the X11 Double-Buffering, Multi-Buffering, and Stereo Extension contains the interfaces described below. With the except

manpages/cpupower-frequency-set.1.html
cpupower-frequency-set(1) A small tool which allows to modif
cpupower frequency-set allows you to modify cpufreq settings without having to type e.g. /sys/devices/system/cpu/cpu0/cpufreq/scaling_set_speed all the time. OP

manpages/FcFontSetList.3.html
FcFontSetList(3) - List fonts from a set of font sets.......
Selects fonts matching pattern from sets, creates patterns from those fonts containing only the objects in object_set and returns the set of unique such pattern

manpages/loopctrl.8.html
loopctrl.8 (Manual - Linux man page).......................
loopctrl is used to setup the isdnloop ISDN driver. OPTIONS -d Driver-Id selects the virtual S0 interface named by Driver-Id. Driver-Ids are defined during driv





We can't live, work or learn in freedom unless the software we use is free.