Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-01

patch for unit sockets

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Marco van de Voort
Marco van de Voort wrote
> SocketError should be a threadvar, I think Socketerror is legacy. Use fpgeterrno (or errno) to get the error.

It should either be removed or fixed. Currently it's e.g. nowhere set anymore for *nix, yet still used in rtl/inc/sockovl.inc. Also, sockets is a platform-independent unit afaik while fpgeterrno is fairly *nix-specific (in our rtl anyway).

Jonas

Reply by email

Ales Katona
to Marco van de Voort: Socketerror is legacy. Use fpgeterrno (or errno) to get the error. 1.0.x had no…
Marco van de Voort wrote 13 lines
>SocketError should be a threadvar, I think > > Socketerror is legacy. Use fpgeterrno (or errno) to get the error. 1.0.x had no threadsupport _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

I use socketerror on unix still. Altho luckily I don't use threads anymore.

The unix "fp" naming convention is a bit sad.

Ales

Reply by email