Changeset 988 for vendor/current/examples/libsmbclient/teststat2.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/libsmbclient/teststat2.c
r740 r988 35 35 const char * pLocalPath) 36 36 { 37 //char *pSmbPath = 0;38 37 struct stat st; 39 char m time[32];40 char c time[32];41 char a time[32];38 char m_time[32]; 39 char c_time[32]; 40 char a_time[32]; 42 41 43 42 smbc_init(get_auth_data_fn, 0); … … 49 48 } 50 49 51 printf("SAMBA\n mtime:%l u/%s ctime:%lu/%s atime:%lu/%s\n",52 st.st_mtime, ctime_r(&st.st_mtime, mtime),53 st.st_ctime, ctime_r(&st.st_ctime, ctime),54 st.st_atime, ctime_r(&st.st_atime, atime));50 printf("SAMBA\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", 51 (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), 52 (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), 53 (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); 55 54 56 55 57 / / check the stat on this file56 /* check the stat on this file */ 58 57 if (stat(pLocalPath, &st) < 0) 59 58 { … … 62 61 } 63 62 64 printf("LOCAL\n mtime:%l u/%s ctime:%lu/%s atime:%lu/%s\n",65 st.st_mtime, ctime_r(&st.st_mtime, mtime),66 st.st_ctime, ctime_r(&st.st_ctime, ctime),67 st.st_atime, ctime_r(&st.st_atime, atime));63 printf("LOCAL\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", 64 (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), 65 (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), 66 (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); 68 67 69 68 70 69 return 0; 71 70 } 72
Note:
See TracChangeset
for help on using the changeset viewer.