home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.20 / text0154.txt < prev    next >
Encoding:
Internet Message Format  |  1990-08-02  |  1.4 KB

  1. From:  Don_Lewine%dgc.ceo.dg.com@RELAY.CS.NET
  2.  
  3. CEO document contents:
  4.  
  5. In article <405@usenix.ORG> <uunet!samsung.com!audfax!arnold> writes:
  6. >From:  arnold@audiofax.com (Arnold Robbins)
  7. >
  8. >Can someone with access to the 1003.1 standard tell me if the utime(2)
  9. >system call is standardized, and if so if the definition of struct utimbuf
  10. >is supposed to be in a particular header file?
  11.  
  12.  
  13. >From POSIX 5.6.6.1:
  14.        #include <sys/types.h>
  15.        #include <utime.h>
  16.  
  17.        Int utime(path,times)
  18.        char *path;
  19.        struct utimebuf *times;
  20.  
  21. >From 5.6.6.2:
  22. The utimbuf structure is defined by the header <utime.h>, and included the
  23. following members:
  24.        TYPE    NAME            Description
  25.        time_t  actime          Access time
  26.        time_t  modtime         Modification time
  27.  
  28. The 1990 revision of 1003.1 changes the definition to use an ANSI prototype:
  29.        int utime(char *path, struct utimebuf *times);
  30. and add the restriction the the utimebuf structure may not contain any members
  31. other than the ones listed in the standard.
  32.  
  33. Note that utime() is the only function [I believe] where a structure is passed
  34. into the system without having been obtained by a prior library call.  This 
  35. makes it "special".  I would guess that this is why AT&T never put it into a
  36. header file.
  37.  
  38.                        --Donald Lewine
  39.                        uunet!dg!lewine
  40.  
  41. Volume-Number: Volume 20, Number 153
  42.  
  43.