/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | setvbuf.c | 59 int fd; local 83 SM_CONVERT_TIME(fp, fd, timeout, &to); 103 ** a `tty flag' to suggest that we check isatty(fd), but we do not
|
H A D | refill.c | 37 ** This #define uses a select() to wait for the 'fd' to become readable. 46 ** Note: if a valid 'fd' doesn't exist yet, don't use this (e.g. the 51 ** fd -- raw file descriptor (from 'fp') to use for select() 60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ 70 if (FD_SETSIZE > 0 && (fd) >= FD_SETSIZE) \ 76 FD_SET((fd), &sm_io_to_mask); \ 78 FD_SET((fd), &sm_io_x_mask); \ 83 (sel_ret) = select((fd) + 1, &sm_io_to_mask, NULL, \ 148 int fd; local 174 SM_CONVERT_TIME(fp, fd, timeou [all...] |
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfsetfd.c | 30 static int _sfdup(int fd, int newfd) argument 32 static int _sfdup(fd,newfd) 33 int fd; 40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR) 45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd) 49 newfd = _sfdup(fd,newfd);
|
/osnet-11/usr/src/lib/libast/common/vec/ |
H A D | vecfile.c | 44 int fd; local 48 if ((fd = open(file, O_RDONLY)) >= 0) 50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0))) 52 if (read(fd, buf, n) == n) 59 close(fd);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | mkfifo.c | 39 mkfifoat(int fd, const char *path, mode_t mode) argument 43 return (mknodat(fd, path, mode, 0));
|
H A D | posix_fadvise.c | 49 posix_fadvise(int fd, off_t offset, off_t len, int advice) argument 66 if (fstat64(fd, &statb) != 0) 77 posix_fadvise64(int fd, off64_t offset, off64_t len, int advice) argument 94 if (fstat64(fd, &statb) != 0)
|
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | access.c | 32 faccessat(int fd, const char *fname, int amode, int flag) argument 34 return (syscall(SYS_faccessat, fd, fname, amode, flag));
|
H A D | mkdir.c | 32 mkdirat(int fd, const char *path, mode_t mode) argument 34 return (syscall(SYS_mkdirat, fd, path, mode));
|
H A D | mknod.c | 32 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument 34 return (syscall(SYS_mknodat, fd, path, mode, dev));
|
H A D | symlink.c | 32 symlinkat(const char *path1, int fd, const char *path2) argument 34 return (syscall(SYS_symlinkat, path1, fd, path2));
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_fcntl.c | 40 pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp) argument 48 return (fcntl(fd, cmd, argp)); 51 adp->arg_value = fd;
|
H A D | pr_ioctl.c | 39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument 47 return (ioctl(fd, code, buf)); 49 adp->arg_value = fd;
|
/osnet-11/usr/src/lib/libresolv2/common/bsd/ |
H A D | ftruncate.c | 32 __ftruncate(int fd, long wantsize) { argument 36 if ((cursize = lseek(fd, 0L, 2)) == -1) 41 if (lseek(fd, wantsize - 1, 0) == -1 || 42 write(fd, "", 1) == -1) { 56 return (fcntl(fd, F_FREESP, &fl));
|
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvconnect.c | 52 _tx_rcvconnect(int fd, struct t_call *call, int api_semantics) argument 59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 100 if (_t_do_postconn_sync(fd, tiptr) < 0)
|
H A D | t_sndreldata.c | 47 _tx_sndreldata(int fd, struct t_discon *discon, int api_semantics) argument 54 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 71 if (_t_look_locked(fd, tiptr, 0, 104 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) {
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | rpc_td.c | 40 __td_setnodelay(int fd) argument 50 if ((state = t_getstate(fd)) == -1) 87 rval = t_optmgmt(fd, &t_optreq, &t_optret);
|
/osnet-11/usr/src/lib/libparted/common/lib/ |
H A D | safe-read.c | 56 safe_rw (int fd, void const *buf, size_t count) argument 66 ssize_t result = rw (fd, buf, count);
|
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_dump.c | 59 int fd; local 79 fd = dump_fd; 83 if (fd != -1) { 84 if (ioctl(fd, DIOCGETDEV, device) != -1) {
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | read_msg.c | 40 int fd = *( (int *) fdp); local 45 if ((len2 = krb5_net_read(context, fd, (char *)&len, 4)) != 4) 60 if ((len2 = krb5_net_read(context, fd, buf, ilen)) != ilen) {
|
H A D | write_msg.c | 43 int fd = *( (int *) fdp); local 64 if (krb5int_net_writev(context, fd, sg, nbufs1 * 2) < 0) {
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_close.c | 68 int fd; local 103 fd = t->bt_fd; 106 return (close(fd) ? RET_ERROR : RET_SUCCESS);
|
/osnet-11/usr/src/cmd/hal/probing/acpi/ |
H A D | probe-acpi.c | 35 int fd = -1; local 57 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { 62 ac_adapter_update(ctx, udi, fd); 64 battery_update(ctx, udi, fd); 66 lid_update(ctx, udi, fd); 68 laptop_panel_update(ctx, udi, fd); 74 if (fd >= 0) { 75 close(fd);
|
/osnet-11/usr/src/cmd/hal/tools/sunos/ |
H A D | hal-system-lcd-get-brightness-sunos.c | 34 int fd = -1; local 49 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { 56 if (ioctl(fd, ACPI_DRV_IOC_STATUS, &status) < 0) { 57 close(fd); 60 close(fd);
|
H A D | hal-system-lcd-set-brightness-sunos.c | 35 int fd = -1; local 50 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { 58 if (ioctl(fd, ACPI_DRV_IOC_SET_BRIGHTNESS, &level) < 0) { 59 close(fd); 62 close(fd);
|
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | gross.c | 35 extern int fstat(int fd, struct stat* st) argument 38 return __fxstat(_STAT_VER, fd, st); 40 return _fxstat(_STAT_VER, fd, st); 66 extern int fstat64(int fd, struct stat64* st) argument 69 return __fxstat64(_STAT_VER, fd, st); 71 return _fxstat64(_STAT_VER, fd, st);
|