/src/lib/libc/gen/ |
ftok.c | 48 struct stat st; local in function:__weak_alias 52 if (stat(path, &st) < 0) 56 ((unsigned int)id << 24 | (st.st_dev & 0xff) << 16 | 57 (st.st_ino & 0xffff));
|
ttyslot.c | 90 struct stat st; local in function:__weak_alias 91 if (fstat(cnt, &st) == -1) 93 return slot + (int)minor(st.st_rdev) + 1;
|
utmp.c | 62 struct stat st; local in function:getutent 66 if (fstat(fileno(ut), &st) == -1) 71 numentries = st.st_size / sizeof(utmp); 72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size)
|
/src/tests/lib/libc/gen/posix_spawn/ |
fa_spawn_utils.c | 49 struct stat st; local in function:filesize 51 RL(stat(fname, &st)); 52 return st.st_size;
|
/src/lib/libc/citrus/ |
citrus_mmap.c | 57 struct stat st; local in function:_citrus_map_file 67 if (fstat(fd, &st) == -1) { 71 if (!S_ISREG(st.st_mode)) { 76 head = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE|MAP_PRIVATE, 82 _region_init(r, head, (size_t)st.st_size);
|
/src/lib/libc/stdio/ |
fdopen.c | 96 struct stat st; local in function:__weak_alias 97 if (fstat(fd, &st) == -1) { 100 if (!S_ISREG(st.st_mode)) {
|
fputwc.c | 49 mbstate_t *st; local in function:__fputwc_unlock 70 st = &wcio->wcio_mbstate_out; 72 size = wcrtomb(buf, wc, st);
|
fseeko.c | 68 struct stat st; local in function:__weak_alias 159 __sfileno(fp) == -1 || fstat(__sfileno(fp), &st) || 160 !S_ISREG(st.st_mode)) { 164 fp->_blksize = st.st_blksize; 175 if (fstat(__sfileno(fp), &st)) 177 target = st.st_size + offset;
|
/src/sys/external/isc/libsodium/dist/test/default/ |
onetimeauth.c | 30 crypto_onetimeauth_state st; local in function:main 33 assert(crypto_onetimeauth_statebytes() == sizeof st); 42 crypto_onetimeauth_init(&st, rs); 43 crypto_onetimeauth_update(&st, c, 100); 44 crypto_onetimeauth_update(&st, c, 0); 45 crypto_onetimeauth_update(&st, c + 100, 31); 46 crypto_onetimeauth_final(&st, a);
|
auth.c | 21 crypto_auth_hmacsha512_state st; local in function:main 35 crypto_auth_hmacsha512_init(&st, key, sizeof key); 36 crypto_auth_hmacsha512_update(&st, c, 1U); 37 crypto_auth_hmacsha512_update(&st, c, sizeof c - 2U); 38 crypto_auth_hmacsha512_final(&st, a2); 46 crypto_auth_hmacsha512_init(&st, key2, sizeof key2); 47 crypto_auth_hmacsha512_update(&st, c, 1U); 48 crypto_auth_hmacsha512_update(&st, c, sizeof c - 2U); 49 crypto_auth_hmacsha512_final(&st, a2);
|
generichash2.c | 9 crypto_generichash_state st; local in function:main 14 assert(crypto_generichash_statebytes() >= sizeof st); 20 if (crypto_generichash_init(&st, k, 26 crypto_generichash_update(&st, in, i); 27 crypto_generichash_update(&st, in, i); 28 crypto_generichash_update(&st, in, i); 29 if (crypto_generichash_final(&st, out, 37 if (crypto_generichash_final(&st, out, 43 assert(crypto_generichash_init(&st, k, sizeof k, 0U) == -1); 44 assert(crypto_generichash_init(&st, k, sizeof k [all...] |
/src/sys/arch/hppa/stand/common/ |
dk.c | 59 const char *st; local in function:dkopen 71 st = NULL; 76 if ((st = dk_disklabel(dp, &dkl)) != NULL) { 79 printf ("dkopen: %s\n", st);
|
/src/sys/dev/raidframe/ |
rf_etimer.h | 38 struct timeval st; member in struct:RF_Etimer_s 46 getmicrouptime(&(_t_).st); \ 56 RF_TIMEVAL_DIFF(&(_t_).st, &(_t_).et, &(_t_).diff) \
|
/src/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/ |
crypto_box_seal.c | 13 crypto_generichash_state st; local in function:_crypto_box_seal_nonce 15 crypto_generichash_init(&st, NULL, 0U, crypto_box_NONCEBYTES); 16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES); 17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES); 18 crypto_generichash_final(&st, nonce, crypto_box_NONCEBYTES);
|
/src/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/curve25519xchacha20poly1305/ |
box_seal_curve25519xchacha20poly1305.c | 14 crypto_generichash_state st; local in function:_crypto_box_curve25519xchacha20poly1305_seal_nonce 16 crypto_generichash_init(&st, NULL, 0U, 18 crypto_generichash_update(&st, pk1, 20 crypto_generichash_update(&st, pk2, 22 crypto_generichash_final(&st, nonce,
|
/src/sys/stand/ |
ls.c | 60 struct stat st; local in function:main 67 if (fstat(fd, &st) == -1) { 72 if (!S_ISDIR(st.st_mode)) { 76 if (st.st_size == 0) {
|
/src/tests/fs/vfs/ |
t_mtime_otrunc.c | 49 struct stat st; local in function:lock_it 51 if (rump_sys_stat(LOCKFILE, &st) != 0) 52 st.st_mtime = 0; 58 return st.st_mtime;
|
t_mtime_write.c | 49 struct stat st; local in function:lock_it 51 if (rump_sys_stat(LOCKFILE, &st) != 0) 52 st.st_mtime = 0; 56 rump_sys_write(f, &st, sizeof st); 59 return st.st_mtime;
|
/src/tests/lib/libc/sys/ |
t_mknod.c | 145 struct stat st; local in function:ATF_TC_BODY 147 (void)memset(&st, 0, sizeof(struct stat)); 150 ATF_REQUIRE(stat(path, &st) == 0); 152 if (S_ISCHR(st.st_mode) == 0) 157 (void)memset(&st, 0, sizeof(struct stat)); 160 ATF_REQUIRE(stat(path, &st) == 0); 162 if (S_ISBLK(st.st_mode) == 0) 167 (void)memset(&st, 0, sizeof(struct stat)); 170 ATF_REQUIRE(stat(path, &st) == 0); 172 if (S_ISREG(st.st_mode) == 0 [all...] |
t_truncate.c | 55 struct stat st; local in function:ATF_TC_BODY 64 (void)memset(&st, 0, sizeof(struct stat)); 67 ATF_REQUIRE(fstat(fd, &st) == 0); 71 if (sizes[i] != (size_t)st.st_size) 115 struct stat st; local in function:ATF_TC_BODY 124 (void)memset(&st, 0, sizeof(struct stat)); 127 ATF_REQUIRE(fstat(fd, &st) == 0); 131 if (sizes[i] != (size_t)st.st_size)
|
t_wait.c | 59 int st; local in function:ATF_TC_BODY 60 ATF_REQUIRE(wait6(P_ALL, 0, &st, 0, &wru, &si) == -1 75 int st; local in function:ATF_TC_BODY 86 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); 87 ATF_REQUIRE(WIFEXITED(st) && WEXITSTATUS(st) == 0x5a); 109 int st; local in function:ATF_TC_BODY 121 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); 122 ATF_REQUIRE(WIFSIGNALED(st) && WTERMSIG(st) == SIGTERM) 144 int st; local in function:ATF_TC_BODY 181 int st; local in function:ATF_TC_BODY 247 int st; local in function:ATF_TC_BODY [all...] |
/src/usr.bin/dc/ |
dc.c | 49 struct stat st; local in function:dc_main 100 if (fstat(fileno(file), &st) == -1) 102 if (S_ISDIR(st.st_mode))
|
/src/usr.sbin/altq/altqstat/ |
qdisc_conf.c | 66 struct qdisc_conf *st; local in function:qdisc2stat_loop 68 for (st = qdisc_table; st->qdisc_name != NULL; st++) 69 if (strcmp(st->qdisc_name, qdisc_name) == 0) 70 return (st->stat_loop); 100 struct qdisc_conf *st; local in function:ifname2qdisc 103 for (st = qdisc_table; st->qdisc_name != NULL; st++ [all...] |
/src/usr.sbin/rpc.bootparamd/ |
test.c | 52 enum clnt_stat st; local in function:bootparamproc_whoami_1 56 if ((st = clnt_call(clnt, BOOTPARAMPROC_WHOAMI, xdr_bp_whoami_arg, argp, 58 warnx("clnt_call returned %s", clnt_sperrno(st));
|
/src/sys/arch/alpha/pci/ |
apecs.c | 193 bus_space_tag_t st; local in function:apecs_bus_get_window 197 st = &acp->ac_iot; 201 st = &acp->ac_memt; 208 return (alpha_bus_space_get_window(st, window, abst));
|