Searched refs:fd (Results 501 - 525 of 835) sorted by relevance

<<21222324252627282930>>

/osnet-11/usr/src/lib/brand/shared/brand/common/
H A Dbrand_util.c282 int fd, fd_new; local
287 if ((fd = fileno(file)) < 0)
294 fd_new = fcntl(fd, F_DUPFD, 0);
299 (void) dup2(fd_new, fd);
/osnet-11/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.h47 int fd; member in struct:mtest_handle
/osnet-11/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c50 if (a->fd == -1 || a->ctl == NULL)
60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl);
62 if (ioctl(a->fd, SBD_CMD_GETNCM, ctl) == -1) {
80 int fd; local
95 if (a->fd == -1) {
101 if ((fd = open(a->path, oflag, 0)) == -1) {
105 a->fd = fd;
107 fd = a->fd;
[all...]
/osnet-11/usr/src/lib/libc/inc/
H A Dstdiom.h176 * Macros to aid the extended fd FILE work.
182 #define SET_FILE(iop, fd) ((iop)->_file = (fd))
186 #define SET_FILE(iop, fd) (iop)->_magic = (fd); (iop)->__extendedfd = 0
/osnet-11/usr/src/lib/libc/port/gen/
H A Dselect.c106 * For each fd, if any bits are set convert them into
116 p->fd = n + j;
117 if (p->fd >= nfds)
175 * select will return EBADF immediately if any fd's
177 * rest of the fd's and include the error indication
216 j = (int)(p->fd / NFDBITS);
236 m = 1L << (p->fd % NFDBITS);
H A Dselect_large_fdset.c133 * For each fd, if any bits are set convert them into
150 p->fd = n + j;
151 if (p->fd < nfds) {
222 * select will return EBADF immediately if any fd's
224 * rest of the fd's and include the error indication
265 j = (int)(p->fd / NFDBITS);
285 m = 1L << (p->fd % NFDBITS);
H A Dsyslog.c117 -1, /* fd for log */
123 FALSE, /* check for validity of fd for log */
363 int fd; local
370 if (((fd = open(sysmsg, O_WRONLY)) >= 0) ||
371 (fd = open(ctty, O_WRONLY)) >= 0) {
374 (void) write(fd, outline, clen);
375 (void) close(fd);
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.h80 int soft_keystore_unlock_object(int fd);
/osnet-11/usr/src/lib/sun_fc/common/
H A DHBA.h82 static void _ioctl(int fd, int type, uchar_t *arg);
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dpath.c537 register int fd= -1; local
554 if((fd = sh_open(path_relative(shp,stakptr(PATH_OFFSET)),O_RDONLY,0)) >= 0)
556 if(fstat(fd,&statb)<0 || S_ISDIR(statb.st_mode))
559 sh_close(fd);
560 fd = -1;
564 while( fd<0 && pp);
565 if(fd>=0 && (fd = sh_iomovefd(fd)) > 0)
567 fcntl(fd,F_SETF
901 register int fd=0; local
1372 int fd; local
1476 int k,m,n,fd; local
[all...]
/osnet-11/usr/src/lib/libnsl/dial/
H A Dsysfiles.c655 pop_push(int fd) argument
665 if (ioctl(fd, I_LOOK, onstream) == -1) {
666 DEBUG(5, "pop_push: I_LOOK on fd %d failed ", fd);
676 if (ioctl(fd, I_POP, 0) == -1) {
677 DEBUG(5, "pop_push: I_POP on fd %d failed ", fd);
686 if (ioctl(fd, I_PUSH, strmod) == -1) {
687 DEBUG(5, "pop_push: I_PUSH on fd %d failed ", fd);
[all...]
/osnet-11/usr/src/lib/fm/libseslog/common/
H A Dlibseslog.c57 int fd; local
59 fd = open(device_name, oflags);
60 if (fd < 0)
61 fd = -errno;
62 return (fd);
118 do_scsi_pt(struct uscsi_cmd *uscsi, int fd, int time_secs) argument
123 if (ioctl(fd, USCSICMD, uscsi)) {
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_getdevs.c370 int fd, /* fd for named device */
380 if ((part = read_extvtoc(fd, vtocbufp)) < 0) {
383 if (ioctl(fd, MHIOCSTATUS, NULL) == 1)
415 int fd, /* fd for named device */
446 if (ioctl(fd, DKIOCSVTOC, (caddr_t)mdvtocp) == -1) {
458 int fd, /* fd for named device */
467 if ((part = write_extvtoc(fd, vtocbuf
369 meta_getvtoc( int fd, char *devname, struct extvtoc *vtocbufp, int *partno, md_error_t *ep ) argument
414 meta_setmdvtoc( int fd, char *devname, mdvtoc_t *mdvtocp, md_error_t *ep ) argument
457 meta_setvtoc( int fd, char *devname, struct extvtoc *vtocbufp, md_error_t *ep ) argument
[all...]
H A Dmeta_set_tkr.c326 int fd = -1; local
363 if ((fd = open(rsp->rname, O_RDWR)) < 0)
377 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0)
380 if (read(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
394 meta_mkdummymaster(sp, fd, 16);
447 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET)
451 if (write(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
457 (void) close(fd);
463 if (fd != -1)
464 (void) close(fd);
621 int fd = -1; local
[all...]
/osnet-11/usr/src/lib/libpp/common/
H A Dppinput.c105 cur->fd = n;
158 cur->fd = -1;
163 if (lseek(cur->fd, 0L, SEEK_END) > 0 && !lseek(cur->fd, 0L, SEEK_SET))
167 if (!(pp.option & NOPROTO) && !(pp.test & TEST_noproto) && ((pp.state & (COMPATIBILITY|TRANSITION)) == COMPATIBILITY || (pp.option & PLUSPLUS) || (pp.mode & EXTERNALIZE)) && (cur->buffer = pppopen(NiL, cur->fd, NiL, NiL, NiL, NiL, (PROTO_HEADER|PROTO_RETAIN)|(((pp.mode & EXTERNALIZE) || (pp.option & PROTOTYPED)) ? PROTO_FORCE : PROTO_PASS)|((pp.mode & EXTERNALIZE) ? PROTO_EXTERNALIZE : 0)|((pp.mode & MARKC) ? PROTO_PLUSPLUS : 0))))
172 cur->fd = -1;
501 pp.in->fd = pppdrop(pp.in->buffer + PPBAKSIZ);
503 if (pp.in->fd >= 0)
505 if (!(sp = sfnew(NiL, NiL, SF_UNBOUND, pp.in->fd, SF_READ)))
704 pp.in->fd
[all...]
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/
H A Ddhcptab.c59 int fd; local
75 retval = open_file(dtpath, flags, &fd);
80 (void) close(fd);
479 * Write the dt_rec_t pointed to by `recp' into the open container `fd' at
483 write_rec(int fd, dt_rec_t *recp, off_t recoff) argument
501 if (pnwrite(fd, ent, entlen, recoff) == -1)
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c376 int ret, fd; local
384 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,
386 if (fd < 0)
388 set_cloexec_fd(fd);
390 if ((db->lock->lockfile = fdopen(fd, "w+F")) == NULL)
/osnet-11/usr/src/lib/crypt_modules/sha256/
H A Dcrypt_sha.c363 int fd; local
391 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
395 got = read(fd, &rndval, sizeof (rndval));
398 (void) close(fd);
402 (void) close(fd);
/osnet-11/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c173 int fd; local
199 if ((fd = open("/dev/random", O_RDONLY)) == -1) {
203 got = read(fd, &rndval, sizeof (rndval));
207 (void) close(fd);
211 (void) close(fd);
/osnet-11/usr/src/lib/storage/libg_fc/common/
H A Dhot.c220 int fd, err = 0, i = 0, pathcnt = 0; local
313 if ((fd = g_object_open(nexus_path,
324 if (ioctl(fd, FCIO_FORCE_LIP) != 0) {
326 (void) close(fd);
329 (void) close(fd);
/osnet-11/usr/src/lib/libpkg/common/
H A Dkeystore.c2117 int fd; local
2120 fd = open(dest, O_RDWR|O_NONBLOCK);
2121 if (fd == -1) {
2128 if ((fstat(fd, &buf) == -1) || !S_ISREG(buf.st_mode)) {
2130 (void) close(fd);
2136 if (ftruncate(fd, 0) == -1) {
2137 (void) close(fd);
2143 (void) close(fd);
2182 int fd; local
2187 if ((fd
2260 int fd; local
2309 file_lock(int fd, int type, int wait) argument
2336 file_lock_test(int fd, int type) argument
2365 file_unlock(int fd) argument
[all...]
/osnet-11/usr/src/lib/libc/port/rt/
H A Dmqueue.c452 int fd; local
482 if ((fd = __pos4obj_open(path, MQ_PERM_TYPE, oflag,
487 (void) __close_nc(fd);
523 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
530 if (fchmod(fd, mode) < 0)
533 if (ftruncate64(fd, (off64_t)total_size) < 0)
536 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
542 if (read(fd, &total_size, sizeof (total_size)) !=
562 MAP_SHARED, fd, (off64_t)0)) == MAP_FAILED)
568 (void) __close_nc(fd);
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/
H A DPing.pm1144 foreach my $fd (keys %{ $self->{"syn"} }) {
1145 my $entry = $self->{"syn"}->{$fd};
1147 $host_fd = $fd;
1171 my $fd = 0;
1174 if (vec($wout, $fd, 1)) {
1176 vec($wout, $fd, 1) = 0;
1177 if (my $entry = $self->{"syn"}->{$fd}) {
1179 $winner_fd = $fd;
1184 $fd++;
1189 $fd
[all...]
/osnet-11/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb2.c258 smdb2_fd(database, fd)
260 int *fd;
264 return db2_error_to_smdb(db->fd(db, fd));
327 int fd; local
331 result = db->fd(db, &fd);
335 result = fchown(fd, uid, gid);
651 result = db->fd(db, &db_fd);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/IO/
H A DIO.xs243 fds[j].fd = SvIV(ST(i));
251 sv_setiv(ST(i), fds[j].fd); i++;
446 int fd;
449 fd = PerlIO_fileno(sock);
451 RETVAL = sockatmark(fd);
457 if (ioctl(fd, SIOCATMARK, (void*)&flag) != 0)
459 if (ioctl(fd, SIOCATMARK, &flag) != 0)

Completed in 73 milliseconds

<<21222324252627282930>>