Commit Graph

2287 Commits

Author SHA1 Message Date
oga
ce0d22a55d When mesa uses sse the current allocator was just using malloc, meaning
that the memory was not set to executable. This caused some horrible
segfaults that due to lack of hardware i've been unable to track down
for months.

Conveniently, there was already a memory allocator that uses mmap to
create executable memory, #ifdef linux. Make it usable for us too.

Problem solved!

Thanks for todd@ for helping me debug, and deraadt@ for noticing the
allocator.

Makes SiS work with dri, probaby solves a bunch of other people too.

ok matthieu@ (who has sent this upstream).
2008-04-19 13:11:24 +00:00
matthieu
27ae5db2a9 dri libs depend on libmesa_pic.a 2008-04-19 07:15:17 +00:00
matthieu
a794a5f85b Fix from Eric Anholt in Mesa-current:
[965] Fix potential segfaults from bad realloc.

    C has no order of evaluation restrictions on function arguments, so we
    attempted to realloc from new-size to new-size.
2008-04-17 21:21:27 +00:00
matthieu
42f2fadde6 pthread_key_create(3) explicitely says that the value associated
with a new key is NULL. So set the allocated memory to zero.
2008-04-17 20:25:05 +00:00
matthieu
11509342cd When running without an xorg.conf file, use the current wscons keymap
to setup XkbLayout and XkbOptions. Idea and original code from reyk@,
some tweaks by me. ok oga@.
2008-04-16 19:45:22 +00:00
oga
eb613a1bb7 merge kbfunc_{ptrmove,client_{move,resize}} into one function that takes a flag,
this code was almost identical...

ok okan.
2008-04-16 13:47:29 +00:00
oga
fb651469ee remove infowin. It slipped out of the last commit, for some reason. 2008-04-16 13:40:34 +00:00
oga
f062e958e0 Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
respectively.

ok okan.
2008-04-16 13:38:09 +00:00
oga
9aedc9e805 Remove screen_infomsg(), nothing uses it.
ok okan.
2008-04-16 13:35:37 +00:00
oga
8a66857b72 kill an unused struct member.
ok okan
2008-04-16 13:33:26 +00:00
oga
8b3d596db5 make the argument parser for commands accept quoted strings, while i'm
there make u_spawn use exec_wm (renamed to u_exec) for it's execution to
remove duplicated code.

This means constructs like this work in .cwmrc:

bind CM-t "ssh -Y 192.168.1.2 \"xterm -e top\""

or alternatively:

bind CM-t "ssh -Y 192.168.1.2 'xterm -e top'"

"in it goes" okan@.
2008-04-15 21:20:56 +00:00
oga
5559ba08b3 Kill dirent_isdir() and dirent_islink() nothing used them since the new
parser went in.

ok okan.
2008-04-15 20:26:50 +00:00
oga
26beb05af2 hit it with the knf stick. 2008-04-15 20:24:41 +00:00
oga
a101e9a0c8 Add "gap" support to .cwmrc. The options put in here make gaps on the edge
of the screen where an application won't be {,vert}maximized over. used for
placing a statusbar or something like xclock.

Patch from Edd Barrett, with input from myself and okan. Thanks!

ok okan@.
2008-04-15 18:46:58 +00:00
okan
36cf099f9d - add vi keybindings to search
- allow for ctrl-h as well

discussion with and ok oga@
2008-04-15 18:33:13 +00:00
okan
e588092d97 malloc -> calloc
suggested by and ok oga@
2008-04-15 18:22:08 +00:00
matthieu
766b9c6928 regen 2008-04-12 17:57:53 +00:00
matthieu
fd01a78b07 mkfontscale 1.0.4 2008-04-12 17:52:43 +00:00
matthieu
58b18c30eb regen 2008-04-12 17:51:44 +00:00
matthieu
b8c22531e6 mkfontdir 1.0.4 2008-04-12 17:49:58 +00:00
matthieu
ac0cfb4ed8 updates 2008-04-12 14:59:04 +00:00
matthieu
348bddcecc The v4l driver is a linux-only driver. Bye. 2008-04-12 14:43:19 +00:00
matthieu
9c8d91fa20 Add back a real ChangeLog. automake requires it. 2008-04-10 21:04:35 +00:00
matthieu
e4105d2ff7 merge util-macros 1.1.6 2008-04-09 20:35:16 +00:00
matthieu
c5b0c07c80 util-macros 1.1.6 2008-04-09 20:31:17 +00:00
okan
3174a0bb47 remove alt-tab menu
discussed with a few

ok oga@
2008-04-09 18:10:47 +00:00
matthieu
d7941e9f74 regen with autoconf 2.59p2. 2008-04-09 06:12:30 +00:00
todd
044f72e9e7 sync 2008-04-09 00:15:22 +00:00
todd
0f3df0545b sync 2008-04-08 21:54:15 +00:00
todd
ad67a1c4c0 be more exact 2008-04-08 21:53:47 +00:00
matthieu
d44622f6f8 xf86-video-amd got renamed to xf86-video-geode to avoid confusion. 2008-04-08 20:13:03 +00:00
matthieu
52cd517993 remove empty file 2008-04-08 19:49:13 +00:00
matthieu
520b0cd455 Update to pixman 0.10, with one small fix to the sse2 test in configure.ac. 2008-04-08 19:06:14 +00:00
matthieu
ba51a4b66c Update to pixman 0.10, with one small fix to the sse2 test in configure.ac. 2008-04-08 19:00:25 +00:00
oga
edd5ee518b No cookie for okan.
fix use-after-free that broke exec's path getting stuff.

``paths'' isn't used anymore, but pointers to within that array are still
used in the next loop. delay freeing it until after then.
2008-04-08 17:38:27 +00:00
okan
fdb2248a19 better 'quit' keybinding default (CMS-q)
feedback from oga@ and simon@

ok oga@ simon@
2008-04-08 14:12:28 +00:00
simon
2fc4faf28a Make _xev_quit "volatile sig_atomic_t" for proper correctness.
Noticed by oga@, thanks!
2008-04-08 00:09:50 +00:00
simon
8797c69ac9 Add quit function, bind it per default to CM-q and change exec_wm
binding to CM-w.

Inital diff from Gleydson Soares
Feedback from oga@ and okan@

ok oga@
2008-04-07 23:47:09 +00:00
todd
b970793852 sync 2008-04-07 20:59:46 +00:00
todd
c73f0e5e9b make better, add sanity 2008-04-07 20:59:41 +00:00
todd
5ff754e01e sync 2008-04-07 19:10:23 +00:00
okan
33d3a7edf1 - use $PATH before _PATH_DEFPATH, from Tim van der Molen
- plug leak, noticed by oga

feedback and ok oga@
2008-04-05 21:09:19 +00:00
simon
3bf9d124cf Sync usage() with reality and manpage.
"ok, but no cookie" oga@
2008-04-03 13:58:57 +00:00
matthieu
84ff75cce6 Clear the password as early as possible in the BSD auth case. ok deraadt@ 2008-04-02 20:08:52 +00:00
matthieu
5021df1c2f Unconditionnaly build libdrm on i386 since the via driver needs some
bits of it. Noticed by naddy@.
2008-04-02 20:05:35 +00:00
matthieu
67dcbeb5eb If privsep support isn't compiled in, use open() to open the agp device. 2008-04-01 21:08:01 +00:00
drahn
69b97bb4ca Turns out GL does build on landisk now, ok todd@ 2008-04-01 15:25:18 +00:00
drahn
1c7248c846 GL enable on landisk was not tested yet. That half of the previous change
was not meant to go in. At least yet.
2008-03-31 19:20:29 +00:00
matthieu
5817c1e2e2 some more to do. 2008-03-31 18:21:50 +00:00
drahn
4c1554f275 Enable shared libraries. Sets are 'close' but probably not 100% 2008-03-31 14:10:32 +00:00