Searched refs:fd (Results 301 - 325 of 1995) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/libmail/common/
H A Dnotifyu.c70 int fd; local
84 if ((fd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
89 if (!isatty(fd)) {
96 (void) close(fd);
100 (void) close(fd);
/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dexhaust.c51 int fd; local
57 fd = open("/dev/zero", O_RDONLY);
59 if (fd < 0) {
66 MAP_PRIVATE, fd, 0);
68 close(fd);
/illumos-gate/usr/src/cmd/audio/utilities/
H A Ddevice_ctl.c50 audio_getinfo(int fd, Audio_info *ip) argument
52 if (ioctl(fd, AUDIO_GETINFO, (char *)ip) < 0) {
64 audio_setinfo(int fd, Audio_info *ip) argument
66 if (ioctl(fd, AUDIO_SETINFO, (char *)ip) < 0) {
75 * of the audio device on 'fd'.
78 audio__setplayhdr(int fd, Audio_hdr *hdrp, unsigned int which) argument
99 err = audio_setinfo(fd, &info);
101 err = audio_getinfo(fd, &info);
147 audio__setval(int fd, unsigned int *valp, unsigned int which) argument
197 err = audio_setinfo(fd,
215 audio__setgain(int fd, double *valp, unsigned int which) argument
244 audio__setpause(int fd, unsigned int which) argument
284 audio__flush(int fd, unsigned int which) argument
301 audio_drain(int fd, int sig) argument
319 audio_play_eof(int fd) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfslogtab.c65 logtab_getent(FILE *fd, struct logtab_ent **lepp) argument
79 if ((p = fgets(line, MAXBUFSIZE, fd)) == NULL) {
136 logtab_putent(FILE *fd, struct logtab_ent *lep) argument
140 if (fseek(fd, 0L, SEEK_END) < 0)
143 r = fprintf(fd, "%s\t%s\t%s\t%d\n",
169 logtab_findent(FILE *fd, char *buffer, char *path, char *tag, int state, argument
174 while (!found && (logtab_getent(fd, lepp) > 0)) {
210 logtab_rement(FILE *fd, char *buffer, char *path, char *tag, int state) argument
218 rewind(fd);
219 while ((error = logtab_getent(fd,
294 logtab_deactivate(FILE *fd, char *buffer, char *path, char *tag) argument
372 logtab_deactivate_after_boot(FILE *fd) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c253 int fd; local
259 fd = open64(fn, O_RDONLY);
260 if (fd == -1) {
275 if (ioctl(fd, _FIOLFSS, &lf) == -1) {
277 close(fd);
339 close(fd);
348 int fd; local
350 fd = open64(fn, O_RDONLY);
351 if (fd == -1) {
357 if (ioctl(fd, _FIOFF
372 int fd; local
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipf_dotuning.c10 void ipf_dotuning(fd, tuneargs, iocfn)
11 int fd;
28 if ((*iocfn)(fd, SIOCIPFGETNEXT, &obj) == -1) {
43 if ((*iocfn)(fd, SIOCIPFSET, &obj) == -1) {
54 if ((*iocfn)(fd, SIOCIPFGET, &obj) == -1) {
/illumos-gate/usr/src/cmd/srptsvc/
H A Dsrptsvc.c49 int fd = -1; local
69 fd = open(SRPT_NODE, O_RDONLY);
70 if (fd < 0) {
96 ret = ioctl(fd, srpt_ioctl, NULL);
108 (void) close(fd);
/illumos-gate/usr/src/cmd/lp/lib/forms/
H A Dgetform.c54 int fd; local
82 if ((fd = open_locked(path, "r", 0)) < 0) {
88 if (rdform(name, formp, fd, 0, (int *)0) == -1) {
89 close(fd);
92 close(fd);
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dgetpentry.c59 int fd; local
105 if ((fd = open_locked(path, "r", 0)) < 0) {
127 while (fdgets(buf, BUFSIZ, fd) != NULL) {
163 close(fd);
167 close(fd);
/illumos-gate/usr/src/cmd/cdrw/
H A Dbstream.c166 int fd; local
169 fd = h->bstr_fd;
171 return (close(fd));
264 int fd; local
274 fd = open(file, O_RDONLY);
275 if (fd < 0)
278 h->bstr_fd = fd;
389 int fd, sav; local
396 fd = open(fname, O_RDONLY);
397 if (fd <
470 int fd, sav; local
551 int esav, fd; local
581 int esav, fd; local
610 int fd; local
627 int fd; local
645 int fd; local
[all...]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_menu.c79 extern int32_t verify(smedia_handle_t handle, int32_t fd,
83 extern void write_default_label(smedia_handle_t, int32_t fd);
86 void overwrite_metadata(int32_t fd, smedia_handle_t handle);
88 int32_t write_sunos_label(int32_t fd, int32_t media_type);
94 int32_t check_and_unmount_floppy(int32_t fd, int32_t flag);
98 static void process_F_flag(smedia_handle_t handle, int32_t fd);
102 void process_p_flag(smedia_handle_t handle, int32_t fd);
104 static void process_V_flag(smedia_handle_t handle, int32_t fd);
105 static void process_s_flag(smedia_handle_t, int32_t fd);
107 static void process_H_flag(smedia_handle_t handle, int32_t fd);
115 int32_t fd; local
309 process_F_flag(smedia_handle_t handle, int32_t fd) argument
738 process_p_flag(smedia_handle_t handle, int32_t fd) argument
834 process_V_flag(smedia_handle_t handle, int32_t fd) argument
984 process_s_flag(smedia_handle_t handle, int32_t fd) argument
1053 process_H_flag(smedia_handle_t handle, int32_t fd) argument
1084 process_D_flag(smedia_handle_t handle, int32_t fd) argument
1119 process_b_flag(int32_t fd) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetut.c83 static int fd = -1; /* File descriptor for the utmp file. */ variable
146 if (fd < 0) {
147 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) {
154 if ((fd = open(_compat_utmpfile, O_RDONLY)) < 0)
161 if (read(fd, &fubuf, sizeof (fubuf)) != sizeof (fubuf)) {
168 (void) lseek(fd, 0L, 1);
319 if (fd < 0) {
328 if ((fc = fcntl(fd, F_GETFL, NULL)) == -1 || (fc & O_RDWR) != O_RDWR)
342 gdebug("1st getutid() failed. fd: %d", fd);
427 int fd; local
[all...]
/illumos-gate/usr/src/cmd/consadm/
H A Dconsadm.c95 static boolean_t has_carrier(int fd);
96 static boolean_t modem_support(int fd);
301 int fd; local
303 if ((fd = safeopen(SYSMSG)) < 0)
306 if (ioctl(fd, CIOCSETCONSOLE, dev) != 0) {
319 (void) close(fd);
329 int fd; local
331 if ((fd = safeopen(SYSMSG)) < 0)
334 if (ioctl(fd, CIOCRMCONSOLE, dev) != 0) {
340 (void) close(fd);
366 int lckfd, fd; local
508 int fd; local
545 modem_support(int fd) argument
556 has_carrier(int fd) argument
573 int lckfd, fd; local
656 int fd, sysmfd, ret = 0; local
868 int fd; local
932 int fd; local
954 lckfunc(int fd, int flag) argument
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dmedia.c49 static int get_attrs(disk_t *dp, int fd, nvlist_t *attrs);
123 int fd; local
135 fd = drive_open_disk(dp->p.disk, NULL, 0);
137 if ((*errp = get_attrs(dp->p.disk, fd, attrs)) != 0) {
142 if (fd >= 0) {
143 (void) close(fd);
243 media_read_info(int fd, struct dk_minfo *minfo) argument
256 while ((status = ioctl(fd, DKIOCGMEDIAINFO, minfo)) < 0) {
311 int fd; local
314 if ((fd
370 get_attrs(disk_t *dp, int fd, nvlist_t *attrs) argument
541 int fd; local
[all...]
/illumos-gate/usr/src/cmd/rpcbind/
H A Dcheck_bound.c65 int fd; member in struct:fdlist
66 mutex_t fd_lock; /* protects fd */
72 static struct fdlist *fdhead; /* Link list of the check fd's */
87 int fd; local
102 fd = fdl->fd;
103 baddr = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
109 if (t_bind(fd, &taddr, baddr) != 0) {
115 if (t_unbind(fd) != 0) {
116 /* Bad fd
148 int fd; local
[all...]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c69 static int boot_nfs_close(int fd);
70 static ssize_t boot_nfs_read(int fd, caddr_t buf, size_t size);
72 static int boot_nfs_fstat(int fd, struct bootstat *stp);
74 static int boot_nfs_getdents(int fd, struct dirent *dep, unsigned size);
130 get_filep(int fd) argument
135 if (fd == filep->desc)
217 printf("boot_nfs_open(): '%s' successful, fd = 0x%x\n",
227 boot_nfs_close(int fd) argument
233 printf("boot_nfs_close(%d)\n", fd);
235 if ((filep = get_filep(fd))
255 boot_nfs_read(int fd, char *buf, size_t size) argument
307 boot_nfs_lseek(int fd, off_t offset, int whence) argument
369 boot_nfs_fstat(int fd, struct bootstat *stp) argument
434 boot_nfs_getdents(int fd, struct dirent *dep, unsigned size) argument
[all...]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Drandom.c62 int fd; local
71 if ((fd = open(path, oflag, pmode)) >= 0) {
72 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
77 return (fd);
84 readn_nointr(int fd, void *dbuf, size_t dlen) argument
91 if ((nread = read(fd, marker, left)) < 0) {
109 writen_nointr(int fd, void *dbuf, size_t dlen) argument
117 if ((nwrite = write(fd, marker, left)) < 0) {
133 * Always returns the opened fd of the device, or error.
136 pkcs11_open_common(int *fd, pthread_mutex_ argument
178 pkcs11_close_common(int *fd, pthread_mutex_t *mtx) argument
214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) argument
241 pkcs11_write_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dread_msg.c39 int fd = *( (int *) fdp); local
41 if ((len2 = krb5_net_read(context, fd, (char *)&len, 4)) != 4)
56 if ((len2 = krb5_net_read(context, fd, buf, ilen)) != ilen) {
/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_builtin_poll.sh49 [y]=( fd=5 events="POLLIN" revents="" )
50 [x]=( fd=5 events="POLLIN" revents="" )
63 d1.u[z]=( fd=5 events="POLLOUT" revents="" )
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dnfssys.c70 nfssvc(int fd) argument
74 nsa.fd = fd;
/illumos-gate/usr/src/cmd/srchtxt/
H A Dsrchtxt.c96 int fd; local
166 if ((addr = attach(cp, len1, &fd, &size)) == -1) {
176 (void) close(fd);
190 if ((addr = attach(pathname, len, &fd, &size)) == -1) {
197 (void) close(fd);
240 int fd = -1; local
245 if ((fd = open(path, O_RDONLY)) != -1 &&
246 fstat(fd, &sb) != -1 &&
249 fd, 0)) != (caddr_t)-1) {
250 *fdescr = fd;
[all...]
/illumos-gate/usr/src/psm/stand/cpr/common/
H A Dsupport.c45 cpr_read_cprinfo(int fd, char *file_path, char *fs_path) argument
49 if (cpr_fs_read(fd, (char *)&cf, sizeof (cf)) != sizeof (cf) ||
69 int fd; local
72 if ((fd = cpr_fs_open(CPR_CONFIG)) != -1) {
73 rc = cpr_read_cprinfo(fd, file_path, fs_path);
74 (void) cpr_fs_close(fd);
94 int fd, len, rc, prop_errors; local
102 if ((fd = cpr_fs_open(default_path)) == -1) {
109 len = cpr_fs_read(fd, (char *)&cdef, sizeof (cdef));
118 (void) cpr_fs_close(fd);
159 cpr_read_cdump(int fd, cdd_t *cdp, ushort_t mach_type) argument
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dfdsync.c52 fdsync(int fd, int flag) argument
58 if ((fp = getf(fd)) != NULL) {
69 releasef(fd);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmktemp.c82 int fd; local
84 return *temp(buf, &fd) ? fd : -1;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSPosix.h74 typedef void (*mDNSPosixEventCallback)(int fd, short filter, void *context);
76 extern mStatus mDNSPosixAddFDToEventLoop( int fd, mDNSPosixEventCallback callback, void *context);
77 extern mStatus mDNSPosixRemoveFDFromEventLoop( int fd);

Completed in 112 milliseconds

<<11121314151617181920>>