bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrapping glibc connect/accept functions


From: Andreas Jaeger
Subject: Re: wrapping glibc connect/accept functions
Date: Sat, 28 Jun 2003 16:47:46 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Portable Code, linux)

Toby Murray <address@hidden> writes:

> Hi,
> I'm working on a project in which we require the socket functions
> (specifically: connect, accept, read, write, and the others for
> reading and writing TCP sockets etc.) to be wrapped by code for
> authentication.
>
> the platform is Linux kernel using the glibc libraries.
> This wrapping needs to be done at the userlevel, (besides I don't have
> the inclination to mess with the implementation of these functions in
> the kernel).
>
> I believe that these functions (which under Linux just make the
> socketcall system call) are provided by glibc but can't actually find
> the code for them in the glibc source (I'm using version 2.2.93)
> Whereabouts in the glibc source is the actual implementation of these
> functions that then goes and makes the system call? - I don't want to
> modify these functions, merely rename them and create an identical
> wrapper to do some extra processing...
>
> I've spent about the last two hours looking but can't actually find
> the file in which the (for example)
>
> int connect(.... params etc ...){
> ..body etc...
> }
>
> exists within the glibc source...
> can you help me out?

sysdeps/unix/sysv/linux/connect.S - just compile glibc yourself and
look at the .d file to see which files are compiled,

Andreas
-- 
 Andreas Jaeger, address@hidden, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126




reply via email to

[Prev in Thread] Current Thread [Next in Thread]