* Sebastian Hammer, Adam Dickmeiss
*
* $Log: kinput.c,v $
- * Revision 1.22 1997-02-12 20:39:45 adam
+ * Revision 1.23 1997-09-04 13:57:39 adam
+ * Added O_BINARY for open calls.
+ *
+ * Revision 1.22 1997/02/12 20:39:45 adam
* Implemented options -f <n> that limits the log to the first <n>
* records.
* Changed some log messages also.
int nr = 0, r, fd;
char fname[1024];
getFnameTmp (fname, f->no);
- fd = open (fname, O_RDONLY);
+ fd = open (fname, O_BINARY|O_RDONLY);
if (fd == -1)
{
logf (LOG_FATAL|LOG_ERRNO, "cannot open %s", fname);
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lockidx.c,v $
- * Revision 1.8 1997-02-12 20:39:46 adam
+ * Revision 1.9 1997-09-04 13:58:04 adam
+ * Added O_BINARY for open calls.
+ *
+ * Revision 1.8 1997/02/12 20:39:46 adam
* Implemented options -f <n> that limits the log to the first <n>
* records.
* Changed some log messages also.
if (server_lock_cmt == -1)
{
sprintf (path, "%s%s", pathPrefix, FNAME_COMMIT_LOCK);
- if ((server_lock_cmt = open (path, O_CREAT|O_RDWR|O_SYNC, 0666))
+ if ((server_lock_cmt = open (path, O_BINARY|O_CREAT|O_RDWR|O_SYNC,
+ 0666))
== -1)
{
logf (LOG_FATAL|LOG_ERRNO, "create %s", path);
if (server_lock_org == -1)
{
sprintf (path, "%s%s", pathPrefix, FNAME_ORG_LOCK);
- if ((server_lock_org = open (path, O_CREAT|O_RDWR|O_SYNC, 0666))
+ if ((server_lock_org = open (path, O_BINARY|O_CREAT|O_RDWR|O_SYNC,
+ 0666))
== -1)
{
logf (LOG_FATAL|LOG_ERRNO, "create %s", path);
sprintf (path, "%s%s", pathPrefix, FNAME_MAIN_LOCK);
while (1)
{
- lock_fd = open (path, O_CREAT|O_RDWR|O_EXCL, 0666);
+ lock_fd = open (path, O_BINARY|O_CREAT|O_RDWR|O_EXCL, 0666);
if (lock_fd == -1)
{
- lock_fd = open (path, O_RDWR);
+ lock_fd = open (path, O_BINARY|O_RDWR);
if (lock_fd == -1)
{
if (errno == ENOENT)
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: locksrv.c,v $
- * Revision 1.6 1996-10-29 14:06:52 adam
+ * Revision 1.7 1997-09-04 13:58:04 adam
+ * Added O_BINARY for open calls.
+ *
+ * Revision 1.6 1996/10/29 14:06:52 adam
* Include zebrautl.h instead of alexutil.h.
*
* Revision 1.5 1996/05/15 11:58:18 adam
if (server_lock_cmt == -1)
{
sprintf (path, "%s%s", pathPrefix, FNAME_COMMIT_LOCK);
- if ((server_lock_cmt = open (path, O_CREAT|O_RDWR, 0666))
+ if ((server_lock_cmt = open (path, O_BINARY|O_CREAT|O_RDWR, 0666))
== -1)
{
logf (LOG_FATAL|LOG_ERRNO, "create %s", path);
assert (server_lock_org == -1);
sprintf (path, "%s%s", pathPrefix, FNAME_ORG_LOCK);
- if ((server_lock_org = open (path, O_CREAT|O_RDWR, 0666))
+ if ((server_lock_org = open (path, O_BINARY|O_CREAT|O_RDWR, 0666))
== -1)
{
logf (LOG_FATAL|LOG_ERRNO, "create %s", path);
*timep = xstat.st_ctime;
sprintf (path, "%s%s", pathPrefix, FNAME_MAIN_LOCK);
- fd = open (path, O_RDONLY);
+ fd = open (path, O_BINARY|O_RDONLY);
if (fd == -1)
{
*buf = 0;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rstemp.c,v $
- * Revision 1.18 1996-10-29 13:54:52 adam
+ * Revision 1.19 1997-09-04 13:58:57 adam
+ * Added O_BINARY for open calls.
+ *
+ * Revision 1.18 1996/10/29 13:54:52 adam
* Changed name of setting tempSetDir to setTmpDir.
*
* Revision 1.17 1995/12/11 09:15:28 adam
if (info->fname)
{
if (flag & RSETF_WRITE)
- info->fd = open (info->fname, O_RDWR|O_CREAT, 0666);
+ info->fd = open (info->fname, O_BINARY|O_RDWR|O_CREAT, 0666);
else
- info->fd = open (info->fname, O_RDONLY);
+ info->fd = open (info->fname, O_BINARY|O_RDONLY);
if (info->fd == -1)
{
logf (LOG_FATAL|LOG_ERRNO, "open %s", info->fname);
strcpy (info->fname, s);
logf (LOG_DEBUG, "creating tempfile %s", info->fname);
- info->fd = open (info->fname, O_RDWR|O_CREAT, 0666);
+ info->fd = open (info->fname, O_BINARY|O_RDWR|O_CREAT, 0666);
if (info->fd == -1)
{
logf (LOG_FATAL|LOG_ERRNO, "open %s", info->fname);