/osnet-11/usr/src/lib/fm/libseslog/common/ |
H A D | libseslog.c | 57 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/fm/topo/modules/i86pc/chip/common/ |
H A D | chip.c | 726 int fd = open("/dev/xen/domcaps", O_RDONLY); local 728 if (fd != -1) { 729 if (read(fd, buf, sizeof (buf)) <= 0 || 731 (void) close(fd); 734 (void) close(fd);
|
H A D | chip_amd.c | 318 int fd, err; local 321 fd = open(path, O_RDONLY); 323 if (fd == -1) { 332 fd = open(path, O_RDONLY); 335 if (fd == -1) 338 if (ioctl(fd, MC_IOC_SNAPSHOT_INFO, &mcs) == -1 || 340 ioctl(fd, MC_IOC_SNAPSHOT, buf) == -1) { 347 (void) close(fd); 351 (void) close(fd);
|
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/ |
H A D | x86pi_subr.c | 575 int fd; local 589 fd = open("/dev/fm", O_RDONLY); 590 if (fd < 0) { 610 rv = ioctl(fd, FM_IOC_GENTOPO_LEGACY, &fid); 614 (void) close(fd); 617 (void) close(fd);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | db.h | 111 int (*fd) __P((const struct __db *)); member in struct:__db
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_solaris.c | 1009 int err = 0, fd; local 1034 fd = open(*filenames, O_RDWR|O_CREAT|O_NOFOLLOW|O_NOLINKS, mode); 1035 if (fd < 0) { 1040 close(fd);
|
/osnet-11/usr/src/lib/krb5/kdb/ |
H A D | kdb_log.c | 47 static int extend_file_to(int fd, uint_t new_size); 552 * closing of the fd are implicitly performed by the caller. 914 static int extend_file_to(int fd, uint_t new_size) argument 919 current_offset = lseek(fd, 0, SEEK_END); 931 wrote_size = write(fd, zero, write_size);
|
/osnet-11/usr/src/grub/grub2/grub-core/disk/ |
H A D | geli.c | 213 int fd = open (dev, O_RDONLY); local 221 if (fd < 0) 224 s = grub_util_get_fd_sectors (fd, &log_secsize); 225 grub_util_fd_seek (fd, dev, (s << log_secsize) - 512); 228 if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
|
/osnet-11/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 142 int fd; local 146 fd = open (map[drive], O_RDONLY); 147 assert (fd >= 0); 150 fd = geom->flags; 161 if (ioctl (fd, HDIO_GETGEO, &hdg)) 164 if (ioctl (fd, BLKGETSIZE, &nr)) 185 if(ioctl (fd, DIOCGSECTORSIZE, §or_size) != 0) 188 if (ioctl (fd, DIOCGMEDIASIZE, &media_size) != 0) 193 if (ioctl (fd, DIOCGFWSECTORS, &tmp) == 0) 197 if (ioctl (fd, DIOCGFWHEAD 874 int fd; local [all...] |
/osnet-11/usr/src/cmd/sendmail/db/include/ |
H A D | mp.h | 88 (void)__db_mutex_lock(mutexp, (dbmp)->reginfo.fd) 91 (void)__db_mutex_unlock(mutexp, (dbmp)->reginfo.fd) 96 (dbmp)->reginfo.fd) 100 (dbmp)->reginfo.fd) 104 (void)__db_mutex_lock(&(bhp)->mutex, (dbmp)->reginfo.fd) 107 (void)__db_mutex_unlock(&(bhp)->mutex, (dbmp)->reginfo.fd) 165 int fd; /* Underlying file descriptor. */ member in struct:__db_mpoolfile
|
/osnet-11/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 50 int fd = WR_PIPE; \ 51 if (write(fd, &evt, sizeof(evt)) != sizeof(evt)) \ 224 ** fd -- file descriptor 232 nonblocking(int fd, const char *name) argument 237 r = fcntl(fd, F_GETFL, 0); 245 r = fcntl(fd, F_SETFL, r | O_NONBLOCK); 347 #define WAIT_FD(i) (pfd[i].fd) 438 pfd[nfd].fd = RD_PIPE; 488 pfd[nfd].fd = ctx->ctx_sd; 556 ("PIPE DONE READ i=[%d] fd [all...] |
/osnet-11/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 128 hsfs_contents(int fd, off_t probe_offset, LibHalContext *ctx, const char *udi) argument 144 if (pread (fd, buf, secsz, readoff) != secsz) { 152 if (pread (fd, buf, secsz, readoff) != secsz) { 171 if (pread (fd, buf, secsz, readoff) != secsz) { 183 if (pread (fd, buf, secsz, readoff) != secsz) { 218 probe_disc (int fd, LibHalContext *ctx, const char *udi, dbus_bool_t *has_data, argument 232 if (get_disc_info (fd, &di)) { 240 if (get_current_profile (fd, &profile)) { 305 (void) get_disc_capacity_for_profile(fd, profile, &capacity); 320 if (!read_toc(fd, 419 int fd, rfd; local [all...] |
/osnet-11/usr/src/cmd/hal/utils/ |
H A D | cdutils.c | 52 uscsi(int fd, struct uscsi_cmd *scmd) argument 67 ret = ioctl(fd, USCSICMD, scmd); 134 mode_sense(int fd, uchar_t pc, int dbd, int page_len, uchar_t *buffer) argument 153 return (uscsi(fd, &scmd) == 0); 160 get_mode_page(int fd, int page_no, int pc, int buf_len, uchar_t *buffer, int *plen) argument 170 if ((ret = mode_sense(fd, byte2, 1, 254, buf)) == 0) { 189 get_configuration(int fd, uint16_t feature, int bufsize, uchar_t *buf) argument 207 return (uscsi(fd, &scmd) == 0); 211 get_current_profile(int fd, int *profile) argument 226 if (get_configuration(fd, 242 walk_profiles(int fd, int (*f)(void *, int, boolean_t), void *arg) argument 319 get_read_write_speeds(int fd, int *read_speed, int *write_speed, intlist_t **speeds, int *n_speeds, intlist_t **speeds_mem) argument 364 get_disc_info(int fd, disc_info_t *di) argument 410 read_format_capacity(int fd, uint64_t *capacity) argument 442 get_media_info(int fd, struct dk_minfo *minfop) argument 452 get_disc_capacity_for_profile(int fd, int profile, uint64_t *capacity) argument 481 read_toc(int fd, int format, int trackno, int buflen, uchar_t *buf) argument [all...] |
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | error.c | 116 "fd", OPT_FD, 177 error_info.fd = n ? strtol(v, NiL, 0) : -1; 358 int fd; local 428 fd = (flags & ERROR_OUTPUT) ? va_arg(ap, int) : error_info.fd; 573 if (fd == sffileno(sfstderr) && error_info.write == write) 579 (*error_info.write)(fd, s, n);
|
/osnet-11/usr/src/lib/libast/common/vmalloc/ |
H A D | vmdebug.c | 62 { int fd; local 63 if((fd = vmtrace(-1)) >= 0) 64 vmtrace(fd); 69 int vmdebug(int fd) argument 71 int vmdebug(fd) 72 int fd; 76 Dbfd = fd;
|
/osnet-11/usr/src/lib/libbootmgmt/common/ |
H A D | libbootmgmt.c | 62 static int check_mbr_label(int fd, char *pathname, uint64_t *sizep); 269 int fd = -1, err = -1; local 271 if ((fd = open(rdiskpathname, O_RDONLY|O_NDELAY)) < 0) 274 if ((err = efi_alloc_and_read(fd, &efi_vtoc)) >= 0) { 291 (void) close(fd); 323 (void) close(fd); 331 err = check_mbr_label(fd, rdiskpathname, sizep); 353 (void) close(fd); 525 /* input pathname is /dev/rdsk/cxtxdxsN . fd corresponds to pathname */ 528 check_mbr_label(int fd, cha argument 683 int fd = -1, ret = BOOT_REQ_PART_NOT_REQUIRED; local 741 int fd = -1; local [all...] |
/osnet-11/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 169 int fd; local 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) 187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 192 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 197 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 202 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 205 if (close(fd) != 0) 438 Dupfd(int fd, in argument 481 int fd; local 701 int fd; local 723 int fd; local [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | getxby_door.c | 73 * logic is designed to be fast in the normal case (fd is already 77 * the application if it closes the fd and it is multi-threaded. 226 * If it's not validatable, reset fd and try again. 232 * forward another fd if desired. 236 _nsc_initdoor_fp(nsc_door_t *dp, char *db, int *fd) argument 241 *fd = -1; 288 while (dp->doorfd < 3) { /* we have a reserved fd */ 326 * someone else has clobbered fd 355 *fd = dp->doorfd; 375 int fd; local 455 int fd; local 744 int fd; local [all...] |
H A D | iconv.c | 341 int fd; local 349 fd = open(_ENCODING_ALIAS_PATH, O_RDONLY); 350 if (fd == -1) { 358 if (fstat64(fd, &statbuf) == -1) { 359 (void) close(fd); 364 addr = mmap(NULL, buflen, PROT_READ, MAP_SHARED, fd, 0); 365 (void) close(fd);
|
H A D | syslog.c | 117 -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/libc/sparc/sys/ |
H A D | ptrace.c | 169 int fd; local 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) 187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 192 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 197 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 202 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 205 if (close(fd) != 0) 446 Dupfd(int fd, in argument 489 int fd; local 711 int fd; local 733 int fd; local [all...] |
/osnet-11/usr/src/lib/libsuri/common/ |
H A D | suri_aux.c | 497 int fd; local 508 if ((ret = suri_open_lofictl(sh, &fd, &lofi_major)) != ESURI_OK) 513 (void) close(fd); 516 if (ioctl(fd, LOFI_GET_BY_MINOR, &li) == -1) { 520 (void) close(fd); 525 (void) close(fd); 538 int fd; local 543 if ((ret = suri_open_lofictl(sh, &fd, NULL)) != ESURI_OK) 555 if (ioctl(fd, LOFI_UNMAP_FILE, &li) == -1) { 577 (void) close(fd); [all...] |
H A D | suri_iscsi.c | 53 open_iscsi_driver(struct suri_handle *sh, int *fd) argument 55 if ((*fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 435 int i, ntgts, fd; local 438 if ((ret = open_iscsi_driver(sh, &fd)) != ESURI_OK) 453 (void) close(fd); 458 err = ioctl(fd, ISCSI_SENDTGTS_GET, stl_hdr); 484 (void) close(fd); 494 (void) close(fd);
|
/osnet-11/usr/src/lib/libwrap/ |
H A D | tcpd.h | 98 int fd; /* socket handle */ member in struct:request_info
|
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | setup.c | 123 getnum(int fd) argument 127 if (read(fd, bytes, 2) != 2) 170 int fd; local 177 if ((fd = open(filename, 0)) < 0) { 181 if ((header.magic = getnum(fd)) != __TERMINFO_MAGIC || 182 (header.name_size = getnum(fd)) < 0 || 183 (header.bool_count = getnum(fd)) < 0 || 184 (header.num_count = getnum(fd)) < 0 || 185 (header.str_count = getnum(fd)) < 0 || 186 (header.str_size = getnum(fd)) < 425 restartterm(char *tm, int fd, int *err_return) argument 609 int fd; local [all...] |