Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 983) sorted by path

12345678910>>...40

/illumos-gate/usr/src/boot/common/
H A Dmodule.c648 struct stat st; in file_loadraw() local
670 if (fstat(fd, &st) < 0) { in file_loadraw()
689 if ((size_t)got != st.st_size) { in file_loadraw()
720 fp->f_size = st.st_size; in file_loadraw()
731 loadaddr += st.st_size; in file_loadraw()
946 struct stat st; in file_lookup() local
971 if (stat(result, &st) == 0 && S_ISREG(st.st_mode)) in file_lookup()
1269 struct stat st; in moduledir_readhints() local
1276 if (stat(path, &st) != 0 || in moduledir_readhints()
1278 st.st_size > LINKER_HINTS_MAX || in moduledir_readhints()
[all …]
H A Dmultiboot2.c137 struct stat st; in multiboot2_loadfile() local
256 if (fstat(fd, &st) < 0) { in multiboot2_loadfile()
272 fp->f_size = archsw.arch_readin(fd, fp->f_addr, st.st_size); in multiboot2_loadfile()
274 if (fp->f_size != st.st_size) { in multiboot2_loadfile()
H A Dnvstore.c69 nvstore_t *st; in nvstore_get_store() local
71 st = NULL; in nvstore_get_store()
78 return (st); in nvstore_get_store()
84 nvstore_t *st; in nvstore_init() local
90 if ((st = malloc(sizeof (*st))) == NULL) in nvstore_init()
94 free(st); in nvstore_init()
108 nvstore_t *st; in nvstore_fini() local
118 free(st); in nvstore_fini()
127 return (st->nvs_cb->nvs_iterate(st->nvs_data, st->nvs_cb->nvs_print)); in nvstore_print()
135 return (st->nvs_cb->nvs_getter(st->nvs_data, name, data)); in nvstore_get_var()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defi_console.c314 EFI_STATUS st; in efi_text_cons_clear() local
324 st = conout->SetAttribute(conout, attr); in efi_text_cons_clear()
325 if (EFI_ERROR(st)) in efi_text_cons_clear()
327 st = conout->ClearScreen(conout); in efi_text_cons_clear()
328 if (EFI_ERROR(st)) in efi_text_cons_clear()
351 EFI_STATUS st; in efi_text_cons_display() local
372 st = conout->SetAttribute(conout, attr); in efi_text_cons_display()
373 if (EFI_ERROR(st)) in efi_text_cons_display()
/illumos-gate/usr/src/boot/efi/loader/
H A Dcopy.c167 struct stat st; in efi_loadaddr() local
181 stat(data, &st); in efi_loadaddr()
182 size = st.st_size; in efi_loadaddr()
H A Dmain.c301 struct stat st; in sanity_check_currdev() local
303 return (stat("/boot/defaults/loader.conf", &st) == 0); in sanity_check_currdev()
1311 struct stat st; in command_chain() local
1329 if (fstat(fd, &st) < -1) { in command_chain()
1335 status = BS->AllocatePool(EfiLoaderCode, (UINTN)st.st_size, &buf); in command_chain()
1341 if (read(fd, buf, st.st_size) != st.st_size) { in command_chain()
1348 status = BS->LoadImage(FALSE, IH, NULL, buf, st.st_size, &loaderhandle); in command_chain()
/illumos-gate/usr/src/boot/i386/libi386/
H A Di386_copy.c108 struct stat st; in i386_loadaddr() local
131 stat(data, &st); in i386_loadaddr()
132 size = st.st_size; in i386_loadaddr()
/illumos-gate/usr/src/boot/i386/loader/
H A Dchain.c47 struct stat st; in command_chain() local
68 if (fstat(fd, &st) == -1) { in command_chain()
73 if (size != st.st_size) { in command_chain()
/illumos-gate/usr/src/cmd/abi/appcert/etc/
H A Detc.alt.in35 # single "-". The newline previous to the 1st "-" must be "\" quoted.
H A Detc.warn.in34 # single "-". The newline previous to the 1st "-" must be "\" quoted.
/illumos-gate/usr/src/cmd/acctadm/
H A Dutils.c193 struct stat st; in verify_exacct_file() local
196 if (stat(file, &st) != -1 && st.st_size != 0) { in verify_exacct_file()
/illumos-gate/usr/src/cmd/allocate/
H A Ddevalloc_defaults27 # audio, fd, sr, st, rmdisk
43 st:minlabel=admin_low;maxlabel=admin_high;auths=solaris.device.allocate;cleanscript=/etc/security/l…
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/
H A Dtv82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
86 #define ST_ATIME_NSEC_SET(st,n) (ST_ATIME_NSEC_GET(st)=(n))
87 #define ST_CTIME_NSEC_SET(st,n) (ST_CTIME_NSEC_GET(st)=(n))
88 #define ST_MTIME_NSEC_SET(st,n) (ST_MTIME_NSEC_GET(st)=(n))
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/
H A Dtv82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
86 #define ST_ATIME_NSEC_SET(st,n) (ST_ATIME_NSEC_GET(st)=(n))
87 #define ST_CTIME_NSEC_SET(st,n) (ST_CTIME_NSEC_GET(st)=(n))
88 #define ST_MTIME_NSEC_SET(st,n) (ST_MTIME_NSEC_GET(st)=(n))
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/
H A Dtv82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
86 #define ST_ATIME_NSEC_SET(st,n) (ST_ATIME_NSEC_GET(st)=(n))
87 #define ST_CTIME_NSEC_SET(st,n) (ST_CTIME_NSEC_GET(st)=(n))
88 #define ST_MTIME_NSEC_SET(st,n) (ST_MTIME_NSEC_GET(st)=(n))
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/
H A Dtv82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
86 #define ST_ATIME_NSEC_SET(st,n) (ST_ATIME_NSEC_GET(st)=(n))
87 #define ST_CTIME_NSEC_SET(st,n) (ST_CTIME_NSEC_GET(st)=(n))
88 #define ST_MTIME_NSEC_SET(st,n) (ST_MTIME_NSEC_GET(st)=(n))
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dfile.cc187 get_realfile(char *&path, struct stat *st) in get_realfile() argument
195 if (err = lstat(path, st) < 0) { in get_realfile()
199 if (!err && S_ISLNK(st->st_mode)) { in get_realfile()
H A Dmain.cc84 struct stat st; in main() local
299 get_realfile(realfile, &st); in main()
371 if (chmod(realfile, (int)st.st_mode) < 0) { in main()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c271 struct stat st; in main() local
328 err = stat(Audio_dev, &st); in main()
334 if (!S_ISCHR(st.st_mode)) { in main()
491 err = fstat(ifd, &st); in main()
497 regular = (S_ISREG(st.st_mode)); in main()
510 (void) madvise(mapaddr, st.st_size, MADV_SEQUENTIAL); in main()
519 len = cnt = st.st_size - cnt; in main()
806 (void) munmap(mapaddr, st.st_size); in main()
927 struct stat st; in path_open() local
981 if (stat(fullpath, &st) >= 0) { in path_open()
[all …]
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c188 struct stat st; in main() local
388 if ((fstat(ofd, &st) < 0) || (!S_ISREG(st.st_mode))) { in main()
394 if (st.st_size == 0) { in main()
462 Oldsize = st.st_size - err; in main()
465 if ((int)lseek(ofd, st.st_size, SEEK_SET) < 0) { in main()
475 err = stat(Audio_dev, &st); in main()
481 if (!S_ISCHR(st.st_mode)) { in main()
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioFile.cc96 struct stat st; in SetTempPath() local
99 if ((stat(path, &st) < 0) || in SetTempPath()
100 !S_ISDIR(st.st_mode) || in SetTempPath()
289 struct stat st; in tryopen() local
298 if (stat(pathname, &st) < 0) in tryopen()
302 if (!S_ISREG(st.st_mode)) in tryopen()
336 maplen = st.st_size; in tryopen()
H A DAudioRawPipe.cc83 struct stat st; in Open() local
91 if (fstat(getfd(), &st) < 0) in Open()
103 if (S_ISREG(st.st_mode)) { in Open()
106 setlength(GetHeader().Bytes_to_Time(st.st_size - offset)); in Open()
H A DAudioUnixfile.cc98 struct stat st; in decode_filehdr() local
106 if (fstat(getfd(), &st) < 0) in decode_filehdr()
155 if (S_ISREG(st.st_mode)) { in decode_filehdr()
157 st.st_size - infosize - sizeof (au_filehdr_t))); in decode_filehdr()
H A Dfilehdr.c329 struct stat st; in audio_read_filehdr() local
338 err = fstat(fd, &st); in audio_read_filehdr()
349 if (S_ISREG(st.st_mode)) { in audio_read_filehdr()
351 if (st.st_size < dsize) { in audio_read_filehdr()
355 } else if (st.st_size > dsize) { in audio_read_filehdr()
393 if (S_ISREG(st.st_mode)) { in audio_read_filehdr()
/illumos-gate/usr/src/cmd/awk/
H A Dawk.g.y104 %type <i> do st
344 st:
350 BREAK st { if (!inloop) SYNTAX("break illegal outside of loops");
354 | do {inloop++;} stmt {--inloop;} WHILE '(' pattern ')' st
356 | EXIT pattern st { $$ = stat1(EXIT, $2); }
357 | EXIT st { $$ = stat1(EXIT, NIL); }
362 | NEXT st { if (infunc)
365 | NEXTFILE st { if (infunc)
368 | RETURN pattern st { $$ = stat1(RETURN, $2); }
369 | RETURN st { $$ = stat1(RETURN, NIL); }
[all …]

12345678910>>...40