/illumos-gate/usr/src/man/man3sec/ |
H A D | Makefile | 19 MANSECT= 3sec 21 MANFILES= acl_check.3sec \ 22 acl_free.3sec \ 23 acl_get.3sec \ 24 acl_strip.3sec \ 25 acl_totext.3sec \ 26 acl_trivial.3sec \ 27 aclcheck.3sec \ 28 aclsort.3sec \ 29 acltomode.3sec \ [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 780 verdefneed_size(FSTATE *fstate, SINFO *sec) in verdefneed_size() argument 788 size_t num_main = sec->vercnt; in verdefneed_size() 797 if (sec->type == SINFO_T_VERDEF) { in verdefneed_size() 818 offset = highwater = map_addr_to_offset(fstate, sec->vaddr, in verdefneed_size() 822 sec->size = offset; in verdefneed_size() 849 sec->size = highwater - sec->size; in verdefneed_size() 873 get_data(FSTATE *fstate, SINFO *sec) in get_data() argument 884 if ((sec->type == SINFO_T_NULL) || (sec->shdr != NULL)) in get_data() 887 if (((sec->shdr = malloc(sizeof (*sec->shdr))) == NULL) || in get_data() 888 ((sec->data = malloc(sizeof (*sec->data))) == NULL)) { in get_data() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 45 uint32_t sec, nsec, tmp; in hrt2ts() 48 sec = tmp - (tmp >> 2); in hrt2ts() 49 sec = tmp - (sec >> 5); in hrt2ts() 50 sec = tmp + (sec >> 1); in hrt2ts() 51 sec = tmp - (sec >> 6) + 7; in hrt2ts() 52 sec = tmp - (sec >> 3); in hrt2ts() 53 sec = tmp + (sec >> 1); in hrt2ts() 54 sec = tmp + (sec >> 3); in hrt2ts() 55 sec = tmp + (sec >> 4); in hrt2ts() 56 tmp = (sec << 7) - sec - sec - sec; in hrt2ts() [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 96 uint32_t sec, nsec, tmp; in hrt2ts() local 99 sec = tmp - (tmp >> 2); in hrt2ts() 100 sec = tmp - (sec >> 5); in hrt2ts() 101 sec = tmp + (sec >> 1); in hrt2ts() 102 sec = tmp - (sec >> 6) + 7; in hrt2ts() 103 sec = tmp - (sec >> 3); in hrt2ts() 104 sec = tmp + (sec >> 1); in hrt2ts() 105 sec = tmp + (sec >> 3); in hrt2ts() 106 sec = tmp + (sec >> 4); in hrt2ts() 107 tmp = (sec << 7) - sec - sec - sec; in hrt2ts() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library.man3sec.inc | 17 file path=usr/share/man/man3sec/acl_check.3sec 18 file path=usr/share/man/man3sec/acl_free.3sec 19 link path=usr/share/man/man3sec/acl_fromtext.3sec target=acl_totext.3sec 20 file path=usr/share/man/man3sec/acl_get.3sec 21 link path=usr/share/man/man3sec/acl_set.3sec target=acl_get.3sec 22 file path=usr/share/man/man3sec/acl_strip.3sec 23 file path=usr/share/man/man3sec/acl_totext.3sec 24 file path=usr/share/man/man3sec/acl_trivial.3sec 25 file path=usr/share/man/man3sec/aclcheck.3sec 26 link path=usr/share/man/man3sec/aclfrommode.3sec target=acltomode.3sec [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 91 time_t sec; in uniqtime() local 116 sec = ts.tv_sec; in uniqtime() 130 else if ((sec <= last.tv_sec) && /* same or lower seconds, and */ in uniqtime() 131 ((sec != last.tv_sec) || /* either different second or */ in uniqtime() 133 ((last.tv_sec - sec) <= 5)) { /* not way back in time */ in uniqtime() 134 sec = last.tv_sec; in uniqtime() 138 sec++; in uniqtime() 141 last.tv_sec = sec; in uniqtime() 145 tv->tv_sec = sec; in uniqtime() 899 time_t sec; in timespectohz() local [all …]
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | hdr_misc.c | 60 audio_secs_to_bytes(Audio_hdr *hp, double sec) in audio_secs_to_bytes() argument 64 offset = (unsigned)(0.5 + (sec * in audio_secs_to_bytes() 120 audio_secs_to_str(double sec, char *str, int precision) in audio_secs_to_str() argument 128 if (sec == HUGE_VAL) { in audio_secs_to_str() 139 if (sec < 0.) { in audio_secs_to_str() 140 sec = -sec; in audio_secs_to_str() 143 (void) sprintf(buf, "%.*f", precision, sec); in audio_secs_to_str() 144 (void) sscanf(buf, "%lf", &sec); in audio_secs_to_str() 145 if (sec > 0.) in audio_secs_to_str() 150 x = fmod(sec, 60.); in audio_secs_to_str() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 119 uint32_t sec, nsec, tmp; in fmd_time_hrt2ftv() local 122 sec = tmp - (tmp >> 2); in fmd_time_hrt2ftv() 123 sec = tmp - (sec >> 5); in fmd_time_hrt2ftv() 124 sec = tmp + (sec >> 1); in fmd_time_hrt2ftv() 125 sec = tmp - (sec >> 6) + 7; in fmd_time_hrt2ftv() 126 sec = tmp - (sec >> 3); in fmd_time_hrt2ftv() 127 sec = tmp + (sec >> 1); in fmd_time_hrt2ftv() 128 sec = tmp + (sec >> 3); in fmd_time_hrt2ftv() 129 sec = tmp + (sec >> 4); in fmd_time_hrt2ftv() 130 tmp = (sec << 7) - sec - sec - sec; in fmd_time_hrt2ftv() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.c | 152 elfedit_section_t *sec; member 157 elfedit_section_t *sec; member 161 elfedit_section_t *sec; member 167 elfedit_section_t *sec; member 206 if (symstate->str.sec != NULL) in symstate_add_str() 209 symstate->str.sec = elfedit_sec_getstr(argstate->obj_state, in symstate_add_str() 210 symstate->sym.sec->sec_shdr->sh_link, 0); in symstate_add_str() 215 if (symstate->versym.sec != NULL) in symstate_add_versym() 218 symstate->versym.sec = elfedit_sec_getversym(argstate->obj_state, in symstate_add_versym() 219 symstate->sym.sec, &symstate->versym.data, &symstate->versym.n); in symstate_add_versym() [all …]
|
H A D | syminfo.c | 116 elfedit_section_t *sec; member 121 elfedit_section_t *sec; member 126 elfedit_section_t *sec; member 129 elfedit_section_t *sec; member 189 argstate->syminfo.sec = elfedit_sec_getsyminfo(obj_state, in process_args() 219 if (argstate->sym.sec != NULL) in argstate_add_sym() 222 argstate->sym.sec = elfedit_sec_getsymtab(argstate->obj_state, in argstate_add_sym() 223 1, argstate->syminfo.sec->sec_shdr->sh_link, NULL, in argstate_add_sym() 229 if (argstate->str.sec != NULL) in argstate_add_str() 233 argstate->str.sec = elfedit_sec_getstr(argstate->obj_state, in argstate_add_str() [all …]
|
H A D | str.c | 119 elfedit_section_t *sec; member 123 elfedit_section_t *sec; member 330 argstate->str.sec = elfedit_sec_get(obj_state, ndx); in process_args() 345 argstate->str.sec = elfedit_sec_getstr(obj_state, ndx, 1); in process_args() 355 argstate->dyn.sec = NULL; in process_args() 362 (argstate->str.sec->sec_shndx == in process_args() 364 argstate->dyn.sec = elfedit_sec_getdyn(obj_state, in process_args() 375 argstate->str.sec->sec_data->d_size)) { in process_args() 379 EC_WORD(argstate->str.sec->sec_shndx), in process_args() 380 argstate->str.sec->sec_name, in process_args() [all …]
|
H A D | cap.c | 126 elfedit_section_t *sec; /* Capabilities section reference */ member 134 elfedit_section_t *sec; member 162 if (argstate->str.sec != NULL) in argstate_add_str() 169 if (argstate->cap.sec->sec_shdr->sh_info == 0) { in argstate_add_str() 173 EC_WORD(argstate->cap.sec->sec_shndx), in argstate_add_str() 174 argstate->cap.sec->sec_name); in argstate_add_str() 178 argstate->str.sec = elfedit_sec_getstr(argstate->obj_state, in argstate_add_str() 179 argstate->cap.sec->sec_shdr->sh_info, 0); in argstate_add_str() 231 return (elfedit_offset_to_str(argstate->str.sec, in cap_group_id() 263 EC_WORD(argstate->cap.sec->sec_shndx), argstate->cap.sec->sec_name, in argstate_cap_group() [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | time.h | 54 time_t sec; member 66 _bt->sec++; in bintime_addx() 77 _bt->sec++; in bintime_add() 78 _bt->sec += _bt2->sec; in bintime_add() 89 _bt->sec--; in bintime_sub() 90 _bt->sec -= _bt2->sec; in bintime_sub() 100 _bt->sec *= _x; in bintime_mul() 101 _bt->sec += (_p2 >> 32); in bintime_mul() 110 _bt->sec <<= _exp; in bintime_shift() 111 _bt->sec |= _bt->frac >> (64 - _exp); in bintime_shift() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | time.c | 42 time_t sec; in conv_time() local 45 sec = newtime->tv_sec - oldtime->tv_sec; in conv_time() 50 sec -= 1; in conv_time() 57 if ((min = sec / 60) != 0) in conv_time() 58 sec = sec % 60; in conv_time() 64 MSG_ORIG(MSG_TIME_HMSF), hour, min, sec, usec); in conv_time() 67 MSG_ORIG(MSG_TIME_MSF), min, sec, usec); in conv_time() 70 MSG_ORIG(MSG_TIME_SF), sec, usec); in conv_time()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/ |
H A D | c_ustime.c | 41 struct time_now { krb5_int32 sec, usec; }; member 57 n->sec = timeptr.time; in get_time_now() 82 n->sec = tv.tv_sec; in get_time_now() 112 if ((now.sec == last_time.sec) && (now.usec <= last_time.usec)) { in krb5_crypto_us_timeofday() 116 ++now.sec; in krb5_crypto_us_timeofday() 123 last_time.sec = now.sec; /* Remember for next time */ in krb5_crypto_us_timeofday() 127 *seconds = now.sec; in krb5_crypto_us_timeofday()
|
/illumos-gate/usr/src/test/util-tests/tests/libsff/ |
H A D | libsff_compliance.out | 62 0 100 MBytes/sec 63 1 200 MBytes/sec 64 2 3200 MBytes/sec 65 3 400 MBytes/sec 66 4 1600 MBytes/sec 67 5 800 MBytes/sec 68 6 1200 MBytes/sec 118 0 100 MBytes/sec 119 1 200 MBytes/sec 120 2 3200 MBytes/sec [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | main.c | 135 const char *progname, *sec, *ep; in main() local 286 search.sec = optarg; in main() 430 search.sec = (char *)uc; in main() 489 else if (search.sec != NULL) in main() 492 *argv, search.sec); in main() 526 sec = resn[i].file; in main() 527 sec += strcspn(sec, "123456789"); in main() 528 if (sec[0] == '\0') in main() 530 prio = sec_prios[sec[0] - '1']; in main() 531 if (search.sec != NULL) { in main() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | ustime.c | 40 krb5_int32 sec, usec; in krb5_us_timeofday() local 48 retval = krb5_crypto_us_timeofday(&sec, &usec); in krb5_us_timeofday() 55 sec++; in krb5_us_timeofday() 59 sec--; in krb5_us_timeofday() 61 sec += os_ctx->time_offset; in krb5_us_timeofday() 63 *seconds = sec; in krb5_us_timeofday()
|
/illumos-gate/usr/src/cmd/srptadm/ |
H A D | srptadm.c | 61 #define SRPTADM_CHKAUTH(sec) {\ argument 62 if (!chkauthattr(sec, srptadm_uname)) {\ 65 sec);\ 349 char *sec = "solaris.smf.modify.stmf"; in set_default_state() local 351 SRPTADM_CHKAUTH(sec); in set_default_state() 362 char *sec = "solaris.smf.modify.stmf"; in enable_target() local 364 SRPTADM_CHKAUTH(sec); in enable_target() 375 char *sec = "solaris.smf.modify.stmf"; in disable_target() local 377 SRPTADM_CHKAUTH(sec); in disable_target() 388 char *sec = "solaris.smf.modify.stmf"; in reset_target() local [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_display.c | 572 time_t sec; in getxdr_date() local 580 sec = getxdr_long(); in getxdr_date() 582 if (sec == -1) in getxdr_date() 585 if (sec < 3600 * 24 * 365) { /* assume not a date */ in getxdr_date() 586 (void) sprintf(buff, "%d.%06d", sec, usec); in getxdr_date() 588 tmp = gmtime(&sec); in getxdr_date() 612 time_t sec, nsec; in getxdr_date_ns() local 614 sec = getxdr_long(); in getxdr_date_ns() 616 if (sec == -1) in getxdr_date_ns() 619 return (format_time(sec, nsec)); in getxdr_date_ns() [all …]
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_subr.c | 121 uint_t year, month, day, hour, min, sec; in pc_tvtopct() local 160 sec = (int)unixtime; in pc_tvtopct() 163 PC_DPRINTF3(1, "ux2pc time: %dh%dm%ds\n", hour, min, sec); in pc_tvtopct() 171 ASSERT(sec < 60); in pc_tvtopct() 174 LE_16(hour << HOURSHIFT | min << MINSHIFT | (sec / 2) << SECSHIFT); in pc_tvtopct() 192 uint_t year, month, day, hour, min, sec; in pc_pcttotv() local 194 sec = 2 * ((LE_16(pctp->pct_time) >> SECSHIFT) & SECMASK); in pc_pcttotv() 213 hour > 23 || min > 59 || sec > 59) { in pc_pcttotv() 216 day, month, year, hour, min, sec); in pc_pcttotv() 222 PC_DPRINTF3(1, "pc2ux time: %dh%dm%ds\n", hour, min, sec); in pc_pcttotv() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | util_machelf.c | 121 elfedit_section_t *sec = obj_state->os_secarr; in elfedit_name_to_shndx() local 125 for (ndx = 0; ndx < shnum; ndx++, sec++) { in elfedit_name_to_shndx() 126 if (strcmp(shnam, sec->sec_name) == 0) { in elfedit_name_to_shndx() 129 EC_WORD(sec->sec_shndx), sec->sec_name, shnam); in elfedit_name_to_shndx() 157 elfedit_section_t *sec = obj_state->os_secarr; in elfedit_type_to_shndx() local 161 for (ndx = 0; ndx < shnum; ndx++, sec++) { in elfedit_type_to_shndx() 162 if (shtype == sec->sec_shdr->sh_type) { in elfedit_type_to_shndx() 165 EC_WORD(sec->sec_shndx), sec->sec_name, in elfedit_type_to_shndx() 300 elfedit_section_t *sec; in elfedit_sec_get() local 306 sec = &obj_state->os_secarr[shndx]; in elfedit_sec_get() [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | defect.c | 74 int sec, status; in read_list() local 162 for (sec = 0; ((sec < BAD_LISTCNT * 2) && (sec < nsect)); sec += 2) { in read_list() 164 (diskaddr_t)chs2bn(ncyl + acyl - 1, nhead - 1, sec), 1, in read_list() 325 int sec; in write_deflist() local 384 for (sec = 0; ((sec < BAD_LISTCNT * 2) && (sec < nsect)); sec += 2) { in write_deflist() 386 (diskaddr_t)chs2bn(ncyl + acyl - 1, nhead - 1, sec), 1, in write_deflist()
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 120 uint_t sec = startsec; in walk_partitions() local 121 uint_t lastsec = sec + 1; in walk_partitions() 128 while (sec != lastsec) { in walk_partitions() 129 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { in walk_partitions() 132 lastsec = sec; in walk_partitions() 140 relsect = sec + ltohi(ipart[i].relsect); in walk_partitions() 145 if (is_dos_extended(systid) && (sec == lastsec)) { in walk_partitions() 146 sec = startsec + ltohi(ipart[i].relsect); in walk_partitions() 148 relsect = startsec = sec; in walk_partitions()
|
/illumos-gate/usr/src/cmd/sleep/ |
H A D | sleep.c | 65 long double d, sec, frac; in main() local 134 frac = modfl(d, &sec); in main() 140 while (sec > 0 || frac != 0) { in main() 155 if (sec > (float)INT_MAX) { in main() 158 ts.tv_sec = (time_t)sec; in main() 160 sec -= ts.tv_sec; in main()
|