Searched refs:pos (Results 1 - 25 of 800) sorted by relevance

1234567891011>>

/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dfgetpos.c47 fgetpos(fp, pos)
49 fpos_t *pos;
51 return((*pos = ftello(fp)) == (fpos_t)-1);
/haiku-fatelf/src/system/libroot/posix/glibc/libio/
H A Dftello.c38 _IO_off64_t pos; local
42 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0);
46 pos -= fp->_IO_save_end - fp->_IO_save_base;
50 if (pos == _IO_pos_BAD)
58 if ((_IO_off64_t) (off_t) pos != pos)
65 return pos;
H A Dftello64.c39 _IO_off64_t pos; local
43 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0);
47 pos -= fp->_IO_save_end - fp->_IO_save_base;
51 if (pos == _IO_pos_BAD)
59 return pos;
H A Dioftell.c37 _IO_off64_t pos; local
41 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0);
45 pos -= fp->_IO_save_end - fp->_IO_save_base;
49 if (pos == _IO_pos_BAD)
57 if ((_IO_off64_t) (off_t) pos != pos)
64 return pos;
H A Dioseekpos.c34 _IO_seekpos_unlocked(_IO_FILE *fp, _IO_off64_t pos, int mode) argument
49 return _IO_SEEKPOS(fp, pos, mode);
54 _IO_seekpos(_IO_FILE *fp, _IO_off64_t pos, int mode) argument
61 retval = _IO_seekpos_unlocked(fp, pos, mode);
/haiku-fatelf/src/bin/less/
H A Djump.c33 POSITION pos; local
48 pos = back_line(end_pos);
49 if (pos == NULL_POSITION)
53 jump_loc(pos, sc_height-1);
66 POSITION pos; local
75 pos = find_pos(linenum);
76 if (pos != NULL_POSITION && ch_seek(pos) == 0)
79 set_attnpos(pos);
80 jump_loc(pos, jump_slin
116 POSITION pos, len; local
[all...]
H A Dforwback.c59 POSITION pos; local
70 pos = position(BOTTOM_PLUS_ONE);
71 if (pos == NULL_POSITION || pos == ch_length())
92 * starting at position pos in the input file.
96 * real line. If nblank > 0, the pos must be NULL_POSITION.
100 forw(n, pos, force, only_last, nblank)
102 POSITION pos;
128 if (top_scroll && n >= sc_height - 1 && pos != ch_length())
137 add_forw_pos(pos);
332 POSITION pos; local
385 POSITION pos; local
[all...]
H A Dlinenum.c46 POSITION pos; /* File position */ member in struct:linenum_info
98 anchor.pos = (POSITION)0;
117 p->gap = p->next->pos - p->prev->pos;
122 * The specified position (pos) should be the file position of the
126 add_lnum(linenum, pos)
128 POSITION pos;
140 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next)
171 new->pos
438 POSITION pos; local
[all...]
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dfflush.c38 off_t pos; local
65 pos = ftello (stream);
66 if (pos == -1)
88 result = fseeko (stream, pos, SEEK_SET);
96 pos = lseek (fileno (stream), pos, SEEK_SET);
97 if (pos == -1)
102 stream->_offset = pos;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/
H A Dpath_util.cpp29 int pos = len - 1; local
30 while (pos > 0 && path[pos] != '/')
31 pos--;
32 if (path[pos] == '/')
33 pos++;
35 path += pos;
36 len -= pos;
/haiku-fatelf/src/tools/fs_shell/
H A Dpath_util.cpp33 int pos = len - 1; local
34 while (pos > 0 && path[pos] != '/')
35 pos--;
36 if (path[pos] == '/')
37 pos++;
39 path += pos;
40 len -= pos;
/haiku-fatelf/headers/private/input/
H A Dshared_cursor_area.h16 uint32 pos; member in struct:shared_cursor
/haiku-fatelf/src/add-ons/translators/exr/openexr/imath/
H A DImathGLU.h47 gluLookAt(const Imath::V3f &pos, const Imath::V3f &interest, const Imath::V3f &up) argument
49 gluLookAt(pos.x, pos.y, pos.z,
/haiku-fatelf/src/bin/coreutils/src/
H A Dtest.c60 static int pos; /* The offset of the current argument in ARGV. */ variable
97 ++pos;
99 if (f && pos >= argc)
107 ++pos;
207 while (pos < argc && argv[pos][0] == '!' && argv[pos][1] == '\0')
213 if (pos >= argc)
217 if (argv[pos][0] == '(' && argv[pos][
[all...]
/haiku-fatelf/src/add-ons/media/plugins/musepack/mpc/
H A Dbitstream.cpp24 pos = 0;
33 return 32*WordsRead + pos;
42 pos += bits;
44 if (pos<32)
46 out >>= (32-pos);
51 pos -= 32;
52 if (pos)
54 out <<= pos; local
55 out |= dword >> (32-pos);
68 unsigned int code = dword << pos;
[all...]
/haiku-fatelf/src/bin/bash/
H A Dtest.c106 static int pos; /* The offset of the current argument in ARGV. */ variable
160 #define advance(f) do { ++pos; if (f && pos >= argc) beyond (); } while (0)
161 #define unary_advance() do { advance (1); ++pos; } while (0)
170 if (pos >= argc)
187 if (pos < argc && argv[pos][0] == '-' && argv[pos][1] == 'o' && !argv[pos][2])
208 if (pos < arg
[all...]
/haiku-fatelf/src/kits/storage/sniffer/
H A DErr.cpp20 Err::Err(const char *msg, const ssize_t pos) argument
24 SetTo(msg, pos);
27 Err::Err(const std::string &msg, const ssize_t pos) argument
31 SetTo(msg, pos);
52 Err::SetTo(const char *msg, const ssize_t pos) { argument
54 SetPos(pos);
59 Err::SetTo(const std::string &msg, const ssize_t pos) { argument
60 return SetTo(msg.c_str(), pos);
94 Err::SetPos(ssize_t pos) { argument
95 fPos = pos;
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/
H A Dtst-ungetwc2.c19 long int pos; local
49 pos = ftell(fp);
50 printf("After get a character: %ld\n", pos);
51 if (pos != 1)
60 pos = ftell(fp);
61 printf("After unget a character: %ld\n", pos);
62 if (pos != 0)
67 pos = ftell(fp);
68 printf("After reget a character: %ld\n", pos);
69 if (pos !
[all...]
/haiku-fatelf/src/add-ons/print/transports/ipp/
H A DIpp.cpp39 char *_ParseString(BString& outStr, char*& pos);
89 char* pos; local
106 if ((pos=strchr(packet, '"')) != NULL) {
108 if (_ParseString(str, pos))
110 if (pos && _ParseString(str, pos))
112 if (pos && _ParseString(str, pos))
115 if (pos)
116 printer->fAttributes = pos;
152 _ParseString(BString& outStr, char*& pos) argument
[all...]
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dxstrchr.c46 char *pos; local
56 pos = (char *)s;
62 mblength = mbrlen (pos, strlength, &state);
66 if (c == (unsigned char)*pos)
67 return pos;
70 pos += mblength;
/haiku-fatelf/src/system/boot/platform/openfirmware/
H A DHandle.cpp49 Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
51 if (pos == -1 || of_seek(fHandle, pos) != OF_FAILED)
59 Handle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
61 if (pos == -1 || of_seek(fHandle, pos) != OF_FAILED)
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dread.c33 read_pos(int fd, off_t pos, void* buffer, size_t bufferSize) argument
35 if (pos < 0)
38 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize));
43 pread(int fd, void* buffer, size_t bufferSize, off_t pos) argument
45 if (pos < 0)
48 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize));
H A Dwrite.c31 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument
33 if (pos < 0)
36 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize));
41 pwrite(int fd, const void *buffer, size_t bufferSize, off_t pos) argument
43 if (pos < 0)
46 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize));
/haiku-fatelf/src/add-ons/media/plugins/asf_reader/libasf/
H A Dutf.h37 uint32_t length, pos; local
73 pos = 0;
90 ret[pos++] = 0xF0 | ((codepoint >> 18) & 0x07);
91 ret[pos++] = 0x80 | ((codepoint >> 12) & 0x3F);
92 ret[pos++] = 0x80 | ((codepoint >> 6) & 0x3F);
93 ret[pos++] = 0x80 | (codepoint & 0x3F);
95 ret[pos++] = 0xE0 | (codepoint >> 12);
96 ret[pos++] = 0x80 | ((codepoint >> 6) & 0x3F);
97 ret[pos++] = 0x80 | (codepoint & 0x3F);
99 ret[pos
[all...]
/haiku-fatelf/src/bin/makeudfimage/
H A DEmbeddedStream.cpp24 corresponding to the extent starting at byte position \a pos of
31 EmbeddedStream::_GetExtent(off_t pos, size_t size, data_extent &extent) argument
33 if (pos >= fSize) {
39 extent.offset = fOffset + pos;
40 extent.size = fSize - pos;

Completed in 229 milliseconds

1234567891011>>