• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/

Lines Matching defs:psbuf

87 		      const char *fname,SMB_STRUCT_STAT *psbuf,int flags,mode_t mode, uint32 desired_access)
159 if (VALID_STAT(*psbuf) && S_ISFIFO(psbuf->st_mode))
164 if ((local_flags & O_CREAT) && !VALID_STAT(*psbuf) && ms_has_wild(fname)) {
181 if ((local_flags & O_CREAT) && !VALID_STAT(*psbuf))
187 if (!VALID_STAT(*psbuf)) {
191 ret = SMB_VFS_STAT(conn, fname, psbuf);
193 ret = SMB_VFS_FSTAT(fsp,fsp->fd,psbuf);
212 if(S_ISDIR(psbuf->st_mode)) {
218 fsp->mode = psbuf->st_mode;
219 fsp->inode = psbuf->st_ino;
220 fsp->dev = psbuf->st_dev;
223 fsp->size = psbuf->st_size;
795 files_struct *open_file_shared(connection_struct *conn,char *fname, SMB_STRUCT_STAT *psbuf,
799 return open_file_shared1(conn, fname, psbuf, 0, share_mode, ofun, mode,
807 files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_STAT *psbuf,
817 BOOL file_existed = VALID_STAT(*psbuf);
888 if (!open_match_attributes(conn, fname, psbuf->st_mode, mode, &new_mode)) {
890 fname, (int)psbuf->st_mode, (int)mode ));
934 (!CAN_WRITE(conn) || IS_DOS_READONLY(dos_mode(conn,fname,psbuf)))) {
954 dev = psbuf->st_dev;
955 inode = psbuf->st_ino;
977 fsp_open = open_file(fsp,conn,fname,psbuf,
1017 fsp_open = open_file(fsp,conn,fname,psbuf,flags|flags2,mode,desired_access);
1020 if((fsp_open = open_file(fsp,conn,fname,psbuf,O_RDONLY,mode,desired_access)) == True)
1099 if ((truncate_unless_locked(conn,fsp) == -1) || (SMB_VFS_FSTAT(fsp,fsp->fd,psbuf)==-1)) {
1221 files_struct *open_file_fchmod(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf)
1226 if (!VALID_STAT(*psbuf))
1235 fsp_open = open_file(fsp,conn,fname,psbuf,O_WRONLY,0,FILE_WRITE_DATA);
1266 files_struct *open_directory(connection_struct *conn, char *fname, SMB_STRUCT_STAT *psbuf,
1277 if (VALID_STAT(*psbuf))
1290 if(!S_ISDIR(psbuf->st_mode)) {
1327 if(SMB_VFS_STAT(conn,fname, psbuf) != 0) {
1348 if(!S_ISDIR(psbuf->st_mode)) {
1363 fsp->mode = psbuf->st_mode;
1364 fsp->inode = psbuf->st_ino;
1365 fsp->dev = psbuf->st_dev;
1366 fsp->size = psbuf->st_size;
1405 files_struct *open_file_stat(connection_struct *conn, char *fname, SMB_STRUCT_STAT *psbuf)
1410 if (!VALID_STAT(*psbuf))
1414 if(S_ISDIR(psbuf->st_mode))
1427 fsp->mode = psbuf->st_mode;
1434 fsp->size = psbuf->st_size;