/titanic_44/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 48 static void scandisk(char *device, int devfd, int writeflag); 71 int devfd; /* device file descriptor */ in main() local 129 if ((devfd = open(device, O_RDWR)) == -1) { in main() 136 if ((ioctl(devfd, DKIOCGGEOM, &dkg)) == -1) { in main() 143 if ((ioctl(devfd, DKIOCEXTPARTINFO, &extpartinfo)) == 0) { in main() 147 if ((ioctl(devfd, DKIOCPARTINFO, &part_info)) == 0) { in main() 158 scandisk(device, devfd, do_scan); in main() 169 scandisk(char *device, int devfd, int writeflag) in scandisk() argument 182 if ((ioctl(devfd, DKIOCGMEDIAINFO, &mediainfo)) == 0) { in scandisk() 252 if (llseek(devfd, cursec * sector_size, 0) == -1) { in scandisk() [all …]
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 223 int c, lock = -1, devfd = -1, err = 0, rw = -1, ns = -1, set = 0; local 318 devfd = opendevice(NULL); 321 devfd = opendevice(IPSTATE_NAME); 323 devfd = opendevice(IPNAT_NAME); 325 if (devfd == -1) 330 err = setlock(devfd, lock); 337 err = writenat(devfd, filename); 339 err = writestate(devfd, filename); 346 err = readnat(devfd, filename); 348 err = readstate(devfd, filename); [all …]
|
/titanic_44/usr/src/cmd/addbadsec/ |
H A D | addbadsec.c | 56 int devfd; /* device file descriptor */ variable 163 if ((devfd = open(devname, O_RDWR)) == -1) { in main() 169 if ((ioctl(devfd, DKIOCGGEOM, &dkg)) == -1) { in main() 176 if (ioctl(devfd, DKIOCGEXTVTOC, &vtoc) == -1) { in main() 254 if (ioctl(devfd, DKIOCADDBAD, NULL) == -1) { in main() 264 (void) close(devfd); in main() 282 if (devfd) in giveusage() 283 (void) close(devfd); in giveusage() 375 if (ioctl(devfd, USCSICMD, &ucmd) == -1)
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 186 int opt, devfd, muxfd, muxid; in plumb_it() local 234 if ((devfd = (*prot->attach)(prot, linkname, &adata)) < 0) in plumb_it() 249 if (ioctl(devfd, I_PUSH, PPP_TUN_NAME) == -1) { in plumb_it() 267 if (strioctl(devfd, PPPTUN_SNAME, pti.pti_name, in plumb_it() 281 if (strioctl(devfd, PPPTUN_LCLADDR, &adata.localaddr, adata.locallen, in plumb_it() 290 if (strioctl(devfd, PPPTUN_SSAP, &adata.sap, sizeof (adata.sap), 0, in plumb_it() 297 if ((muxid = ioctl(muxfd, I_PLINK, devfd)) == -1) { in plumb_it()
|
/titanic_44/usr/src/uts/common/exec/shbin/ |
H A D | shbin.c | 174 char devfd[19]; /* 32-bit int fits in 10 digits + 8 for "/dev/fd/" */ in shbinexec() local 241 (void) strcpy(devfd, "/dev/fd/"); in shbinexec() 244 numtos(fd, &devfd[8]); in shbinexec() 245 args->fname = devfd; in shbinexec()
|
/titanic_44/usr/src/uts/common/exec/intp/ |
H A D | intp.c | 181 char devfd[19]; /* 32-bit int fits in 10 digits + 8 for "/dev/fd/" */ in intpexec() local 223 (void) strcpy(devfd, "/dev/fd/"); in intpexec() 226 numtos(fd, &devfd[8]); in intpexec() 227 args->fname = devfd; in intpexec()
|
/titanic_44/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 117 int devfd, err; in main() local 163 if ((devfd = open("/dev", O_RDONLY)) < 0) { in main() 168 if (fstatat(devfd, entryx.ut_line, &stat_arg, 0) < 0) { in main() 169 (void) close(devfd); in main() 182 if (fstatat(devfd, rutmpx->ut_line, &stat_db, 0) < 0) in main() 192 (void) close(devfd); in main()
|
/titanic_44/usr/src/uts/common/sys/fs/ |
H A D | smbfs_mount.h | 72 int devfd; /* file descriptor */ member 89 int32_t devfd; /* file descriptor */ member
|
/titanic_44/usr/src/cmd/fs.d/ |
H A D | fsck.c | 220 int devfd; in main() local 475 if (((devfd = open(vref.vfs_fsckdev, in main() 476 O_RDWR)) >= 0) && (ioctl(devfd, in main() 488 (void) close(devfd); in main() 493 if (devfd >= 0) { in main() 494 (void) close(devfd); in main()
|
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vfsops.c | 345 int devfd; in smbfs_mount() local 408 devfd = STRUCT_FGET(args, devfd); in smbfs_mount() 409 error = smb_dev2share(devfd, &ssp); in smbfs_mount() 412 devfd, error); in smbfs_mount()
|
/titanic_44/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 85 static const char devfd[] = "/dev/fd/10"; /* must match FDIN above */ variable 244 argv[1] = (char*)devfd; in main()
|
H A D | xec.c | 2895 char *arglist[2], *envlist[2], devfd[12], *cp; in run_subshell() local 2902 arglist[1] = devfd; in run_subshell() 2903 strncpy(devfd,e_devfdNN,sizeof(devfd)); in run_subshell() 2940 cp = devfd+8; in run_subshell() 3203 char *devfd; in sh_ntfork() local 3211 if(stat(devfd=sfstruse(sh.strbuf),&statb)>=0) in sh_ntfork() 3212 argv[0] = devfd; in sh_ntfork()
|
/titanic_44/usr/src/lib/libshell/common/features/ |
H A D | poll | 74 int devfd;
|
/titanic_44/usr/src/cmd/fs.d/smbclnt/mount/ |
H A D | mount.c | 377 mdata.devfd = ctx->ct_dev_fd; in main()
|
/titanic_44/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 1289 calcsb(calcsb_t style, caddr_t dev, int devfd, struct fs *fs) in calcsb() argument 1359 size = getdisksize(dev, devfd); in calcsb()
|