/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | mkstemp.c | 64 int fd; local 94 if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR, 0600)) != -1) { 95 return (fd); 98 if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR, 0600)) != -1) { 99 return (fd);
|
H A D | getut.c | 80 static int fd = -1; /* File descriptor for the utmp file. */ variable 143 if (fd < 0) { 144 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) { 151 if ((fd = open(_compat_utmpfile, O_RDONLY)) < 0) 158 if (read(fd, &fubuf, sizeof (fubuf)) != sizeof (fubuf)) { 165 (void) lseek(fd, 0L, 1); 316 if (fd < 0) { 325 if ((fc = fcntl(fd, F_GETFL, NULL)) == -1 || (fc & O_RDWR) != O_RDWR) 339 gdebug("1st getutid() failed. fd: %d", fd); 424 int fd; local [all...] |
H A D | lfmt_log.c | 60 static int fd = -1; local 93 if (fd == -1 && 94 ((fd = open(LOGNAME, O_WRONLY)) == -1 || 95 fcntl(fd, F_SETFD, 1) == -1)) 102 if (putmsg(fd, 0, &dat, 0) == -1) { 103 (void) close(fd);
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 204 * return <protocol>/<host>/<service> fd 215 int fd; local 269 fd = getaddrinfo(s, t, &hint, &addr); 272 fd = -1; 274 if (fd) 276 if (fd != EAI_SYSTEM) 282 fd = -1; 293 while ((fd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) >= 0) 295 if (server && !bind(fd, p->ai_addr, p->ai_addrlen) && !listen(fd, 360 int fd; member in struct:Eof 400 sh_iovalidfd(Shell_t *shp, int fd) argument 434 sh_inuse(Shell_t *shp, int fd) argument 511 sh_iostream(Shell_t *shp, register int fd) argument 589 register int fd; local 683 sh_close(register int fd) argument 736 register int fd = -1; local 861 register int fd = sh_open(name,O_RDONLY,0); local 895 int fd[2]; local 912 int fd = accept(pv[0],(struct sockaddr*)0,(socklen_t*)0); local 988 int r, fd, close_exec; local 1073 int fd; local 1129 register int fd, iof; local 1546 register int fd; local 1697 register int fd, savefd, newfd; local 1717 register int origfd, savefd, fd; local 1792 sh_ioaccess(int fd,register int mode) argument 1898 int fd = sffileno(iop); local 2005 sh_iocheckfd(Shell_t *shp, register int fd) argument 2176 register int fd = sffileno(sp); local 2466 sh_read(register int fd, void* buff, size_t n) argument 2482 sh_write(register int fd, const void* buff, size_t n) argument 2498 sh_seek(register int fd, off_t offset, int whence) argument 2514 register int fd = dup(old); local 2530 sh_fcntl(register int fd, int op, ...) argument 2578 sh_iogetiop(int fd, int mode) argument 2632 sh_fd2sfio(int fd) argument 2669 sh_isdevfd(register const char *fd) argument [all...] |
/osnet-11/usr/src/lib/libcmdutils/common/ |
H A D | decompress.c | 51 int in; /* input fd */ 77 * fd of which is returned to the caller. 80 * return input fd 88 * fd of which will be returned to the caller. Write header 111 * Check if we can seek fd w/ affecting it. 115 is_seekable(int fd) argument 117 return (lseek(fd, 0, SEEK_CUR) != -1); 121 is_tape(int fd) argument 126 (void) fstat(fd, &st); 127 return (S_ISCHR(st.st_mode) && ioctl(fd, MTIOCGE 160 int fd[2]; local 283 decompress_from_fd(int fd, int (*readf)(int, char *), size_t blksz) argument [all...] |
/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) {
|
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | mktemp.c | 82 int fd; local 84 return *temp(buf, &fd) ? fd : -1;
|
/osnet-11/usr/src/lib/libmail/common/ |
H A D | maillock.c | 130 int fd; local 133 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600); 134 if (fd < 0) 136 (void) fstat(fd, &sbuf); 145 (void) write(fd, "0", 2); 146 (void) close(fd);
|
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | utime.c | 35 utimensat(int fd, const char *path, const timespec_t times[2], int flag) argument 37 return (syscall(SYS_utimensat, fd, path, times, flag)); 41 futimens(int fd, const timespec_t times[2]) argument 43 return (utimensat(fd, NULL, times, 0)); 93 futimesat(int fd, const char *path, const struct timeval times[2]) argument 112 return (utimensat(fd, path, tsp, 0));
|
H A D | execve.c | 45 fexecve(int fd, char *const argv[], char *const envp[]) argument 47 return (execvex((uintptr_t)fd, argv, envp, EXEC_DESCRIPTOR));
|
H A D | readlink.c | 32 readlinkat(int fd, const char *path, char *buf, size_t bufsize) argument 37 error = __systemcall(&rval, SYS_readlinkat, fd, path, buf, bufsize);
|
/osnet-11/usr/src/lib/libldap4/include/ |
H A D | client_door.h | 15 extern int operation_fd_dsserv(int pid, int cid, void * scid, int fd);
|
/osnet-11/usr/src/lib/libnsl/dial/ |
H A D | interface.c | 53 static void tfaillog(int fd, const char *s); 152 tread(int fd, char *buf, unsigned nbytes) argument 156 return ((ssize_t)t_rcv(fd, buf, nbytes, &rcvflags)); 164 twrite(int fd, char *buf, unsigned nbytes) argument 171 if (t_getinfo(fd, &info) != 0) { 172 tfaillog(fd, "twrite: t_getinfo\n"); 181 if (t_getstate(fd) != T_DATAXFER) 186 return ((ssize_t)t_snd(fd, buf, nbytes, NULL)); 191 if ((ret = t_snd(fd, &buf[i], info.tsdu, NULL)) != info.tsdu) 197 if ((ret = t_snd(fd, 209 tioctl(int fd, int request, ...) argument 270 tfaillog(int fd, const char *s) argument 297 show_tlook(int fd) argument [all...] |
H A D | callers.c | 234 /* take care of the possible partial open fd */ 456 static void tfaillog(int fd, const char *s); 463 * returns fd to remote uucp daemon 471 int fd; local 496 fd = t_open(devname, O_RDWR, &tinfo); 498 if (fd < 0) { 499 tfaillog(fd, "t_open"); 503 if (fd_mklock(fd) != SUCCESS) { 504 (void) t_close(fd); 512 if ((bind_ret = (struct t_bind *)t_alloc(fd, T_BIN [all...] |
/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/cmd/sendmail/db/os/ |
H A D | os_rw.c | 88 __os_read(fd, addr, len, nrp) 89 int fd; 101 __db_jump.j_read(fd, taddr, len - offset) : 102 read(fd, taddr, len - offset)) < 0) 118 __os_write(fd, addr, len, nwp) 119 int fd; 131 __db_jump.j_write(fd, taddr, len - offset) : 132 write(fd, taddr, len - offset)) < 0)
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfpkrd.c | 40 ssize_t sfpkrd(int fd, Void_t* argbuf, size_t n, int rc, long tm, int action) argument 42 ssize_t sfpkrd(fd, argbuf, n, rc, tm, action) 43 int fd; /* file descriptor */ 59 return sysreadf(fd,buf,n); 84 if((r = ioctl(fd,I_PEEK,&pbuf)) < 0) 93 r = sysreadf(fd,buf,1); 118 po.fd = fd; 143 FD_SET(fd,&rd); 151 r = select(fd [all...] |
/osnet-11/usr/src/lib/libtsol/common/ |
H A D | getlabel.c | 63 fgetlabel(int fd, bslabel_t *label) argument 65 return (syscall(SYS_labelsys, TSOL_FGETLABEL, fd, label));
|
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 106 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/libsmbfs/common/ |
H A D | smbfs_iod_cl.c | 95 int fd, rc; local 100 fd = open(path, O_RDONLY, 0); 101 if (fd < 0) 113 rc = door_call(fd, &da); 116 (void) close(fd); 120 (void) close(fd); 125 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); 127 *fdp = fd; 139 int fd = -1; local 142 while ((err = smbfs_iod_open_door(&fd)) ! [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | sendauth.c | 49 krb5_pointer fd, char *appl_version, krb5_principal client, 77 if ((retval = krb5int_write_messages(context, fd, outbuf, 2))) 83 if ((len = krb5_net_read(context, *((int *) fd), (char *)&result, 1)) != 1) 152 if (getpeername (*(int*)fd, (GETPEERNAME_ARG2_TYPE *) rnd_data, 159 if (getsockname (*(int*)fd, (GETSOCKNAME_ARG2_TYPE *) rnd_data, 177 retval = krb5_write_message(context, fd, &outbuf[0]); 180 k5_trace_message_send(*((int *)fd), outbuf[0].data, outbuf[0].length); 191 if ((retval = krb5_read_message(context, fd, &inbuf))) 196 k5_trace_message_recv(*((int *)fd), inbuf.data, inbuf.length); 215 if ((retval = krb5_read_message(context, fd, 48 krb5_sendauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer fd, char *appl_version, krb5_principal client, krb5_principal server, krb5_flags ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_ccache ccache, krb5_error **error, krb5_ap_rep_enc_part **rep_result, krb5_creds **out_creds) argument [all...] |
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 64 static int lustatus(int fd); 65 static int lufslist(int fd); 66 static int run_cmd(char *path, char *cmd, char *arg, int fd); 170 int fd; local 173 if ((fd = mkstemp(tmpname)) != -1) { 175 if (run_cmd("/usr/sbin/lustatus", "lustatus", NULL, fd)) { 176 status = lustatus(fd); 178 (void) close(fd); 190 lufslist(int fd) argument 196 if ((fp = fdopen(fd, " 248 lustatus(int fd) argument 302 run_cmd(char *path, char *cmd, char *arg, int fd) argument [all...] |
/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 62 int fd; member in struct:node 98 int fd; local 168 if ((fd = curr->fd) != myside && fd != yourside && 169 fcntl(fd, F_GETFD) >= 0) 170 error = posix_spawn_file_actions_addclose(&fact, fd); 292 _insert_nolock(pid_t pid, int fd, node_t *new) argument 299 * curr->fd can equal fd i 328 _insert(pid_t pid, int fd) argument 344 _delete(int fd) argument [all...] |
/osnet-11/usr/src/lib/libsun_ima/common/ |
H A D | ima.c | 267 int fd; local 274 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 284 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) { 302 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) { 313 (void) close(fd); 322 int fd; local 325 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 336 if (ioctl(fd, ISCSI_INIT_NODE_NAME_SET, &ps)) { 339 (void) close(fd); 343 (void) close(fd); 352 int fd; local 416 int fd; local 786 int fd, i, addr_list_size; local 930 int status, fd, i, addr_list_size; local 1046 int fd; local 1081 int fd, status; local 1153 int fd; local 1257 int status, fd; local 1295 int fd; local 1444 int fd; local 1591 int fd; local 1737 int fd; local 1828 int fd; local 1931 int fd; local 2180 int fd; local 2235 int fd; local 2283 int fd; local 2348 int fd; local 2431 int fd, status; local 2474 int fd; local 2557 int fd; local 2629 int fd; local 2677 int fd, i; local 3055 int fd; local 3159 int fd; local 3289 int fd; local 3355 int fd; local [all...] |
/osnet-11/usr/src/lib/libshadowfs/common/ |
H A D | shadow_migrate.c | 94 int fd; local 107 if ((fd = open(path, O_RDONLY)) < 0) 110 if (fstat64(fd, &statbuf) != 0) { 111 (void) close(fd); 116 (void) close(fd); 120 if (read(fd, &header, sizeof (header)) < sizeof (header)) { 121 (void) close(fd); 127 (void) close(fd); 135 (void) close(fd); 151 (void) close(fd); 223 int fd; local 541 int fd; local 607 shadow_migrate_fd(int fd, uint64_t *size) argument 631 int fd; local 711 int fd; local 740 int fd; local [all...] |