/osnet-11/usr/src/lib/libast/common/stdio/ |
H A D | _stdopen.c | 29 _stdopen(int fd, const char* mode) argument 31 return fdopen(fd, mode);
|
H A D | fdopen.c | 27 fdopen(int fd, const char* mode) argument 31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL))) 33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
|
/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_fsync.c | 27 __mpe_fsync(fd) 28 int fd; 32 FCONTROL(_MPE_FILENO(fd), 2, NULL); /* Flush the buffers */ 33 FCONTROL(_MPE_FILENO(fd), 6, NULL); /* Write the EOF */ 39 #define fsync(fd) __mpe_fsync(fd); 42 #define fsync(fd) _commit(fd); 52 __os_fsync(fd) 53 int fd; [all...] |
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | tli_wrappers.c | 41 t_accept(int fd, int resfd, const struct t_call *call) argument 43 return (_tx_accept(fd, resfd, call, TX_TLI_API)); 47 t_alloc(int fd, int struct_type, int fields) argument 49 return (_tx_alloc(fd, struct_type, fields, TX_TLI_API)); 53 t_bind(int fd, const struct t_bind *req, struct t_bind *ret) argument 55 return (_tx_bind(fd, req, ret, TX_TLI_API)); 59 t_close(int fd) argument 61 return (_tx_close(fd, TX_TLI_API)); 65 t_connect(int fd, const struct t_call *sndcall, struct t_call *rcvcall) argument 67 return (_tx_connect(fd, sndcal 88 t_getinfo(int fd, struct t_info *info) argument 94 t_getstate(int fd) argument 100 t_listen(int fd, struct t_call *call) argument 106 t_look(int fd) argument 123 t_optmgmt(int fd, const struct t_optmgmt *req, struct t_optmgmt *ret) argument 129 t_rcv(int fd, void *buf, unsigned int nbytes, int *flags) argument 135 t_rcvconnect(int fd, struct t_call *call) argument 141 t_rcvdis(int fd, struct t_discon *discon) argument 147 t_rcvrel(int fd) argument 153 t_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) argument 159 t_rcvuderr(int fd, struct t_uderr *uderr) argument 165 t_snd(int fd, void *buf, unsigned int nbytes, int flags) argument 171 t_snddis(int fd, const struct t_call *call) argument 177 t_sndrel(int fd) argument 183 t_sndudata(int fd, const struct t_unitdata *unitdata) argument 195 t_sync(int fd) argument 201 t_unbind(int fd) argument 207 t_getname(int fd, struct netbuf *name, int type) argument [all...] |
H A D | xti_wrappers.c | 54 _xti_accept(int fd, int resfd, struct t_call *call) argument 56 return (_tx_accept(fd, resfd, call, TX_XTI_API)); 60 _xti_xns5_accept(int fd, int resfd, const struct t_call *call) argument 62 return (_tx_accept(fd, resfd, call, TX_XTI_XNS5_API)); 66 _xti_alloc(int fd, int struct_type, int fields) argument 68 return (_tx_alloc(fd, struct_type, fields, TX_XTI_API)); 72 _xti_bind(int fd, const struct t_bind *req, struct t_bind *ret) argument 74 return (_tx_bind(fd, req, ret, TX_XTI_API)); 78 _xti_close(int fd) argument 80 return (_tx_close(fd, TX_XTI_AP 84 _xti_connect(int fd, const struct t_call *sndcall, struct t_call *rcvcall) argument 106 _xti_getinfo(int fd, struct t_info *info) argument 112 _xti_getprotaddr(int fd, struct t_bind *boundaddr, struct t_bind *peeraddr) argument 118 _xti_getstate(int fd) argument 124 _xti_listen(int fd, struct t_call *call) argument 130 _xti_look(int fd) argument 142 _xti_optmgmt(int fd, const struct t_optmgmt *req, struct t_optmgmt *ret) argument 148 _xti_rcv(int fd, void *buf, unsigned int nbytes, int *flags) argument 154 _xti_rcvconnect(int fd, struct t_call *call) argument 160 _xti_rcvdis(int fd, struct t_discon *discon) argument 166 _xti_rcvrel(int fd) argument 172 _xti_rcvreldata(int fd, struct t_discon *discon) argument 178 _xti_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) argument 184 _xti_rcvuderr(int fd, struct t_uderr *uderr) argument 190 _xti_rcvv(int fd, struct t_iovec *tiov, unsigned int tiovcount, int *flags) argument 196 _xti_rcvvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount, int *flags) argument 204 _xti_snd(int fd, void *buf, unsigned int nbytes, int flags) argument 210 _xti_xns5_snd(int fd, void *buf, unsigned int nbytes, int flags) argument 216 _xti_snddis(int fd, const struct t_call *call) argument 223 _xti_sndrel(int fd) argument 229 _xti_sndreldata(int fd, struct t_discon *discon) argument 235 _xti_sndudata(int fd, const struct t_unitdata *unitdata) argument 241 _xti_sndv(int fd, const struct t_iovec *tiov, unsigned int tiovcount, int flags) argument 247 _xti_sndvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount) argument 260 _xti_sync(int fd) argument 272 _xti_unbind(int fd) argument [all...] |
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | tinputfd.c | 50 tinputfd(int fd) argument 52 cur_term->_inputfd = fd;
|
H A D | typeahead.c | 49 * Set the file descriptor for typeahead checks to fd. fd can be -1 54 typeahead(int fd) argument 103 * cur_term->_check_fd = (tty = ttyname(fd)) ? 106 if (isatty(fd)) { 116 if (isatty(fd)) 117 cur_term->_check_fd = fd;
|
/osnet-11/usr/src/cmd/sendmail/include/sm/ |
H A D | fdset.h | 18 ** Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked 22 # define SM_FD_SET(fd, pfdset) FD_SET(fd, pfdset) 23 # define SM_FD_ISSET(fd, pfdset) FD_ISSET(fd, pfdset) 25 # define SM_FD_OK_SELECT(fd) (FD_SETSIZE <= 0 || (fd) < FD_SETSIZE)
|
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | flushinp.c | 53 int fd; local 63 fd = cur_term->_ifd; 65 fd = cur_term->_ofd; 67 fd = -1; 69 if (0 <= fd) 70 (void) tcflush(fd, TCIFLUSH);
|
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | flushinp.c | 58 int fd; local 64 fd = cur_term->_ifd; 66 fd = cur_term->_ofd; 68 fd = -1; 70 if (0 <= fd) 71 (void) tcflush(fd, TCIFLUSH);
|
/osnet-11/usr/src/lib/libresolv2/common/bsd/ |
H A D | daemon.c | 53 int fd; local 70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 71 (void)dup2(fd, STDIN_FILENO); 72 (void)dup2(fd, STDOUT_FILENO); 73 (void)dup2(fd, STDERR_FILENO); 74 if (fd > 2) 75 (void)close (fd);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | daemon.c | 45 int retv, fd; local 77 if ((fd = open("/dev/null", O_RDWR)) == -1) 86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { 87 (void) close(fd); 90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { 91 (void) close(fd); 94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILEN [all...] |
H A D | opendir.c | 48 int fd; local 51 if ((fd = openat(AT_FDCWD, filename, 54 if ((dirp = fdopendir(fd)) == NULL) 55 (void) close(fd);
|
/osnet-11/usr/src/lib/libefi/common/ |
H A D | llib-lefi | 34 int efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc); 35 int efi_alloc_and_read(int fd, struct dk_gpt **vtoc); 36 int efi_write(int fd, struct dk_gpt *vtoc); 38 int efi_use_whole_disk(int fd);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | unlck_file.c | 34 krb5_unlock_file(krb5_context context, int fd) argument 36 return krb5_lock_file(context, fd, KRB5_LOCKMODE_UNLOCK);
|
H A D | safechown.c | 25 int fd; local 29 if ((fd = open(src, O_RDONLY, 0)) == -1) 32 if (fstat(fd, &fdbuf)) { 33 close(fd); 39 close(fd); 44 close(fd); 52 close(fd); 57 if (fchown(fd, uid, gid)) { 58 close(fd); 63 if (fchmod(fd, (mode_ [all...] |
/osnet-11/usr/src/lib/libnsctl/common/ |
H A D | cache.c | 59 nsc_fd_t *fd; local 66 if (!(fd = (nsc_fd_t *)calloc(1, sizeof (nsc_fd_t)))) 74 fd->sf_flag = flag; 75 fd->sf_fmode = mode; 77 strcpy(fd->sf_path, path); 79 if (!_nsc_open_path(fd)) { 80 free(fd); 84 if (ckdchk && !_nsc_open_check(fd)) { 85 (void) nsc_close(fd); 89 return (fd); 99 nsc_fd_t *fd; local 267 nsc_partsize(nsc_fd_t *fd, nsc_size_t *rvp) argument 305 int fd, rc, save_errno; local [all...] |
/osnet-11/usr/src/lib/libsqlite/tool/ |
H A D | speedtest.tcl | 18 set fd [open $sqlfile r] 19 set sql [string trim [read $fd [file size $sqlfile]]] 20 close $fd 78 set fd [open clear.sql w] 79 puts $fd { 83 close $fd 86 set fd [open 2kinit.sql w] 87 puts $fd { 91 close $fd 94 set fd [ope [all...] |
H A D | speedtest2.tcl | 18 set fd [open $sqlfile r] 19 set sql [string trim [read $fd [file size $sqlfile]]] 20 close $fd 70 set fd [open clear.sql w] 71 puts $fd { 75 close $fd 78 set fd [open 2kinit.sql w] 79 puts $fd { 83 close $fd 86 set fd [ope [all...] |
/osnet-11/usr/src/lib/libwanbootutil/common/ |
H A D | wbio.c | 35 * Write `buflen' bytes from `buffer' to the file represented by `fd'. 39 wbio_nwrite(int fd, const void *buffer, size_t buflen) argument 46 nbytes = write(fd, &buf[nwritten], buflen - nwritten); 55 * Read `buflen' bytes into `buffer' from the file represented by `fd'. 59 wbio_nread(int fd, void *buffer, size_t buflen) argument 66 nbytes = read(fd, &buf[nread], buflen - nread); 81 int fd; local 83 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) { 87 if (wbio_nread(fd, buffer, buflen) != 0) { 88 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | setsid.c | 44 int fd; 63 if ((fd = open("/dev/tty", O_RDONLY)) >= 0) 65 ioctl(fd, TIOCNOTTY, 0); 66 close(fd);
|
H A D | fsync.c | 39 fsync(int fd) 41 NoP(fd);
|
/osnet-11/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_files.c | 42 static evFile *FindFD(const evContext_p *ctx, int fd, int eventmask); 46 int fd, 57 "evSelectFD(ctx %p, fd %d, mask 0x%x, func %p, uap %p)\n", 58 ctx, fd, eventmask, func, uap); 62 if (fd > ctx->highestFD) 65 OK(mode = fcntl(fd, F_GETFL, NULL)); /*%< side effect: validate fd. */ 74 if (fd >= ctx->maxnfds && evPollfdRealloc(ctx, 1, fd) != 0) 77 id = FindFD(ctx, fd, EV_MASK_AL 45 evSelectFD(evContext opaqueCtx, int fd, int eventmask, evFileFunc func, void *uap, evFileID *opaqueID ) argument 268 FindFD(const evContext_p *ctx, int fd, int eventmask) argument [all...] |
/osnet-11/usr/src/cmd/hal/utils/ |
H A D | acpi.h | 19 gboolean battery_update(LibHalContext *ctx, const char *udi, int fd); 20 gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd); 21 gboolean lid_update(LibHalContext *ctx, const char *udi, int fd); 22 gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
|
H A D | cdutils.h | 40 int uscsi(int fd, struct uscsi_cmd *scmd); 41 int mode_sense(int fd, uchar_t pc, int dbd, int page_len, 43 int get_mode_page(int fd, int page_no, int pc, int buf_len, 45 int get_configuration(int fd, uint16_t feature, int bufsize, 47 boolean_t get_current_profile(int fd, int *profile); 48 void walk_profiles(int fd, int (*f)(void *, int, boolean_t), void *); 49 void get_read_write_speeds(int fd, int *read_speed, int *write_speed, 51 boolean_t get_disc_info(int fd, disc_info_t *); 52 boolean_t read_format_capacity(int fd, uint64_t *capacity); 53 boolean_t get_media_info(int fd, struc [all...] |