Searched refs:statbuf (Results 1 - 25 of 49) sorted by relevance

12

/asus-wl-520gu-7.0.1.45/src/router/busybox/libbb/
H A Drecursive_action.c51 struct stat * statbuf,
54 struct stat * statbuf,
59 struct stat statbuf; local
63 status = stat(fileName, &statbuf);
65 status = lstat(fileName, &statbuf);
77 if ((followLinks == FALSE) && (S_ISLNK(statbuf.st_mode))) {
81 return fileAction(fileName, &statbuf, userData);
85 if (S_ISDIR(statbuf.st_mode)) {
87 return (dirAction(fileName, &statbuf, userData));
93 if (S_ISDIR(statbuf
48 recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst, int (*fileAction) (const char *fileName, struct stat * statbuf, void* userData), int (*dirAction) (const char *fileName, struct stat * statbuf, void* userData), void* userData) argument
[all...]
H A Dinode_hash.c39 * Return 1 if statbuf->st_ino && statbuf->st_dev are recorded in
46 int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name) argument
50 bucket = ino_dev_hashtable[hash_inode(statbuf->st_ino)];
52 if ((bucket->ino == statbuf->st_ino) &&
53 (bucket->dev == statbuf->st_dev))
63 /* Add statbuf to statbuf hash table */
64 void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) argument
70 i = hash_inode(statbuf
[all...]
H A Dloop.c100 struct stat statbuf; local
105 if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) {
H A Dlibbb.h109 int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData),
110 int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData),
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/tests/progs/
H A Dhold_inode.c23 struct stat statbuf; local
31 if (stat(filename, &statbuf) < 0) {
35 if (S_ISDIR(statbuf.st_mode)) {
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Ddu.c76 * Return 1 if statbuf->st_ino && statbuf->st_dev are recorded in
83 static int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name) argument
87 bucket = ino_dev_hashtable[hash_inode(statbuf->st_ino)];
89 if ((bucket->ino == statbuf->st_ino) &&
90 (bucket->dev == statbuf->st_dev))
100 /* Add statbuf to statbuf hash table */
101 static void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) argument
107 i = hash_inode(statbuf
138 struct stat statbuf; local
[all...]
H A Dchgrp.c39 static int fileAction(const char *fileName, struct stat *statbuf, void* junk) argument
41 if (lchown(fileName, statbuf->st_uid, (gid == -1) ? statbuf->st_gid : gid) == 0) {
H A Dchmod.c32 static int fileAction(const char *fileName, struct stat *statbuf, void* junk) argument
34 if (!parse_mode((char *)junk, &(statbuf->st_mode)))
36 if (chmod(fileName, statbuf->st_mode) == 0)
H A Dchmod_chown_chgrp.c47 static int fileAction(const char *fileName, struct stat *statbuf, void* junk) argument
54 (fileName, (whichApp == CHOWN_APP) ? uid : statbuf->st_uid,
55 (gid == -1) ? statbuf->st_gid : gid) == 0)
58 (fileName, (whichApp == CHOWN_APP) ? uid : statbuf->st_uid,
59 (gid == -1) ? statbuf->st_gid : gid) == 0)
67 if (parse_mode(theMode, &(statbuf->st_mode)) == FALSE) {
70 if (chmod(fileName, statbuf->st_mode) == 0)
H A Dfind.c54 static int fileAction(const char *fileName, struct stat *statbuf, void* junk) argument
68 if (!((statbuf->st_mode & S_IFMT) == type_mask))
74 if (!((isdigit(perm_char) && (statbuf->st_mode & 07777) == perm_mask) ||
75 (perm_char == '-' && (statbuf->st_mode & perm_mask) == perm_mask) ||
76 (perm_char == '+' && (statbuf->st_mode & perm_mask) != 0)))
82 time_t file_age = time(NULL) - statbuf->st_mtime;
H A Dchown.c41 static int fileAction(const char *fileName, struct stat *statbuf, void* junk) argument
43 if (chown_func(fileName, uid, (gid == -1) ? statbuf->st_gid : gid) == 0) {
H A Dtar.c889 const char *real_name, struct stat *statbuf)
900 putOctal(header.mode, sizeof(header.mode), statbuf->st_mode);
901 putOctal(header.uid, sizeof(header.uid), statbuf->st_uid);
902 putOctal(header.gid, sizeof(header.gid), statbuf->st_gid);
904 putOctal(header.mtime, sizeof(header.mtime), statbuf->st_mtime);
909 my_getpwuid(header.uname, statbuf->st_uid);
912 my_getgrgid(header.gname, statbuf->st_gid);
920 } else if (S_ISLNK(statbuf->st_mode)) {
927 } else if (S_ISDIR(statbuf->st_mode)) {
930 } else if (S_ISCHR(statbuf
888 writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, const char *real_name, struct stat *statbuf) argument
980 writeFileToTarball(const char *fileName, struct stat *statbuf, void* userData) argument
[all...]
H A Dcp_mv.c96 cp_mv_Action(const char *fileName, struct stat *statbuf, void* junk) argument
138 if (preserveFlag == TRUE && statbuf->st_nlink > 1) {
139 if (is_in_ino_dev_hashtable(statbuf, &name)) {
147 add_to_ino_dev_hashtable(statbuf, destName);
154 rm_Action(const char *fileName, struct stat *statbuf, void* junk) argument
158 if (S_ISDIR(statbuf->st_mode)) {
H A Dmkswap.c273 struct stat statbuf; local
357 if (DEV < 0 || fstat(DEV, &statbuf) < 0)
359 if (!S_ISBLK(statbuf.st_mode))
361 else if (statbuf.st_rdev == 0x0300 || statbuf.st_rdev == 0x0340)
H A Dutility.c240 * Return 1 if statbuf->st_ino && statbuf->st_dev are recorded in
247 int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name) argument
251 bucket = ino_dev_hashtable[hash_inode(statbuf->st_ino)];
253 if ((bucket->ino == statbuf->st_ino) &&
254 (bucket->dev == statbuf->st_dev))
264 /* Add statbuf to statbuf hash table */
265 void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) argument
271 i = hash_inode(statbuf
649 recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst, int (*fileAction) (const char *fileName, struct stat * statbuf, void* userData), int (*dirAction) (const char *fileName, struct stat * statbuf, void* userData), void* userData) argument
660 struct stat statbuf; local
1505 struct stat statbuf; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/
H A Dstat.c35 static int cp_old_stat(struct inode * inode, struct __old_kernel_stat * statbuf) argument
64 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
69 static int cp_new_stat(struct inode * inode, struct stat * statbuf) argument
126 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
135 asmlinkage long sys_stat(char * filename, struct __old_kernel_stat * statbuf) argument
144 error = cp_old_stat(nd.dentry->d_inode, statbuf);
151 asmlinkage long sys_newstat(char * filename, struct stat * statbuf) argument
160 error = cp_new_stat(nd.dentry->d_inode, statbuf);
172 asmlinkage long sys_lstat(char * filename, struct __old_kernel_stat * statbuf) argument
181 error = cp_old_stat(nd.dentry->d_inode, statbuf);
189 sys_newlstat(char * filename, struct stat * statbuf) argument
210 sys_fstat(unsigned int fd, struct __old_kernel_stat * statbuf) argument
229 sys_newfstat(unsigned int fd, struct stat * statbuf) argument
273 cp_new_stat64(struct inode * inode, struct stat64 * statbuf) argument
332 sys_stat64(char * filename, struct stat64 * statbuf, long flags) argument
347 sys_lstat64(char * filename, struct stat64 * statbuf, long flags) argument
362 sys_fstat64(unsigned long fd, struct stat64 * statbuf, long flags) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/dnsmasq/
H A Ddnsmasq.c207 struct stat statbuf; local
266 if (stat(resolv, &statbuf) == -1)
275 if ((statbuf.st_mtime > resolv_changed) &&
276 (statbuf.st_mtime < time(NULL) || resolv_changed == 0))
278 resolv_changed = statbuf.st_mtime;
291 if (stat(lease_file, &statbuf) == -1)
301 (statbuf.st_size > lease_file_size) ||
302 (statbuf.st_ino != lease_file_inode))
304 lease_file_size = statbuf.st_size;
305 lease_file_inode = statbuf
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/parisc/hpux/
H A Dfs.c123 static int cp_hpux_stat(struct inode * inode, struct hpux_stat64 * statbuf) argument
162 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
195 long hpux_fstat64(unsigned int fd, struct hpux_stat64 *statbuf) argument
207 err = cp_hpux_stat(dentry->d_inode, statbuf);
214 long hpux_lstat64(char *filename, struct hpux_stat64 *statbuf) argument
224 error = cp_hpux_stat(nd.dentry->d_inode, statbuf);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc64/solaris/
H A Dfs.c128 asmlinkage int solaris_stat(u32 filename, u32 statbuf) argument
144 if (putstat ((struct sol_stat *)A(statbuf), &s))
150 asmlinkage int solaris_xstat(int vers, u32 filename, u32 statbuf) argument
153 return solaris_stat(filename, statbuf);
156 asmlinkage int solaris_stat64(u32 filename, u32 statbuf) argument
172 if (putstat64 ((struct sol_stat64 *)A(statbuf), &s))
178 asmlinkage int solaris_lstat(u32 filename, u32 statbuf) argument
194 if (putstat ((struct sol_stat *)A(statbuf), &s))
200 asmlinkage int solaris_lxstat(int vers, u32 filename, u32 statbuf) argument
202 return solaris_lstat(filename, statbuf);
205 solaris_lstat64(u32 filename, u32 statbuf) argument
227 solaris_fstat(unsigned int fd, u32 statbuf) argument
243 solaris_fxstat(int vers, u32 fd, u32 statbuf) argument
248 solaris_fstat64(unsigned int fd, u32 statbuf) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ia64/kernel/
H A Dsys_ia64.c291 cp_ia64_old_stat (struct inode *inode, struct ia64_oldstat *statbuf) argument
344 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
348 ia64_oldstat (char *filename, struct ia64_oldstat *statbuf) argument
357 error = cp_ia64_old_stat(nd.dentry->d_inode, statbuf);
365 ia64_oldlstat (char *filename, struct ia64_oldstat *statbuf) { argument
373 error = cp_ia64_old_stat(nd.dentry->d_inode, statbuf);
380 ia64_oldfstat (unsigned int fd, struct ia64_oldstat *statbuf) argument
391 err = cp_ia64_old_stat(dentry->d_inode, statbuf);
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dtty.c243 struct stat statbuf; local
258 if (stat(cp, &statbuf) < 0) {
264 if (!S_ISCHR(statbuf.st_mode)) {
272 devstat = statbuf;
394 struct stat statbuf; local
432 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode)
433 && statbuf.st_rdev == devstat.st_rdev) {
447 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0
448 && S_ISCHR(statbuf
461 struct stat statbuf; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dtty.c297 struct stat statbuf; local
312 if (stat(cp, &statbuf) < 0) {
318 if (!S_ISCHR(statbuf.st_mode)) {
326 devstat = statbuf;
448 struct stat statbuf; local
486 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode)
487 && statbuf.st_rdev == devstat.st_rdev) {
501 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0
502 && S_ISCHR(statbuf
516 struct stat statbuf; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dtty.c297 struct stat statbuf; local
312 if (stat(cp, &statbuf) < 0) {
318 if (!S_ISCHR(statbuf.st_mode)) {
326 devstat = statbuf;
448 struct stat statbuf; local
486 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode)
487 && statbuf.st_rdev == devstat.st_rdev) {
501 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0
502 && S_ISCHR(statbuf
515 struct stat statbuf; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/
H A Dfilename.c420 SMB_STRUCT_STAT statbuf; local
421 if ( (SMB_VFS_LSTAT(conn,name,&statbuf) != -1) &&
422 (S_ISLNK(statbuf.st_mode)) ) {
/asus-wl-520gu-7.0.1.45/src/router/samba/source/client/
H A Dmount.cifs.c570 struct stat statbuf; local
706 if(stat (mountpoint, &statbuf)) {
711 if (S_ISDIR(statbuf.st_mode) == 0) {
717 if((statbuf.st_uid == getuid()) && (S_IRWXU == (statbuf.st_mode & S_IRWXU))) {

Completed in 276 milliseconds

12