Searched defs:fd (Results 351 - 375 of 648) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/libc/port/gen/
H A Dwalkstack.c164 read_safe(int fd, struct frame *fp, struct frame **savefp, uintptr_t *savepc) argument
172 if ((pread(fd, (void *)&newfp, sizeof (fp->fr_savfp),
174 pread(fd, (void *)savepc, sizeof (fp->fr_savpc),
196 int fd; local
241 if ((fd = open("/proc/self/as", O_RDONLY)) < 0)
252 if (read_safe(fd, fp, &savefp, &savepc) != 0) {
253 (void) close(fd);
322 (void) close(fd);
375 * walk current thread stack, writing symbolic stack trace to specified fd
523 backtrace_symbols_fd(void *const *array, int size, int fd) argument
[all...]
/osnet-11/usr/src/lib/libc/port/rt/
H A Dpos4obj.c287 int fd; local
298 if ((fd = __open_nc(dfile, oflag, mode)) == -1)
302 return (fd);
316 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) {
318 fd = __open_nc(dfile, oflag & ~O_CREAT, mode);
320 if (fd == -1 && errno == ENOENT)
331 return (fd);
362 int fd; local
370 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666))
378 (void) __close_nc(fd);
[all...]
/osnet-11/usr/src/lib/libuuid/common/
H A Duuid.c75 static int fd; variable
265 if ((fd = open(STATE_LOCATION, O_RDWR)) < 0) {
267 if ((fd = mkstemp(tmpname)) == -1) {
279 (void) ftruncate(fd, (off_t)sizeof (shared_buffer_t));
282 PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
289 (void) close(fd);
336 int i, fd, retries = 0; local
338 fd = open(URANDOM_PATH, O_RDONLY);
339 if (fd >= 0) {
341 i = read(fd, bu
506 int fd; local
[all...]
/osnet-11/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c74 int fd = -1; local
93 if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) {
97 if (fstat64(fd, &sb) < 0) {
101 if (ioctl(fd, DKIOCINFO, &info) != 0) {
116 if (fd >= 0) {
117 (void) close(fd);
267 int fd; /* dev-in-question fd */ local
302 if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) {
309 if (fstat64(fd,
412 int fd = -1; local
[all...]
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c106 getnum(fd)
107 int fd;
111 if (read(fd, bytes, 2) != 2)
127 int fd; local
135 if ((fd = open(filename, 0)) < 0)
138 if ((header.magic = getnum(fd)) != __TERMINFO_MAGIC
139 || (header.name_size = getnum(fd)) < 0
140 || (header.bool_count = getnum(fd)) < 0
141 || (header.num_count = getnum(fd)) < 0
142 || (header.str_count = getnum(fd)) <
588 int fd; local
[all...]
/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...]
/osnet-11/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c376 _netdir_options(struct netconfig *netconfigp, int option, int fd, void *par) argument
/osnet-11/usr/src/lib/pam_modules/authtok_check/
H A Dpacker.c82 int fd; local
91 if ((fd = mkstemp(tmpname)) == -1) {
98 if ((tmpfp[tmpfp_idx] = fdopen(fd, "w+F")) == NULL) {
101 (void) close(fd);
110 (void) close(fd);
229 int fd; local
234 if ((fd = open(fname, O_RDONLY)) == -1) {
240 if (fstat(fd, &statbuf) == -1) {
243 (void) close(fd);
251 n = read(fd, bu
[all...]
/osnet-11/usr/src/lib/storage/liba5k/common/
H A Ddiag.c212 int fd, i; local
242 if ((fd = g_object_open(ses_path, O_NDELAY | O_RDWR)) == -1) {
246 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t)&nobj) < 0) {
247 (void) close(fd);
251 (void) close(fd);
260 (void) close(fd);
266 if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t)all_objp) < 0) {
267 (void) close(fd);
282 (void) close(fd);
295 if (ioctl(fd, SESIOC_GETOBJSTA
404 int err, fd, front_index, rear_index, offset; local
[all...]
/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);
H A Dio.c89 g_scsi_persistent_reserve_in_cmd(int fd, uchar_t *buf_ptr, argument
96 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
117 return (cmd(fd, &ucmd, USCSI_READ | USCSI_SILENT));
125 g_scsi_send_diag_cmd(int fd, uchar_t *buf_ptr, int buf_len) argument
132 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
147 if (err = cmd(fd, &ucmd, USCSI_WRITE)) {
162 rec_diag_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t page_code, argument
169 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) {
186 return (cmd(fd, &ucmd, USCSI_READ));
194 g_scsi_rec_diag_cmd(int fd, uchar_ argument
226 g_scsi_writebuffer_cmd(int fd, int off, uchar_t *buf_ptr, int buf_len, int sp, int bid) argument
263 g_scsi_readbuffer_cmd(int fd, uchar_t *buf_ptr, int buf_len, int code_off) argument
292 g_scsi_inquiry_cmd(int fd, uchar_t *buf_ptr, int buf_len) argument
335 g_scsi_log_sense_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t page_code) argument
370 g_scsi_mode_select_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t sp) argument
406 g_scsi_mode_sense_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t pc, uchar_t page_code) argument
456 g_scsi_read_capacity_cmd(int fd, uchar_t *buf_ptr, int buf_len) argument
481 g_scsi_read_capacity_1016_cmd(int fd, struct scsi_capacity_16 *cap_ptr, int buf_len) argument
525 scsi_read_capacity_16_cmd(int fd, struct scsi_capacity_16 *cap_ptr, int buf_len) argument
573 g_scsi_release_cmd(int fd) argument
596 g_scsi_reserve_cmd(int fd) argument
619 g_scsi_start_cmd(int fd) argument
645 g_scsi_stop_cmd(int fd, int immediate_flag) argument
670 g_scsi_tur(int fd) argument
696 g_scsi_reset(int fd) argument
[all...]
/osnet-11/usr/src/lib/sun_sas/common/
H A Ddevtree_device_disco.c45 int fd; local
60 if ((fd = open(fullpath, O_RDONLY)) == -1) {
70 (void) close(fd);
H A Dsun_sas.h127 int fd; /* when open, the FD */ member in struct:sun_sas_hba
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c640 int fd, retval; local
653 fd = socket(af, SOCK_STREAM, 0);
654 if (fd < 0) {
664 retval = fcntl(fd, F_SETFL, O_NONBLOCK);
669 (void) close(fd);
685 retval = connect(fd, (struct sockaddr *)v4dest,
696 retval = connect(fd, (struct sockaddr *)v6dest,
704 (void) close(fd);
713 (void) close(fd);
718 * for all other cases, we poll on the fd
[all...]
/osnet-11/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c178 int i, idx, fd; local
235 fd = open(path_buf, O_RDWR);
236 if (fd < 0) {
245 * libc can't handle fd's greater than 255, in order to
246 * ensure that these values remain available make fd > 255.
249 tmpfd = fcntl(fd, F_DUPFD, 256);
254 (void) close(fd);
255 fd = tmpfd;
259 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
262 (void) close(fd);
475 int fd; local
[all...]
/osnet-11/usr/src/lib/libproc/sparc/
H A DPisadep.c142 int fd, i; local
151 if ((fd = open64(path, O_RDONLY)) >= 0) {
157 n = read(fd, &gwin, sizeof (gwin));
177 (void) close(fd);
/osnet-11/usr/src/lib/libproc/sparcv9/
H A DPisadep.c181 int fd, i; local
190 if ((fd = open64(path, O_RDONLY)) >= 0) {
199 if ((n = read(fd, &g32, sizeof (g32))) > 0)
204 n = read(fd, &gwin, sizeof (gwin));
225 (void) close(fd);
/osnet-11/usr/src/lib/libproject/common/
H A Dsetproject.c475 int fd; local
479 if ((fd = open("/dev/pool", O_RDONLY)) < 0)
481 if (ioctl(fd, POOL_STATUSQ, &status) < 0) {
482 (void) close(fd);
485 (void) close(fd);
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c319 * the ??Next and ??Last fd sets), so there's no
405 int fd, eventmask; local
417 * the number of fd's that have some bit set,
433 fd = fid->fd;
435 if (FD_ISSET(fd, &ctx->rdLast))
437 if (FD_ISSET(fd, &ctx->wrLast))
439 if (FD_ISSET(fd, &ctx->exLast))
444 FD_CLR(fd, &ctx->rdLast);
448 FD_CLR(fd,
813 evPollfdRealloc(evContext_p *ctx, int pollfd_chunk_size, int fd) argument
853 __fd_eventfield(int fd, __evEmulMask *maskp) argument
887 __fd_clr(int fd, __evEmulMask *maskp) argument
918 __fd_set(int fd, __evEmulMask *maskp) argument
[all...]
H A Dlogging.c86 int fd, flags; local
140 fd = open(chan->out.file.name, flags,
142 if (fd < 0) {
148 stream = fdopen(fd, "a");
154 (void) fchown(fd, chan->out.file.owner, chan->out.file.group);
/osnet-11/usr/src/lib/libsasl/lib/
H A Dsaslutil.c350 int fd; local
352 fd = open(DEV_RANDOM, O_RDONLY);
353 if(fd != -1) {
359 bytesread = read(fd, buf, bytesleft);
366 close(fd);
/osnet-11/usr/src/lib/libsctp/common/
H A Dsctp.c242 * returns new fd.
247 int fd; local
249 fd = id;
250 if (ioctl(sock, SIOCSCTPPEELOFF, &fd) == -1) {
253 return (fd);
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c118 short fd; member in struct:Service_s
136 static int fdclose(Service_t *sp, register int fd) argument
139 service_list[fd] = 0;
140 if(sp->fd==fd)
141 sp->fd = -1;
144 if(file_list[i]==fd)
148 (*sp->actionf)(sp, fd, 1);
185 int r=0, fd = sffileno(iop); local
186 Service_t * sp = service_list[fd];
211 waitnotify(int fd, long timeout, int rw) argument
285 int fd; local
310 Action(Service_t *sp, int fd, int close) argument
413 register int fd; local
[all...]
H A Dread.c54 short fd; member in struct:read_save
64 register int r, flags=0, fd=0; local
81 fd = rp->fd;
108 if((fd = shp->cpipe[0])<=0)
127 fd = (int)opt_info.num;
128 if(sh_inuse(shp,fd))
129 fd = -1;
144 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK)))
145 r = sh_iocheckfd(shp,fd);
204 sh_readline(register Shell_t *shp,char **names, int fd, int flags,long timeout) argument
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_doorclnt.c447 int fd; local
465 if ((fd = open(SMBD_DOOR_NAME, O_RDONLY)) < 0) {
472 (void) close(fd);
476 if (smb_door_call_private(fd, &da) != 0) {
479 (void) close(fd);
486 (void) close(fd);
497 smb_door_call_private(int fd, smb_doorarg_t *da) argument
508 if ((rc = door_call(fd, &door_arg)) == 0)

Completed in 71 milliseconds

<<11121314151617181920>>