Home
last modified time | relevance | path

Searched refs:stb (Results 1 – 25 of 98) sorted by relevance

1234

/openbsd/usr.sbin/amd/amd/
H A Dinfo_ndbm.c72 struct stat stb; in ndbm_search() local
75 error = fstat(dbm_pagfno(db), &stb); in ndbm_search()
76 if (!error && *tp < stb.st_mtime) { in ndbm_search()
77 *tp = stb.st_mtime; in ndbm_search()
96 struct stat stb; in ndbm_init() local
98 if (fstat(dbm_pagfno(db), &stb) < 0) in ndbm_init()
101 *tp = stb.st_mtime; in ndbm_init()
H A Dutil.c516 struct stat stb; in mkdirs() local
549 return stat(path, &stb) == 0 && in mkdirs()
550 (stb.st_mode & S_IFMT) == S_IFDIR ? 0 : error_so_far; in mkdirs()
566 struct stat stb; in rmdirs() local
572 if (stat(xdp, &stb) == 0 && (stb.st_mode & 0200) == 0) { in rmdirs()
H A Dinfo_file.c193 struct stat stb; in file_open() local
195 if (fstat(fileno(mapf), &stb) < 0) in file_open()
198 *tp = stb.st_mtime; in file_open()
H A Dsfs_ops.c108 struct stat stb; in sfsx_mount() local
121 if (lstat(ln, &stb) < 0) in sfsx_mount()
/openbsd/gnu/usr.bin/binutils/gdb/cli/
H A Dcli-setshow.c259 struct ui_stream *stb; in do_setshow_command() local
262 stb = ui_out_stream_new (uiout); in do_setshow_command()
263 old_chain = make_cleanup_ui_out_stream_delete (stb); in do_setshow_command()
290 fputs_filtered (*(char **) c->var, stb->stream); in do_setshow_command()
300 fputs_filtered ("on", stb->stream); in do_setshow_command()
303 fputs_filtered ("off", stb->stream); in do_setshow_command()
306 fputs_filtered ("auto", stb->stream); in do_setshow_command()
317 fputs_filtered ("unlimited", stb->stream); in do_setshow_command()
327 fputs_filtered ("unlimited", stb->stream); in do_setshow_command()
330 fprintf_filtered (stb->stream, "%d", *(int *) c->var); in do_setshow_command()
[all …]
/openbsd/usr.bin/rdist/
H A Dclient.c387 if (stb->st_nlink > 1) { in sendfile()
405 opts, stb->st_mode & 07777, (long long) stb->st_size, in sendfile()
406 (long long)stb->st_mtime, (long long)stb->st_atime, in sendfile()
431 amt = stb->st_size - i; in sendfile()
492 struct stat stb; in rmchk() local
665 if (stb->st_nlink > 1) { in sendlink()
677 opts, stb->st_mode & 07777, (long long) stb->st_size, in sendlink()
678 (long long)stb->st_mtime, (long long)stb->st_atime, in sendlink()
696 if (n != stb->st_size) { in sendlink()
1137 static struct stat stb; in sendit() local
[all …]
H A Dexpand.c311 struct stat stb; in expsh() local
317 if (!expany || stat(path, &stb) >= 0) { in expsh()
347 struct stat stb; in matchdir() local
357 if (fstat(dirfd(dirp), &stb) == -1) in matchdir()
359 if (!S_ISDIR(stb.st_mode)) { in matchdir()
501 struct stat stb; in amatch() local
569 if (stat(path, &stb) == 0 && S_ISDIR(stb.st_mode)) { in amatch()
H A Ddocmd.c97 struct stat stb; in notify() local
122 if (fstat(fd, &stb) == -1) { in notify()
127 if (stb.st_size == 0) { in notify()
652 struct stat stb; in cmptime() local
679 if (S_ISDIR(stb.st_mode)) { in cmptime()
680 rcmptime(&stb, sbcmds, env); in cmptime()
682 } else if (!S_ISREG(stb.st_mode)) { in cmptime()
687 if (stb.st_mtime > lastmod) { in cmptime()
721 struct stat stb; in dodcolon() local
733 if (stat(stamp, &stb) == -1) { in dodcolon()
[all …]
/openbsd/usr.bin/rdistd/
H A Dserver.c288 struct stat stb; in removefile() local
393 struct stat stb; in doclean() local
557 static struct stat stb; in query() local
641 struct stat stb; in chkparent() local
891 struct stat stb; in recvfile() local
958 struct stat stb; in recvdir() local
961 s = lstat(target, &stb); in recvdir()
990 stb.st_mode & 07777, in recvdir()
997 stb.st_mode & 07777, in recvdir()
1106 struct stat stb; in recvlink() local
[all …]
H A Dfilesys.c372 static struct stat stb; in is_symlinked() local
375 if (lstat(path, &stb) != 0) in is_symlinked()
377 statbuf = &stb; in is_symlinked()
/openbsd/gnu/usr.bin/binutils/gdb/
H A Ddisasm.c90 int how_many, struct ui_stream *stb) in dump_insns() argument
136 ui_file_rewind (stb->stream); in dump_insns()
138 ui_out_field_stream (uiout, "inst", stb); in dump_insns()
139 ui_file_rewind (stb->stream); in dump_insns()
156 int how_many, struct ui_stream *stb) in do_mixed_source_and_assembly() argument
279 how_many, stb); in do_mixed_source_and_assembly()
301 int how_many, struct ui_stream *stb) in do_assembly_only() argument
308 num_displayed = dump_insns (uiout, di, low, high, how_many, stb); in do_assembly_only()
357 struct ui_stream *stb = ui_out_stream_new (uiout); in gdb_disassembly() local
377 do_assembly_only (uiout, &di, low, high, how_many, stb); in gdb_disassembly()
[all …]
H A Dstack.c222 struct ui_stream *stb; in print_frame_args() local
224 stb = ui_out_stream_new (uiout); in print_frame_args()
225 old_chain = make_cleanup_ui_out_stream_delete (stb); in print_frame_args()
336 fprintf_symbol_filtered (stb->stream, SYMBOL_PRINT_NAME (sym), in print_frame_args()
338 ui_out_field_stream (uiout, "name", stb); in print_frame_args()
355 stb->stream, 0, 0, 2, Val_no_prettyprint); in print_frame_args()
356 ui_out_field_stream (uiout, "value", stb); in print_frame_args()
543 struct ui_stream *stb; in print_frame() local
547 stb = ui_out_stream_new (uiout); in print_frame()
548 old_chain = make_cleanup_ui_out_stream_delete (stb); in print_frame()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/mi/
H A Dmi-cmd-stack.c232 static struct ui_stream *stb = NULL; in list_args_or_locals() local
235 stb = ui_out_stream_new (uiout); in list_args_or_locals()
301 type_print (sym2->type, "", stb->stream, -1); in list_args_or_locals()
302 ui_out_field_stream (uiout, "type", stb); in list_args_or_locals()
307 print_variable_value (sym2, fi, stb->stream); in list_args_or_locals()
308 ui_out_field_stream (uiout, "value", stb); in list_args_or_locals()
313 print_variable_value (sym2, fi, stb->stream); in list_args_or_locals()
314 ui_out_field_stream (uiout, "value", stb); in list_args_or_locals()
326 ui_out_stream_delete (stb); in list_args_or_locals()
H A Dmi-main.c505 static struct ui_stream *stb = NULL; in get_register() local
507 stb = ui_out_stream_new (uiout); in get_register()
541 stb->stream, format, 1, 0, Val_pretty_default); in get_register()
542 ui_out_field_stream (uiout, "value", stb); in get_register()
543 ui_out_stream_delete (stb); in get_register()
665 struct ui_stream *stb = NULL; in mi_cmd_data_evaluate_expression() local
667 stb = ui_out_stream_new (uiout); in mi_cmd_data_evaluate_expression()
684 stb->stream, 0, 0, 0, 0); in mi_cmd_data_evaluate_expression()
686 ui_out_field_stream (uiout, "value", stb); in mi_cmd_data_evaluate_expression()
687 ui_out_stream_delete (stb); in mi_cmd_data_evaluate_expression()
/openbsd/usr.sbin/lpr/lpd/
H A Dprintjob.c130 struct stat stb; in printjob() local
183 if (fstat(lfd, &stb) == 0 && (stb.st_mode & S_IXUSR)) in printjob()
209 stb.st_mode &= ~S_IXOTH; in printjob()
254 stb.st_mode &= ~S_IXOTH; in printjob()
536 struct stat stb; in print() local
553 stb.st_dev != fdev || stb.st_ino != fino) { in print()
883 struct stat stb; in sendfile() local
898 stb.st_dev != fdev || stb.st_ino != fino) { in sendfile()
940 amt = stb.st_size - i; in sendfile()
1116 struct stat stb; in sendmail() local
[all …]
H A Drecvjob.c78 struct stat stb; in recvjob() local
108 if (stat(LO, &stb) == 0) { in recvjob()
109 if (stb.st_mode & 010) { in recvjob()
114 } else if (stat(SD, &stb) < 0) in recvjob()
/openbsd/bin/csh/
H A Dexp.c396 struct stat stb; in exp6() local
407 if (isa(**vp, ANYOP) && stat(short2str(**vp), &stb)) in exp6()
429 if (cp[1] == 'l' ? lstat(short2str(ep), &stb) : in exp6()
430 stat(short2str(ep), &stb)) { in exp6()
437 i = S_ISREG(stb.st_mode); in exp6()
441 i = S_ISDIR(stb.st_mode); in exp6()
445 i = S_ISFIFO(stb.st_mode); in exp6()
449 i = S_ISLNK(stb.st_mode); in exp6()
453 i = S_ISSOCK(stb.st_mode); in exp6()
457 i = stb.st_size == 0; in exp6()
[all …]
H A Dcsh.c737 struct stat stb; in srcunit() local
739 if (fstat(unit, &stb) == -1) { in srcunit()
1187 struct stat stb; in mailchk() local
1202 if (stat(short2str(*vp), &stb) == -1) in mailchk()
1204 new = stb.st_mtime > time0.tv_sec; in mailchk()
1205 if (stb.st_size == 0 || stb.st_atime > stb.st_mtime || in mailchk()
1206 (stb.st_atime < chktim && stb.st_mtime < chktim) || in mailchk()
1329 struct stat stb; in defaultpath() local
1334 if (stat(ptr = a, &stb) == 0 && S_ISDIR(stb.st_mode)) \ in defaultpath()
/openbsd/lib/libc/gen/
H A Dscandir.c69 struct stat stb; in scandir_dirp() local
72 if (fstat(dirp->dd_fd, &stb) == -1) in scandir_dirp()
79 arraysz = MAXIMUM(stb.st_size / 24, 16); in scandir_dirp()
99 if (fstat(dirp->dd_fd, &stb) == -1) in scandir_dirp()
/openbsd/usr.bin/make/
H A Ddir.c423 struct stat stb;/* Buffer for stat, if necessary */ in Dir_FindFileComplexi() local
548 if (stat(file, &stb) == 0) { in Dir_FindFileComplexi()
551 ts_set_from_stat(stb, mtime); in Dir_FindFileComplexi()
610 } else if (stat(q, &stb) == 0) { in Dir_FindFileComplexi()
613 ts_set_from_stat(stb, mtime); in Dir_FindFileComplexi()
702 struct stat stb; in Dir_MTime() local
732 } else if (stat(fullName, &stb) == 0) in Dir_MTime()
733 ts_set_from_stat(stb, mtime); in Dir_MTime()
/openbsd/usr.bin/ftp/
H A Druserpass.c81 struct stat stb; in ruserpass() local
156 fstat(fileno(cfile), &stb) >= 0 && in ruserpass()
157 (stb.st_mode & 077) != 0) { in ruserpass()
170 if (fstat(fileno(cfile), &stb) >= 0 in ruserpass()
171 && (stb.st_mode & 077) != 0) { in ruserpass()
/openbsd/usr.bin/ssh/
H A Dscp.c1330 struct stat stb; in source() local
1355 if (stb.st_size < 0) { in source()
1365 rsource(name, &stb); in source()
1404 amt = stb.st_size - i; in source()
1601 struct stat stb; in sink() local
1635 if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode)) in sink()
2114 struct stat stb; in verifydir() local
2116 if (!stat(cp, &stb)) { in verifydir()
2117 if (S_ISDIR(stb.st_mode)) in verifydir()
2159 struct stat stb; in allocbuf() local
[all …]
/openbsd/usr.sbin/lpr/lpr/
H A Dlpr.c113 struct stat stb; in main() local
281 if (real_uid && stat(buf, &stb) == 0 && (stb.st_mode & 010)) in main()
664 struct stat stb; in mktemps() local
687 } while (stat(tfname, &stb) == 0 || stat(cfname, &stb) == 0 || in mktemps()
688 stat(dfname, &stb) == 0); in mktemps()
/openbsd/sbin/fsck/
H A Dfsutil.c163 struct stat stb; in unrawname() local
167 if (stat(name, &stb) == -1) in unrawname()
169 if (!S_ISCHR(stb.st_mode)) in unrawname()
/openbsd/libexec/comsat/
H A Dcomsat.c249 struct stat stb; in notify() local
260 if (stat(tty, &stb) || !(stb.st_mode & S_IEXEC)) { in notify()

1234