Searched refs:write (Results 1 - 25 of 44) sorted by relevance

12

/xnu-2782.1.97/libsyscall/mach/
H A Dpanic.c64 extern int write(int fd, const char* cbuf, int nbyte);
80 write(__STDERR_FILENO, buffer, len+1);
H A Dfprintf_stderr.c41 int write(int fd, const char* cbuf, int nbyte);
61 write(__STDERR_FILENO, buffer, retval);
/xnu-2782.1.97/iokit/IOKit/nvram/
H A DIONVRAMController.h45 virtual IOReturn write(IOByteCount offset, UInt8 *buffer,
/xnu-2782.1.97/libkern/zlib/
H A Dinffast.c61 Decode literal, length, and distance codes and write out the resulting
110 unsigned write; /* window write index */ local
137 write = state->write;
223 if (write == 0) { /* very common case */
233 else if (write < op) { /* wrap around window */
234 from += wsize + write - op;
235 op -= write;
242 if (write < le
[all...]
H A Dinflate.h71 LIT, /* o: waiting for output space to write literal */
118 unsigned write; /* window write index */ member in struct:inflate_state
H A Dinflate.c75 * - Pull out common write == 0 case for speed in inflate_fast()
147 state->write = 0;
372 state->write = 0;
380 state->write = 0;
384 dist = state->wsize - state->write;
386 zmemcpy(state->window + state->write, strm->next_out - copy, dist);
390 state->write = copy;
394 state->write += dist;
395 if (state->write == state->wsize) state->write
[all...]
/xnu-2782.1.97/libkern/kxld/tests/
H A Dloadtest.py51 kextload.stdin.write("0x1000\n");
/xnu-2782.1.97/tools/lldbmacros/core/
H A Dstandard.py62 def write(self, s): member in class:CommandOutput
66 if self.fhandle != None: self.fhandle.write(s)
69 sys.__stdout__.write(s)
110 self.fhandle.write("(lldb)%s \n" % " ".join(cmdargs))
/xnu-2782.1.97/tools/tests/superpages/
H A Dmeasure_tlbs.c22 testt(boolean_t superpages, int mode, int write, int kb) { argument
46 if (write) {
61 if (write) {
80 if (write) {
120 time3 = testt(TRUE, mode, 1, kb); // write super
121 time4 = testt(FALSE, mode, 1, kb); // write base
/xnu-2782.1.97/osfmk/profiling/
H A Dprofile-kgmon.c89 _profile_kgmon(int write, argument
111 if (!write) {
151 if (!write) {
246 printf("Unknown KGMON write command\n");
/xnu-2782.1.97/tools/tests/libMicro/
H A DMakefile.benchmarks110 write \
H A Dselect.c161 (void) write(fds[j+1 - (2*(j%2))], "", 1);
165 (void) write(fds[i+1 - (2*(i%2))], "", 1);
H A Dwrite.c63 " [-f file-to-write (default %s)]\n"
69 "notes: measures write()\n",
137 if (write(ts->ts_fd, ts->ts_buf, opts) != opts) {
H A Dpoll.c150 (void) write(fds[j+1 - (2*(j%2))], "", 1);
155 (void) write(fds[i+1 - (2*(i%2))], "", 1);
H A Dpipe.c108 "notes: measures write()/read() across various transports\n",
214 if (write(ts->ts_out, wbuf, opts) != opts) {
232 if (write(ts->ts_out, wbuf, opts) != opts) {
254 (void) write(ts->ts_out, wbuf, opts);
326 if (write(ts->ts_out2, wbuf, opts) != opts) {
/xnu-2782.1.97/tools/tests/libMicro/apple/
H A Dlmbench_write.c31 #pragma ident "@(#)write.c 1.3 05/08/04 Apple Inc."
66 " [-f file-to-write (default %s)]\n"
150 if (write(ts->ts_fd, ts->ts_buf, opts) != opts) {
H A Dlmbench_bw_unix.c88 size_t xfer; /* bytes to read/write per "packet" */
89 size_t bytes; /* bytes to read/write in one iteration */
254 write(state->control[1], &todo, sizeof(todo));
333 if ((n = write(writefd, buf, state->xfer)) < 0) {
H A Dlmbench_lat_ctx.c143 debug("read/write on pipe");
147 if (write(wr, &msg, sizeof(msg)) != sizeof(msg)) {
148 debug("read/write on pipe");
315 if (write(p[0][1], &msg, sizeof(msg)) != sizeof(msg) ||
317 debug("write/read/write on pipe");
412 if (write(ts->p[i][1], &msg, sizeof(msg)) != sizeof(msg)) {
413 debug("read/write on pipe");
417 debug("read/write on pipe");
620 if (write(t
[all...]
/xnu-2782.1.97/tools/tests/perf_index/
H A Dtest_file_helper.c69 retval = write(fd, readbuff, writelen);
70 VERIFY(retval == writelen, "write failed");
161 retval = write(fd, writebuff, writelen);
162 VERIFY(retval == writelen, "write failed");
H A Dtest_controller.py50 sys.stderr.write("usage: start_tests.py num_clients type threads size\n")
/xnu-2782.1.97/SETUP/replacecontents/
H A Dreplacecontents.c119 writesize = write(dstfd, newcontent, newcontentlength);
121 err(EX_UNAVAILABLE, "write() failed");
123 errx(EX_UNAVAILABLE, "short write of file");
/xnu-2782.1.97/tools/tests/xnu_quick_test/
H A Dkqueue_tests.c194 my_count = write( my_sockets[1], "r", 1 );
196 printf( "write call failed. got errno %d - %s. \n", errno, strerror( errno ) );
211 my_count = write( my_fd, "11111111", 8 );
213 printf( "write call failed with error %d - \"%s\" \n", errno, strerror( errno) );
284 my_count = write( my_sockets[0], "g", 1 );
286 printf( "write call failed. got errno %d - %s. \n", errno, strerror( errno ) );
308 my_count = write( my_sockets[0], "e", 1 );
310 printf( "write call failed. got errno %d - %s. \n", errno, strerror( errno ) );
H A Dsocket_tests.c259 my_result = write( my_child_fd, "all done", 8 );
499 my_count = write( my_sockets[1], "r", 1 );
501 printf( "write call failed. got errno %d - %s. \n", errno, strerror( errno ) );
571 write( my_sockets[0], "d", 1 );
/xnu-2782.1.97/osfmk/i386/
H A Dlapic.h179 void (*write) (lapic_register_t, uint32_t); member in struct:__anon902
186 #define LAPIC_WRITE(reg,val) lapic_ops->write(reg, val)
/xnu-2782.1.97/bsd/man/man2/
H A DMakefile229 write.2 \

Completed in 102 milliseconds

12