/osnet-11/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_recno.c | 1003 int fd, ret, t_ret; local 1061 DB_SEQUENTIAL | DB_TRUNCATE, 0, &fd)) != 0) { 1091 __os_write(fd, data.data, data.size, &nw)) != 0) 1101 __os_write(fd, pad, rp->re_len, &nw)) != 0) 1114 if ((ret = __os_write(fd, &delim, 1, &nw)) != 0) 1125 if ((t_ret = __os_close(fd)) != 0 || ret == 0)
|
/osnet-11/usr/src/cmd/sendmail/libsmdb/ |
H A D | smdb1.c | 202 smdb1_fd(database, fd) 204 int *fd; 208 *fd = db->fd(db); 209 if (*fd == -1) 281 int fd; local 285 fd = db->fd(db); 286 if (fd == -1) 289 result = fchown(fd, ui [all...] |
H A D | smdb2.c | 258 smdb2_fd(database, fd) 260 int *fd; 264 return db2_error_to_smdb(db->fd(db, fd)); 327 int fd; local 331 result = db->fd(db, &fd); 335 result = fchown(fd, uid, gid); 651 result = db->fd(db, &db_fd);
|
H A D | smndbm.c | 141 smdbm_fd(database, fd) 143 int *fd; 147 *fd = dbm_dirfno(dbm); 148 if (*fd <= 0) 248 int fd; local 252 fd = dbm_dirfno(dbm); 253 if (fd <= 0) 256 result = fchown(fd, uid, gid); 260 fd = dbm_pagfno(dbm); 261 if (fd < [all...] |
/osnet-11/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | pppoe.c | 65 strioctl(int fd, int cmd, void *ptr, int ilen, int olen) argument 74 if (ioctl(fd, I_STR, &str) == -1) { 90 int tstfd; /* fd for device being checked */ 459 saveenv(FILE *fd, const char *envname) argument 464 if (fgets(envstr, sizeof (envstr), fd) == NULL) 480 FILE *fd; local 484 fd = fdopen(pipefd, "r"); 485 if (fd == NULL) 487 (void) saveenv(fd, "IF_AND_SERVICE"); 488 (void) saveenv(fd, "SERVICE_NAM [all...] |
/osnet-11/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 261 close_device (int *fd) argument 263 if (*fd > 0) { 264 close (*fd); 265 *fd = -1; 323 int fd = -1; local 375 close_device (&fd); 377 } else if ((fd < 0) && ((fd = open (raw_device_file, O_RDONLY | O_NONBLOCK)) < 0)) { 385 if (ioctl (fd, DKIOCSTATE, &state) == 0) { 426 close_device (&fd); [all...] |
/osnet-11/usr/src/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 128 get_cdrom_properties (int fd, LibHalChangeSet *cs) argument 155 walk_profiles(fd, get_cdrom_properties_walker, cs); 160 get_read_write_speeds(fd, &read_speed, &write_speed, &write_speeds, &n_wspeeds, &write_speeds_mem); 216 get_disk_properties (int fd, LibHalChangeSet *cs) argument 236 status = ioctl(fd, USCSICMD, &ucmd); 309 int fd = -1; local 404 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) { 409 dos_cnt = get_num_dos_drives(fd, block_size); 450 if (fd >= 0) { 451 close (fd); [all...] |
/osnet-11/usr/src/cmd/hal/probing/xkb/ |
H A D | probe-xkb.c | 91 int fd = -1; local 93 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { 103 if (ioctl(fd, I_FIND, "usbkbm") == 0) { 104 (void) ioctl(fd, I_PUSH, "usbkbm"); 109 if (ioctl(fd, KIOCTYPE, kbd_type) < 0) { 114 if (ioctl(fd, KIOCLAYOUT, kbd_layout) < 0) { 122 out: if (fd >= 0) { 123 close(fd);
|
/osnet-11/usr/src/cmd/hal/utils/ |
H A D | acpi.c | 41 laptop_panel_update(LibHalContext *ctx, const char *udi, int fd) argument 52 if ((ioctl(fd, ACPI_DRV_IOC_INFO, &inf) < 0) || 79 lid_update(LibHalContext *ctx, const char *udi, int fd) argument 98 if (ioctl(fd, ACPI_DRV_IOC_LID_STATUS, &lid_state) < 0) { 120 if (ioctl(fd, ACPI_DRV_IOC_LID_UPDATE, &lid_state) < 0) { 142 ac_adapter_present(LibHalContext *ctx, const char *udi, int fd) argument 149 if (ioctl(fd, ACPI_DRV_IOC_POWER_STATUS, &pow) < 0) { 267 battery_last_full(LibHalChangeSet *cs, int fd) argument 272 if (ioctl(fd, ACPI_DRV_IOC_INFO, &bif) < 0) { 280 battery_dynamic_update(LibHalContext *ctx, const char *udi, int fd) argument 445 battery_static_update(LibHalContext *ctx, const char *udi, int fd) argument 559 battery_update(LibHalContext *ctx, const char *udi, int fd) argument 618 int fd; local 648 ac_adapter_update(LibHalContext *ctx, const char *udi, int fd) argument 684 int fd; local [all...] |
H A D | fsutils.c | 113 walk_partitions(int fd, int startsec, uint_t secsz, argument 129 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { 183 find_dos_drive(int fd, int num, uint_t secsz, off_t *offset) argument 190 walk_partitions(fd, 0, secsz, find_dos_drive_cb, &p); 210 get_num_dos_drives(int fd, uint_t secsz) argument 214 walk_partitions(fd, 0, secsz, get_num_dos_drives_cb, &count);
|
/osnet-11/usr/src/lib/libast/amd64/include/ast/ |
H A D | error.h | 80 #define ERROR_OUTPUT 0x0200 /* next arg is error fd */ 128 int fd; /* write(2) fd */ member in struct:Error_info_s
|
/osnet-11/usr/src/lib/libast/common/include/ |
H A D | error.h | 71 #define ERROR_OUTPUT 0x0200 /* next arg is error fd */ 119 int fd; /* write(2) fd */ member in struct:Error_info_s
|
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | fastfind.c | 175 int fd; local 318 if (!pathtemp(fp->encode.temp, sizeof(fp->encode.temp), p, "ff", &fd)) 326 if (!(fp->fp = sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, SF_WRITE))) 330 close(fd);
|
H A D | procopen.c | 113 short fd; member in struct:Fd_s 130 } fd; member in union:Mod_s::__anon1166 256 m->arg.fd.parent.fd = (short)arg1; 257 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0); 258 if ((m->arg.fd.child.fd = (short)arg2) != arg1) 262 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0); 277 if (m->arg.fd.parent.flag) 281 else if (!m->arg.fd [all...] |
/osnet-11/usr/src/lib/libast/common/vmalloc/ |
H A D | vmmopen.c | 80 int fd; /* file descriptor */ member in struct:_mmvmdisc_s 94 int fd; local 100 if((fd = open(file, O_RDWR, CREAT_MODE)) >= 0) 101 { if((size = lseek(fd, (off_t)0, 2)) < 0) 107 if(lseek(fd, (off_t)0, 0) != (off_t)0) 109 if(read(fd, mm, sizeof(Mmvm_t)) != sizeof(Mmvm_t)) 115 MAP_FIXED|MAP_SHARED, fd, (off_t)0 ); 120 { if((fd = open(file, O_RDWR|O_CREAT, CREAT_MODE)) < 0) 125 if(lseek(fd, size-1, 0) != (size-1) || write(fd, "", 256 int fd; local [all...] |
H A D | vmtrace.c | 235 int fd; local 241 fd = Trfile; 243 return fd;
|
/osnet-11/usr/src/lib/libast/i386/include/ast/ |
H A D | error.h | 80 #define ERROR_OUTPUT 0x0200 /* next arg is error fd */ 128 int fd; /* write(2) fd */ member in struct:Error_info_s
|
/osnet-11/usr/src/lib/libast/sparc/include/ast/ |
H A D | error.h | 80 #define ERROR_OUTPUT 0x0200 /* next arg is error fd */ 128 int fd; /* write(2) fd */ member in struct:Error_info_s
|
/osnet-11/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | error.h | 80 #define ERROR_OUTPUT 0x0200 /* next arg is error fd */ 128 int fd; /* write(2) fd */ member in struct:Error_info_s
|
/osnet-11/usr/src/lib/libbsm/common/ |
H A D | audit_cron.c | 90 int fd; local 98 if ((fd = open(fname_aux, O_RDONLY)) == -1) { 102 if (fstat(fd, &st) == -1) { 107 if (read(fd, textbuf, st.st_size) != st.st_size) { 133 (void) close(fd); 137 (void) close(fd); 184 int fd, len, r; local 191 if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1) 213 if (write(fd, textbuf, len) != len) 216 if (fchmod(fd, 040 [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | attrat.c | 58 __openattrdirat(int fd, const char *name) argument 60 return (syscall(SYS_openat, fd, name, FXATTRDIROPEN, 0)); 176 cgetattr(int fd, nvlist_t **response) argument 186 if ((error = fstat(fd, &buf)) != 0) 192 bytesread = read(fd, nv_response, nv_responselen); 210 csetattr(int fd, nvlist_t *request) argument 223 byteswritten = write(fd, nv_request, nv_requestlen);
|
H A D | catopen.c | 390 int fd; local 397 fd = nls_safe_open(name, &statbuf, &trust, safe); 399 if (fd == -1) { 403 addr = mmap(0, (size_t)statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); 404 (void) close(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 | mon.c | 363 int fd; local 369 if ((fd = creat(mon_out, 0666)) < 0) 388 ok = (write(fd, (char *)&sum, sizeof (sum)) == sizeof (sum)); 399 ok = (write(fd, p, amt) == amt); 408 ok = (write(fd, p, amt) == amt); 413 (void) close(fd);
|
H A D | nlspath_checks.c | 87 int fd; local 101 fd = open(path, O_RDONLY); 103 if (fd < 0) 106 if (fstat64(fd, statbuf) == -1) { 107 (void) close(fd); 189 (void) close(fd); 202 return (fd);
|