Displaying 2 results from an estimated 2 matches for "zopen".
Did you mean:
open
2023 Feb 20
1
fseek/fgetc puzzle
...ng convinced me in 2017
Readd removed fflush()/fseek() in between read and write..
The behave:record_a_resend-2 test failed on Solaris 5.10 and 5.11,
messages in *record* where separated by four \n / U+000A instead
of two. It turns out that the effective sequence
if((fo = Zopen(name, "a+")) == NULL){
if((fo = Zopen(name, "wx")) == NULL){
...
if(fseek(fo, -2L, SEEK_END) == 0){
switch(fread(buf, sizeof *buf, 2, fo)){
...
if(emptyline){
putc('\n', fo);...
2013 Sep 12
10
[PATCH] xen/build: Remove hacked up version of figlet
...lude <stdio.h>
-#ifdef __STDC__
-#include <stdlib.h>
-#endif
-#include <string.h>
-#include <ctype.h>
-#include <fcntl.h> /* Needed for get_columns */
-
-#ifdef unix
-#include <sys/ioctl.h> /* Needed for get_columns */
-#endif
-
-
-#define ZFILE FILE
-#define Zopen fopen
-#define Zgetc fgetc
-#define Zungetc(_x,_y) fseek(_y,-1,SEEK_CUR)
-#define Zclose fclose
-
-#define MYSTRLEN(x) ((int)strlen(x)) /* Eliminate ANSI problem */
-
-#define DIRSEP ''/''
-#define DIRSEP2 ''\\''
-/* Leave alone for Unix and MS-DOS/Windows!
-Note: ...