This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: where did ioperm & iopl functions go ?


as-salam alikom,

	well, thanks fellas for the help, I did find the iopl & ioperm
functions in the 'sys/io.h' file, well, about that unistd.h doesn't come
with gcc, why then does the unistd.h start with those lines :

/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with the GNU C Library; see the file COPYING.LIB.  If
not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite
330,
   Boston, MA 02111-1307, USA.  */

/*
 *      POSIX Standard: 2.10 Symbolic Constants         <unistd.h>
 */


note, that the first 2 lines say that the unistd.h is a part of the GNU C
library...
anyways, I tried that example program again, but I get a seg. fault, cause
I can't get the setuid(0) to work... I have to run the program as root,
isn't there a way where I can run the program as a normal user ?
 Thanks again for the help... 

+-----------------------------------------------------+
| Ahmed El-Mahmoudy				      |
|						      |
|  Web : http://www.geocities.com/CapeCanaveral/9568/ |
|  Snail mail : P.O. Box 10 Saray Elkobba,	      |
|	        Cairo ,Egypt.			      |
|               Postal Code 11712		      |
+-----------------------------------------------------+







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]