/dports/net/mpich/mpich-3.4.3/test/mpi/io/ |
H A D | resized.c | 18 int i, nprocs, len, mpi_errno, buf[2], newbuf[4]; in main() local 66 newbuf[i] = 55; in main() 67 MPI_File_write(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 95 newbuf[i] = 100; in main() 96 MPI_File_read(fh, newbuf, 2, MPI_INT, MPI_STATUS_IGNORE); in main() 97 if ((newbuf[0] != 10) || (newbuf[1] != 20) || (newbuf[2] != 100) || (newbuf[3] != 100)) { in main() 101 newbuf[0], newbuf[1], newbuf[2], newbuf[3]); in main() 118 newbuf[i] = 100; in main() 119 MPI_File_read(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 120 if ((newbuf[0] != 10) || (newbuf[3] != 20) || (newbuf[1] != 55) || (newbuf[2] != 55)) { in main() [all …]
|
H A D | resized2.c | 18 int i, nprocs, len, mpi_errno, buf[2], newbuf[4]; in main() local 68 newbuf[i] = 55; in main() 69 MPI_File_write(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 97 newbuf[i] = 100; in main() 98 MPI_File_read(fh, newbuf, 2, MPI_INT, MPI_STATUS_IGNORE); in main() 99 if ((newbuf[0] != 10) || (newbuf[1] != 20) || (newbuf[2] != 100) || (newbuf[3] != 100)) { in main() 103 newbuf[0], newbuf[1], newbuf[2], newbuf[3]); in main() 120 newbuf[i] = 100; in main() 121 MPI_File_read(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 122 if ((newbuf[0] != 10) || (newbuf[3] != 20) || (newbuf[1] != 55) || (newbuf[2] != 55)) { in main() [all …]
|
/dports/net/mpich2/mpich2-1.5/test/mpi/io/ |
H A D | resized.c | 18 int i, nprocs, len, mpi_errno, buf[2], newbuf[4]; in main() local 67 for (i=0; i<4; i++) newbuf[i] = 55; in main() 68 MPI_File_write(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 94 for (i=0; i<4; i++) newbuf[i] = 100; in main() 95 MPI_File_read(fh, newbuf, 2, MPI_INT, MPI_STATUS_IGNORE); in main() 96 if ((newbuf[0] != 10) || (newbuf[1] != 20) || (newbuf[2] !=100) || (newbuf[3] != 100)) { in main() 98 …%d, should be 100,\n newbuf[3] is %d, should be 100,\n", newbuf[0], newbuf[1], newbuf[2], newbuf[3… in main() 114 for (i=0; i<4; i++) newbuf[i] = 100; in main() 115 MPI_File_read(fh, newbuf, 4, MPI_INT, MPI_STATUS_IGNORE); in main() 116 if ((newbuf[0] != 10) || (newbuf[3] != 20) || (newbuf[1] !=55) || (newbuf[2] != 55)) { in main() [all …]
|
/dports/games/libretro-px68k/px68k-libretro-8455d9c/win32api/ |
H A D | fake.c | 155 char newbuf[256]; in WritePrivateProfileString() local 185 snprintf(newbuf, sizeof(newbuf), "[%s]\n", sect); in WritePrivateProfileString() 186 if (fwrite(newbuf, strlen(newbuf), 1, fp) < 1) in WritePrivateProfileString() 188 snprintf(newbuf, sizeof(newbuf), "%s=%s\n", key, str); in WritePrivateProfileString() 189 if (fwrite(newbuf, strlen(newbuf), 1, fp) < 1) in WritePrivateProfileString() 208 snprintf(newbuf, sizeof(newbuf), "%s=%s\n", key, str); in WritePrivateProfileString() 211 if (!strncasecmp(newbuf, lbuf, strlen(newbuf))) in WritePrivateProfileString() 215 if (fwrite(newbuf, strlen(newbuf), 1, fp) < 1) in WritePrivateProfileString() 234 snprintf(newbuf, sizeof(newbuf), "%s=%s\n", key, str); in WritePrivateProfileString() 235 if (fwrite(newbuf, strlen(newbuf), 1, fp) < 1) in WritePrivateProfileString() [all …]
|
/dports/databases/percona56-client/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/percona57-server/percona-server-5.7.36-39/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/percona57-client/percona-server-5.7.36-39/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/science/netcdf/netcdf-c-4.7.4/plugins/ |
H A D | H5Znoop.c | 76 void* newbuf; in H5Z_filter_noop() local 82 newbuf = H5allocate_memory(*buf_size,0); in H5Z_filter_noop() 84 newbuf = malloc(*buf_size); in H5Z_filter_noop() 86 if(newbuf == NULL) abort(); in H5Z_filter_noop() 87 memcpy(newbuf,*buf,*buf_size); in H5Z_filter_noop() 94 *buf = newbuf; in H5Z_filter_noop() 100 newbuf = H5allocate_memory(*buf_size,0); in H5Z_filter_noop() 102 newbuf = malloc(*buf_size); in H5Z_filter_noop() 104 if(newbuf == NULL) abort(); in H5Z_filter_noop() 105 memcpy(newbuf,*buf,*buf_size); in H5Z_filter_noop() [all …]
|
/dports/databases/percona56-server/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/mariadb104-server/mariadb-10.4.24/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/mariadb104-client/mariadb-10.4.24/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/mariadb103-client/mariadb-10.3.34/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; 67 r = pread(fd, newbuf, sizeof newbuf, 100); 68 assert(r==sizeof newbuf); 69 assert(iszero(newbuf, sizeof newbuf)); 70 r = pread(fd, newbuf, sizeof newbuf, offset); 71 assert(r==sizeof newbuf); 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0);
|
/dports/databases/mariadb103-server/mariadb-10.3.34/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/tokudb/PerconaFT/portability/tests/ |
H A D | test-pwrite4g.cc | 66 char newbuf[512]; in test_main() local 67 r = pread(fd, newbuf, sizeof newbuf, 100); in test_main() 68 assert(r==sizeof newbuf); in test_main() 69 assert(iszero(newbuf, sizeof newbuf)); in test_main() 70 r = pread(fd, newbuf, sizeof newbuf, offset); in test_main() 71 assert(r==sizeof newbuf); in test_main() 72 assert(memcmp(newbuf, buf, sizeof newbuf) == 0); in test_main()
|
/dports/dns/totd/totd-1.5.1/ |
H A D | ev_udp_in.c | 136 u_char *newbuf; in ev_udp_in_read() local 147 if (!newbuf) in ev_udp_in_read() 158 if (newbuf) in ev_udp_in_read() 159 free (newbuf); in ev_udp_in_read() 169 if (newbuf) in ev_udp_in_read() 170 free (newbuf); in ev_udp_in_read() 184 if (newbuf) in ev_udp_in_read() 185 free (newbuf); in ev_udp_in_read() 199 if (newbuf) in ev_udp_in_read() 200 free (newbuf); in ev_udp_in_read() [all …]
|
/dports/net-mgmt/xymon-server/xymon-4.3.30/lib/ |
H A D | strfunc.c | 31 strbuffer_t *newbuf; in newstrbuffer() local 40 xfree(newbuf); in newstrbuffer() 43 *(newbuf->s) = '\0'; in newstrbuffer() 46 return newbuf; in newstrbuffer() 51 strbuffer_t *newbuf; in convertstrbuffer() local 54 newbuf->s = buffer; in convertstrbuffer() 56 newbuf->sz = (bufsz ? bufsz : newbuf->used+1); in convertstrbuffer() 58 return newbuf; in convertstrbuffer() 93 strbuffer_t *newbuf; in dupstrbuffer() local 100 newbuf->used = newbuf->sz = len; in dupstrbuffer() [all …]
|
/dports/net-mgmt/xymon-client/xymon-4.3.30/lib/ |
H A D | strfunc.c | 31 strbuffer_t *newbuf; in newstrbuffer() local 40 xfree(newbuf); in newstrbuffer() 43 *(newbuf->s) = '\0'; in newstrbuffer() 46 return newbuf; in newstrbuffer() 51 strbuffer_t *newbuf; in convertstrbuffer() local 54 newbuf->s = buffer; in convertstrbuffer() 56 newbuf->sz = (bufsz ? bufsz : newbuf->used+1); in convertstrbuffer() 58 return newbuf; in convertstrbuffer() 93 strbuffer_t *newbuf; in dupstrbuffer() local 100 newbuf->used = newbuf->sz = len; in dupstrbuffer() [all …]
|
/dports/mail/courier/courier-0.65.3/maildrop/ |
H A D | buffer.C | 15 unsigned char *newbuf=new unsigned char[newsize]; in append() local 17 if (!newbuf) outofmem(); in append() 18 if (bufsize) memcpy(newbuf, buf, bufsize); in append() 20 buf=newbuf; in append() 36 if (!newbuf) outofmem(); in set() 38 buf=newbuf; in set() 79 if (!newbuf) outofmem(); 81 buf=newbuf; 98 if (!newbuf) outofmem(); in append() 101 memcpy(newbuf, buf, buflength); in append() [all …]
|
/dports/mail/maildrop/maildrop-3.0.3/libs/maildrop/ |
H A D | buffer.C | 15 unsigned char *newbuf=new unsigned char[newsize]; in append() local 17 if (!newbuf) outofmem(); in append() 18 if (bufsize) memcpy(newbuf, buf, bufsize); in append() 20 buf=newbuf; in append() 36 if (!newbuf) outofmem(); in set() 38 buf=newbuf; in set() 79 if (!newbuf) outofmem(); 81 buf=newbuf; 98 if (!newbuf) outofmem(); in append() 101 memcpy(newbuf, buf, buflength); in append() [all …]
|
/dports/security/openvpn-devel/openvpn-0033811e0215af76f469d78912c95a2f59813454/src/openvpn/ |
H A D | mss.c | 68 struct buffer newbuf = *buf; in mss_fixup_ipv4() local 69 if (buf_advance(&newbuf, hlen)) in mss_fixup_ipv4() 71 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv4() 74 mss_fixup_dowork(&newbuf, (uint16_t) maxmss); in mss_fixup_ipv4() 89 struct buffer newbuf; in mss_fixup_ipv6() local 125 newbuf = *buf; in mss_fixup_ipv6() 126 if (buf_advance( &newbuf, 40 ) in mss_fixup_ipv6() 127 && BLEN(&newbuf) >= (int) sizeof(struct openvpn_tcphdr)) in mss_fixup_ipv6() 129 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv6() 132 mss_fixup_dowork(&newbuf, (uint16_t) maxmss-20); in mss_fixup_ipv6()
|
/dports/security/openvpn/openvpn-2.5.6/src/openvpn/ |
H A D | mss.c | 68 struct buffer newbuf = *buf; in mss_fixup_ipv4() local 69 if (buf_advance(&newbuf, hlen)) in mss_fixup_ipv4() 71 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv4() 74 mss_fixup_dowork(&newbuf, (uint16_t) maxmss); in mss_fixup_ipv4() 89 struct buffer newbuf; in mss_fixup_ipv6() local 125 newbuf = *buf; in mss_fixup_ipv6() 126 if (buf_advance( &newbuf, 40 ) in mss_fixup_ipv6() 127 && BLEN(&newbuf) >= (int) sizeof(struct openvpn_tcphdr)) in mss_fixup_ipv6() 129 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv6() 132 mss_fixup_dowork(&newbuf, (uint16_t) maxmss-20); in mss_fixup_ipv6()
|
/dports/security/openvpn-mbedtls/openvpn-2.5.6/src/openvpn/ |
H A D | mss.c | 68 struct buffer newbuf = *buf; in mss_fixup_ipv4() local 69 if (buf_advance(&newbuf, hlen)) in mss_fixup_ipv4() 71 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv4() 74 mss_fixup_dowork(&newbuf, (uint16_t) maxmss); in mss_fixup_ipv4() 89 struct buffer newbuf; in mss_fixup_ipv6() local 125 newbuf = *buf; in mss_fixup_ipv6() 126 if (buf_advance( &newbuf, 40 ) in mss_fixup_ipv6() 127 && BLEN(&newbuf) >= (int) sizeof(struct openvpn_tcphdr)) in mss_fixup_ipv6() 129 struct openvpn_tcphdr *tc = (struct openvpn_tcphdr *) BPTR(&newbuf); in mss_fixup_ipv6() 132 mss_fixup_dowork(&newbuf, (uint16_t) maxmss-20); in mss_fixup_ipv6()
|