Searched refs:fd (Results 326 - 350 of 835) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c538 int fd; local
542 if ((fd = open(ap_id, O_RDWR, 0)) == -1)
544 else if (ioctl(fd, SYSC_CFGA_CMD_GETSTATUS, sc_list) == -1) {
545 (void) close(fd);
548 *fdp = fd;
550 (void) close(fd);
570 int fd; local
592 } else if ((fd = open(ap_id, O_RDWR, 0)) == -1)
594 else if (ioctl(fd, SYSC_CFGA_CMD_GETSTATUS, sim_sc_list) == -1) {
595 (void) close(fd);
617 sim_ioctl(int fd, int cmd, void *a) argument
877 int fd; local
1066 int fd; local
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_nameinfo.c498 int fd; local
535 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) {
545 if (devid_get(fd, &devid) != 0) {
555 (void) devid_get_minor_name(fd, &minor_name);
585 if (ioctl(fd, DKIOCGGEOM, &geom) != 0) {
589 (void) close(fd);
593 (void) close(fd);
610 partno = efi_alloc_and_read(fd, &gpt);
612 (void) close(fd);
666 if (meta_getvtoc(fd, n
730 int fd; local
801 int fd; local
1313 int fd = -1; local
[all...]
/osnet-11/usr/src/lib/libproc/common/
H A DPcontrol.c63 static int minfd; /* minimum file descriptor returned by dupfd(fd, 0) */
124 int fd; local
126 if ((fd = minfd) < 256) {
128 if ((fd = minfd) < 256) {
132 fd = 256;
133 else if ((fd = rlim.rlim_cur / 2) < 3)
134 fd = 3;
136 minfd = fd;
140 return (fd);
144 dupfd(int fd, in argument
189 int fd; local
518 int fd, omode; local
1297 int fd; local
1817 int fd; local
2689 int fd; local
2964 int fd; local
[all...]
/osnet-11/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl_picl.c75 static uint32_t read_long(int fd, int bus, int dev, int func,
77 static uint8_t read_byte(int fd, int bus, int dev, int func, int offset,
79 static uint16_t read_word(int fd, int bus, int dev, int func, int offset,
555 int fd; local
565 if ((fd = open(path, O_RDWR)) == -1) {
568 return (fd);
572 read_long(int fd, int bus, int dev, int func, int offset, int *ret) argument
585 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
595 read_word(int fd, int bus, int dev, int func, int offset, int *ret) argument
608 rval = ioctl(fd, PCITOOL_DEVICE_GET_RE
618 read_byte(int fd, int bus, int dev, int func, int offset, int *ret) argument
647 int fd, ret; local
[all...]
/osnet-11/usr/src/lib/libldap5/include/ldap/
H A Dldappr.h201 * Given an integer fd and a socket argument such as those passed to the
209 int LDAP_CALL prldap_set_socket_info( int fd, void *socketarg,
215 * Given an integer fd and a socket argument such as those passed to the
221 int LDAP_CALL prldap_get_socket_info( int fd, void *socketarg,
/osnet-11/usr/src/lib/libnsl/nsl/
H A D_conn_util.c64 int fd; local
67 fd = tiptr->ti_fd;
74 if (_t_is_event(fd, tiptr) < 0)
132 if (putmsg(fd, ctlbufp,
138 if (_t_is_ok(fd, tiptr, T_CONN_REQ) < 0)
160 int retval, fd, sv_errno; local
165 fd = tiptr->ti_fd;
194 if ((retval = getmsg(fd, ctlbufp, &databuf, &flg)) < 0) {
H A Dt_snd.c49 _tx_snd(int fd, void *buf, unsigned nbytes, int flags, int api_semantics) argument
62 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
112 lookevent = _t_look_locked(fd, tiptr, 0, api_semantics);
189 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND);
199 retval = write(fd, curptr, bytes_to_send);
H A Dt_sndv.c48 _tx_sndv(int fd, const struct t_iovec *tiov, unsigned int tiovcount, argument
67 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
125 lookevent = _t_look_locked(fd, tiptr, 0, api_semantics);
217 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND);
248 retval = (int)writev(fd, iov, iovcount);
/osnet-11/usr/src/lib/libfuse/common/
H A Dfuse_compat.h60 struct fuse *fuse_new_compat25(int fd, struct fuse_args *args,
71 int *multithreaded, int *fd);
73 void fuse_teardown_compat22(struct fuse *fuse, int fd, char *mountpoint);
115 struct fuse *fuse_new_compat22(int fd, const char *opts,
122 int *multithreaded, int *fd);
161 struct fuse *fuse_new_compat2(int fd, const char *opts,
166 char **mountpoint, int *multithreaded, int *fd);
202 struct fuse *fuse_new_compat1(int fd, int flags,
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c69 int fd; local
82 SM_CONVERT_TIME(fp, fd, timeout, &to);
100 if (IS_IO_ERROR(fd, w, timeout))
104 SM_IO_WR_TIMEOUT(fp, fd, timeout);
186 if (IS_IO_ERROR(fd, w, timeout))
190 SM_IO_WR_TIMEOUT(fp, fd, timeout);
248 if (IS_IO_ERROR(fd, w, timeout))
252 SM_IO_WR_TIMEOUT(fp, fd, timeout);
/osnet-11/usr/src/cmd/hal/hald-runner/
H A Dutils.c56 get_string_array_from_fd(int fd) argument
67 io = g_io_channel_unix_new(fd);
/osnet-11/usr/src/cmd/hal/probing/xkb/
H A Dprobe-xkb.c91 int fd = -1; local
93 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
103 if (ioctl(fd, I_FIND, "usbkbm") == 0) {
104 (void) ioctl(fd, I_PUSH, "usbkbm");
109 if (ioctl(fd, KIOCTYPE, kbd_type) < 0) {
114 if (ioctl(fd, KIOCLAYOUT, kbd_layout) < 0) {
122 out: if (fd >= 0) {
123 close(fd);
/osnet-11/usr/src/lib/libbsm/common/
H A Dbsm.c35 auditdoor(int fd) argument
37 return (syscall(SYS_auditsys, BSM_AUDITDOOR, fd));
/osnet-11/usr/src/lib/libc/port/rt/
H A Dsem.c61 int fd = 0; local
93 if ((fd = __pos4obj_open(path, SEM_DATA_TYPE,
103 if (fstat64(fd, &statbuf) < 0)
108 if (ftruncate64(fd, (off64_t)sizeof (sem_t)) < 0)
119 (void) __close_nc(fd);
137 MAP_SHARED, fd, (off64_t)0);
138 (void) __close_nc(fd);
168 (void) __close_nc(fd);
/osnet-11/usr/src/lib/libunistat/common/
H A Dllib-lunistat38 void spcs_s_report(spcs_s_info_t ustatus, FILE *fd);
/osnet-11/usr/src/lib/pam_modules/list/
H A Dlist.c86 FILE *fd; local
238 if ((fd = fopen(allowdeny_filename, "rF")) == NULL) {
244 while (fgets(buf, BUFSIZ, fd) != NULL) {
248 while ((fgetc(fd) != '\n') && (!feof(fd))) {
282 (void) fclose(fd);
291 (void) fclose(fd);
371 (void) fclose(fd);
/osnet-11/usr/src/lib/crypt_modules/bsdbf/
H A Darc4random.c92 int fd; local
99 fd = open("/dev/urandom", O_RDONLY);
100 if (fd != -1) {
101 (void) read(fd, rdat.rnd, sizeof(rdat.rnd));
102 (void) close(fd);
104 /* fd < 0 ? Ah, what the heck. We'll just take
/osnet-11/usr/src/lib/crypt_modules/bsdmd5/
H A Dbsdmd5.c189 int fd; local
194 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
200 got = read(fd, &rndval, sizeof (rndval));
203 (void) close(fd);
209 (void) close(fd);
/osnet-11/usr/src/cmd/sendmail/libmilter/
H A Dexample.c99 int fd = -1; local
117 if ((fd = mkstemp(priv->mlfi_fname)) < 0 ||
118 (priv->mlfi_fp = fdopen(fd, "w+")) == NULL)
120 if (fd >= 0)
121 (void) close(fd);
/osnet-11/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c44 int fd = -1, rc = -1; local
51 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) {
55 if (ioctl(fd, PRNIOC_GET_1284_DEVID, &id) < 0) {
65 if (fd != -1)
66 close(fd);
/osnet-11/usr/src/lib/sun_sas/common/
H A DSun_sasSendSMPPassThru.c36 int fd; local
52 if ((fd = open(devpath, O_RDONLY | O_NONBLOCK)) == -1) {
62 if (ioctl(fd, USMPFUNC, &ucmd_buf) == -1) {
73 (void) close(fd);
77 (void) close(fd);
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dsvc_vc.c144 "fd > FD_SETSIZE; Use rpc_control(RPC_SVC_USE_POLLFD,...);";
201 * xprt = svc_vc_create(fd, sendsize, recvsize);
205 * fd should be open and bound.
208 svc_vc_create_private(int fd, uint_t sendsize, uint_t recvsize) argument
214 if (RPC_FD_NOTIN_FDSET(fd)) {
236 if (t_getinfo(fd, &tinfo) == -1) {
261 r->t_call = (struct t_call *)t_alloc(fd, T_CALL, T_ADDR | T_OPT);
270 r->t_bind = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
284 xprt->xp_fd = fd;
298 svc_vc_create(const int fd, cons argument
312 int fd = parent->xp_fd; local
399 svc_fd_create_private(int fd, uint_t sendsize, uint_t recvsize) argument
443 svc_fd_create(const int fd, const uint_t sendsize, const uint_t recvsize) argument
486 makefd_xprt(int fd, uint_t sendsize, uint_t recvsize, t_scalar_t tsdu, char *cache) argument
1254 update_timestamps(int fd) argument
1304 int fd = xprt->xp_fd; local
1383 int fd = xprt->xp_fd; local
1504 t_rcvall(int fd, char *buf, int len) argument
1846 fd_is_dead(int fd) argument
[all...]
/osnet-11/usr/src/cmd/hal/addons/storage/
H A Daddon-storage.c261 close_device (int *fd) argument
263 if (*fd > 0) {
264 close (*fd);
265 *fd = -1;
323 int fd = -1; local
375 close_device (&fd);
377 } else if ((fd < 0) && ((fd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0)) {
385 if (ioctl (fd, DKIOCSTATE, &state) == 0) {
426 close_device (&fd);
[all...]
/osnet-11/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c128 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/lib/libshell/common/edit/
H A Dedit.c158 * This routine returns true if fd refers to a terminal
161 int tty_check(int fd) argument
166 return(tty_get(fd,&tty)==0);
175 int tty_get(register int fd, register struct termios *tty) argument
178 if(fd == ep->e_savefd)
182 while(tcgetattr(fd,tty) == SYSERR)
192 ep->e_savefd = fd;
200 * If fd<0, then current attributes are invalidated
203 int tty_set(int fd, int action, struct termios *tty) argument
206 if(fd >
232 tty_cooked(register int fd) argument
264 tty_raw(register int fd, int echomode) argument
392 tty_alt(register int fd) argument
440 tty_alt(register int fd) argument
541 register int fd = ERRIO; local
588 ed_setup(register Edit_t *ep, int fd, int reedit) argument
806 ed_read(void *context, int fd, char *buff, int size, int reedit) argument
1490 tcgetattr(int fd, struct termios *tt) argument
1512 tcsetattr(int fd,int mode,struct termios *tt) argument
[all...]

Completed in 93 milliseconds

<<11121314151617181920>>