Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/common/crypto/arcfour/sun4u/
H A Darcfour_crypt_asm.S90 stb %o3, [%i5+%o2]
93 stb %o4, [%i5 + %o1]
104 stb %g3, [%i5 + %g2]
108 stb %g4, [%i5 + %g1]
129 stb %o3, [%i5+%o2]
132 stb %o4, [%i5 + %o1]
143 stb %g3, [%i5 + %g2]
147 stb %g4, [%i5 + %g1]
169 stb %o3, [%i5+%o2]
172 stb %o4, [%i5 + %o1]
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c316 struct stat stb; in sendf() local
330 if ((opts & FOLLOW ? stat(target, &stb) : lstat(target, &stb)) < 0) { in sendf()
339 if ((u = update(rname, opts, &stb)) == 0) { in sendf()
340 if ((stb.st_mode & S_IFMT) == S_IFREG && stb.st_nlink > 1) in sendf()
341 (void) savelink(&stb, opts); in sendf()
345 if (pw == NULL || pw->pw_uid != stb.st_uid) in sendf()
346 if ((pw = getpwuid(stb.st_uid)) == NULL) { in sendf()
348 target, stb.st_uid); in sendf()
350 sprintf(user, ":%d", stb.st_uid); in sendf()
352 if (gr == NULL || gr->gr_gid != stb.st_gid) in sendf()
[all …]
H A Ddocmd.c506 struct stat stb; in dodcolon() local
515 if (stat(stamp, &stb) < 0) { in dodcolon()
520 printf("%s: %d\n", stamp, stb.st_mtime); in dodcolon()
523 lastmod = stb.st_mtime; in dodcolon()
563 struct stat stb; in cmptime() local
586 if (access(name, 4) < 0 || stat(name, &stb) < 0) { in cmptime()
591 switch (stb.st_mode & S_IFMT) { in cmptime()
596 rcmptime(&stb); in cmptime()
604 if (stb.st_mtime > lastmod) in cmptime()
657 struct stat stb; in notify() local
[all …]
/illumos-gate/usr/src/ucbcmd/biff/
H A Dbiff.c56 struct stat stb; in main() local
73 if (stat(cp, &stb) < 0) in main()
77 stb.st_mode&0100 ? gettext("y") : gettext("n")); in main()
78 exit((stb.st_mode&0100) ? 0 : 1); in main()
83 if (chmod(cp, stb.st_mode|0100) < 0) in main()
88 if (chmod(cp, stb.st_mode&~0100) < 0) in main()
95 return ((stb.st_mode&0100) ? 0 : 1); in main()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dscandir.c77 struct stat64 stb; in scandir64() local
83 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir64()
90 arraysz = (stb.st_size / 24); in scandir64()
116 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir64()
118 arraysz = stb.st_size / 12; in scandir64()
144 struct stat64 stb; in scandir() local
150 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir()
156 if (stb.st_size > SSIZE_MAX) { in scandir()
160 arraysz = (stb.st_size / 24); in scandir()
186 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir()
[all …]
/illumos-gate/usr/src/ucbcmd/ln/
H A Dln.c25 struct stat stb; variable
56 if (stat(argv[argc-1], &stb) < 0) in main()
58 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
82 if (sflag == 0 && fflag == 0 && stat(from, &stb) >= 0 && in linkit()
83 (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
87 if (stat(to, &stb) >= 0 && (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c693 struct stat stb; local
722 sff, smode, &stb);
725 sff, smode, &stb);
731 if (stb.st_mode == ST_MODE_NOFILE && bitset(SFF_CREAT, sff))
749 if (filechanged(fn, fd, &stb))
864 filechanged(fn, fd, stb) in filechanged() argument
867 struct stat *stb;
871 if (stb->st_mode == ST_MODE_NOFILE)
875 if (lstat(fn, stb) < 0 || stb->st_nlink != 1)
884 if (sta.st_nlink != stb->st_nlink ||
[all …]
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dstrcpy.S75 stb %o5, [%o2] ! dst[0] = src[0]
87 stb %o4, [%o2] ! store first byte
89 stb %o5, [%o2 + 1] ! store second byte
101 stb %o4, [%o2] ! store first byte
105 stb %o4, [%o2 + 1] ! store second byte
109 stb %o4, [%o2 + 2] ! store third byte
111 stb %o5, [%o2 + 3] ! store fourth byte
147 stb %o3, [%o2 - 8] ! store first byte
152 stb %o3, [%o2 - 7] ! store second byte
157 stb %o3, [%o2 - 6] ! store third byte
[all …]
H A Dstrncpy.S79 stb %o1, [%o2 + %g4] ! dst[] = src[]
125 stb %g1, [%o3] ! store it
129 stb %g1, [%o3 + 1] ! store it
133 stb %g1, [%o3 + 2] ! store it
137 stb %g1, [%o3 + 3] ! store it
141 stb %g1, [%o3 + 4] ! store it
145 stb %g1, [%o3 + 5] ! store it
149 stb %g1, [%o3 + 6] ! store it
152 stb %o1, [%o3 + 7] ! store eighth byte
164 stb %g0, [%o3] ! dst[] = 0
[all …]
H A Dstrlcpy.S122 stb %g1, [%i2] ! store it
127 stb %g1, [%i2] ! store it
132 stb %g1, [%i2] ! store it
137 stb %g1, [%i2] ! store it
142 stb %g1, [%i2] ! store it
147 stb %g1, [%i2] ! store it
152 stb %g1, [%i2] ! store it
153 stb %l1, [%i2 + 1] ! store eigth byte
176 stb %g1, [%i2] ! store it
183 stb %g1, [%i2] ! store it
[all …]
H A Dmemcpy.S71 stb %o3, [%g5] ! move a byte to align src
81 stb %o4, [%g5] ! have to do bytes,
82 stb %o3, [%g5 + 1] ! don't know dst alingment
/illumos-gate/usr/src/cmd/du/
H A Ddu.c284 struct stat stb, stb1; in descend() local
311 i = fstatat(curfd, curname, &stb, 0); in descend()
322 i = fstatat(curfd, curname, &stb, AT_SYMLINK_NOFOLLOW); in descend()
341 if (dflg && stb.st_dev != device) { in descend()
347 device = stb.st_dev; in descend()
362 if (Lflg || ((stb.st_mode & S_IFMT) == S_IFDIR) || in descend()
363 (stb.st_nlink > 1)) { in descend()
365 if ((rc = add_tnode(&tree, stb.st_dev, stb.st_ino)) != 1) { in descend()
384 blocks = Aflg ? stb.st_size : stb.st_blocks; in descend()
393 ((stb.st_mode & S_IFMT) != S_IFLNK)) && in descend()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyname.c361 struct stat64 stb; in ispts() local
366 if (stat64(buf, &stb) != 0) in ispts()
370 if (stb.st_rdev == fsb->st_rdev) in ispts()
372 } else if (stb.st_rdev == fsb->st_rdev && stb.st_dev == fsb->st_dev && in ispts()
373 stb.st_ino == fsb->st_ino) in ispts()
388 struct stat64 stb; in ispty() local
392 if (ptsldev == NODEV && stat64("/dev/ttyp0", &stb) == 0) in ispty()
393 ptsldev = stb.st_rdev; in ispty()
403 if (ptcdev == NODEV && stat64("/dev/ptyp0", &stb) == 0) in ispty()
404 ptcdev = stb.st_rdev; in ispty()
[all …]
H A Dscandir.c79 struct stat64 stb; in scandir64() local
85 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir64()
92 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */ in scandir64()
164 struct stat64 stb; in scandir() local
170 if (fstat64(dirp->dd_fd, &stb) < 0) in scandir()
177 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */ in scandir()
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c333 struct stat stb, stb1; in gstat() local
335 if ((*statf)(file, &stb) < 0) { in gstat()
336 if (statf == lstat || lstat(file, &stb) < 0) { in gstat()
347 fp->fblks = stb.st_blocks; in gstat()
348 fp->fsize = stb.st_size; in gstat()
349 switch (stb.st_mode & S_IFMT) { in gstat()
355 fp->ftype = 'b'; fp->fsize = (off_t)stb.st_rdev; break; in gstat()
357 fp->ftype = 'c'; fp->fsize = (off_t)stb.st_rdev; break; in gstat()
409 stb = stb1; in gstat()
411 fp->fsize = stb.st_size; in gstat()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c278 struct stat stb, stl; in notify() local
287 if (stat(tty, &stb) == -1) { in notify()
291 if ((stb.st_mode & 0100) == 0) { in notify()
338 if (fstat(fd, &stb) != 0 || stb.st_uid != pwd->pw_uid) { in notify()
370 if (fstat(mbox, &stb) == -1 || lstat(name, &stl) == -1) { in notify()
380 stl.st_dev != stb.st_dev || in notify()
381 stl.st_ino != stb.st_ino || in notify()
383 stb.st_nlink != 1) { in notify()
388 timep[0] = stb.st_atime; in notify()
389 timep[1] = stb.st_mtime; in notify()
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dstrcpy.S74 stb %o1, [%o2] ! store first byte
85 stb %o4, [%o2] ! store first byte
88 stb %o1, [%o2 + 1] ! store second byte
114 stb %o3, [%o2 - 4] ! store first byte
119 stb %o3, [%o2 - 3] ! store second byte
124 stb %o3, [%o2 - 2] ! store third byte
125 stb %o1, [%o2 - 1] ! store fourth byte
144 stb %g1, [%o2 - 4] ! store first byte; half-word aligned now
148 stb %o1, [%o2 - 1] ! store fourth byte
H A Dstrncpy.S83 stb %i1, [%i2 + %i4] ! dst[] = src[]
118 stb %g1, [%l0] ! store it
123 stb %g1, [%l0 + 1] ! store it
129 stb %g1, [%l0 + 2] ! store it
134 stb %i1, [%l0 + 3] ! store fourth byte
146 stb %g0, [%l0] ! dst[] = 0
211 stb %g1, [%i2 + %i4] ! store it
227 stb %i1, [%i2 + %i4] ! store fourth byte
243 stb %g1, [%l0] ! store first byte
247 stb %i1, [%l0 + 3] ! store fourth byte
[all …]
H A Dstrlcpy.S103 stb %g1, [%i2] ! store byte
108 stb %g1, [%i2] ! store byte
113 stb %g1, [%i2] ! store byte
114 stb %l1, [%i2 + 1] ! store last byte
130 stb %g1, [%i2] ! store byte
137 stb %g1, [%i2] ! store
144 stb %g1, [%i2] ! store
150 stb %l1, [%i2]
153 stb %g0, [%i2]
192 stb %g1, [%l0]
[all …]
H A Dmemcpy.S67 stb %o3, [%o0] ! move a byte to align src
77 stb %o4, [%o0] ! have to do bytes,
78 stb %o3, [%o0 + 1] ! don't know dst alingment
/illumos-gate/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c733 struct stat stb; in parse_contents() local
750 if (fstat(cnt, &stb) != 0) { in parse_contents()
754 if (stb.st_size == 0) { in parse_contents()
759 map = mmap(0, stb.st_size, PROT_READ, MAP_PRIVATE, cnt, 0); in parse_contents()
764 (void) madvise(map, stb.st_size, MADV_WILLNEED); in parse_contents()
766 for (off = 0; off < stb.st_size; off += q - p) { in parse_contents()
768 q = memchr(p, '\n', stb.st_size - off); in parse_contents()
826 (void) munmap(map, stb.st_size); in parse_contents()
829 if (cntserrs > 0 && stb.st_nlink == 1) { in parse_contents()
848 struct stat stb; in parse_log() local
[all …]
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c71 struct stat stb; in main() local
140 if (stat(dirname, &stb) < 0) { in main()
144 if ((stb.st_mode&S_IFMT) != S_IFDIR) { in main()
148 mode = (mode & ~S_ISGID) | (stb.st_mode & S_ISGID); in main()
174 if (stat(argv[argc-1], &stb) < 0) in main()
176 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Druserpass.c86 struct stat stb; in rnetrc() local
135 if (fstat(fileno(cfile), &stb) >= 0 && in rnetrc()
136 (stb.st_mode & 077) != 0) { in rnetrc()
153 if (fstat(fileno(cfile), &stb) >= 0 && in rnetrc()
154 (stb.st_mode & 077) != 0) { in rnetrc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c999 struct stat stb; in verifydir() local
1001 if (stat(cp, &stb) >= 0) { in verifydir()
1002 if ((stb.st_mode & S_IFMT) == S_IFDIR) in verifydir()
1144 struct stat stb; in source() local
1159 if (fstat(f, &stb) < 0) in source()
1161 switch (stb.st_mode&S_IFMT) { in source()
1169 rsource(name, &stb); in source()
1192 mtime = stb.st_mtime; in source()
1193 atime = stb.st_atime; in source()
1218 (uint_t)(stb.st_mode & 07777), (longlong_t)stb.st_size, in source()
[all …]
/illumos-gate/usr/src/lib/libc/capabilities/sun4u-opl/common/
H A Dmemcpy.S102 stb %o3, [%o0-1] ! store last byte
105 stb %o3, [%o0-2] ! store 2nd from last byte
108 stb %o3, [%o0+1] ! store 3rd from last byte
112 stb %o3, [%o0] ! store 4th from last byte
122 stb %o3, [%o0] ! write byte
140 stb %o3, [%o0] ! store a byte
304 stb %o3, [%o0-1] ! store last byte
307 stb %o3, [%o0-2] ! store 2nd from last byte
310 stb %o3, [%o0+1] ! store 3rd from last byte
313 stb %o3, [%o0] ! store 4th from last byte
[all …]

1234