pst 1024 source3/include/proto.h struct timespec get_atimespec(const SMB_STRUCT_STAT *pst); pst 1025 source3/include/proto.h void set_atimespec(SMB_STRUCT_STAT *pst, struct timespec ts); pst 1026 source3/include/proto.h struct timespec get_mtimespec(const SMB_STRUCT_STAT *pst); pst 1027 source3/include/proto.h void set_mtimespec(SMB_STRUCT_STAT *pst, struct timespec ts); pst 1028 source3/include/proto.h struct timespec get_ctimespec(const SMB_STRUCT_STAT *pst); pst 1029 source3/include/proto.h void set_ctimespec(SMB_STRUCT_STAT *pst, struct timespec ts); pst 6267 source3/include/proto.h SMB_STRUCT_STAT *pst); pst 6268 source3/include/proto.h bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst); pst 6285 source3/include/proto.h bool is_visible_file(connection_struct *conn, const char *dir_path, const char *name, SMB_STRUCT_STAT *pst, bool use_veto); pst 6382 source3/include/proto.h int fsp_stat(files_struct *fsp, SMB_STRUCT_STAT *pst); pst 6392 source3/include/proto.h SMB_STRUCT_STAT *pst); pst 7039 source3/include/proto.h SMB_STRUCT_STAT *pst); pst 369 source3/lib/time.c struct timespec get_create_timespec(const SMB_STRUCT_STAT *pst,bool fake_dirs) pst 373 source3/lib/time.c if(S_ISDIR(pst->st_mode) && fake_dirs) { pst 380 source3/lib/time.c ret = pst->st_birthtimespec; pst 382 source3/lib/time.c ret.tv_sec = pst->st_birthtime; pst 383 source3/lib/time.c ret.tv_nsec = pst->st_birthtimenspec; pst 385 source3/lib/time.c ret.tv_sec = pst->st_birthtime; pst 388 source3/lib/time.c ret.tv_sec = calc_create_time(pst); pst 396 source3/lib/time.c ret.tv_sec = calc_create_time(pst); pst 406 source3/lib/time.c struct timespec get_atimespec(const SMB_STRUCT_STAT *pst) pst 412 source3/lib/time.c ret.tv_sec = pst->st_atime; pst 417 source3/lib/time.c return pst->st_atim; pst 420 source3/lib/time.c ret.tv_sec = pst->st_atime; pst 421 source3/lib/time.c ret.tv_nsec = pst->st_atimensec; pst 425 source3/lib/time.c ret.tv_sec = pst->st_atime; pst 426 source3/lib/time.c ret.tv_nsec = pst->st_atime_n; pst 430 source3/lib/time.c ret.tv_sec = pst->st_atime; pst 431 source3/lib/time.c ret.tv_nsec = pst->st_uatime * 1000; pst 434 source3/lib/time.c return pst->st_atimespec; pst 441 source3/lib/time.c void set_atimespec(SMB_STRUCT_STAT *pst, struct timespec ts) pst 445 source3/lib/time.c pst->st_atime = ts.tv_sec; pst 448 source3/lib/time.c pst->st_atim = ts; pst 450 source3/lib/time.c pst->st_atime = ts.tv_sec; pst 451 source3/lib/time.c pst->st_atimensec = ts.tv_nsec; pst 453 source3/lib/time.c pst->st_atime = ts.tv_sec; pst 454 source3/lib/time.c pst->st_atime_n = ts.tv_nsec; pst 456 source3/lib/time.c pst->st_atime = ts.tv_sec; pst 457 source3/lib/time.c pst->st_uatime = ts.tv_nsec / 1000; pst 459 source3/lib/time.c pst->st_atimespec = ts; pst 466 source3/lib/time.c struct timespec get_mtimespec(const SMB_STRUCT_STAT *pst) pst 472 source3/lib/time.c ret.tv_sec = pst->st_mtime; pst 477 source3/lib/time.c return pst->st_mtim; pst 480 source3/lib/time.c ret.tv_sec = pst->st_mtime; pst 481 source3/lib/time.c ret.tv_nsec = pst->st_mtimensec; pst 485 source3/lib/time.c ret.tv_sec = pst->st_mtime; pst 486 source3/lib/time.c ret.tv_nsec = pst->st_mtime_n; pst 490 source3/lib/time.c ret.tv_sec = pst->st_mtime; pst 491 source3/lib/time.c ret.tv_nsec = pst->st_umtime * 1000; pst 494 source3/lib/time.c return pst->st_mtimespec; pst 501 source3/lib/time.c void set_mtimespec(SMB_STRUCT_STAT *pst, struct timespec ts) pst 505 source3/lib/time.c pst->st_mtime = ts.tv_sec; pst 508 source3/lib/time.c pst->st_mtim = ts; pst 510 source3/lib/time.c pst->st_mtime = ts.tv_sec; pst 511 source3/lib/time.c pst->st_mtimensec = ts.tv_nsec; pst 513 source3/lib/time.c pst->st_mtime = ts.tv_sec; pst 514 source3/lib/time.c pst->st_mtime_n = ts.tv_nsec; pst 516 source3/lib/time.c pst->st_mtime = ts.tv_sec; pst 517 source3/lib/time.c pst->st_umtime = ts.tv_nsec / 1000; pst 519 source3/lib/time.c pst->st_mtimespec = ts; pst 526 source3/lib/time.c struct timespec get_ctimespec(const SMB_STRUCT_STAT *pst) pst 532 source3/lib/time.c ret.tv_sec = pst->st_ctime; pst 537 source3/lib/time.c return pst->st_ctim; pst 540 source3/lib/time.c ret.tv_sec = pst->st_ctime; pst 541 source3/lib/time.c ret.tv_nsec = pst->st_ctimensec; pst 545 source3/lib/time.c ret.tv_sec = pst->st_ctime; pst 546 source3/lib/time.c ret.tv_nsec = pst->st_ctime_n; pst 550 source3/lib/time.c ret.tv_sec = pst->st_ctime; pst 551 source3/lib/time.c ret.tv_nsec = pst->st_uctime * 1000; pst 554 source3/lib/time.c return pst->st_ctimespec; pst 561 source3/lib/time.c void set_ctimespec(SMB_STRUCT_STAT *pst, struct timespec ts) pst 565 source3/lib/time.c pst->st_ctime = ts.tv_sec; pst 568 source3/lib/time.c pst->st_ctim = ts; pst 570 source3/lib/time.c pst->st_ctime = ts.tv_sec; pst 571 source3/lib/time.c pst->st_ctimensec = ts.tv_nsec; pst 573 source3/lib/time.c pst->st_ctime = ts.tv_sec; pst 574 source3/lib/time.c pst->st_ctime_n = ts.tv_nsec; pst 576 source3/lib/time.c pst->st_ctime = ts.tv_sec; pst 577 source3/lib/time.c pst->st_uctime = ts.tv_nsec / 1000; pst 579 source3/lib/time.c pst->st_ctimespec = ts; pst 639 source3/printing/nt_printing.c SMB_STRUCT_STAT *pst) pst 654 source3/printing/nt_printing.c unix_convert(ctx,conn, name, false, &new_name, NULL, pst); pst 556 source3/smbd/dir.c long *poffset, SMB_STRUCT_STAT *pst) pst 560 source3/smbd/dir.c while ((name = ReadDirName(dptr->dir_hnd, poffset, pst)) != NULL) { pst 561 source3/smbd/dir.c if (is_visible_file(dptr->conn, dptr->path, name, pst, True)) { pst 575 source3/smbd/dir.c SMB_STRUCT_STAT *pst) pst 583 source3/smbd/dir.c SET_STAT_INVALID(*pst); pst 586 source3/smbd/dir.c name_temp = dptr_normal_ReadDirName(dptr, poffset, pst); pst 606 source3/smbd/dir.c pst, true)) pst 615 source3/smbd/dir.c if (VALID_STAT(*pst)) { pst 627 source3/smbd/dir.c if (SMB_VFS_STAT(dptr->conn, pathreal, pst) == 0) { pst 665 source3/smbd/dir.c name_temp = dptr_normal_ReadDirName(dptr, poffset, pst); pst 683 source3/smbd/dir.c bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst) pst 685 source3/smbd/dir.c SET_STAT_INVALID(*pst); pst 977 source3/smbd/dir.c static bool user_can_write_file(connection_struct *conn, char *name, SMB_STRUCT_STAT *pst) pst 988 source3/smbd/dir.c SMB_ASSERT(VALID_STAT(*pst)); pst 992 source3/smbd/dir.c if(S_ISDIR(pst->st_mode)) { pst 996 source3/smbd/dir.c return can_write_to_file(conn, name, pst); pst 1003 source3/smbd/dir.c static bool file_is_special(connection_struct *conn, char *name, SMB_STRUCT_STAT *pst) pst 1013 source3/smbd/dir.c SMB_ASSERT(VALID_STAT(*pst)); pst 1015 source3/smbd/dir.c if (S_ISREG(pst->st_mode) || S_ISDIR(pst->st_mode) || S_ISLNK(pst->st_mode)) pst 1027 source3/smbd/dir.c const char *name, SMB_STRUCT_STAT *pst, bool use_veto) pst 1062 source3/smbd/dir.c if (!VALID_STAT(*pst) && (SMB_VFS_STAT(conn, entry, pst) != 0)) pst 1076 source3/smbd/dir.c if (hide_unwriteable && !user_can_write_file(conn, entry, pst)) { pst 1083 source3/smbd/dir.c if (hide_special && file_is_special(conn, entry, pst)) { pst 949 source3/smbd/fileio.c int fsp_stat(files_struct *fsp, SMB_STRUCT_STAT *pst) pst 952 source3/smbd/fileio.c return SMB_VFS_STAT(fsp->conn, fsp->fsp_name, pst); pst 954 source3/smbd/fileio.c return SMB_VFS_FSTAT(fsp, pst); pst 34 source3/smbd/filename.c SMB_STRUCT_STAT *pst, pst 120 source3/smbd/filename.c SMB_STRUCT_STAT *pst) pst 133 source3/smbd/filename.c SET_STAT_INVALID(*pst); pst 177 source3/smbd/filename.c *pst = st; pst 256 source3/smbd/filename.c *pst = st; pst 298 source3/smbd/filename.c *pst = st; pst 430 source3/smbd/filename.c *pst = st; pst 629 source3/smbd/filename.c *pst = st; pst 715 source3/smbd/filename.c pst, &tmp); pst 933 source3/smbd/filename.c SMB_STRUCT_STAT *pst, pst 948 source3/smbd/filename.c *pst = st; pst 963 source3/smbd/filename.c SET_STAT_INVALID(*pst); pst 985 source3/smbd/filename.c SET_STAT_INVALID(*pst); pst 999 source3/smbd/filename.c SET_STAT_INVALID(*pst); pst 1001 source3/smbd/filename.c if (SMB_VFS_STAT(conn, result, pst) == 0) { pst 1324 source3/smbd/posix_acls.c const SMB_STRUCT_STAT *pst, pst 1372 source3/smbd/posix_acls.c pace->unix_ug.uid = pst->st_uid; pst 1402 source3/smbd/posix_acls.c pace->perms = unix_perms_to_acl_perms(pst->st_mode, S_IRUSR, S_IWUSR, S_IXUSR); pst 1417 source3/smbd/posix_acls.c pace->unix_ug.uid = pst->st_gid; pst 1428 source3/smbd/posix_acls.c pace->perms = unix_perms_to_acl_perms(pst->st_mode, S_IRGRP, S_IWGRP, S_IXGRP); pst 1450 source3/smbd/posix_acls.c pace->perms = unix_perms_to_acl_perms(pst->st_mode, S_IROTH, S_IWOTH, S_IXOTH); pst 1508 source3/smbd/posix_acls.c SMB_STRUCT_STAT *pst, pst 1628 source3/smbd/posix_acls.c current_ace->unix_ug.uid = pst->st_uid; pst 1641 source3/smbd/posix_acls.c current_ace->unix_ug.gid = pst->st_gid; pst 1656 source3/smbd/posix_acls.c if (current_ace->unix_ug.uid == pst->st_uid) { pst 1665 source3/smbd/posix_acls.c if (current_ace->unix_ug.gid == pst->st_gid) { pst 2199 source3/smbd/posix_acls.c SMB_STRUCT_STAT *pst, pst 2229 source3/smbd/posix_acls.c if (!create_canon_ace_lists( fsp, pst, pfile_owner_sid, pfile_grp_sid, pst 2275 source3/smbd/posix_acls.c pst->st_mode = create_default_mode(fsp, False); pst 2277 source3/smbd/posix_acls.c if (!ensure_canon_entry_valid(&file_ace, fsp->conn->params, fsp->is_directory, pfile_owner_sid, pfile_grp_sid, pst, True)) { pst 2291 source3/smbd/posix_acls.c pst->st_mode = create_default_mode(fsp, True); pst 2293 source3/smbd/posix_acls.c if (dir_ace && !ensure_canon_entry_valid(&dir_ace, fsp->conn->params, fsp->is_directory, pfile_owner_sid, pfile_grp_sid, pst, True)) { pst 2234 source3/smbd/reply.c uint16 dirtype, SMB_STRUCT_STAT *pst) pst 2242 source3/smbd/reply.c fmode = dos_mode(conn, fsp->fsp_name, pst); pst 2247 source3/smbd/reply.c if (S_ISDIR(pst->st_mode)) { pst 167 source3/smbd/statcache.c SMB_STRUCT_STAT *pst) pst 277 source3/smbd/statcache.c if (SMB_VFS_STAT(conn, translated_path, pst) != 0) { pst 3420 source3/smbd/trans2.c static bool marshall_posix_acl(connection_struct *conn, char *pdata, SMB_STRUCT_STAT *pst, SMB_ACL_T posix_acl) pst 3455 source3/smbd/trans2.c own_grp = (unsigned int)pst->st_uid; pst 3475 source3/smbd/trans2.c own_grp = (unsigned int)pst->st_gid;