/macosx-10.10.1/sudo-73/src/ |
H A D | secure_path.c | 41 sudo_secure_path(path, type, uid, gid, sbp) 46 struct stat *sbp; 64 if (sbp) 65 (void) memcpy(sbp, &sb, sizeof(struct stat)); 75 sudo_secure_file(path, uid, gid, sbp) 79 struct stat *sbp; 81 return sudo_secure_path(path, _S_IFREG, uid, gid, sbp); 88 sudo_secure_dir(path, uid, gid, sbp) 92 struct stat *sbp; 94 return sudo_secure_path(path, _S_IFDIR, uid, gid, sbp); [all...] |
H A D | secure_path.h | 27 int sudo_secure_dir __P((const char *path, uid_t uid, gid_t gid, struct stat *sbp)); 28 int sudo_secure_file __P((const char *path, uid_t uid, gid_t gid, struct stat *sbp)); 29 int sudo_secure_path __P((const char *path, int type, uid_t uid, gid_t gid, struct stat *sbp));
|
H A D | goodpath.c | 45 sudo_goodpath(path, sbp) 47 struct stat *sbp; 58 if (sbp) 59 (void) memcpy(sbp, &sb, sizeof(struct stat));
|
H A D | find_path.c | 56 find_path(infile, outfile, sbp, path, ignore_dot) 59 struct stat *sbp; /* stat result parameter */ 79 if (sudo_goodpath(command, sbp)) { 111 if ((found = sudo_goodpath(command, sbp))) 126 found = sudo_goodpath(command, sbp);
|
/macosx-10.10.1/file_cmds-242/pax/ |
H A D | gen_subs.c | 86 struct stat *sbp; local 117 sbp = &(arcn->sb); 118 strmode(sbp->st_mode, f_mode); 123 if ((sbp->st_mtime + SIXMONTHS) <= now || 124 sbp->st_mtime > now) 132 if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0) 135 (void)fprintf(fp, "%s%2u %-*.*s %-*.*s ", f_mode, sbp->st_nlink, 136 NAME_WIDTH, UT_NAMESIZE, name_uid(sbp->st_uid, 1), 137 NAME_WIDTH, UT_NAMESIZE, name_gid(sbp->st_gid, 1)); 144 (void)fprintf(fp, "%4u,%4u ", MAJOR(sbp [all...] |
/macosx-10.10.1/text_cmds-88/tail/ |
H A D | forward.c | 102 forward(FILE *fp, enum STYLE style, off_t off, struct stat *sbp) argument 110 if (S_ISREG(sbp->st_mode)) { 111 if (sbp->st_size < off) 112 off = sbp->st_size; 142 if (S_ISREG(sbp->st_mode)) { 143 if (sbp->st_size >= off && 159 if (S_ISREG(sbp->st_mode)) 166 rlines(fp, off, sbp); 195 rlines(fp, off, sbp) 198 struct stat *sbp; [all...] |
H A D | reverse.c | 83 reverse(FILE *fp, enum STYLE style, off_t off, struct stat *sbp) argument 88 if (S_ISREG(sbp->st_mode)) 89 r_reg(fp, style, off, sbp); 112 r_reg(FILE *fp, enum STYLE style, off_t off, struct stat *sbp) argument 118 if (!(size = sbp->st_size))
|
/macosx-10.10.1/file_cmds-242/mv/ |
H A D | mv.c | 322 fastcopy(char *from, char *to, struct stat *sbp) argument 335 if (blen < sbp->st_blksize) { 338 if ((bp = malloc((size_t)sbp->st_blksize)) == NULL) { 343 blen = sbp->st_blksize; 368 fst.fst_length = sbp->st_size; 396 oldmode = sbp->st_mode & ALLPERMS; 397 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { 399 (u_long)sbp->st_uid, (u_long)sbp [all...] |
/macosx-10.10.1/libpcap-48/libpcap/ |
H A D | dlpisubs.c | 133 struct sb_hdr *sbp; local 166 sbp = &sbhdr; 167 memcpy(sbp, bufp, sizeof(*sbp)); 170 sbp = (struct sb_hdr *)bufp; 171 pd->stat.ps_drop = sbp->sbh_drops; 172 pk = bufp + sizeof(*sbp); 173 bufp += sbp->sbh_totlen; 174 origlen = sbp->sbh_origlen; 175 caplen = sbp [all...] |
/macosx-10.10.1/webdavfs-367/webdav_fs.kextproj/webdav_fs.kmodproj/ |
H A D | webdav_vfsops.c | 80 static int webdav_vfs_statfs(struct mount *mp, register struct vfsstatfs *sbp, struct webdav_vfsstatfs in_statfs); 542 static int webdav_vfs_statfs(struct mount *mp, register struct vfsstatfs *sbp, struct webdav_vfsstatfs in_statfs) argument 549 sbp->f_bsize = (uint32_t) S_BLKSIZE; 551 sbp->f_bsize = (uint32_t) in_statfs.f_bsize; 554 sbp->f_iosize = (uint32_t) 0x1000; /* 0x1000 is as good a size as anything */ 556 sbp->f_iosize = (uint32_t) in_statfs.f_iosize; 560 fmp->pm_iosize = sbp->f_iosize; /* save this for webdav_vfs_getattr to use */ 566 sbp->f_blocks = (uint64_t) WEBDAV_NUM_BLOCKS; 567 sbp->f_bfree = (uint64_t) WEBDAV_FREE_BLOCKS; 568 sbp 608 webdav_vfs_getattr(struct mount *mp, struct vfs_attr *sbp, vfs_context_t context) argument [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/miscfs/devfs/ |
H A D | devfs_vfsops.c | 93 static int devfs_statfs( struct mount *mp, struct vfsstatfs *sbp, vfs_context_t ctx); 270 devfs_statfs( struct mount *mp, struct vfsstatfs *sbp, __unused vfs_context_t ctx) argument 277 //sbp->f_type = mp->mnt_vfsstat.f_type; 278 sbp->f_flags = 0; /* XXX */ 279 sbp->f_bsize = 512; 280 sbp->f_iosize = 512; 281 sbp->f_blocks = (devfs_stats.mounts * sizeof(struct devfsmount) 285 ) / sbp->f_bsize; 286 sbp->f_bfree = 0; 287 sbp [all...] |
/macosx-10.10.1/Libc-1044.1.2/gen/ |
H A D | fts.c | 931 struct stat *sbp, sb; local 935 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; 940 if (sbp != &sb) { 941 memset(sbp, '\0', sizeof (*sbp)); 942 sbp->st_mode = S_IFWHT; 954 if (stat(p->fts_accpath, sbp)) { 956 if (!lstat(p->fts_accpath, sbp)) { 969 if (follow == -1 && !S_ISDIR(sbp->st_mode)) { 970 if (lstat(p->fts_accpath, sbp)) { [all...] |
/macosx-10.10.1/file_cmds-242/rm/ |
H A D | rm.c | 413 rm_overwrite(file, sbp) 415 struct stat *sbp; 423 if (sbp == NULL) { 426 sbp = &sb; 428 if (!S_ISREG(sbp->st_mode)) 440 for (len = sbp->st_size; len > 0; len -= wlen) { \
|
/macosx-10.10.1/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_syscalls.c | 5245 caddr_t sbp; local 5300 sbp = (caddr_t)&dest.user64_sb64; 5304 sbp = (caddr_t)&dest.user32_sb64; 5319 sbp = (caddr_t)&dest.user64_sb; 5323 sbp = (caddr_t)&dest.user32_sb; 5333 if ((error = copyout(sbp, ub, my_size)) != 0) 10354 void munge_user64_stat(struct stat *sbp, struct user64_stat *usbp) argument 10358 usbp->st_dev = sbp->st_dev; 10359 usbp->st_ino = sbp->st_ino; 10360 usbp->st_mode = sbp 10390 munge_user32_stat(struct stat *sbp, struct user32_stat *usbp) argument 10429 munge_user64_stat64(struct stat64 *sbp, struct user64_stat64 *usbp) argument 10469 munge_user32_stat64(struct stat64 *sbp, struct user32_stat64 *usbp) argument [all...] |
/macosx-10.10.1/file_cmds-242/touch/ |
H A D | touch.c | 376 rw(char *fname, struct stat *sbp, int force) argument 382 if (!S_ISREG(sbp->st_mode)) { 396 if (sbp->st_size != 0) { 417 if (needed_chmod && chmod(fname, sbp->st_mode) && rval != 1) {
|
/macosx-10.10.1/msdosfs-209.1.1/msdosfs.kextproj/msdosfs.kmodproj/ |
H A D | msdosfs_vfsops.c | 1056 int msdosfs_vfs_statfs(struct mount *mp, struct vfsstatfs *sbp, vfs_context_t context) argument 1069 sbp->f_bfree = pmp->pm_freeclustercount; 1070 sbp->f_bavail = pmp->pm_freeclustercount; 1071 sbp->f_bused = sbp->f_blocks - sbp->f_bavail; 1072 sbp->f_files = pmp->pm_RootDirEnts; /* XXX */ 1073 sbp->f_ffree = 0; /* what to put in here? */ 1074 vfs_name(mp, sbp->f_fstypename); 1082 sbp [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/kern/ |
H A D | proc_info.c | 175 static void munge_vinfo_stat(struct stat64 *sbp, struct vinfo_stat *vsbp); 2368 munge_vinfo_stat(struct stat64 *sbp, struct vinfo_stat *vsbp) argument 2372 vsbp->vst_dev = sbp->st_dev; 2373 vsbp->vst_mode = sbp->st_mode; 2374 vsbp->vst_nlink = sbp->st_nlink; 2375 vsbp->vst_ino = sbp->st_ino; 2376 vsbp->vst_uid = sbp->st_uid; 2377 vsbp->vst_gid = sbp->st_gid; 2378 vsbp->vst_atime = sbp->st_atimespec.tv_sec; 2379 vsbp->vst_atimensec = sbp [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/sys/ |
H A D | stat.h | 305 extern void munge_user64_stat(struct stat *sbp, struct user64_stat *usbp); 306 extern void munge_user32_stat(struct stat *sbp, struct user32_stat *usbp); 373 extern void munge_user64_stat64(struct stat64 *sbp, struct user64_stat64 *usbp); 374 extern void munge_user32_stat64(struct stat64 *sbp, struct user32_stat64 *usbp);
|
/macosx-10.10.1/ICU-531.30/icuSources/data/coll/ |
H A D | collocal.mk | 24 sa.txt saq.txt sbp.txt scn.txt se.txt\
|
/macosx-10.10.1/file_cmds-242/install/ |
H A D | xinstall.c | 629 create_newfile(path, target, sbp) 632 struct stat *sbp; 642 if (sbp->st_flags & NOCHANGEBITS) 643 (void)chflags(path, sbp->st_flags & ~NOCHANGEBITS);
|
/macosx-10.10.1/Heimdal-398.1.2/appl/telnet/telnet/ |
H A D | telnet.c | 1589 unsigned char *sbp = NULL; local 1602 sbp = netiring.consume; 1610 c = *sbp++ & 0xff, scc--; count++; 1643 c = *sbp&0xff; 1649 sbp++, scc--; count++; 1654 sbp++, scc--; count++;
|
/macosx-10.10.1/file_cmds-242/gzip/ |
H A D | gzip.c | 1092 copymodes(int fd, const struct stat *sbp, const char *file) argument 1101 if (sbp == NULL) { 1108 sb = *sbp; 1938 handle_file(char *file, struct stat *sbp) argument 1952 gsize = sbp->st_size; 1957 usize = sbp->st_size;
|
/macosx-10.10.1/remote_cmds-47/telnet.tproj/ |
H A D | telnet.c | 1658 unsigned char *sbp = NULL; 1671 sbp = netiring.consume; 1679 c = *sbp++ & 0xff, scc--; count++; 1712 c = *sbp&0xff; 1718 sbp++, scc--; count++; 1723 sbp++, scc--; count++; 1653 unsigned char *sbp = NULL; local
|
/macosx-10.10.1/lsof-53/lsof/ |
H A D | proc.c | 489 int sbp = 0; local 504 sbp = 1; 508 if (Lp->pss && Npid == 1 && sbp) { 527 return((sbp && Npuns == 0) ? 1 : 0);
|
H A D | proto.h | 76 _PROTOTYPE(extern int ck_file_arg,(int i, int ac, char *av[], int fv, int rs, struct stat *sbp));
|