OpenCoverage

sftp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23typedef void EditLine;-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40FILE* infile;-
41-
42-
43int batchmode = 0;-
44-
45-
46static volatile pid_t sshpid = -1;-
47-
48-
49int quiet = 0;-
50-
51-
52int showprogress = 1;-
53-
54-
55int global_rflag = 0;-
56-
57-
58int global_aflag = 0;-
59-
60-
61int global_pflag = 0;-
62-
63-
64int global_fflag = 0;-
65-
66-
67volatile sig_atomic_t interrupted = 0;-
68-
69-
70int sort_flag;-
71_ssh_compat_glob_t *sort_glob;-
72-
73-
74struct complete_ctx {-
75 struct sftp_conn *conn;-
76 char **remote_pathp;-
77};-
78-
79int remote_glob(struct sftp_conn *, const char *, int,-
80 int (*)(const char *, int), _ssh_compat_glob_t *);-
81-
82extern char *__progname;-
83enum sftp_command {-
84 I_CHDIR = 1,-
85 I_CHGRP,-
86 I_CHMOD,-
87 I_CHOWN,-
88 I_DF,-
89 I_GET,-
90 I_HELP,-
91 I_LCHDIR,-
92 I_LINK,-
93 I_LLS,-
94 I_LMKDIR,-
95 I_LPWD,-
96 I_LS,-
97 I_LUMASK,-
98 I_MKDIR,-
99 I_PUT,-
100 I_PWD,-
101 I_QUIT,-
102 I_REGET,-
103 I_RENAME,-
104 I_REPUT,-
105 I_RM,-
106 I_RMDIR,-
107 I_SHELL,-
108 I_SYMLINK,-
109 I_VERSION,-
110 I_PROGRESS,-
111};-
112-
113struct CMD {-
114 const char *c;-
115 const int n;-
116 const int t;-
117};-
118-
119-
120-
121-
122-
123-
124static const struct CMD cmds[] = {-
125 { "bye", I_QUIT, 0 },-
126 { "cd", I_CHDIR, 1 },-
127 { "chdir", I_CHDIR, 1 },-
128 { "chgrp", I_CHGRP, 1 },-
129 { "chmod", I_CHMOD, 1 },-
130 { "chown", I_CHOWN, 1 },-
131 { "df", I_DF, 1 },-
132 { "dir", I_LS, 1 },-
133 { "exit", I_QUIT, 0 },-
134 { "get", I_GET, 1 },-
135 { "help", I_HELP, 0 },-
136 { "lcd", I_LCHDIR, 2 },-
137 { "lchdir", I_LCHDIR, 2 },-
138 { "lls", I_LLS, 2 },-
139 { "lmkdir", I_LMKDIR, 2 },-
140 { "ln", I_LINK, 1 },-
141 { "lpwd", I_LPWD, 2 },-
142 { "ls", I_LS, 1 },-
143 { "lumask", I_LUMASK, 0 },-
144 { "mkdir", I_MKDIR, 1 },-
145 { "mget", I_GET, 1 },-
146 { "mput", I_PUT, 2 },-
147 { "progress", I_PROGRESS, 0 },-
148 { "put", I_PUT, 2 },-
149 { "pwd", I_PWD, 1 },-
150 { "quit", I_QUIT, 0 },-
151 { "reget", I_REGET, 1 },-
152 { "rename", I_RENAME, 1 },-
153 { "reput", I_REPUT, 2 },-
154 { "rm", I_RM, 1 },-
155 { "rmdir", I_RMDIR, 1 },-
156 { "symlink", I_SYMLINK, 1 },-
157 { "version", I_VERSION, 0 },-
158 { "!", I_SHELL, 0 },-
159 { "?", I_HELP, 0 },-
160 { -
161 ((void *)0)-
162 , -1, -1 }-
163};-
164-
165-
166static void-
167killchild(int signo)-
168{-
169 if (sshpid > 1
sshpid > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
170 kill(sshpid, -
171 15-
172 );-
173 waitpid(sshpid, -
174 ((void *)0)-
175 , 0);-
176 }
never executed: end of block
0
177-
178 _exit(1);-
179}
never executed: end of block
0
180-
181-
182static void-
183suspchild(int signo)-
184{-
185 if (sshpid > 1
sshpid > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
186 kill(sshpid, signo);-
187 while (waitpid(sshpid,
waitpid(sshpid...0) , 2 ) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
188 ((void *)0)
waitpid(sshpid...0) , 2 ) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
189 ,
waitpid(sshpid...0) , 2 ) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
190 2
waitpid(sshpid...0) , 2 ) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
191 ) == -1
waitpid(sshpid...0) , 2 ) == -1Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
192 (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
193 ==
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
194 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
195 )-
196 continue;
never executed: continue;
0
197 }
never executed: end of block
0
198 kill(getpid(), -
199 19-
200 );-
201}
never executed: end of block
0
202-
203-
204static void-
205cmd_interrupt(int signo)-
206{-
207 const char msg[] = "\rInterrupt \n";-
208 int olderrno = -
209 (*__errno_location ())-
210 ;-
211-
212 (void)write(-
213 2-
214 , msg, sizeof(msg) - 1);-
215 interrupted = 1;-
216 -
217(*__errno_location ()) -
218 = olderrno;-
219}
never executed: end of block
0
220-
221-
222static void-
223sigchld_handler(int sig)-
224{-
225 int save_errno = -
226 (*__errno_location ())-
227 ;-
228 pid_t pid;-
229 const char msg[] = "\rConnection closed. \n";-
230-
231-
232 while ((
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
pid = waitpid(sshpid,
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
233 ((void *)0)
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
234 ,
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
235 1
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
236 )) == -1
(pid = waitpid...) , 1 )) == -1Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
237 (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
238 ==
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
239 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
240 )-
241 continue;
never executed: continue;
0
242 if (pid == sshpid
pid == sshpidDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
243 (void)write(-
244 2-
245 , msg, sizeof(msg) - 1);-
246 sshpid = -1;-
247 }
never executed: end of block
0
248-
249 -
250(*__errno_location ()) -
251 = save_errno;-
252}
never executed: end of block
0
253-
254static void-
255help(void)-
256{-
257 printf("Available commands:\n"-
258 "bye Quit sftp\n"-
259 "cd path Change remote directory to 'path'\n"-
260 "chgrp grp path Change group of file 'path' to 'grp'\n"-
261 "chmod mode path Change permissions of file 'path' to 'mode'\n"-
262 "chown own path Change owner of file 'path' to 'own'\n"-
263 "df [-hi] [path] Display statistics for current directory or\n"-
264 " filesystem containing 'path'\n"-
265 "exit Quit sftp\n"-
266 "get [-afPpRr] remote [local] Download file\n"-
267 "reget [-fPpRr] remote [local] Resume download file\n"-
268 "reput [-fPpRr] [local] remote Resume upload file\n"-
269 "help Display this help text\n"-
270 "lcd path Change local directory to 'path'\n"-
271 "lls [ls-options [path]] Display local directory listing\n"-
272 "lmkdir path Create local directory\n"-
273 "ln [-s] oldpath newpath Link remote file (-s for symlink)\n"-
274 "lpwd Print local working directory\n"-
275 "ls [-1afhlnrSt] [path] Display remote directory listing\n"-
276 "lumask umask Set local umask to 'umask'\n"-
277 "mkdir path Create remote directory\n"-
278 "progress Toggle display of progress meter\n"-
279 "put [-afPpRr] local [remote] Upload file\n"-
280 "pwd Display remote working directory\n"-
281 "quit Quit sftp\n"-
282 "rename oldpath newpath Rename remote file\n"-
283 "rm path Delete remote file\n"-
284 "rmdir path Remove remote directory\n"-
285 "symlink oldpath newpath Symlink remote file\n"-
286 "version Show SFTP version\n"-
287 "!command Execute 'command' in local shell\n"-
288 "! Escape to local shell\n"-
289 "? Synonym for help\n");-
290}
never executed: end of block
0
291-
292static void-
293local_do_shell(const char *args)-
294{-
295 int status;-
296 char *shell;-
297 pid_t pid;-
298-
299 if (!*args
!*argsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
300 args =
never executed: args = ((void *)0) ;
0
301 ((void *)0)
never executed: args = ((void *)0) ;
0
302 ;
never executed: args = ((void *)0) ;
0
303-
304 if ((
(shell = geten...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
shell = getenv("SHELL")) ==
(shell = geten...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
305 ((void *)0)
(shell = geten...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
306 || *
*shell == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
shell == '\0'
*shell == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
307 shell =
never executed: shell = "/bin/sh" ;
0
308 "/bin/sh"
never executed: shell = "/bin/sh" ;
0
309 ;
never executed: shell = "/bin/sh" ;
0
310-
311 if ((
(pid = fork()) == -1Description
TRUEnever evaluated
FALSEnever evaluated
pid = fork()) == -1
(pid = fork()) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
312 fatal("Couldn't fork: %s", strerror(
never executed: fatal("Couldn't fork: %s", strerror( (*__errno_location ()) ));
0
313 (*__errno_location ())
never executed: fatal("Couldn't fork: %s", strerror( (*__errno_location ()) ));
0
314 ));
never executed: fatal("Couldn't fork: %s", strerror( (*__errno_location ()) ));
0
315-
316 if (pid == 0
pid == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
317-
318 if (args
argsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
319 debug3("Executing %s -c \"%s\"", shell, args);-
320 execl(shell, shell, "-c", args, (char *)-
321 ((void *)0)-
322 );-
323 }
never executed: end of block
else {
0
324 debug3("Executing %s", shell);-
325 execl(shell, shell, (char *)-
326 ((void *)0)-
327 );-
328 }
never executed: end of block
0
329 fprintf(-
330 stderr-
331 , "Couldn't execute \"%s\": %s\n", shell,-
332 strerror(-
333 (*__errno_location ())-
334 ));-
335 _exit(1);-
336 }
never executed: end of block
0
337 while (waitpid(pid, &status, 0) == -1
waitpid(pid, &status, 0) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
338 if (-
339 (*
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
340 !=
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
341 4
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
342 )-
343 fatal("Couldn't wait for child: %s", strerror(
never executed: fatal("Couldn't wait for child: %s", strerror( (*__errno_location ()) ));
0
344 (*__errno_location ())
never executed: fatal("Couldn't wait for child: %s", strerror( (*__errno_location ()) ));
0
345 ));
never executed: fatal("Couldn't wait for child: %s", strerror( (*__errno_location ()) ));
0
346 if (!
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
347 (((
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
348 status
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
349 ) & 0x7f) == 0)
! ((( status ) & 0x7f) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
350 )-
351 error("Shell exited abnormally");
never executed: error("Shell exited abnormally");
0
352 else if (-
353 (((
((( status ) & 0xff00) >> 8)Description
TRUEnever evaluated
FALSEnever evaluated
0
354 status
((( status ) & 0xff00) >> 8)Description
TRUEnever evaluated
FALSEnever evaluated
0
355 ) & 0xff00) >> 8)
((( status ) & 0xff00) >> 8)Description
TRUEnever evaluated
FALSEnever evaluated
0
356 )-
357 error("Shell exited with status %d",
never executed: error("Shell exited with status %d", ((( status ) & 0xff00) >> 8) );
0
358 (((
never executed: error("Shell exited with status %d", ((( status ) & 0xff00) >> 8) );
0
359 status
never executed: error("Shell exited with status %d", ((( status ) & 0xff00) >> 8) );
0
360 ) & 0xff00) >> 8)
never executed: error("Shell exited with status %d", ((( status ) & 0xff00) >> 8) );
0
361 );
never executed: error("Shell exited with status %d", ((( status ) & 0xff00) >> 8) );
0
362}
never executed: end of block
0
363-
364static void-
365local_do_ls(const char *args)-
366{-
367 if (!args
!argsDescription
TRUEnever evaluated
FALSEnever evaluated
|| !*args
!*argsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
368 local_do_shell("ls");
never executed: local_do_shell("ls");
0
369 else {-
370 int len = strlen("ls" " ") + strlen(args) + 1;-
371 char *buf = xmalloc(len);-
372-
373-
374 snprintf(buf, len, "ls" " %s", args);-
375 local_do_shell(buf);-
376 free(buf);-
377 }
never executed: end of block
0
378}-
379-
380-
381static char *-
382path_strip(const char *path, const char *strip)-
383{-
384 size_t len;-
385-
386 if (strip ==
strip == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
387 ((void *)0)
strip == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
388 )-
389 return
never executed: return (xstrdup(path));
(xstrdup(path));
never executed: return (xstrdup(path));
0
390-
391 len = strlen(strip);-
392 if (-
393 (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
__extension__ (__builtin_constant_p (
__builtin_constant_p ( len )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
394 len
__builtin_constant_p ( len )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
395 )
__builtin_constant_p ( len )Description
TRUEnever evaluated
FALSEnever evaluated
&& ((__builtin_constant_p (
__builtin_constant_p ( path )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
396 path
__builtin_constant_p ( path )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
397 )
__builtin_constant_p ( path )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( path ...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
398 path
strlen ( path ...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
399 ) < ((size_t) (
strlen ( path ...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
400 len
strlen ( path ...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
401 ))
strlen ( path ...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_constant_p ( strip )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
402 strip
__builtin_constant_p ( strip )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
403 )
__builtin_constant_p ( strip )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( strip...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
404 strip
strlen ( strip...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
405 ) < ((size_t) (
strlen ( strip...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
406 len
strlen ( strip...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
407 ))
strlen ( strip...ze_t) ( len ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
408 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
409 ) && __builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
410 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
411 ) && (__s1_len = __builtin_strlen (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
412 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
413 ), __s2_len = __builtin_strlen (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
414 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
415 ), (!((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
416 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
417 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
418 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
419 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
420 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
421 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
422 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
423 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
424 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
425 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
426 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
427 ) : (__builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
428 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
429 ) && ((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
430 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
431 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
432 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
433 ) == 1) && (__s1_len = __builtin_strlen (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
434 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
435 ), __s1_len < 4) ? (__builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
436 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
437 ) && ((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
438 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
439 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
440 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
441 ) == 1) ? __builtin_strcmp (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
442 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
443 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
444 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
445 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
446 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
447 ); int __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
448 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
449 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
450 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
451 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
452 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
453 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( path ))[3] - __s2[3]);
0
454 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( path ))[3] - __s2[3]);
0
455 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
456 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
457 ) && ((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
458 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
459 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
460 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
461 ) == 1) && (__s2_len = __builtin_strlen (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
462 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
463 ), __s2_len < 4) ? (__builtin_constant_p (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
464 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
465 ) && ((size_t)(const void *)((
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
466 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
467 ) + 1) - (size_t)(const void *)(
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
468 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
469 ) == 1) ? __builtin_strcmp (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
470 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
471 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
472 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
473 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
474 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
475 ); int __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
476 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
477 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
478 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
479 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
480 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
481 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( strip ))[3] - __s2[3]);
0
482 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( strip ))[3] - __s2[3]);
0
483 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
484 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
485 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
486 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
487 )))); }) : strncmp (
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
488 path
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
489 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
490 strip
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
491 ,
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
492 len
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
493 )))
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
494 == 0
(__extension__..., len ))) == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
495 if (strip[len - 1] != '/'
strip[len - 1] != '/'Description
TRUEnever evaluated
FALSEnever evaluated
&& path[len] == '/'
path[len] == '/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
496 len++;
never executed: len++;
0
497 return
never executed: return (xstrdup(path + len));
(xstrdup(path + len));
never executed: return (xstrdup(path + len));
0
498 }-
499-
500 return
never executed: return (xstrdup(path));
(xstrdup(path));
never executed: return (xstrdup(path));
0
501}-
502-
503static char *-
504make_absolute(char *p, const char *pwd)-
505{-
506 char *abs_str;-
507-
508-
509 if (p
pDescription
TRUEnever evaluated
FALSEnever evaluated
&& p[0] != '/'
p[0] != '/'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
510 abs_str = path_append(pwd, p);-
511 free(p);-
512 return
never executed: return(abs_str);
(abs_str);
never executed: return(abs_str);
0
513 } else-
514 return
never executed: return(p);
(p);
never executed: return(p);
0
515}-
516-
517static int-
518parse_getput_flags(const char *cmd, char **argv, int argc,-
519 int *aflag, int *fflag, int *pflag, int *rflag)-
520{-
521 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
522 int ch;-
523-
524 BSDoptind = BSDoptreset = 1;-
525 BSDopterr = 0;-
526-
527 *aflag = *fflag = *rflag = *pflag = 0;-
528 while ((
(ch = BSDgetop...fPpRr")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "afPpRr")) != -1
(ch = BSDgetop...fPpRr")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
529 switch (ch) {-
530 case
never executed: case 'a':
'a':
never executed: case 'a':
0
531 *aflag = 1;-
532 break;
never executed: break;
0
533 case
never executed: case 'f':
'f':
never executed: case 'f':
0
534 *fflag = 1;-
535 break;
never executed: break;
0
536 case
never executed: case 'p':
'p':
never executed: case 'p':
0
537 case
never executed: case 'P':
'P':
never executed: case 'P':
0
538 *pflag = 1;-
539 break;
never executed: break;
0
540 case
never executed: case 'r':
'r':
never executed: case 'r':
0
541 case
never executed: case 'R':
'R':
never executed: case 'R':
0
542 *rflag = 1;-
543 break;
never executed: break;
0
544 default
never executed: default:
:
never executed: default:
0
545 error("%s: Invalid flag -%c", cmd, BSDoptopt);-
546 return
never executed: return -1;
-1;
never executed: return -1;
0
547 }-
548 }-
549-
550 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
551}-
552-
553static int-
554parse_link_flags(const char *cmd, char **argv, int argc, int *sflag)-
555{-
556 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
557 int ch;-
558-
559 BSDoptind = BSDoptreset = 1;-
560 BSDopterr = 0;-
561-
562 *sflag = 0;-
563 while ((
(ch = BSDgetop...v, "s")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "s")) != -1
(ch = BSDgetop...v, "s")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
564 switch (ch) {-
565 case
never executed: case 's':
's':
never executed: case 's':
0
566 *sflag = 1;-
567 break;
never executed: break;
0
568 default
never executed: default:
:
never executed: default:
0
569 error("%s: Invalid flag -%c", cmd, BSDoptopt);-
570 return
never executed: return -1;
-1;
never executed: return -1;
0
571 }-
572 }-
573-
574 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
575}-
576-
577static int-
578parse_rename_flags(const char *cmd, char **argv, int argc, int *lflag)-
579{-
580 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
581 int ch;-
582-
583 BSDoptind = BSDoptreset = 1;-
584 BSDopterr = 0;-
585-
586 *lflag = 0;-
587 while ((
(ch = BSDgetop...v, "l")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "l")) != -1
(ch = BSDgetop...v, "l")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
588 switch (ch) {-
589 case
never executed: case 'l':
'l':
never executed: case 'l':
0
590 *lflag = 1;-
591 break;
never executed: break;
0
592 default
never executed: default:
:
never executed: default:
0
593 error("%s: Invalid flag -%c", cmd, BSDoptopt);-
594 return
never executed: return -1;
-1;
never executed: return -1;
0
595 }-
596 }-
597-
598 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
599}-
600-
601static int-
602parse_ls_flags(char **argv, int argc, int *lflag)-
603{-
604 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
605 int ch;-
606-
607 BSDoptind = BSDoptreset = 1;-
608 BSDopterr = 0;-
609-
610 *lflag = 0x0008;-
611 while ((
(ch = BSDgetop...hlnrt")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "1Safhlnrt")) != -1
(ch = BSDgetop...hlnrt")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
612 switch (ch) {-
613 case
never executed: case '1':
'1':
never executed: case '1':
0
614 *lflag &= ~(0x0001|0x0002|0x0004|0x0100);-
615 *lflag |= 0x0002;-
616 break;
never executed: break;
0
617 case
never executed: case 'S':
'S':
never executed: case 'S':
0
618 *lflag &= ~(0x0008|0x0010|0x0020);-
619 *lflag |= 0x0020;-
620 break;
never executed: break;
0
621 case
never executed: case 'a':
'a':
never executed: case 'a':
0
622 *lflag |= 0x0080;-
623 break;
never executed: break;
0
624 case
never executed: case 'f':
'f':
never executed: case 'f':
0
625 *lflag &= ~(0x0008|0x0010|0x0020);-
626 break;
never executed: break;
0
627 case
never executed: case 'h':
'h':
never executed: case 'h':
0
628 *lflag |= 0x0100;-
629 break;
never executed: break;
0
630 case
never executed: case 'l':
'l':
never executed: case 'l':
0
631 *lflag &= ~0x0002;-
632 *lflag |= 0x0001;-
633 break;
never executed: break;
0
634 case
never executed: case 'n':
'n':
never executed: case 'n':
0
635 *lflag &= ~0x0002;-
636 *lflag |= 0x0004|0x0001;-
637 break;
never executed: break;
0
638 case
never executed: case 'r':
'r':
never executed: case 'r':
0
639 *lflag |= 0x0040;-
640 break;
never executed: break;
0
641 case
never executed: case 't':
't':
never executed: case 't':
0
642 *lflag &= ~(0x0008|0x0010|0x0020);-
643 *lflag |= 0x0010;-
644 break;
never executed: break;
0
645 default
never executed: default:
:
never executed: default:
0
646 error("ls: Invalid flag -%c", BSDoptopt);-
647 return
never executed: return -1;
-1;
never executed: return -1;
0
648 }-
649 }-
650-
651 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
652}-
653-
654static int-
655parse_df_flags(const char *cmd, char **argv, int argc, int *hflag, int *iflag)-
656{-
657 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
658 int ch;-
659-
660 BSDoptind = BSDoptreset = 1;-
661 BSDopterr = 0;-
662-
663 *hflag = *iflag = 0;-
664 while ((
(ch = BSDgetop..., "hi")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "hi")) != -1
(ch = BSDgetop..., "hi")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
665 switch (ch) {-
666 case
never executed: case 'h':
'h':
never executed: case 'h':
0
667 *hflag = 1;-
668 break;
never executed: break;
0
669 case
never executed: case 'i':
'i':
never executed: case 'i':
0
670 *iflag = 1;-
671 break;
never executed: break;
0
672 default
never executed: default:
:
never executed: default:
0
673 error("%s: Invalid flag -%c", cmd, BSDoptopt);-
674 return
never executed: return -1;
-1;
never executed: return -1;
0
675 }-
676 }-
677-
678 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
679}-
680-
681static int-
682parse_no_flags(const char *cmd, char **argv, int argc)-
683{-
684 extern int BSDopterr, BSDoptind, BSDoptopt, BSDoptreset;-
685 int ch;-
686-
687 BSDoptind = BSDoptreset = 1;-
688 BSDopterr = 0;-
689-
690 while ((
(ch = BSDgetop...gv, "")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
ch = BSDgetopt(argc, argv, "")) != -1
(ch = BSDgetop...gv, "")) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
691 switch (ch) {-
692 default
never executed: default:
:
never executed: default:
0
693 error("%s: Invalid flag -%c", cmd, BSDoptopt);-
694 return
never executed: return -1;
-1;
never executed: return -1;
0
695 }-
696 }-
697-
698 return
never executed: return BSDoptind;
BSDoptind;
never executed: return BSDoptind;
0
699}-
700-
701static int-
702is_dir(const char *path)-
703{-
704 struct stat sb;-
705-
706-
707 if (stat(path, &sb) == -1
stat(path, &sb) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
708 return
never executed: return(0);
(0);
never executed: return(0);
0
709-
710 return
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
(
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
0
711 ((((
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
0
712 sb.st_mode
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
0
713 )) & 0170000) == (0040000))
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
0
714 );
never executed: return( (((( sb.st_mode )) & 0170000) == (0040000)) );
0
715}-
716-
717static int-
718remote_is_dir(struct sftp_conn *conn, const char *path)-
719{-
720 Attrib *a;-
721-
722-
723 if ((
(a = do_stat(c...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
a = do_stat(conn, path, 1)) ==
(a = do_stat(c...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
724 ((void *)0)
(a = do_stat(c...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
725 )-
726 return
never executed: return(0);
(0);
never executed: return(0);
0
727 if (!(a->flags & 0x00000004)
!(a->flags & 0x00000004)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
728 return
never executed: return(0);
(0);
never executed: return(0);
0
729 return
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
(
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
0
730 ((((
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
0
731 a->perm
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
0
732 )) & 0170000) == (0040000))
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
0
733 );
never executed: return( (((( a->perm )) & 0170000) == (0040000)) );
0
734}-
735-
736-
737static int-
738pathname_is_dir(const char *pathname)-
739{-
740 size_t l = strlen(pathname);-
741-
742 return
never executed: return l > 0 && pathname[l - 1] == '/';
l > 0
l > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& pathname[l - 1] == '/'
pathname[l - 1] == '/'Description
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return l > 0 && pathname[l - 1] == '/';
0
743}-
744-
745static int-
746process_get(struct sftp_conn *conn, const char *src, const char *dst,-
747 const char *pwd, int pflag, int rflag, int resume, int fflag)-
748{-
749 char *abs_src = -
750 ((void *)0)-
751 ;-
752 char *abs_dst = -
753 ((void *)0)-
754 ;-
755 _ssh_compat_glob_t g;-
756 char *filename, *tmp=-
757 ((void *)0)-
758 ;-
759 int i, r, err = 0;-
760-
761 abs_src = xstrdup(src);-
762 abs_src = make_absolute(abs_src, pwd);-
763 memset(&g, 0, sizeof(g));-
764-
765 debug3("Looking up %s", abs_src);-
766 if ((
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
r = remote_glob(conn, abs_src, 0x0008,
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
767 ((void *)0)
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
768 , &g)) != 0
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
769 if (r == (-1)
r == (-1)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
770 error("Too many matches for \"%s\".", abs_src);-
771 }
never executed: end of block
else {
0
772 error("File \"%s\" not found.", abs_src);-
773 }
never executed: end of block
0
774 err = -1;-
775 goto
never executed: goto out;
out;
never executed: goto out;
0
776 }-
777-
778-
779-
780-
781-
782 if (g.gl_matchc > 1
g.gl_matchc > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& dst !=
dst != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
783 ((void *)0)
dst != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
784 && !is_dir(dst)
!is_dir(dst)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
785 error("Multiple source paths, but destination "-
786 "\"%s\" is not a directory", dst);-
787 err = -1;-
788 goto
never executed: goto out;
out;
never executed: goto out;
0
789 }-
790-
791 for (i = 0; g.gl_pathv[i]
g.gl_pathv[i]Description
TRUEnever evaluated
FALSEnever evaluated
&& !interrupted
!interruptedDescription
TRUEnever evaluated
FALSEnever evaluated
; i++) {
0
792 tmp = xstrdup(g.gl_pathv[i]);-
793 if ((
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
filename =
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
794 __xpg_basename
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
795 (tmp)) ==
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
796 ((void *)0)
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
797 ) {-
798 error("basename %s: %s", tmp, strerror(-
799 (*__errno_location ())-
800 ));-
801 free(tmp);-
802 err = -1;-
803 goto
never executed: goto out;
out;
never executed: goto out;
0
804 }-
805-
806 if (g.gl_matchc == 1
g.gl_matchc == 1Description
TRUEnever evaluated
FALSEnever evaluated
&& dst
dstDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
807 if (is_dir(dst)
is_dir(dst)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
808 abs_dst = path_append(dst, filename);-
809 }
never executed: end of block
else {
0
810 abs_dst = xstrdup(dst);-
811 }
never executed: end of block
0
812 } else if (dst
dstDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
813 abs_dst = path_append(dst, filename);-
814 }
never executed: end of block
else {
0
815 abs_dst = xstrdup(filename);-
816 }
never executed: end of block
0
817 free(tmp);-
818-
819 resume |= global_aflag;-
820 if (!quiet
!quietDescription
TRUEnever evaluated
FALSEnever evaluated
&& resume
resumeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
821 mprintf("Resuming %s to %s\n",
never executed: mprintf("Resuming %s to %s\n", g.gl_pathv[i], abs_dst);
0
822 g.gl_pathv[i], abs_dst);
never executed: mprintf("Resuming %s to %s\n", g.gl_pathv[i], abs_dst);
0
823 else if (!quiet
!quietDescription
TRUEnever evaluated
FALSEnever evaluated
&& !resume
!resumeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
824 mprintf("Fetching %s to %s\n",
never executed: mprintf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst);
0
825 g.gl_pathv[i], abs_dst);
never executed: mprintf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst);
0
826 if (pathname_is_dir(g.gl_pathv[i])
pathname_is_dir(g.gl_pathv[i])Description
TRUEnever evaluated
FALSEnever evaluated
&& (rflag
rflagDescription
TRUEnever evaluated
FALSEnever evaluated
|| global_rflag
global_rflagDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
827 if (download_dir(conn, g.gl_pathv[i], abs_dst,
download_dir(c...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
828 ((void *)0)
download_dir(c...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
829 ,
download_dir(c...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
830 pflag || global_pflag, 1, resume,
download_dir(c...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
831 fflag || global_fflag) == -1
download_dir(c...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
832 err = -1;
never executed: err = -1;
0
833 }
never executed: end of block
else {
0
834 if (do_download(conn, g.gl_pathv[i], abs_dst,
do_download(co...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
835 ((void *)0)
do_download(co...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
836 ,
do_download(co...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
837 pflag || global_pflag, resume,
do_download(co...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
838 fflag || global_fflag) == -1
do_download(co...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
839 err = -1;
never executed: err = -1;
0
840 }
never executed: end of block
0
841 free(abs_dst);-
842 abs_dst = -
843 ((void *)0)-
844 ;-
845 }
never executed: end of block
0
846-
847out:
code before this statement never executed: out:
0
848 free(abs_src);-
849 _ssh__compat_globfree(&g);-
850 return
never executed: return(err);
(err);
never executed: return(err);
0
851}-
852-
853static int-
854process_put(struct sftp_conn *conn, const char *src, const char *dst,-
855 const char *pwd, int pflag, int rflag, int resume, int fflag)-
856{-
857 char *tmp_dst = -
858 ((void *)0)-
859 ;-
860 char *abs_dst = -
861 ((void *)0)-
862 ;-
863 char *tmp = -
864 ((void *)0)-
865 , *filename = -
866 ((void *)0)-
867 ;-
868 _ssh_compat_glob_t g;-
869 int err = 0;-
870 int i, dst_is_dir = 1;-
871 struct stat sb;-
872-
873 if (dst
dstDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
874 tmp_dst = xstrdup(dst);-
875 tmp_dst = make_absolute(tmp_dst, pwd);-
876 }
never executed: end of block
0
877-
878 memset(&g, 0, sizeof(g));-
879 debug3("Looking up %s", src);-
880 if (_ssh__compat_glob(src, 0x0010 | 0x0008,
_ssh__compat_g...oid *)0) , &g)Description
TRUEnever evaluated
FALSEnever evaluated
0
881 ((void *)0)
_ssh__compat_g...oid *)0) , &g)Description
TRUEnever evaluated
FALSEnever evaluated
0
882 , &g)
_ssh__compat_g...oid *)0) , &g)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
883 error("File \"%s\" not found.", src);-
884 err = -1;-
885 goto
never executed: goto out;
out;
never executed: goto out;
0
886 }-
887-
888-
889 if (tmp_dst !=
tmp_dst != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
890 ((void *)0)
tmp_dst != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
891 )-
892 dst_is_dir = remote_is_dir(conn, tmp_dst);
never executed: dst_is_dir = remote_is_dir(conn, tmp_dst);
0
893-
894-
895 if (g.gl_matchc > 1
g.gl_matchc > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& tmp_dst
tmp_dstDescription
TRUEnever evaluated
FALSEnever evaluated
&& !dst_is_dir
!dst_is_dirDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
896 error("Multiple paths match, but destination "-
897 "\"%s\" is not a directory", tmp_dst);-
898 err = -1;-
899 goto
never executed: goto out;
out;
never executed: goto out;
0
900 }-
901-
902 for (i = 0; g.gl_pathv[i]
g.gl_pathv[i]Description
TRUEnever evaluated
FALSEnever evaluated
&& !interrupted
!interruptedDescription
TRUEnever evaluated
FALSEnever evaluated
; i++) {
0
903 if (stat(g.gl_pathv[i], &sb) == -1
stat(g.gl_pathv[i], &sb) == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
904 err = -1;-
905 error("stat %s: %s", g.gl_pathv[i], strerror(-
906 (*__errno_location ())-
907 ));-
908 continue;
never executed: continue;
0
909 }-
910-
911 tmp = xstrdup(g.gl_pathv[i]);-
912 if ((
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
filename =
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
913 __xpg_basename
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
914 (tmp)) ==
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
915 ((void *)0)
(filename = __...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
916 ) {-
917 error("basename %s: %s", tmp, strerror(-
918 (*__errno_location ())-
919 ));-
920 free(tmp);-
921 err = -1;-
922 goto
never executed: goto out;
out;
never executed: goto out;
0
923 }-
924-
925 if (g.gl_matchc == 1
g.gl_matchc == 1Description
TRUEnever evaluated
FALSEnever evaluated
&& tmp_dst
tmp_dstDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
926-
927 if (dst_is_dir
dst_is_dirDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
928 abs_dst = path_append(tmp_dst, filename);
never executed: abs_dst = path_append(tmp_dst, filename);
0
929 else-
930 abs_dst = xstrdup(tmp_dst);
never executed: abs_dst = xstrdup(tmp_dst);
0
931 } else if (tmp_dst
tmp_dstDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
932 abs_dst = path_append(tmp_dst, filename);-
933 }
never executed: end of block
else {
0
934 abs_dst = make_absolute(xstrdup(filename), pwd);-
935 }
never executed: end of block
0
936 free(tmp);-
937-
938 resume |= global_aflag;-
939 if (!quiet
!quietDescription
TRUEnever evaluated
FALSEnever evaluated
&& resume
resumeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
940 mprintf("Resuming upload of %s to %s\n",
never executed: mprintf("Resuming upload of %s to %s\n", g.gl_pathv[i], abs_dst);
0
941 g.gl_pathv[i], abs_dst);
never executed: mprintf("Resuming upload of %s to %s\n", g.gl_pathv[i], abs_dst);
0
942 else if (!quiet
!quietDescription
TRUEnever evaluated
FALSEnever evaluated
&& !resume
!resumeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
943 mprintf("Uploading %s to %s\n",
never executed: mprintf("Uploading %s to %s\n", g.gl_pathv[i], abs_dst);
0
944 g.gl_pathv[i], abs_dst);
never executed: mprintf("Uploading %s to %s\n", g.gl_pathv[i], abs_dst);
0
945 if (pathname_is_dir(g.gl_pathv[i])
pathname_is_dir(g.gl_pathv[i])Description
TRUEnever evaluated
FALSEnever evaluated
&& (rflag
rflagDescription
TRUEnever evaluated
FALSEnever evaluated
|| global_rflag
global_rflagDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
946 if (upload_dir(conn, g.gl_pathv[i], abs_dst,
upload_dir(con...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
947 pflag || global_pflag, 1, resume,
upload_dir(con...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
948 fflag || global_fflag) == -1
upload_dir(con...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
949 err = -1;
never executed: err = -1;
0
950 }
never executed: end of block
else {
0
951 if (do_upload(conn, g.gl_pathv[i], abs_dst,
do_upload(conn...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
952 pflag || global_pflag, resume,
do_upload(conn...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
953 fflag || global_fflag) == -1
do_upload(conn...l_fflag) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
954 err = -1;
never executed: err = -1;
0
955 }
never executed: end of block
0
956 }-
957-
958out:
code before this statement never executed: out:
0
959 free(abs_dst);-
960 free(tmp_dst);-
961 _ssh__compat_globfree(&g);-
962 return
never executed: return(err);
(err);
never executed: return(err);
0
963}-
964-
965static int-
966sdirent_comp(const void *aa, const void *bb)-
967{-
968 SFTP_DIRENT *a = *(SFTP_DIRENT **)aa;-
969 SFTP_DIRENT *b = *(SFTP_DIRENT **)bb;-
970 int rmul = sort_flag & 0x0040
sort_flag & 0x0040Description
TRUEnever evaluated
FALSEnever evaluated
? -1 : 1;
0
971-
972-
973 if (sort_flag & 0x0008
sort_flag & 0x0008Description
TRUEnever evaluated
FALSEnever evaluated
)
0
974 return
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
(rmul *
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
975 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
976 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
977 ) && __builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
978 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
979 ) && (__s1_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
980 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
981 ), __s2_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
982 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
983 ), (!((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
984 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
985 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
986 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
987 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
988 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
989 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
990 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
991 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
992 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
993 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
994 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
995 ) : (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
996 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
997 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
998 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
999 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1000 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1001 ) == 1) && (__s1_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1002 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1003 ), __s1_len < 4) ? (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1004 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1005 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1006 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1007 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1008 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1009 ) == 1) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1010 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1011 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1012 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1013 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1014 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1015 ); int __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1016 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1017 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1018 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1019 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1020 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1021 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( a->filename ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1022 a->filename
never executed: __result = (((const unsigned char *) (const char *) ( a->filename ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1023 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( a->filename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1024 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1025 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1026 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1027 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1028 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1029 ) == 1) && (__s2_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1030 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1031 ), __s2_len < 4) ? (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1032 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1033 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1034 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1035 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1036 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1037 ) == 1) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1038 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1039 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1040 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1041 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1042 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1043 ); int __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1044 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1045 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1046 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1047 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1048 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1049 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1050 b->filename
never executed: __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1051 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1052 a->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1053 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1054 b->filename
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1055 )))); })
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1056 );
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( a->filename ) && __builtin_constant_p ( b->filename ) && (__s1_len = __builtin_strlen ( a->filename ), __s2_len = __builtin_strlen ( b->filename ), (!((size_t)(const void *...ned char *) (const char *) ( b->filename ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( b->filename ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( a->filename , b->filename )))); }) );
0
1057 else if (sort_flag & 0x0010
sort_flag & 0x0010Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1058 return
never executed: return (rmul * (a->a.mtime == b->a.mtime ? 0 : (a->a.mtime < b->a.mtime ? 1 : -1)));
(rmul * (a->a.mtime == b->a.mtime ? 0 : (a->a.mtime < b->a.mtime ? 1 : -1)));
never executed: return (rmul * (a->a.mtime == b->a.mtime ? 0 : (a->a.mtime < b->a.mtime ? 1 : -1)));
0
1059 else if (sort_flag & 0x0020
sort_flag & 0x0020Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1060 return
never executed: return (rmul * (a->a.size == b->a.size ? 0 : (a->a.size < b->a.size ? 1 : -1)));
(rmul * (a->a.size == b->a.size ? 0 : (a->a.size < b->a.size ? 1 : -1)));
never executed: return (rmul * (a->a.size == b->a.size ? 0 : (a->a.size < b->a.size ? 1 : -1)));
0
1061-
1062 fatal("Unknown ls sort type");-
1063}
never executed: end of block
0
1064-
1065-
1066static int-
1067do_ls_dir(struct sftp_conn *conn, const char *path,-
1068 const char *strip_path, int lflag)-
1069{-
1070 int n;-
1071 u_int c = 1, colspace = 0, columns = 1;-
1072 SFTP_DIRENT **d;-
1073-
1074 if ((
(n = do_readdi...ath, &d)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
n = do_readdir(conn, path, &d)) != 0
(n = do_readdi...ath, &d)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1075 return
never executed: return (n);
(n);
never executed: return (n);
0
1076-
1077 if (!(lflag & 0x0002)
!(lflag & 0x0002)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1078 u_int m = 0, width = 80;-
1079 struct winsize ws;-
1080 char *tmp;-
1081-
1082-
1083 for (n = 0; d[n] !=
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1084 ((void *)0)
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1085 ; n++) {-
1086 if (d[n]->filename[0] != '.'
d[n]->filename[0] != '.'Description
TRUEnever evaluated
FALSEnever evaluated
|| (
(lflag & 0x0080)Description
TRUEnever evaluated
FALSEnever evaluated
lflag & 0x0080)
(lflag & 0x0080)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1087 m = (((
((m) > (strlen...]->filename)))Description
TRUEnever evaluated
FALSEnever evaluated
m) > (strlen(d[n]->filename)))
((m) > (strlen...]->filename)))Description
TRUEnever evaluated
FALSEnever evaluated
? (m) : (strlen(d[n]->filename)));
never executed: m = (((m) > (strlen(d[n]->filename))) ? (m) : (strlen(d[n]->filename)));
0
1088 }
never executed: end of block
0
1089-
1090-
1091 tmp = path_strip(path, strip_path);-
1092 m += strlen(tmp);-
1093 free(tmp);-
1094-
1095 if (ioctl(fileno(
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1096 stdin
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1097 ),
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1098 0x5413
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1099 , &ws) != -1
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1100 width = ws.ws_col;
never executed: width = ws.ws_col;
0
1101-
1102 columns = width / (m + 2);-
1103 columns = (((
((columns) > (1))Description
TRUEnever evaluated
FALSEnever evaluated
columns) > (1))
((columns) > (1))Description
TRUEnever evaluated
FALSEnever evaluated
? (columns) : (1));
0
1104 colspace = width / columns;-
1105 colspace = (((
((colspace) < (width))Description
TRUEnever evaluated
FALSEnever evaluated
colspace) < (width))
((colspace) < (width))Description
TRUEnever evaluated
FALSEnever evaluated
? (colspace) : (width));
0
1106 }
never executed: end of block
0
1107-
1108 if (lflag & (0x0008|0x0010|0x0020)
lflag & (0x0008|0x0010|0x0020)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1109 for (n = 0; d[n] !=
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1110 ((void *)0)
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1111 ; n++)-
1112 ;
never executed: ;
0
1113 sort_flag = lflag & ((0x0008|0x0010|0x0020)|0x0040);-
1114 qsort(d, n, sizeof(*d), sdirent_comp);-
1115 }
never executed: end of block
0
1116-
1117 for (n = 0; d[n] !=
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1118 ((void *)0)
d[n] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1119 && !interrupted
!interruptedDescription
TRUEnever evaluated
FALSEnever evaluated
; n++) {
0
1120 char *tmp, *fname;-
1121-
1122 if (d[n]->filename[0] == '.'
d[n]->filename[0] == '.'Description
TRUEnever evaluated
FALSEnever evaluated
&& !(lflag & 0x0080)
!(lflag & 0x0080)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1123 continue;
never executed: continue;
0
1124-
1125 tmp = path_append(path, d[n]->filename);-
1126 fname = path_strip(tmp, strip_path);-
1127 free(tmp);-
1128-
1129 if (lflag & 0x0001
lflag & 0x0001Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1130 if (lflag & (0x0004|0x0100)
lflag & (0x0004|0x0100)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1131 char *lname;-
1132 struct stat sb;-
1133-
1134 memset(&sb, 0, sizeof(sb));-
1135 attrib_to_stat(&d[n]->a, &sb);-
1136 lname = ls_file(fname, &sb, 1,-
1137 (lflag & 0x0100));-
1138 mprintf("%s\n", lname);-
1139 free(lname);-
1140 }
never executed: end of block
else
0
1141 mprintf("%s\n", d[n]->longname);
never executed: mprintf("%s\n", d[n]->longname);
0
1142 } else {-
1143 mprintf("%-*s", colspace, fname);-
1144 if (c >= columns
c >= columnsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1145 printf("\n");-
1146 c = 1;-
1147 }
never executed: end of block
else
0
1148 c++;
never executed: c++;
0
1149 }-
1150-
1151 free(fname);-
1152 }
never executed: end of block
0
1153-
1154 if (!(lflag & 0x0001)
!(lflag & 0x0001)Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(c != 1)Description
TRUEnever evaluated
FALSEnever evaluated
c != 1)
(c != 1)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1155 printf("\n");
never executed: printf("\n");
0
1156-
1157 free_sftp_dirents(d);-
1158 return
never executed: return (0);
(0);
never executed: return (0);
0
1159}-
1160-
1161static int-
1162sglob_comp(const void *aa, const void *bb)-
1163{-
1164 u_int a = *(const u_int *)aa;-
1165 u_int b = *(const u_int *)bb;-
1166 const char *ap = sort_glob->gl_pathv[a];-
1167 const char *bp = sort_glob->gl_pathv[b];-
1168 const struct stat *as = sort_glob->gl_statv[a];-
1169 const struct stat *bs = sort_glob->gl_statv[b];-
1170 int rmul = sort_flag & 0x0040
sort_flag & 0x0040Description
TRUEnever evaluated
FALSEnever evaluated
? -1 : 1;
0
1171-
1172-
1173 if (sort_flag & 0x0008
sort_flag & 0x0008Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1174 return
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
(rmul *
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1175 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1176 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1177 ) && __builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1178 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1179 ) && (__s1_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1180 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1181 ), __s2_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1182 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1183 ), (!((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1184 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1185 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1186 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1187 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1188 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1189 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1190 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1191 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1192 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1193 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1194 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1195 ) : (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1196 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1197 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1198 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1199 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1200 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1201 ) == 1) && (__s1_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1202 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1203 ), __s1_len < 4) ? (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1204 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1205 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1206 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1207 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1208 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1209 ) == 1) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1210 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1211 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1212 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1213 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1214 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1215 ); int __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1216 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1217 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1218 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1219 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1220 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1221 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( ap ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1222 ap
never executed: __result = (((const unsigned char *) (const char *) ( ap ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1223 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( ap ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1224 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1225 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1226 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1227 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1228 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1229 ) == 1) && (__s2_len = __builtin_strlen (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1230 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1231 ), __s2_len < 4) ? (__builtin_constant_p (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1232 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1233 ) && ((size_t)(const void *)((
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1234 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1235 ) + 1) - (size_t)(const void *)(
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1236 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1237 ) == 1) ? __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1238 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1239 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1240 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1241 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1242 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1243 ); int __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1244 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1245 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1246 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1247 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1248 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1249 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1250 bp
never executed: __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]);
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1251 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1252 ap
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1253 ,
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1254 bp
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1255 )))); })
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1256 );
never executed: return (rmul * __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( ap ) && __builtin_constant_p ( bp ) && (__s1_len = __builtin_strlen ( ap ), __s2_len = __builtin_strlen ( bp ), (!((size_t)(const void *)(( ap ) + 1) - (size_t)(const void ...lt == 0) { __result = (((const unsigned char *) (const char *) ( bp ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( bp ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( ap , bp )))); }) );
0
1257 else if (sort_flag & 0x0010
sort_flag & 0x0010Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1258-
1259 return
never executed: return (rmul * (((&as->st_mtim)->tv_sec == (&bs->st_mtim)->tv_sec) ? ((&as->st_mtim)->tv_nsec < (&bs->st_mtim)->tv_nsec) : ((&as->st_mtim)->tv_sec < (&bs->st_mtim)->tv_sec)));
(rmul * (((&as->st_mtim)->tv_sec == (&bs->st_mtim)->tv_sec) ? ((&as->st_mtim)->tv_nsec < (&bs->st_mtim)->tv_nsec) : ((&as->st_mtim)->tv_sec < (&bs->st_mtim)->tv_sec)));
never executed: return (rmul * (((&as->st_mtim)->tv_sec == (&bs->st_mtim)->tv_sec) ? ((&as->st_mtim)->tv_nsec < (&bs->st_mtim)->tv_nsec) : ((&as->st_mtim)->tv_sec < (&bs->st_mtim)->tv_sec)));
0
1260-
1261-
1262-
1263-
1264-
1265 } else if (sort_flag & 0x0020
sort_flag & 0x0020Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1266 return
never executed: return (rmul * (as->st_size == bs->st_size ? 0 : (as->st_size < bs->st_size ? 1 : -1)));
(rmul * (as->st_size == bs->st_size ? 0 : (as->st_size < bs->st_size ? 1 : -1)));
never executed: return (rmul * (as->st_size == bs->st_size ? 0 : (as->st_size < bs->st_size ? 1 : -1)));
0
1267-
1268 fatal("Unknown ls sort type");-
1269}
never executed: end of block
0
1270-
1271-
1272static int-
1273do_globbed_ls(struct sftp_conn *conn, const char *path,-
1274 const char *strip_path, int lflag)-
1275{-
1276 char *fname, *lname;-
1277 _ssh_compat_glob_t g;-
1278 int err, r;-
1279 struct winsize ws;-
1280 u_int i, j, nentries, *indices = -
1281 ((void *)0)-
1282 , c = 1;-
1283 u_int colspace = 0, columns = 1, m = 0, width = 80;-
1284-
1285 memset(&g, 0, sizeof(g));-
1286-
1287 if ((
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
r = remote_glob(conn, path,
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1288 0x0008|0x0010|0x0080|0x4000|0x0020,
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1289
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1290 ((void *)0)
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1291 , &g)) != 0
(r = remote_gl...0) , &g)) != 0Description
TRUEnever evaluated
FALSEnever evaluated
||
0
1292 (g.gl_pathc
g.gl_pathcDescription
TRUEnever evaluated
FALSEnever evaluated
&& !g.gl_matchc
!g.gl_matchcDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
1293 if (g.gl_pathc
g.gl_pathcDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1294 _ssh__compat_globfree(&g);
never executed: _ssh__compat_globfree(&g);
0
1295 if (r == (-1)
r == (-1)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1296 error("Can't ls: Too many matches for \"%s\"", path);-
1297 }
never executed: end of block
else {
0
1298 error("Can't ls: \"%s\" not found", path);-
1299 }
never executed: end of block
0
1300 return
never executed: return -1;
-1;
never executed: return -1;
0
1301 }-
1302-
1303 if (interrupted
interruptedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1304 goto
never executed: goto out;
out;
never executed: goto out;
0
1305-
1306-
1307-
1308-
1309-
1310 if (g.gl_matchc == 1
g.gl_matchc == 1Description
TRUEnever evaluated
FALSEnever evaluated
&& g.gl_statv[0] !=
g.gl_statv[0] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1311 ((void *)0)
g.gl_statv[0] != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1312 &&-
1313 -
1314 ((((
(((( g.gl_stat... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1315 g.gl_statv[0]->st_mode
(((( g.gl_stat... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1316 )) & 0170000) == (0040000))
(((( g.gl_stat... == (0040000))Description
TRUEnever evaluated
FALSEnever evaluated
0
1317 ) {-
1318 err = do_ls_dir(conn, g.gl_pathv[0], strip_path, lflag);-
1319 _ssh__compat_globfree(&g);-
1320 return
never executed: return err;
err;
never executed: return err;
0
1321 }-
1322-
1323 if (ioctl(fileno(
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1324 stdin
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1325 ),
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1326 0x5413
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
0
1327 , &ws) != -1
ioctl(fileno( ...3 , &ws) != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1328 width = ws.ws_col;
never executed: width = ws.ws_col;
0
1329-
1330 if (!(lflag & 0x0002)
!(lflag & 0x0002)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1331-
1332 for (i = 0; g.gl_pathv[i]
g.gl_pathv[i]Description
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
1333 m = (((
((m) > (strlen...gl_pathv[i])))Description
TRUEnever evaluated
FALSEnever evaluated
m) > (strlen(g.gl_pathv[i])))
((m) > (strlen...gl_pathv[i])))Description
TRUEnever evaluated
FALSEnever evaluated
? (m) : (strlen(g.gl_pathv[i])));
never executed: m = (((m) > (strlen(g.gl_pathv[i]))) ? (m) : (strlen(g.gl_pathv[i])));
0
1334-
1335 columns = width / (m + 2);-
1336 columns = (((
((columns) > (1))Description
TRUEnever evaluated
FALSEnever evaluated
columns) > (1))
((columns) > (1))Description
TRUEnever evaluated
FALSEnever evaluated
? (columns) : (1));
0
1337 colspace = width / columns;-
1338 }
never executed: end of block
0
1339-
1340-
1341-
1342-
1343-
1344-
1345 for (nentries = 0; g.gl_pathv[nentries] !=
g.gl_pathv[nen...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1346 ((void *)0)
g.gl_pathv[nen...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1347 ; nentries++)-
1348 ;
never executed: ;
0
1349 indices = calloc(nentries, sizeof(*indices));-
1350 for (i = 0; i < nentries
i < nentriesDescription
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
1351 indices[i] = i;
never executed: indices[i] = i;
0
1352-
1353 if (lflag & (0x0008|0x0010|0x0020)
lflag & (0x0008|0x0010|0x0020)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1354 sort_glob = &g;-
1355 sort_flag = lflag & ((0x0008|0x0010|0x0020)|0x0040);-
1356 qsort(indices, nentries, sizeof(*indices), sglob_comp);-
1357 sort_glob = -
1358 ((void *)0)-
1359 ;-
1360 }
never executed: end of block
0
1361-
1362 for (j = 0; j < nentries
j < nentriesDescription
TRUEnever evaluated
FALSEnever evaluated
&& !interrupted
!interruptedDescription
TRUEnever evaluated
FALSEnever evaluated
; j++) {
0
1363 i = indices[j];-
1364 fname = path_strip(g.gl_pathv[i], strip_path);-
1365 if (lflag & 0x0001
lflag & 0x0001Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1366 if (g.gl_statv[i] ==
g.gl_statv[i] == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1367 ((void *)0)
g.gl_statv[i] == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1368 ) {-
1369 error("no stat information for %s", fname);-
1370 continue;
never executed: continue;
0
1371 }-
1372 lname = ls_file(fname, g.gl_statv[i], 1,-
1373 (lflag & 0x0100));-
1374 mprintf("%s\n", lname);-
1375 free(lname);-
1376 }
never executed: end of block
else {
0
1377 mprintf("%-*s", colspace, fname);-
1378 if (c >= columns
c >= columnsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1379 printf("\n");-
1380 c = 1;-
1381 }
never executed: end of block
else
0
1382 c++;
never executed: c++;
0
1383 }-
1384 free(fname);-
1385 }
never executed: end of block
0
1386-
1387 if (!(lflag & 0x0001)
!(lflag & 0x0001)Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(c != 1)Description
TRUEnever evaluated
FALSEnever evaluated
c != 1)
(c != 1)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1388 printf("\n");
never executed: printf("\n");
0
1389-
1390 out:
code before this statement never executed: out:
0
1391 if (g.gl_pathc
g.gl_pathcDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1392 _ssh__compat_globfree(&g);
never executed: _ssh__compat_globfree(&g);
0
1393 free(indices);-
1394-
1395 return
never executed: return 0;
0;
never executed: return 0;
0
1396}-
1397-
1398static int-
1399do_df(struct sftp_conn *conn, const char *path, int hflag, int iflag)-
1400{-
1401 struct sftp_statvfs st;-
1402 char s_used[7], s_avail[7];-
1403 char s_root[7], s_total[7];-
1404 char s_icapacity[16], s_dcapacity[16];-
1405-
1406 if (do_statvfs(conn, path, &st, 1) == -1
do_statvfs(con... &st, 1) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1407 return
never executed: return -1;
-1;
never executed: return -1;
0
1408 if (st.f_files == 0
st.f_files == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1409 strlcpy(s_icapacity, "ERR", sizeof(s_icapacity));
never executed: strlcpy(s_icapacity, "ERR", sizeof(s_icapacity));
0
1410 else {-
1411 snprintf(s_icapacity, sizeof(s_icapacity), "%3llu%%",-
1412 (unsigned long long)(100 * (st.f_files - st.f_ffree) /-
1413 st.f_files));-
1414 }
never executed: end of block
0
1415 if (st.f_blocks == 0
st.f_blocks == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1416 strlcpy(s_dcapacity, "ERR", sizeof(s_dcapacity));
never executed: strlcpy(s_dcapacity, "ERR", sizeof(s_dcapacity));
0
1417 else {-
1418 snprintf(s_dcapacity, sizeof(s_dcapacity), "%3llu%%",-
1419 (unsigned long long)(100 * (st.f_blocks - st.f_bfree) /-
1420 st.f_blocks));-
1421 }
never executed: end of block
0
1422 if (iflag
iflagDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1423 printf(" Inodes Used Avail "-
1424 "(root) %%Capacity\n");-
1425 printf("%11llu %11llu %11llu %11llu %s\n",-
1426 (unsigned long long)st.f_files,-
1427 (unsigned long long)(st.f_files - st.f_ffree),-
1428 (unsigned long long)st.f_favail,-
1429 (unsigned long long)st.f_ffree, s_icapacity);-
1430 }
never executed: end of block
else if (hflag
hflagDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1431 strlcpy(s_used, "error", sizeof(s_used));-
1432 strlcpy(s_avail, "error", sizeof(s_avail));-
1433 strlcpy(s_root, "error", sizeof(s_root));-
1434 strlcpy(s_total, "error", sizeof(s_total));-
1435 fmt_scaled((st.f_blocks - st.f_bfree) * st.f_frsize, s_used);-
1436 fmt_scaled(st.f_bavail * st.f_frsize, s_avail);-
1437 fmt_scaled(st.f_bfree * st.f_frsize, s_root);-
1438 fmt_scaled(st.f_blocks * st.f_frsize, s_total);-
1439 printf(" Size Used Avail (root) %%Capacity\n");-
1440 printf("%7sB %7sB %7sB %7sB %s\n",-
1441 s_total, s_used, s_avail, s_root, s_dcapacity);-
1442 }
never executed: end of block
else {
0
1443 printf(" Size Used Avail "-
1444 "(root) %%Capacity\n");-
1445 printf("%12llu %12llu %12llu %12llu %s\n",-
1446 (unsigned long long)(st.f_frsize * st.f_blocks / 1024),-
1447 (unsigned long long)(st.f_frsize *-
1448 (st.f_blocks - st.f_bfree) / 1024),-
1449 (unsigned long long)(st.f_frsize * st.f_bavail / 1024),-
1450 (unsigned long long)(st.f_frsize * st.f_bfree / 1024),-
1451 s_dcapacity);-
1452 }
never executed: end of block
0
1453 return
never executed: return 0;
0;
never executed: return 0;
0
1454}-
1455-
1456-
1457-
1458-
1459-
1460-
1461static void-
1462undo_glob_escape(char *s)-
1463{-
1464 size_t i, j;-
1465-
1466 for (i = j = 0;;) {-
1467 if (s[i] == '\0'
s[i] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1468 s[j] = '\0';-
1469 return;
never executed: return;
0
1470 }-
1471 if (s[i] != '\\'
s[i] != '\\'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1472 s[j++] = s