HomeSort by relevance Sort by last modified time
    Searched refs:fd (Results 1 - 25 of 39) sorted by null

1 2

  /nv-g11n/inputmethod/sunpinyin2/src/pinyin/
datrie_impl.h 59 int fd = open (fname, O_RDONLY); local
60 if (fd == -1) return false;
62 m_memSize = lseek (fd, 0, SEEK_END);
63 lseek (fd, 0, SEEK_SET);
66 suc = (m_mem = (char*) mmap (NULL, m_memSize, PROT_READ, MAP_SHARED, fd, 0)) != MAP_FAILED;
69 suc = suc && (read (fd, m_mem, m_memSize) > 0);
71 close (fd);
  /nv-g11n/g11n/src/lib/locale/ja_JP.PCK/lddat/
ldterm-data.c 311 int fd; local
314 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
315 if (fd < 0) {
321 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
328 close(fd);
  /nv-g11n/g11n/src/lib/locale/ja_JP.UTF-8/lddat/
ldterm-data.c 311 int fd; local
314 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
315 if (fd < 0) {
321 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
328 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_CN.GBK/
ldterm-data.c 364 int fd; local
367 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
368 if (fd < 0) {
374 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
381 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_CN.UTF-8/
ldterm-data.c 315 int fd; local
318 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
319 if (fd < 0) {
325 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
332 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_HK.BIG5HK/
ldterm-data.c 363 int fd; local
366 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
367 if (fd < 0) {
373 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
380 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_HK.UTF-8/
ldterm-data.c 315 int fd; local
318 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
319 if (fd < 0) {
325 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
332 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_TW.BIG5/
ldterm-data.c 364 int fd; local
367 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
368 if (fd < 0) {
374 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
381 close(fd);
  /nv-g11n/g11n/src/lib/locale/zh_TW.UTF-8/
ldterm-data.c 315 int fd; local
318 fd = open("./ldterm.dat", O_CREAT|O_WRONLY|O_TRUNC, 0444);
319 if (fd < 0) {
325 sz = write(fd, (void *)&csdata, sizeof (ldterm_cs_data_user_t));
332 close(fd);
  /nv-g11n/inputmethod/sunpinyin2/src/slm/
slm.cpp 59 int fd = open(fname, O_RDONLY); local
60 if (fd == -1) {
65 m_bufSize = lseek(fd, 0, SEEK_END);
66 lseek(fd, 0, SEEK_SET);
71 void* p = mmap(NULL, m_bufSize, PROT_READ, MAP_SHARED, fd, 0);
73 close(fd);
83 close(fd);
89 ssize_t n = read(fd, p, len);
99 close(fd);
102 if (read(fd, m_buf, m_bufSize) != m_bufSize)
    [all...]
  /nv-g11n/inputmethod/sunpinyin/ime/src/slm/
slm.cpp 59 int fd = open(fname, O_RDONLY); local
60 m_bufSize = lseek(fd, 0, SEEK_END);
61 lseek(fd, 0, SEEK_SET);
66 void* p = mmap(NULL, m_bufSize, PROT_READ, MAP_SHARED, fd, 0);
68 close(fd);
78 close(fd);
84 ssize_t n = read(fd, p, len);
94 close(fd);
97 if (read(fd, m_buf, m_bufSize) != m_bufSize) {
99 close(fd);
    [all...]
  /nv-g11n/inputmethod/sunpinyin/slm/src/slm/
slm.cpp 59 int fd = open(fname, O_RDONLY); local
60 m_bufSize = lseek(fd, 0, SEEK_END);
61 lseek(fd, 0, SEEK_SET);
66 void* p = mmap(NULL, m_bufSize, PROT_READ, MAP_SHARED, fd, 0);
68 close(fd);
78 close(fd);
84 ssize_t n = read(fd, p, len);
94 close(fd);
97 if (read(fd, m_buf, m_bufSize) != m_bufSize) {
99 close(fd);
    [all...]
  /nv-g11n/inputmethod/sunpinyin2/src/lexicon/
pytrie.cpp 78 int fd = open(fname, O_RDONLY); local
79 if (fd == -1) return false;
81 m_Size = lseek(fd, 0, SEEK_END);
82 lseek(fd, 0, SEEK_SET);
85 suc = (m_mem = (char *) mmap (NULL, m_Size, PROT_READ, MAP_SHARED, fd, 0)) != MAP_FAILED;
88 suc = suc && (read (fd, m_mem, m_Size) > 0);
90 close(fd);
  /nv-g11n/g11n/src/cmd/xuctblgen/
lookup_tbl.h 98 int LookupTable_save(LookupTable *lookup, int fd);
tblgen.c 169 int fd; local
408 if ((fd = open(filename,
411 if (LookupTable_save(ctw_tbl, fd)) {
412 close(fd);
415 close(fd);
466 if ((fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644)) == -1)
468 if (LookupTable_save(wtc_tbl[i], fd)) {
469 close(fd);
473 close(fd);
lookup_tbl.c 45 static int LookupTable_save_vector_type(LookupTable *lookup, int fd);
141 LookupTable_save(LookupTable *lookup, int fd)
151 return (LookupTable_save_vector_type(lookup, fd));
253 if (write(fd, (const void *)&size_type, sizeof(lookup_size_type_t)) !=
264 if (write(fd,
270 if (write(fd, (const void *)lookup->tbl_list[i].entry, size)
277 if (write(fd, (const void *)null_tbl[0].cs_entry, size)
282 if (write(fd, (const void *)null_tbl[0].entry, size)
289 if (write(fd, (const void *)null_tbl[i].entry, size) != size)
315 LookupTable_save_vector_type(LookupTable *lookup, int fd)
    [all...]
  /nv-g11n/g11n/src/lib/iconv/ko/
comb_to_byte.c 197 int fd,i,n; local
207 if((fd = open(*++argv,0)) == -1){
210 while ((n = read(fd,buf,bufsize)) > 0){
214 close(fd);
  /nv-g11n/inputmethod/sunpinyin/ime/src/lexicon/
pytrie.cpp 223 int fd = open(fname, O_RDONLY); local
224 if (fd == -1) return false;
226 suc = read (fd, &m_Size, sizeof(unsigned int)) > 0;
228 suc = suc && ((m_mem = (char *) mmap (NULL, m_Size+sizeof(unsigned int), PROT_READ, MAP_SHARED, fd, 0))
233 suc = suc && (read (fd, m_mem, m_Size) > 0);
235 close(fd);
  /nv-g11n/inputmethod/sunpinyin/slm/src/lexicon/
pytrie.cpp 223 int fd = open(fname, O_RDONLY); local
224 if (fd == -1) return false;
226 suc = read (fd, &m_Size, sizeof(unsigned int)) > 0;
228 suc = suc && ((m_mem = (char *) mmap (NULL, m_Size+sizeof(unsigned int), PROT_READ, MAP_SHARED, fd, 0))
233 suc = suc && (read (fd, m_mem, m_Size) > 0);
235 close(fd);
  /nv-g11n/g11n-spec/cmdassist/src/service/
stdsoap2.c 229 #define SOAP_SOCKBLOCK(fd) \
231 ioctlsocket(fd, FIONBIO, &blocking); \
233 #define SOAP_SOCKNONBLOCK(fd) \
235 ioctlsocket(fd, FIONBIO, &nonblocking); \
238 #define SOAP_SOCKBLOCK(fd) \
240 ioctl(fd, FIONBIO, (int)(&blocking)); \
242 #define SOAP_SOCKNONBLOCK(fd) \
244 ioctl(fd, FIONBIO, (int)(&nonblocking)); \
247 #define SOAP_SOCKBLOCK(fd) fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0)&~O_NONBLOCK)
534 fd_set fd; local
583 fd_set fd; local
635 fd_set fd; local
910 fd_set fd; local
980 fd_set fd; local
3288 fd_set fd; local
3636 SOAP_SOCKET fd; local
4483 { SOAP_SOCKET fd; local
4535 fd_set fd; local
4682 fd_set fd; local
    [all...]
  /nv-g11n/g11n/src/lib/iconv/utf-8/binarytables/test/
mkmnmcstbl.c 146 FILE *fd; local
153 if ((fd = fopen(file, "r")) == NULL) {
157 while (fgets(buf, BUFSIZ, fd)) {
sb_to_utf8_test.c 278 FILE *fd; local
282 if ((fd = fopen(file, "r")) == NULL) {
287 while (fgets(buf, BUFSIZ, fd)) {
  /nv-g11n/inputmethod/sunpinyin2/src/slm/tslmendian/
slm_file.cpp 252 int fd = open(fname, O_RDONLY); local
253 ssize_t len = lseek(fd, 0, SEEK_END);
254 lseek(fd, 0, SEEK_SET);
256 if (read(fd, m_buf, len) != len) {
262 close(fd);
  /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslmendian/
slm_file.cpp 253 int fd = open(fname, O_RDONLY); local
254 ssize_t len = lseek(fd, 0, SEEK_END);
255 lseek(fd, 0, SEEK_SET);
257 if (read(fd, m_buf, len) != len) {
263 close(fd);
  /nv-g11n/inputmethod/sunpinyin2/src/ime-core/
ic_history.cpp 237 int fd = open (fname, O_CREAT, 0600); local
238 if (fd == -1) {
244 fstat (fd, &info);
248 read (fd, buf, info.st_size);
252 close (fd);

Completed in 960 milliseconds

1 2