Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 1999 12:30:23 +0200 (EET)
From:      "Vladimir N.Silyaev" <vns@delta.odessa.ua>
To:        freebsd-emulation@FreeBSD.ORG
Subject:   Linux async I/O
Message-ID:  <199902141030.MAA00613@storage.delta.odessa.ua>

next in thread | raw e-mail | index | archive | help
Hi!

Anybody can explain status of native Linux async I/O?
Some pieces code frome linux 2.0.33 kernel.
-------------- cut here ----------------------
	case FIOSETOWN:
	case SIOCSPGRP:
		err=verify_area(VERIFY_READ,(int *)arg,sizeof(long));
		if(err)
			return err;
		pid = get_user((int *) arg);
		/* see inet_fcntl */
		if (current->pid != pid && current->pgrp != -pid && !suser())
			return -EPERM;
		sk->proc = pid;
		return(0);
-------------- cut here ----------------------
Linux kernel don't make difference on FIOSETOWN and SIOCSPGRP!
But FreeBSD kernel code and Linux emulation subsystem, work sligthly
differently (I mean FreeBSD do it with accordance to POSIX standarts).
There are in FIOSETOWN call positive value mean the process id, negative is 
the process group id and SIOCSPGRP vice versa positive is the process group id, 
and negative is the process id.

Our comments?

With best regards,
		V.Silyaev.

P.S. It's a main reason why SYBASE SQL SERVER don't working on the current. 
It's call SIOCSPGRP with value from getpid, without creating process group.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902141030.MAA00613>