Searched refs:fd (Results 1 - 25 of 1995) sorted by last modified time

1234567891011>>

/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dacquire-lock.c36 static void acq_flock(int fd, int mode);
41 acq_fcntl(int fd, int cmd, int mode) argument
54 ret = fcntl(fd, cmd, &fl);
69 ret = fcntl(fd, cmd, &fl);
77 acq_flock(int fd, int mode) argument
88 ret = flock(fd, mode);
101 ret = flock(fd, LOCK_UN);
109 acq_run(int fd, lock_style_t style, boolean_t is_exclusive) argument
113 acq_fcntl(fd, F_SETLKW, is_exclusive ? F_WRLCK : F_RDLCK);
116 acq_fcntl(fd, F_OFD_SETLK
133 int fd; local
[all...]
H A Dutil.c49 flock_nodata(int fd) argument
51 struct pollfd pfd = { fd, POLLIN, 0 };
63 flock_block(int fd) argument
68 ret = read(fd, buf, 1);
79 flock_alert(int fd) argument
83 ret = write(fd, "1", 1);
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Depoll_test.c28 int fd, flags; local
30 fd = epoll_create1(0);
31 assert(fd >= 0);
33 flags = fcntl(fd, F_GETFD);
35 (void) close(fd);
38 fd = epoll_create1(EPOLL_CLOEXEC);
39 assert(fd >= 0);
41 flags = fcntl(fd, F_GETFD);
43 (void) close(fd);
45 fd
[all...]
/illumos-gate/usr/src/uts/common/c2/
H A Daudit.c843 audit_setf(file_t *fp, int fd) argument
1008 uint32_t fd; local
1040 fd = uap->arg1;
1045 fd = uap->arg3;
1047 fd = uap->arg1;
1051 fd = uap->arg2;
1055 fd = AT_FDCWD;
1066 if (fd != AT_FDCWD) {
1077 if ((fp = getf(fd)) == NULL) {
1085 releasef(fd);
1366 long fd; member in struct:a
1601 audit_fdsend(int fd, struct file *fp, int error) argument
1814 audit_fdrecv(int fd, struct file *fp) argument
[all...]
H A Daudit_event.c794 uint32_t uid, gid, fd; local
800 long fd; member in struct:a
805 fd = (uint32_t)uap->fd;
814 * Note: fd ref count incremented here.
816 if ((fp = getf(fd)) == NULL)
824 au_uwrite(au_to_arg32(1, "no path: fd", fd));
831 releasef(fd);
861 long fd; member in struct:a
886 long fd; member in struct:a
922 uint32_t fmode, fd; local
928 long fd; member in struct:a
965 long fd; member in struct:a
985 uint32_t fd; local
991 long fd; member in struct:a
1462 uint32_t cmd, fd, flags; local
1468 long fd; member in struct:a
1590 long fd; member in struct:a
1660 long fd; member in struct:a
1685 int fd; local
1688 long fd; member in struct:a
1959 uint32_t fd; local
2017 uint32_t fd; local
2023 long fd; member in struct:a
2321 uint32_t fd, cmd; local
2326 long fd; member in struct:a
2441 uint32_t fd; local
2448 long fd; member in struct:a
2625 uint32_t fd, pri; local
2663 uint32_t fd, pri, flags; local
2705 uint32_t fd, pri; local
2746 uint32_t fd; local
3535 int fd; local
3635 long fd; member in struct:a
3643 int err, fd; local
3711 long fd; member in struct:a
3719 int err, fd; local
3799 long fd; member in struct:a
3806 int err, fd; local
3891 long fd; member in struct:a
3902 int err, fd; local
4075 long fd; member in struct:a
4084 int fd; local
4275 long fd; member in struct:a
4287 int fd; local
4472 long fd; member in struct:a
4481 int fd; local
4661 long fd; member in struct:a
4674 int fd; local
5288 long fd; member in union:a::__anon181
5392 long fd; member in struct:a
5400 int fd; local
5436 int fd; local
5438 long fd; member in struct:a
5493 int fd; local
5495 long fd; member in struct:a
5553 int fd; local
5558 long fd; member in struct:a
5687 int fd; local
5692 long fd; member in struct:a
[all...]
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c5316 uintptr_t fd = tupregs[0].dttk_value; local
5331 fp = fd < finfo->fi_nfiles ? finfo->fi_list[fd].uf_file : NULL;
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c294 int fd = -1; local
750 if ((error = execopen(&vp, &fd)) != 0) {
755 ADDAUX(aux, AT_EXECFD, fd)
994 if (fd != -1) /* did we open the a.out yet */
995 (void) execclose(fd);
H A Delf_notes.c82 int fd; local
87 for (fd = 0; fd < fip->fi_nfiles; fd++) {
88 UF_ENTER(ufp, fip, fd);
208 int fd; local
347 for (fd = 0; fd < fip->fi_nfiles; fd++) {
357 UF_ENTER(ufp, fip, fd);
[all...]
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c154 "fd" },
246 * If we are opening a file in the /proc/pid/fd directory,
621 pr_read_inval, /* /proc/<pid>/fd */
622 pr_read_inval, /* /proc/<pid>/fd/nn */
1798 pr_read_inval, /* /proc/<pid>/fd */
1799 pr_read_inval, /* /proc/<pid>/fd/nn */
2838 * For files in the /proc/<pid>/fd directory,
2947 /* va_nlink: count 'lwp', 'object' and 'fd' directory links */
3342 pr_lookup_fddir, /* /proc/<pid>/fd */
3343 pr_lookup_notdir, /* /proc/<pid>/fd/n
4007 uint_t fd; local
4085 uint_t fd, flags = 0; local
5301 int fd, obj; local
[all...]
/illumos-gate/usr/src/uts/common/fs/
H A Dvnode.c950 int fd)
1147 shr_own.sl_id = fd;
941 vn_openat( char *pnamep, enum uio_seg seg, int filemode, int createmode, struct vnode **vpp, enum create crwhy, mode_t umask, struct vnode *startvp, int fd) argument
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c4178 int fd; local
4205 fd = zc->zc_cookie;
4206 fp = getf(fd);
4385 releasef(fd);
5225 * (optional) "cleanup_fd" -> fd (int32)
5404 * "fd" -> file descriptor to write stream to (int32)
5425 int fd; local
5432 error = nvlist_lookup_int32(innvl, "fd", &fd);
5445 file_t *fp = getf(fd);
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Ddevpoll.c146 * /dev/poll fd. However, we prevent writes from being starved by giving
150 * content of poll fd a cache set. If writes happens so often that they
243 * NOTE: Upon closing an fd, automatic poll cache cleanup is done for
252 int fdcnt, fd; local
268 * No Need to search because no poll fd
305 fd = bt_getlowbit(pcp->pc_bitmap, start, end);
306 ASSERT(fd <= end);
307 if (fd >= 0) {
308 if (fd == end) {
317 start = fd
648 int fd; local
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstand.h271 extern int fgetstr(char *buf, int size, int fd);
/illumos-gate/usr/src/cmd/acpi/acpidump/
H A Dosillumostbl.c976 int fd; local
979 fd = fileno(File);
980 if (fstat(fd, &sb) != 0)
1027 int fd; local
1031 if ((fd = open("/dev/xsvc", O_RDONLY)) < 0)
1040 fd, Where - offset);
1042 (void) close(fd);
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c258 int fd; local
260 if ((fd = open64(name, oflags, mode)) == -1)
263 return (fd);
293 Fstat(int fd, Stat_t *sb, const char *fname) argument
295 if (fstat64(fd, sb) != 0)
311 Pread(int fd, void *buf, size_t size, offset_t off) argument
313 ssize_t sz = pread64(fd, buf, size, off);
324 Pwrite(int fd, void *buf, size_t size, off64_t off) argument
326 if (pwrite64(fd, buf, size, off) != size)
506 Copy(offset_t dumpoff, len_t nb, offset_t *offp, int fd, cha argument
528 CopyPages(offset_t *offp, int fd, char *buf, size_t sz) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c1744 int fd, Elf *elf_file, Elf_Arhdr *p_ar, char *filename)
1767 if ((lseek(fd, here, 0)) != here) {
1772 if ((read(fd, STL_entry->strings, p_ar->ar_size)) == -1) {
1791 dump_ar_hdr(int fd, Elf *elf_file, char *filename) argument
1803 while ((arf = elf_begin(fd, cmd, elf_file)) != 0) {
1817 StringTableList, fd, arf, p_ar, filename);
1878 dump_ar_files(int fd, Elf *elf_file, char *filename) argument
1888 while ((arf = elf_begin(fd, cmd, elf_file)) != 0) {
1947 int fd; local
1962 if ((fd
1743 load_arstring_table(struct stab_list_s *STabList, int fd, Elf *elf_file, Elf_Arhdr *p_ar, char *filename) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dargs.c2021 int fd; local
2042 if ((fd = open(path, O_RDONLY)) == -1) {
2052 open_ret = ld_process_open(path, path, &fd, ofl,
2054 if (fd != -1)
2055 (void) close(fd);
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c1273 int err, fd, c; local
1341 if ((fd = open(ofile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1) {
1345 } else if (smbios_write(shp, fd) != 0) {
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_libscf.c762 int fd, stat; local
776 fd = open(est->sc_repo_doorname, O_CREAT | O_EXCL | O_RDWR, 0600);
777 if (fd < 0)
781 (void) close(fd);
814 fd = open(est->sc_repo_doorname, O_RDWR);
815 if (fd < 0)
819 if (door_info(fd, &info) < 0)
822 if (close(fd) == -1)
16576 int fd; local
16579 fd
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c2075 int fd; local
2080 if ((fd = open64(cachefile, O_RDONLY)) < 0) {
2086 if (fstat64(fd, &statbuf) != 0) {
2098 if (read(fd, buf, statbuf.st_size) != statbuf.st_size) {
2104 (void) close(fd);
2145 int fd; local
2162 if ((fd = open64(path, O_RDONLY)) < 0) {
2168 if (fstat64(fd, &statbuf) != 0) {
2172 (void) close(fd);
2180 (void) close(fd);
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c3174 int fd; local
3190 if ((fd = open("/dev/tcp", O_RDONLY)) < 0) {
3195 error = ioctl(fd, I_STR, &ioc);
3196 (void) close(fd);
3888 int fd; local
3908 if ((fd = open(map_path, O_RDWR | O_CREAT | O_EXCL,
3916 (void) write(fd, map_rec, len);
3917 (void) close(fd);
5023 int fd; local
5068 fd
[all...]
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c851 int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666); local
852 if (fd == -1)
854 if (ftruncate(fd, size) != 0)
856 (void) close(fd);
2936 int fd; local
2941 if ((fd = open(vd->vdev_path, O_RDWR)) == -1)
2944 fsize = lseek(fd, 0, SEEK_END);
2945 (void) ftruncate(fd, *newsize);
2951 (void) close(fd);
4796 int fd; local
[all...]
/illumos-gate/usr/src/common/bzip2/
H A Dbzlib.c1560 int fd, /* no use when bzdopen */
1606 fp = fdopen(fd,mode2);
1645 ( int fd,
1648 return bzopen_or_bzdopen(NULL,fd,mode,/*bzdopen*/1);
1558 bzopen_or_bzdopen( const char *path, int fd, const char *mode, int open_mode) argument
1644 BZ2_bzdopen( int fd, const char *mode ) argument
/illumos-gate/usr/src/common/secflags/
H A Dsecflags.c185 struct flagdesc *fd; local
187 for (fd = flagdescs; fd->name != NULL; fd++) {
188 if (strcasecmp(str, fd->name) == 0) {
189 *ret = fd->value;
200 struct flagdesc *fd; local
202 for (fd = flagdescs; fd->name != NULL; fd
213 struct flagdesc *fd; local
[all...]
/illumos-gate/usr/src/lib/libc/port/
H A Dllib-lc502 int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
503 int getmntent(FILE *fd, struct mnttab *mp);
592 int getvfsspec(FILE *fd, struct vfstab *vp, char *special);
593 int getvfsfile(FILE *fd, struct vfstab *vp, char *mountp);
594 int getvfsany(FILE *fd, struct vfstab *vgetp, struct vfstab *vrefp);
595 int getvfsent(FILE *fd, struct vfstab *vp);
639 int isastream(int fd);
775 char *ptsname(int fd);
776 int unlockpt(int fd);
777 int grantpt(int fd);
[all...]

Completed in 378 milliseconds

1234567891011>>